I am using an old game level data, and have managed to extract the relevant information.
The way the game stores the level is each has about 24 rooms in it , with every room made up of 3x10 tiles. The rooms are linked by having each room stores the link data of what room is on it's left, right, up and down.
Now, I'm thinking of storing all the rooms into a grid-based map (eg 10x10 rooms), without the need the store each links in each room.
What is the best way to store all of this grid data? I'm making this game to be mod friendly, so the player can change how big the level is by changing the grid size. Storing it in an array will make it static? I thought of using list, but I'm not sure what information should I store in it (whether I should store the x and y axis, etc.)
This is a 2d game, by the way.
The reason I'm trying to ditch this sort of linking because of in the old game, only one room is drawn at a time. I want to make my remake to have some sort of a continuous feeling sort of? I want to be able for the camera to follow the movement of the player instead of staying static (which is what I have right now. It follows the classic game feel in navigating the levels, one room at a time)
The other reason is I've never actually made a level editor before, and I was thinking of instead of only seeing and only able to modify one room at a time, why not made it one whole giant canvas so that I could implement some sort of a paint function to modify the tiles between different rooms.
Thanks for your thoughts.
Edited by Ikazrima, 21 August 2014 - 02:14 AM.