API Docs for: 1.4.0
Show:

GameObjects Module

The GameObject namespace holds classes which are designed to be added to a State (either directly, or as an ancestor of a Group) and are the Objects that are used when wanting to render anything visual onto the current State. Each GameObject is a representation of a particular item in a game and as such has information that corresponds to that item (like where they are in the 'GameWorld', the scale of the GameObject, who their parent is, e.t.c). For Example: If you wanted to have a massive background image then you can use the StaticImage GameObject, as that is a relatively light-weight object). Or if you had Player with an Animation, which user's could interactive with, then you would use a Sprite, which is more robust.

This module is a rollup of the following modules:

  • Tilemap
    A TileMap handles the creation of TileMapLayers and the TileTypes that they use. Since a TileMap isn't a Entity itself you cannot add it to the Stage inorder to render that it manages, Instead you have to add each layer lies within it. This way you can have other GameObjects behind/in-front of layers.