ForumsGamesi need help wth a game of pong

1 1714
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,164 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