Hi there,
I’m working on a 2d multiplayer side-scroller similar to the style of Terraria. I’m using SmartFoxServer for my multiplayer back end, which uses Java.
What I’m wondering is the best way of handling collisions, tile maps, and things like that on the server. I’d like to keep as much of the collision code on the server to prevent cheating, as well as control NPC’s and monsters. I need a way to keep the current state of the tile map on the server as well to control mining and collisions.
How would you recommend I accomplish this? Is there a way to use an existing game engine out there without the rendering component, and just keep a state of the game running without displaying it to any screen? Should I write my own methods to handle tile maps and collisions?
Any help on how to get my head around this would be appreciated!
Thanks