More API Docs and functions!
I improved the API docs and also added the following functions to the tile rendering system:
-
CLEAR.tiles.clearTileSystem()- clears the initialized tile system
-
CLEAR.tiles.hideTile(tx, ty, value)- sets the
hiddenvalue for the tile attx,tytovalue(a boolean)
- sets the
-
CLEAR.tiles.isHidden(tx, ty)- returns the hidden value for the tile at
tx,tyas a boolean
- returns the hidden value for the tile at
-
CLEAR.tiles.removeTile(tx, ty)- removes the tile at
tx,tyfrom the tile system
- removes the tile at
I also added a simple check to all the CLEAR.tiles functions to make sure the tilesystem is initialized before they run to prevent errors.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.