Code Snippets / [DBP] A simple wolfenstein like editor and engine. |
| Author | Message | ||
|
Cliff Mellangard 3DEGS
User Joined: Mon Feb 20th 2006 Location: Sweden |
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 |
|||
|
Cliff Mellangard 3DEGS
User Joined: Mon Feb 20th 2006 Location: Sweden |
did any one think this is usefull so that i know its any idea to release any more basic code ? |
||
| Back to top |
|||
|
Phaelax
User ![]() Joined: Wed Apr 16th 2003 Location: Ohio |
|
||
| Back to top |
|||
|
zapakitul
User Joined: Thu Mar 1st 2007 Location: In my world |
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 |
|||
|
Cliff Mellangard 3DEGS
User Joined: Mon Feb 20th 2006 Location: Sweden |
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 |
|||
|
Phaelax
User ![]() Joined: Wed Apr 16th 2003 Location: Ohio |
|
||
| Back to top |
|||
|
Google Ad
AdBot Joined: Aug 26th 2002 Location: Everywhere |
|||
| Back to top |
|||
|
Cliff Mellangard 3DEGS
User Joined: Mon Feb 20th 2006 Location: Sweden |
sorry my wrong phaelax. thought you meant this code. cheers |
||
| Back to top |
|||
|
Ninjazz
User Joined: Fri Dec 21st 2007 Location: Cyberspace |
Can I, being a noob enough, ask a noobish question? About the code, I don't quite get this: + Code Snippet 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 |
|||
|
revenant chaos
User Joined: Wed Mar 21st 2007 Location: No Hope, MN |
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 |
|||
|
Cliff Mellangard 3DEGS
User Joined: Mon Feb 20th 2006 Location: Sweden |
its an lazy mans wait key command |
||
| Back to top |
|||
|
Pricey
User Joined: Sat Feb 22nd 2003 Location: Cyberspace |
Not really... its waiting for the key to be released, not pressed. http://forum.thegamecreators.com/?m=forum_view&t=97191&b=32 God Of Thunder DEMO |
||
| Back to top |
|||
|
Cliff Mellangard 3DEGS
User Joined: Mon Feb 20th 2006 Location: Sweden |
yes i know pricey i wrote the code |
||
| Back to top |
|||
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.
You may read it but not reply.
Forum Search
Enter a word or phrase to search our Forum for:
|
|





