UNPKG

@moderrkowo/jsgl

Version:

Client-side JavaScript library for creating web 2D games. Focusing at objective game.

11 lines (8 loc) 285 B
import { TextSettings } from '../structs/TextSettings'; import { GameObject } from './GameObject'; export class TextGameObject extends GameObject { style: TextSettings | undefined; set text(content: string) { if (this.style !== undefined) this.style.content = content; } }