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.

Code Snippets / External Level Support

Author
Message
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 17th May 2003 00:23
Does anyone know the code to detect and run external levels? I could use it.
sicjoshsic
21
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 17th May 2003 01:43
what do you mean by external levels? loading a matrix from a file? tilemaps? heightmaps?

Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 17th May 2003 01:47
Making external levels in txt files and my main program detecting them and putting them in a list to choose a level from
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 17th May 2003 01:48
Then having the main program extract the data and make the level
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 17th May 2003 02:29 Edited at: 17th May 2003 02:33
Sigh. Here is EXAMPLE code for this, this now cancelled project, to which I have posted the source, shows you how you can load and save level data to/from text files.

The functions which you need to look at are:

LoadLevel()
LoadLevelObject()

and the Save level code (the Code Snippet box below, click the SOURCE button to see the rest of the code)



NOTE: This code can only handle two types of object, cubes and cylinders, however this could easily be expanded to take any object you wanted.

If you want to see Matrix saving / loading, then search for MatEdit on Google.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 17th May 2003 14:18
Here's a systme that make 3d maps, and then save them into files
it work well only in dbc, but you can delete the collisions system and replace it by my sliding collisions mk2
http://sensai.free.fr/attreid/
look for darkmaps
(it's very old, I know, but it work )

Bu$herie
How many civilians is he going to kill ? he's going to burn in hell, and I hope that his pain will make him inderstand !
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 17th May 2003 17:09
One little note: THIS FORUM IS NOT FOR POSTING CODE REQUESTS. Do that in the general, or newcomers forum.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 17th May 2003 18:56
Thanks guys. Now to go practice using external levels.

Login to post a reply

Server time is: 2024-11-24 04:30:31
Your offset time is: 2024-11-24 04:30:31