The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
Code Snippets / [DBP] A simple wolfenstein like editor and engine.

Go to the first page of this board Return to the Forum Menu Post Message
12 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
Cliff Mellangard 3DEGS

User


Joined: Mon Feb 20th 2006
Location: Sweden
Posted: 25th Jul 2008 11:46     Edited: 27th Jul 2008 16:42     | link | toggle

an simple wolfenstein like editor and engine in only 218 lines.
good for someone new to dbp .
hail the dbp newbies to the comunity
original thread with exe and screenie.
http://forum.thegamecreators.com/?m=forum_view&t=133938&b=8



editor mode is key 1
game mode is key 2
in editor mode choose texture with tab key
left mb to place block and right one deletes
to place doors press d
and to save map press s
z places the start point and x exit point.
dont forget to only have one each of start and exit on the map.
in game mode move with w,a,s,d and look around with the mouse.
space key opens doors if you collide with them.
iam using gil galvantis images from the tome engine as i didt care about doing gfx during this moment of boredome
Back to top
Download: rolfenstein source.zip Size: 44369 bytesReport this message as abusive
Cliff Mellangard 3DEGS

User


Joined: Mon Feb 20th 2006
Location: Sweden
Posted: 26th Jul 2008 16:23           | link | toggle

did any one think this is usefull so that i know its any idea to release any more basic code ?
Back to top
Report this message as abusive
Phaelax

User


Joined: Wed Apr 16th 2003
Location: Ohio
Posted: 27th Jul 2008 13:17           | link | toggle

aww i thought it was all in 2D but you used planes!


Back to top
Zimnox Find user on ICQ Send AIM user a message
Report this message as abusive
zapakitul

User


Joined: Thu Mar 1st 2007
Location: In my world
Posted: 27th Jul 2008 14:42     Edited: 27th Jul 2008 14:49     | link | toggle

Hey its a very nice engine, but do you mind if i modify it to use as base engine for a project i am working on? It would really save me from allot of work.. also i never really did a 2D Level Editor before(did 2 3D editors...) so i could probably learn allot more from this!
Back to top
Zapping
Report this message as abusive
Cliff Mellangard 3DEGS

User


Joined: Mon Feb 20th 2006
Location: Sweden
Posted: 27th Jul 2008 16:38     Edited: 27th Jul 2008 16:39     | link | toggle

nope phalex its all 2d the editor the only 3d is the main game engine and its all cubes.
if you look closely so do i paste sprites as blocks in the editor.
zapakitul use it and modifie as you please.
cheers
Back to top
Report this message as abusive
Phaelax

User


Joined: Wed Apr 16th 2003
Location: Ohio
Posted: 28th Jul 2008 12:55           | link | toggle

The editor yea, but wolfenstein was 2D. I tried to make a raycasting engine once, but the display was a bit buggy. Might have another go at it now.


Back to top
Zimnox Find user on ICQ Send AIM user a message
Report this message as abusive
Google Ad
Back to top
 
Cliff Mellangard 3DEGS

User


Joined: Mon Feb 20th 2006
Location: Sweden
Posted: 28th Jul 2008 14:39           | link | toggle

sorry my wrong phaelax.
thought you meant this code.
cheers
Back to top
Report this message as abusive
Ninjazz

User


Joined: Fri Dec 21st 2007
Location: Cyberspace
Posted: 3rd Sep 2008 06:29           | link | toggle

Can I, being a noob enough, ask a noobish question? About the code, I don't quite get this:
+ Code Snippet
``------------here do we save our level
if keystate(31)
save array "tempfile.map",block(29,29)
while keystate(31)
ENDWHILE
endif
``-------------here do we select our texture
if keystate(15)
inc txt_img
``-------------this makes the texture selector wrap around
if txt_img>22 then txt_img=1
while keystate(15)
ENDWHILE
endif
return


Why do you have the while keystate() and endwhile commands in there, if there's nothing in them? Is there a purpose to this?
Back to top
Report this message as abusive
revenant chaos

User


Joined: Wed Mar 21st 2007
Location: No Hope, MN
Posted: 3rd Sep 2008 08:22           | link | toggle

That is so the program will wait for the user to release the key so it wont try to save the file more than once.
Back to top
Report this message as abusive
Cliff Mellangard 3DEGS

User


Joined: Mon Feb 20th 2006
Location: Sweden
Posted: 3rd Sep 2008 15:58           | link | toggle


its an lazy mans wait key command
Back to top
Report this message as abusive
Pricey

User


Joined: Sat Feb 22nd 2003
Location: Cyberspace
Posted: 4th Sep 2008 09:58           | link | toggle

Not really... its waiting for the key to be released, not pressed.

Back to top
Report this message as abusive
Cliff Mellangard 3DEGS

User


Joined: Mon Feb 20th 2006
Location: Sweden
Posted: 4th Sep 2008 12:48           | link | toggle

yes i know pricey i wrote the code
Back to top
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
12 Messages - Page   of 1   
Search the Forum

Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page