Computer Science Canada

help me with my pong?

Author:  Genisis [ Tue Nov 01, 2005 8:47 am ]
Post subject:  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?

Author:  Tony [ Tue Nov 01, 2005 9:25 am ]
Post subject: 

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

Author:  Freakish [ Wed Nov 02, 2005 8:37 pm ]
Post subject: 

you also need the score board.

var score1 : int
var score2 : int
loop
*some if statement here* then
score1 := score1 + 1
end loop

Author:  xXInsanityXx [ Wed Nov 02, 2005 9:34 pm ]
Post subject: 

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

Very Happy

Author:  beard0 [ Wed Nov 02, 2005 10:03 pm ]
Post subject: 

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.

Author:  xXInsanityXx [ Wed Nov 02, 2005 10:09 pm ]
Post subject: 

My Bad... i thought he meant ping pong...

Author:  beard0 [ Wed Nov 02, 2005 10:12 pm ]
Post subject: 

xXInsanityXx wrote:
My Bad... i thought he meant ping pong...


Do you know what ping pong is? You can't tie in it either!

Author:  Mr. T [ Wed Nov 02, 2005 10:49 pm ]
Post subject:  Alex's Opinion

Check and mate. Sniper

Author:  codemage [ Thu Nov 03, 2005 8:57 am ]
Post subject: 

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.

Author:  MysticVegeta [ Thu Nov 03, 2005 7:33 pm ]
Post subject: 

xXInsanityXx wrote:
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

Very Happy


Is score2 a boolean?


: