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.

Newcomers DBPro Corner / 2d Shoot Em' Up Engine (Great for New DBC Programmers)

Author
Message
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 19th Jul 2004 14:25 Edited at: 12th Sep 2004 14:05
============================================================
UPDATE 9/11/04
Please take a look at the new thread

http://forum.thegamecreators.com/?m=forum_view&t=38965&b=7

=============================================================
Changed Sprite #s so you can add up to 40 waves instead of 3.

Hi,
I made a 2d Shoot Em' Up Game a while back and decided to turn it into a game engine. The Code is really basic and easy to read and
with all my comments I hope anyone with basic programming skills can make a simple shooter game.

Heres a Picture of a Game I made with my engine




This is mainly for people who need help starting there first game. Just Make your own images and Load them in the correct spots with the correct image # (Same goes for the sounds). I will include my images and sounds to my game I made with this engine in the codebase soon.

Plz leave me some feedback of what you think so far.


http://www.angelfire.com/games5/db_games/
Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 20th Jul 2004 01:48
holy crapple!
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 20th Jul 2004 02:43
lol whats that mean?

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 20th Jul 2004 03:05
thats alot of code, my newbie eyes tear with awe
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 20th Jul 2004 04:21 Edited at: 20th Jul 2004 07:27
lmao Oh, well ya its all coded for you just put your own images, sounds, and tinker with the values to make a game of your own.
If you want add to the engine or use it as a reference.

Also Im a newbie at DarkBasic too. Started programming in DarkBasic in the end of May and my only other programming knowledge was with a bit of Html and Javascript.

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 20th Jul 2004 07:19
your still someone I will come to for help though. this is a great learning curve for me, thank you skeletor.
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 20th Jul 2004 07:26
Glad I could help

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 21st Jul 2004 10:35
Anyone Else find this helpful?

Cairne
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: The Internet
Posted: 21st Jul 2004 13:05
hm... I did find it a little helpful, however, my version of darkbasic keeps highlighting loop and saying image not found or something like that. I put in all the images i would use and didnt change anything else, and that happened.

I use darkbasic classic and i practically have no experience.
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 21st Jul 2004 13:47 Edited at: 21st Jul 2004 13:54
hmm not sure did you include sounds also? anyhow on my website you can download 2 games I made with it.

Edit: I copied the code above and put in some of my images and sounds and it works fine. So double check you didnt miss type and also check you are using the correct format for the images, sounds and music ( .bmp, .wav, and .mid ).

DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 21st Jul 2004 20:50
I'm very new to DB but i can understand 90% of the code. Does help from being a VB programmer i supose and i used to do my own DOS based games in the past.

The Problem with the Pics as i found out from experiance is just a Typing mistake or u referenced it with an incorrect file path.

oh and one more thing. i noticed that in the pic the enemies have some grey around the front of em. just change it to black and set the transparancy of the image (or if it can be done with a sprite) to ON (1). should make it a bit cleaner.

But as for the code.... DAMN!!! that is a bucketful. very usefull though and maybe i'll look into it.

