Posted on 2008-11-14
I'm creating a game in C++ and I want to make a level editor for it in VB.net, because of the UI.
It's a 2D platformer, which means it has a lot of "screens" one after another, 256x240 resolution.
The entire workspace is around 7000x6000 but because that paints very slowly I've divided that in 5x5 sections, 25 "screens" of 256x240, so a total of 1280x1200 that is visible with the ability to go to the next section of that resolution. Every screen is divided in squares of 16x16, the size of a tile so every screen can have 240 tiles.
When the user paints a tile I have to store some information about that tile, it's location, type and path of the bitmap which is already a threedimensional array. If the user were to fill the visible screen with tiles, that would mean 240 times 25 = 6000 tiles which all need to be stored.
Problem number 2, there are a total of 4 layers on top of each other which would mean 4 threedimensional layers 6000 large.
Sorry lots of text.I assume this would put a strain on the program's memory usage so I was wondering what would be a good way to hold all this data without lowering the performance too much?
Thanks in advance.