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 / [2D] Really cool game I made today

Author
Message
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 8th Feb 2005 21:04
Hi i made an awesome 2d game in dbc.
I think this will work in dbpro also thou but im not sure.

ok i did not make in dbc either.. i made it in notepad.
i dont have dbc or dbpro here so i couldnt compile it.
but by using my 'ultra sensitive darkbasic classic source code reader and understander to convert it to computer source and compile it and play the game in my head' engine i thought of this moment i am pretty sure it will work in some kind of darkbasic version.

the game is called 'move the square with your mouse and watch out for the red squares but you can have the green ones' and i must say i find it really funny to play inside my head when I win all the time

anyway here is the source and here is a attached picture.
hope you enjoi playing it as much as i enjoyed making it in nothing but notepad.. err yeah, i told you that already didnt i?

hmm anyway:



i also took some time drawing explanations in case you did not understand what this game is all about.

Attachments

Login to view attachments
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 8th Feb 2005 22:02
I think you probly want a sync rate 60, without it i get 300 fps. Amazing that it actually works, and in dbpro too, but then im not too sure what its supposed to do .

Good stuff.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 8th Feb 2005 22:07
thanks, I know it is awesome.

the point in this game is to collect green squares until you touch a red one.
if you touch a red square you die.

Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 9th Feb 2005 00:53
Yea that makes sense. Only in dbpro, nothing happens when you touch any of the squares .
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 9th Feb 2005 00:59 Edited at: 9th Feb 2005 01:01
i ran it through dbpro and yes you are right.

this version should fix that



[edit]
still not the best collision detection, but it works... kind of.

i got 301 points until my eye cheated on me and said the red square was a green one

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 9th Feb 2005 09:03
Hey - that's pretty good! I got 878 on my third attempt. The trick seems to be to hang around the bottom right hand corner - gives you more time to see them coming!


Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 10th Feb 2005 16:29
Whistlin Trev
19
Years of Service
User Offline
Joined: 11th Feb 2005
Location: Battle of Nevermore
Posted: 8th Apr 2005 03:34
great game, good job, got my thumbs up, maybe you could put in some more fetures like upgrades both good and bad which can change the size of the squares both bigger and smaller and maybe one thats changes the speed of the game. this is a cool game

I reign with my left hand, I rule with my right,Im lord of all darkness, Im queen of the night,Ive got the power now
Do the march of the black queen

Login to post a reply

Server time is: 2024-11-23 17:24:55
Your offset time is: 2024-11-23 17:24:55