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 / Level Help

Author
Message
Doomwad
21
Years of Service
User Offline
Joined: 29th Dec 2003
Location:
Posted: 19th Mar 2004 04:23
I am creating a simplistic arcade game, and I was wondering, how do you make multiple levels? For instance, you collide with a door and you move on to a completely different level. How would this be acheived?
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 20th Mar 2004 02:16
You can place your levels under subroutines and then call upon them with the Gosub command when needed.

P4 3.2Ghz/Alienware area 51/radeon 9800 pro 256mb/sound blaster audigy 2/5.1 surround sound speakers.
Peregrin
21
Years of Service
User Offline
Joined: 13th Mar 2004
Location:
Posted: 20th Mar 2004 14:56
A "level", in 3D, is a matrix and a collection of objects; if you want to switch from level 1 to level 2, for instance, you should build a function that deletes all previous matrix and objects of level 1, and builds the new matrix and new objects or level 2, and re-position the player to new coordinates on this new matrix; to go back, this function does the same: it erases all level 2 and re-builds level 1 instead.

Login to post a reply

Server time is: 2025-05-31 17:44:34
Your offset time is: 2025-05-31 17:44:34