ForumsGamesi need help wth a game of pong

1 1561
killerdoom
offline
killerdoom
4 posts
Farmer

anyone know how to script a scoreing system like that? or a downloadable version i can edit?

  • 1 Reply
lalala12
offline
lalala12
2,167 posts
Nomad

Hmm...

Dunno what language, but a (very, very generic) example...(I mixed lua and ruby togehter, only two I know)

if ball.location>(whatever the edge of the screen is), ball.location = (center of screen)
P1 = P1+1

Make the same one, but in reverse for P2

Btw, there's a programming section somewhere here.

Showing 1-1 of 1

We may use cookies to help customize your experience, including performing analytics and serving ads.
Learn More