Readonly
globalsReadonly
propertyReadonly
resourcesNew to TypeSprite?:
Use only the getter/status functions, if at all.
It's better to load resources in the Component with the decorator @res(...)
or
the Component callback function: beforeWorldStart(loader:WorldStartContext) {...}
.
If you like to use this to load custom file types (like loading your own
binary map file format etc.) it's better to implement a ResourceLoader
.
For advanced devs:
Use this to load/unload additional resources if beforeWorldStart
isn't enough.
Note that Worlds will load/unload resources when activated/deactivated.
Make sure to crawl the code to understand the inner rules.
ResourceLoader
Readonly
textPrivate
worldsUse this to declare a new world.
New to TypeSprite?:
This is not the API to load a level. Worlds (in 99%) are defined once at the beginning of your game and there will always be only a hand full of them.
To load a level from a custom file just add a function called: beforeWorldStart(loader:WorldStartContext) {...}
in one of your static Components.
Sends a message to all entities in all worlds.
Optional
params: anyfalse => also send it to deactive objects
false => send to objects in disabled worlds too.
Generated using TypeDoc
The core object of a running game.
See
World