Interesting question! There are probably several ways to do this. I have a couple of ideas.
Idea One: Load the level, and then load other levels as they appear. On my computer, that appears to be what you are doing now, because there is a pause during level transition. (Either that, or the draw time on my computer is crap.) Pros: Easiest to implement. Cons: Performance issues. Especially on slower computers. And my computer is a bad computer, so I’m kinda talking from experience.
Idea Two: Do what they did in Talesworth (have the second level ready, and then you could get all sorts of interesting effects for the transition. Slide transitions, or whatever you can think of.) Pros: Quite efficient. Cons: You’ll still need to draw a level EVERY time anyway, so is it really going to matter?
Idea Three: Draw a GIANT bitmap that contains EVERYTHING the player will use for a particular part of the map. Pros: Loading levels will be a low-priority issue. Cons: It’s still going to take a long time to load ANOTHER giant bitmap the same size if the player wants to traverse to other areas of the map.
Idea Four: Draw the next level while the player is in one level. But do it in little bits over time. Pros: It saves a lot of time (and drastically improves performance). Cons: You’ll have to keep the player pre-occupied for long enough in one level should you want ample time to load the next level.
|