Here is the version 3.1.0, some bugs have been fixed but here are two improvements:
Improvement of the RAM concerning the maps
Caching of maps has been decreased by 10! With the lowMemory option now available on the maps, it is even possible to decrease the cache weight further. This option is interesting for large maps with many layers!
you have all the information on the following link:
https://docs.rpgjs.dev/guide/performance.html#how-much-space-do-maps-take-up-in-ram
Camera: Follow an event or another player
It was possible to play with the camera on the client side but difficult on the server side.
So here is the new command: cameraFollow
you can even put a displacement animation!
player.cameraFollow(otherPlayer, {
smoothMove: {
time: 2000,
ease: 'easeOutSine' // see https://easings.net
}
})
Note that if the tracked player or event is removed from the map, the camera automatically returns to the base player
Enjoy !