Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Different stages

Author
Message
Jigga
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location:
Posted: 17th Jan 2003 02:19
What would be the best method for switching between levels in Dark Basic? For example, in my game,in level one, The player is suppost to collect 10 boxes. At this point, the player will go to the next level. Should I use to GOTO or GOSUB commands, or just include all game levels in the main loop?
Dr DooMer
22
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 17th Jan 2003 04:22
It depends how different your levels are. If they're similar (as in, the way they play) then you could probably get by with one 'game' loop. Before the loop begins, you would run a unique gosub (or do something similar, like load a unique array) that would set up the terrain/items/characters for the current level.

If your levels are completely dissimilar, I would advise using "goto" commands, but it's really a matter of personal preference, I think.

"I am a living, thinking entity who was created in the sea of information."

Login to post a reply

Server time is: 2025-05-13 01:00:26
Your offset time is: 2025-05-13 01:00:26