-
Notifications
You must be signed in to change notification settings - Fork 3
constant for display on map
##Whenever you place something on the "board" (meaning the visual representation of the map) Please set the object's anchor to the constant ANCHOR_SET.
ie: someObject.anchor.set(ANCHOR_SET);
This will place the anchor point to the center of the sprite and line everything up properly.
##When you are referring to the grid
The constant TILE_POS keeps the isometric length of our tiles. If you need to increment whatever you're doing by the length of one tile, add TILE_POS. If you need to increment by several spaces, use the function below.
Also, if you need to land on a specific tile, use the TilePosition functions. Therefore: the grid space (10, 25) would be (xTilePosition(10), yTilePosition(25))
#These are super important to use If we ever need to change the grid size, we can change them in one place rather than combing through every line of code.