[setting] stage
Defines the properties of the game's stage.
Usage
. stage width 800px, height 600px, +create, +center
Attributes
- width: The width of the stage.
- height: The height of the stage.
- create: Should the stage be created or should an existing DOM Element be used?
- "yes": The stage will be created.
- "no": The DOM Element with the ID supplied in attribute "id" will be used as the stage.
- center: Center the stage in the window?
- id: HTML ID of the stage element.
Parents
Children