Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help me with my pong?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Genisis




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Nov 01, 2005 9:25 am   Post subject: (No 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
Freakish




PostPosted: Wed Nov 02, 2005 8:37 pm   Post subject: (No subject)

you also need the score board.

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




PostPosted: Wed Nov 02, 2005 9:34 pm   Post subject: (No 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
beard0




PostPosted: Wed Nov 02, 2005 10:03 pm   Post subject: (No 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.
xXInsanityXx




PostPosted: Wed Nov 02, 2005 10:09 pm   Post subject: (No subject)

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




PostPosted: Wed Nov 02, 2005 10:12 pm   Post subject: (No 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!
Mr. T




PostPosted: Wed Nov 02, 2005 10:49 pm   Post subject: Alex's Opinion

Check and mate. Sniper
Sponsor
Sponsor
Sponsor
sponsor
codemage




PostPosted: Thu Nov 03, 2005 8:57 am   Post subject: (No 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.
MysticVegeta




PostPosted: Thu Nov 03, 2005 7:33 pm   Post subject: (No 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?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: