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 Professional Discussion / creating a level in DBPro

Author
Message
Sardines Lover
17
Years of Service
User Offline
Joined: 8th Mar 2009
Location:
Posted: 4th May 2011 12:38
Im creating levels in my game which I intend to be dark apart from a torch. Im using plains to make walls, floors and ceilings. Im I best using the plains as single objects each or combining all of them into several limbs in one object. Ive made a quick expeiment and it doesnt seem to affect performace.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th May 2011 13:46 Edited at: 4th May 2011 13:54
Combining objects only gives a noticeable affect on performance if you're using lots of objects, probably hundreds if you're using plains.

[irrelevant]
There is a great level editor which you can use to create 'lightmapped' levels (that look as if they're lit) that you can load directly into dbp. Then you can use a shader to produce the flashlight effect. It can work really well as you can see from this level (produced using the free editor "MapScape"):


This can be quite complex stuff to program though and you'll need to learn how to use the editor.

If you really want to try it then you can start by downloading Mapscape here: MapScape by Evolved Software

Once you have a level built, lightmapped and exported as a "dbo" (dark basic object) you can try the shader with some simple code.

I suggest you try the editor before you worry about the code. This is by far the best way I've seen to achieve a realistic flashlight effect.
[/irrelevant]

EDIT: I completely put most of my response for this in the wrong thread. However, Mapscape is great for creating levels. In answer to your actual post see the first part of my post and ignore the flashlight part (unless you're interested of course!) sorry to confuse...

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th May 2011 14:15
I wouldn`t want to be rude, and as baxslash said ,to program an editor can be quite complex stuff.Create a level with many objects can be fun, but very tedious . Time ago, I made my own level editor. It was just three blocks of different sizes that you place where you want to make a room or corridor. Finally, you make a Boolean operation to a plane of all blocks, and you could get a nice level.

If you want to see the code, let me translate it into English.


Have a look to an example.
http://www.youtube.com/watch?v=OCY8xCR-pz4

Cheers.

I'm not a grumpy grandpa
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th May 2011 15:30
That's really nice Chafari! I assume you added lightmapping after?

It looks really quick to create, how does it put the holes in for the coridoors?

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th May 2011 15:42
Yes...it´s very quick to create the level...then you have to add it the lights, and it has no lightmapping. Here is the complete example.

Cheers.

I'm not a grumpy grandpa
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th May 2011 15:52
Great, simple level editor there chafari!

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 4th May 2011 15:59
Thankyou.
It was by chance as I realized that a Boolean operation to a plane, made ​​it a closed area. So we can do corridors rooms in different measures and so on. I hope it can help someone.


cheers.

I'm not a grumpy grandpa
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 4th May 2011 23:31
I think both DeleD and Mapscape have both advantages. Lately I've used DeleD a lot and this is the first I've come across Mapscape. I like the separate fx file alongside the dbo file for lightmaps.
I would like to know how to access the zones and other features in Mapscape...

Warning! May contain Nuts!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 5th May 2011 10:32
Quote: "It was by chance as I realized that a Boolean operation to a plane, made ​​it a closed area. So we can do corridors rooms in different measures and so on. I hope it can help someone."

That's really useful to know thanks chafari! I figure you could automate lightmapping too if you have DarkLights by positioning lights in your different room shapes based on their type and position and create a very simple fps-creator type level builder in no time at all... tempting to try! [baxslash starts yet another WIP...]

Quote: "I would like to know how to access the zones and other features in Mapscape..."

I haven't really used them myself but Evolved has a forum on his site. You might find some answers there?

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th May 2011 12:29
Quote: "I figure you could automate lightmapping too if you have DarkLights "


Yes I do, and I have thought about it...but I was trying to texture each wall separate and that's really complicated for me ...I`m to old . I don´t give up.

Cheers.

I'm not a grumpy grandpa
Sardines Lover
17
Years of Service
User Offline
Joined: 8th Mar 2009
Location:
Posted: 5th May 2011 16:38
I appreciate your replies. Thank you. I'm trying to recreate a level that is massive so I dont want to just load a level etc.
However I have worked out a way to produce massive levels without tons of polygons. It's all down to a flashlight style game.

I have an editor. Since creating the inside of a ship requires mainly right angles I used the dungeon scenario as inspiration.

Thanks for the help and answers.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 8th May 2011 15:14 Edited at: 8th May 2011 15:16
I implemented a bit my level editor, and in this new version, I've put stairwell and the possibility of creating second floor plus some textures for the floor and ceiling.

Have a look to the video
http://www.youtube.com/watch?v=34DPMVpX_0s




Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-10 16:12:47
Your offset time is: 2026-07-10 16:12:47