I am pleased to announce a new version.
A lot of effort has been put into completing the documentation and adding several methods to make the game more dynamic. I won't mention them all but you can find the complete list here.
A list of methods allows you to manipulate the map (server side but also client side): https://docs.rpgjs.dev/classes/map.html#rpgmap-methods
Create Dynamic Event
map.createDynamicEvent()
: Create an event dynamically on the map and will appear for all players
player.createDynamicEvent()
: You can also create an event only for the player (only he will see it)
Delete the event with:
map.removeEvent()
player.removeEvent()
https://docs.rpgjs.dev/classes/map.html#create-dynamic-event
Create Dynamic Map
You can create maps on the fly. A very good way to duplicate a map, or create a temporary map. Anyway, it depends on your imagination đ
https://docs.rpgjs.dev/classes/scene-map-server.html#create-a-dynamic-map
Change the tiles
Change a tile on the fly. The tile is stored in memory and visually changes for all players
https://docs.rpgjs.dev/classes/map.html#change-tile-in-map
Get Tile Data
Recover information from a tile according to the positions. You have the server side and client side method
âšī¸ I plan to write some tutorials to explain their use in practical cases