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 / Block Defence

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 29th Nov 2006 23:55 Edited at: 30th Nov 2006 00:04
Alright, this is only my third dbp game ever, and there all basic. However, i can release this one cause its pure code! tooke me about 10 hours, and being reletavly new to the language, I am very proud of it.
So, down to bussness. The game is called Block defence. Basicly, you are the pink block and you have to shoot the blue blocks before they get to you.
The code is VERY messy, and there is somthing in there that is pointless. I have an extra particle explosion in there somwere, but being the lazy guy I am, didnt take it out.
Heres the code! enjoy, CC is welcome



there is one known bug. If you reset the game in-game, then the falling blocks ont come the second time around.
also, my high score is 62. if you bother to player, please post yours.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/

Attachments

Login to view attachments
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 30th Nov 2006 00:04
Crap, the pic wont work. here it is again, my bad.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/

Attachments

Login to view attachments
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 30th Nov 2006 17:45
Thats pretty cool only got 27 though, but ill try again later
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 30th Nov 2006 21:40
I liked it, very nice
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 1st Dec 2006 00:28
thanks.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/
Mr Tank
21
Years of Service
User Offline
Joined: 25th Nov 2002
Location: United Kingdom
Posted: 1st Dec 2006 02:51
Nice. I got 38 then the block fell on me. Seemed to run a lot slower when the particle explosion was on the screen.


You'll be able to click on this someday.
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 1st Dec 2006 13:02
hmm. thanks for that tip, maybe i should add a sync in or somthing.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/
Sunflash
19
Years of Service
User Offline
Joined: 28th Jun 2005
Location: Seattle, Wa
Posted: 1st Dec 2006 20:14
Lol, I GOT 41, it got a little to fast for me
Pretty addicting game though! I made several little tweaks in DBPro, here's the edited code:



"I must tell the Queen that a robin has seen Cludd hanging about. No, thats not right. I must tell the robin that Cludd has been hanging the Queen..." -Mossflower.
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 1st Dec 2006 21:08
Nice, that version is a lot harder, my first try at it gave a score of 42. I had it with the mouse cause i liked the freedom it gave you, but i also like that, one less this you have to worry about.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroup.be/

Login to post a reply

Server time is: 2024-11-22 23:45:15
Your offset time is: 2024-11-22 23:45:15