could it be re-done as 3D keeping it top down but using 3D modles instead of sprites ? Hint Hint (i'm planning summat like that)
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 21st Jul 2004 23:24
Quote: "thats alot of code, my newbie eyes tear with awe "

you better get used to alot of code...considering that's mostly comments it adds up to barely anything...(not that the comments aren't helpfull...i'm sure it was a pain to put all of them in there...)

my current project is at nearly 4000+ lines...and i don't remark very often (bad habit...or lack of habit)

anyway...nice work skeletor! i've been thinking about doing a 2D shoot 'em up game on the side...and this may give me just the head start i need (i haven't tried 2D in DBPro yet...)


Formerly known as "DarkWing Duck"
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 22nd Jul 2004 00:54
heh thx guys appreciate all the nice feedback.

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 22nd Jul 2004 05:40
@ DLS
Well I suppose it could be done with 3d, prolly would have to re-code just about everything though. Anyhow I havent touched 3d in DB yet, and I am no artist/modeler. So as of right now I wont be making any 3d games / engines.

Anyhow Im going to try to learn how to make tilebased games then after that Ill prolly move to 3d. Just got DBP online and Darkmatter so I should be able to do some cool stuff down the line.

Well If any of you guys have questions email me at skeletorsks1987@yahoo.com and be sure to visit my website www.angelfire.com/games5/db_games

Thanks again for the feedback

Spaceman Spiff
20
Years of Service
User Offline
Joined: 27th Jan 2004
Location: Smacking my head on your keyboard.
Posted: 27th Jul 2004 11:29
TTHHAANNKK YYOOUU Skeletor, for the very informative code.

Takes 1 2 no 1
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 27th Jul 2004 12:13 Edited at: 27th Jul 2004 12:18
Sweet!

Glad I could help.

Im actually working on a more advanced 2d shoot em up game. I havent started programming but I have been jotting down the ideas. Im shooting for more advanced AI, and better gameplay.

raar
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location:
Posted: 27th Jul 2004 20:58
very nice, though i gotta look at it in detail when i get the time for it, but i bet it ll be very usefull.
besides you said you made games with it and those are on your website but i can't see any link , would like to see what this thing can do
Yart
20
Years of Service
User Offline
Joined: 23rd Jun 2004
Location: Turkey Sandwich
Posted: 27th Jul 2004 21:58
Hey! Wow! Cool! Lots! That looks nice! (Although didn't feel like reading through it all... still looked pretty nice! I will refer back to this sometime)

Pie!
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 28th Jul 2004 00:12 Edited at: 28th Jul 2004 00:21
@ raar
Its just a basis for 2d Shoot Em Up Games. If you want it to be unique you would have to know how to program so you could change it to your likeing.

Actually This was based off my one 2d shoot em up game "Saddam's Army" then I turned that into really nice clean code which I made all simplified varibles to make this. Also my other Games like Bumper Pong, Break Out, and Tank Wars werent made with this though.

I am however going to be working on a more advanced version soon. Better enemy AI, More Guns, Grenades... ect.

Other than that thanks for the Feedback

My website is
www.angelfire.com/games5/db_games
I cant make a link because angelfire will redirect it to another site

DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 28th Jul 2004 02:17
i looked into it the other day and its very very good code.

higher up i said about doing it as 3D so i decided to actually do it by looking at the code and converting it to do 3D.

i wouldn't of known where to begin with it but now i do i'll be sure to add Skeletor to the list of credits when its done.

quite a few ppl will get a mention but he'll be at the top in bold with flashing lights.... well sort of
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 28th Jul 2004 03:30
@ DLS
Sweet , Glad to see my code put to good use.

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 28th Jul 2004 06:36
heh I was reading the newsletter and I made it on there with this

Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 28th Jul 2004 19:16
why don't you make a "Shoot em up construction kit" ???

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 29th Jul 2004 00:54
@ Freddix

Like a bunch of images included with the code? If thats what ya mean, its cause Im no artist heh.

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 15th Aug 2004 12:18
Im working on a more advanced shoot em up game atm and was wondering if I should turn it into a easy to read engine with lots of comments like I did with this one?


http://www.angelfire.com/games5/db_games/
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Aug 2004 10:34
A couple of FOR loops would minimize that code.

"eureka" - Archimedes
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 30th Aug 2004 22:57
Ill have a look later on. (In first period atm )


http://www.angelfire.com/games5/db_games/
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 31st Aug 2004 09:43
Well, as an example it's pretty cool. But it isn't the most efficient way to code it and it can't really be called an engine yet. I think you can functionize some stuff there to make the code reusable.

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 31st Aug 2004 10:00
Hmmm, Ill test around and see what I can turn into functions and compress a lot of the arrays into for loops.


http://www.angelfire.com/games5/db_games/
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 12th Sep 2004 03:52 Edited at: 12th Sep 2004 03:59
Ive updated the code big time... Turned a bunch of stuff into functions and placed it into a seperate .dba file, and also placed the area where you load your media into a seperate .dba file.

You can now type in a number to determine how many enemies per wave there will be and how many waves. (Up to 500 enemies total and up to 20 waves) You can specify the number of lifes you want and it will automatically place the Player Life sprites on screen.

The link to the new Engine is here
http://forum.thegamecreators.com/?m=forum_view&t=38965&b=7

So Post all your questions, comments and Ideas there.


http://www.angelfire.com/games5/db_games/
Rennekon
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location:
Posted: 12th Sep 2004 13:42
Great job Skeletor, a bunch of newbs are finding this helpful (including me )

John "Dark Lord of Angel Destroying Destiny" Pringlebee, maybe?
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 12th Sep 2004 14:02 Edited at: 12th Sep 2004 14:04
Thx, I really really appreciate the feedback

By the way did you check out the new thread?

http://forum.thegamecreators.com/?m=forum_view&t=38965&b=7

Any Questions, Comments, Suggestions or Ideas feel free to post them there.


http://www.angelfire.com/games5/db_games/

Login to post a reply

Server time is: 2024-09-23 00:31:44
Your offset time is: 2024-09-23 00:31:44