Dynamic map in Sheetengine?

Apr 30, 2013 at 3:38 PM
Edited May 3, 2013 at 4:47 PM
Hi,

I am working on a project with Node JS and SheetEngine and I was trying to have a dynamic scene size.

When new players connect to the game, the scene would get bigger in order to provide new tiles to the new player. Is it possible to change the scene size during its life cycle?


Thanks in advance and thank you for all the work you've done and you share now.
Coordinator
May 16, 2013 at 11:32 AM
Sure, it's possible. You can add new sheets or basesheets any time. Take a look at the "Rendering large scenes" example, that shows how to add and how to remove sheets from the scene. If you just want to simply add new sheets you can skip the removal part, and off you go.

However if your scene is much bigger than what can be displayed on the main canvas, then your problem is even simpler. In this case you can stick to the above mentioned example and it is perfectly enough to add new sheets/tiles to the underlying data source without visualizing them. They will be visualized when the client loads the appropriate portion of the map.