
-----------------------------------
Genisis
Tue Nov 01, 2005 8:47 am

help me with my pong?
-----------------------------------
can someone tell me what i will need to know for pong the commands and of i ask later help me use them?

-----------------------------------
Tony
Tue Nov 01, 2005 9:25 am


-----------------------------------
you need to figure out:

how to draw paddles and ball -- Draw.
how to move your paddles around - Input.KeyDown
how to figure how if your paddle blocks a ball - Collision detection

Our tutorials cover it all :wink:

-----------------------------------
Freakish
Wed Nov 02, 2005 8:37 pm


-----------------------------------
you also need the score board.

var score1 : int
var score2 : int
loop
*some if statement here* then
score1 := score1 + 1
end loop

-----------------------------------
xXInsanityXx
Wed Nov 02, 2005 9:34 pm


-----------------------------------
And a winning statement would be adequate

if score1= 20
then
put "Player 1 wins"
exit
elsif score2 = 20
then
put "Player 2 wins"
exit
end if

 :D

-----------------------------------
beard0
Wed Nov 02, 2005 10:03 pm


-----------------------------------
xXInsanityXx:  Please do explain how on earth two people would arrive at a score of twenty at the same time in a game of pong, and tie.

-----------------------------------
xXInsanityXx
Wed Nov 02, 2005 10:09 pm


-----------------------------------
My Bad... i thought he meant ping pong...

-----------------------------------
beard0
Wed Nov 02, 2005 10:12 pm


-----------------------------------
My Bad... i thought he meant ping pong...

Do you know [url=http://en.wikipedia.org/wiki/Table_tennis]what ping pong is?  You can't tie in it either!

-----------------------------------
Mr. T
Wed Nov 02, 2005 10:49 pm

Alex's Opinion
-----------------------------------
Check and mate.  :snipe:

-----------------------------------
codemage
Thu Nov 03, 2005 8:57 am


-----------------------------------
Er... ying pong then.

That magical eastern pong variety where player 1 must score 20, but player 2 must invoke the boolean value score2 in order to win.

-----------------------------------
MysticVegeta
Thu Nov 03, 2005 7:33 pm


-----------------------------------
And a winning statement would be adequate

if score1= 20
then
put "Player 1 wins"
exit
elsif score2
then
put "Player 2 wins"
exit
end if

 :D

Is score2 a boolean?
