I did this one room game, where you roll a ball around. When you exit the room at top, you apear at bootom, same for left - right.
The thing is: the ball leaves a trace as you roll. So, when "changing rooms" the trace should be as it was in that "room" when you left.
Now it is done by saving background to dynamic sprite, then .pcx to disk, then delete dynamic sprite - before you change room. Before fadein the apropriate background is loaded from disk if exists, else it is default empty screen.
Screens are named by relative coordinates to room 0. (NNN.pcx - 3 times north; NNEEE - 2 north, 3 east; SW - south and west ... and so on)
Is it wise to just keep screens as dynamic sprites? I can't really predict how much of them will player create with his/hers path. If you keep close to room 0, then they are rewriten eact time you visit, but if you go in straight line, there is allways a new one.
How much dynamic sprites of 320à â€"240 can I create before I get in trouble?
And I am not sure how to asign variable names to dynamic sprites, since I don't get the room name until I visit. In theory, there can be infinite number of rooms.
So what wil crash first - disc or memory?
The game thread with download is here.
The thing is: the ball leaves a trace as you roll. So, when "changing rooms" the trace should be as it was in that "room" when you left.
Now it is done by saving background to dynamic sprite, then .pcx to disk, then delete dynamic sprite - before you change room. Before fadein the apropriate background is loaded from disk if exists, else it is default empty screen.
Screens are named by relative coordinates to room 0. (NNN.pcx - 3 times north; NNEEE - 2 north, 3 east; SW - south and west ... and so on)
Is it wise to just keep screens as dynamic sprites? I can't really predict how much of them will player create with his/hers path. If you keep close to room 0, then they are rewriten eact time you visit, but if you go in straight line, there is allways a new one.
How much dynamic sprites of 320à â€"240 can I create before I get in trouble?
And I am not sure how to asign variable names to dynamic sprites, since I don't get the room name until I visit. In theory, there can be infinite number of rooms.
So what wil crash first - disc or memory?
The game thread with download is here.