I use a function called Play(). This runs every level. Before calling Play, I set up all the level data (maps, objects, health, score etc...). Play() simply does the same thing every time, but with different parameters.
Using this method, you can separate the level design (whether that be maps, lives or other parameters) from the actual gameplay itself.
For example, Play() could allow you to run around with a gun shooting everything until health runs out or there are no baddies.
In the level initialisation, I can vary the health, number of baddies, damage done by gun, and the map to run around on. I can do this for as many levels as I choose, without having to reprogram the gameplay.
BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply