psycopathicteen wrote:
Which games load entire levels at once, and which games load as the level progresses?
My upcoming game loads the whole level at once.
There's a specific reason for that: The levels are created randomly, but when you lose a life, you shall see the same level as before.
But the level structure in my game is very simple:
- Platform width
- Platform height
- Gap width
Repeat.
However, an array with 33 items that holds the height for each single tile that is currently on the screen, is updated every eight pixels from the big level structure array.
This array is used for collision checks of the sprites with the level. Because it's easier to calculate the character's position in relation to this array where each item represents one tile instead of using the bigger array where one item represents a whole number of tiles.
So, since my level is randomized and therefore not stored in ROM, but in RAM, and since I have an additional array for only the on-screen stuff, I basically have both versions in my game.