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 / Problem with a pong game

Author
Message
Renegade Andy
19
Years of Service
User Offline
Joined: 16th Oct 2004
Location: Scotland
Posted: 18th Nov 2004 03:19
Hi guys - i took the pong game written as a tutorial and wanted to edit it. I got this far:



Try running that - its easy to see there is a problem with scoring and the ball's physics - its bouncing where it used to - before i made the board bigger. So which number do i edit this to sort it out - its been bugging me for a while and i cannot work it out!

Thanks in advance for any help!

NO KEYBOARD DETECED - PRESS F11 TO CONTINUE - FOOKED BIOS
Ali M Oldboy
19
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 18th Nov 2004 16:09
Well err...

Look in the code snippets, there is ought to be
some sources there!

I can't be bothered really to help, I'm in a rush to get
down town christmas shopping!

That's all I can think of really!

-ALI-

N U K E S O F T :: DANGER! EXPLOSIVE GAMES :: [href]http://www.geocities.com/nukesoft0[img]
tom p
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 18th Nov 2004 18:15 Edited at: 18th Nov 2004 19:05
Basically, you have increased the size of the playing field but not the values used to check whether the ball has reached the edges of the field or the bat.

Below I have changed these values, try this one out:



[edited]

If you compare my code with yours you should be able to see the changes I have made.
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 18th Nov 2004 22:31
Put sync on it's own line.

Login to post a reply

Server time is: 2024-09-23 05:20:15
Your offset time is: 2024-09-23 05:20:15