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.

Work in Progress / My first Pong game! WOOHOO! :)

Author
Message
AluminumPork
20
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 17th Nov 2003 07:34
I posted this is Genetal DBC section, but then realized I should have posted it here. It's basically my first game is DBC, so I figured I should make it Pong. Nice and simple, yet helps familiarize me the new commands (used to qbasic and libertybasic).

It needs alot more work, and I have alot of ideas to truely make it "super pong" but take a look at it and tell me what you think.

Then I already know I should fix:
-Pause when music restarts within last few seconds of game
-Add single player so you don't have to handle two paddles

Questions I have about it:
-any ideas on adding AI for single-player? i'm at a loss
-how can I minimize the pause between music restarts?

Controls:
Player 1
-=-=-=-=-
W - Move paddle up
S - Move paddle down
Player 2
-=-=-=-=-
Up Arrow - Move paddle up
Down Arrow - Move paddle down

You can grab the .exe in a zip at http://home.earthlink.net/~grifty186/pong.zip

and if you want the source-http://home.earthlink.net/~grifty186/ball.dba

The .exe will only run for however many days are left in my Trial of DBC so like 15 or something. I reeeallyy need to buy DB Pro!

All comments extremely welcome. I need to get my feet firmly on the ground in understand DB and need all the help I can get, especially since this is my first "working" game with it.

Thanks
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 17th Nov 2003 15:50
looking good

lalala
feiting
20
Years of Service
User Offline
Joined: 19th Oct 2003
Location:
Posted: 17th Nov 2003 18:44 Edited at: 17th Nov 2003 18:45
http://www.geocities.com/sjjair/tutorials.html

seems as though that version, I left out the AI.

If ballx < enemyx then enemyx = enemyx + 1

Same with y... but use a number > 1 probably. If vertical ball speed matches enemy paddle speed the enemy is nearly unbeatable. (only a strange glitch in my old code allowed the ball to pass through the corner of a paddle, my collision detection was off a bit, but I fixed it)

BTW...that's in C++ using www.cdxlib.com My first game. change tutorials.html to p_clone.zip to get it, I think...

He who does not take the assassin job, will get killed by one who does.

Login to post a reply

Server time is: 2024-04-19 23:15:22
Your offset time is: 2024-04-19 23:15:22