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 / How do i Make Multiple Levels?

Author
Message
Dr Eggman
9
Years of Service
User Offline
Joined: 27th Dec 2014
Location: In The Space Coloney Ark
Posted: 6th Jan 2015 07:15
Greetings, It is I, Dr. Eggman

I was Wondering, When making a Game,
How do you Make Multiple Levels in The One Game?

Do All the Levels Code need to be in the Same Program?

Or Do you make Each Level in Different Programs?
If so How do you Link Them?

Thank you

P.S.
Has anyone Happened to See
A Blue Hedgehog Around here?

Ill Be Back, With a New Robot!
That has Super Laser Eyes,
And He'll Feed me Ham! Evil Ham..
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Jan 2015 20:58 Edited at: 6th Jan 2015 21:05
These are BIG questions and it really depends on the game, the media, the resources and what you actually need.

If a game has several environments that the player will interact with, you might need different ways to handle the interaction and therefore may want to load in the different environments as necessary. For example, being outside on a terrain may function completely different than being inside a building or under water. You may have triggers, that load in the specific objects for the environment and then use specific routines to control the interaction with that particular environment.

So in general, depending on the game size and needs, you'll load in different sections or levels as needed/triggered and you may have specific code for those levels or environments.

A racing game, for example, will generally have 1 game engine or programming method where all of the control, physics, etc. are the same from one track to the next. The only thing you would load would be different tracks and maybe different racers.

A space ship combat game that allows landing on planets may have several different engines so to speak. One set of controls for space combat, and another set of controls for walking around on a planet.

As far as making the media for a game, you may use several different tools depending on what you need, what you can afford, and your design skill level.

also, your question might be read as "should everything be coded in the same programming language?" That also depends. DarkBASIC Classic (DBC) is an interpreted language. That means it's sort of a language within a language. That means it can be slow for certain things. Even with todays modern computers that can execute DBC code pretty fast, there are some things that you may need to speed up. You might then use a DLL to execute commands or functions not included in the base programming language.

as an example, check out this collision library. It is DLL that has some collision detection that performs faster in some regards to the built in collision in DBC.

http://forum.thegamecreators.com/?m=forum_view&t=196131&b=10

Enjoy your day.
Dr Eggman
9
Years of Service
User Offline
Joined: 27th Dec 2014
Location: In The Space Coloney Ark
Posted: 7th Jan 2015 06:25
Alright so if I
Made all the Levels in
Different Programs in Dark Basic,
They would be able to be loaded Into
The one Game?

Thank you

Ill Be Back, With a New Robot!
That has Super Laser Eyes,
And He'll Feed me Ham! Evil Ham..
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Jan 2015 18:04
If by levels you mean the 3D objects (houses, cars, crates, buildings, etc.) then as long as they are in the Direct X format, they can be created in any program and loaded into 1 game.

Enjoy your day.

Login to post a reply

Server time is: 2024-11-21 12:01:11
Your offset time is: 2024-11-21 12:01:11