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

Username:   Password: 
 RegisterRegister   
 Pong paddle help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Metaxu




PostPosted: Sat Dec 22, 2012 12:37 pm   Post subject: Pong paddle help

What is it you are trying to achieve?
I am trying to get my pong paddles to no be able to leave the screen


What is the problem you are having?
They always leave the screen if you hold the arrows keys for too long.

Describe what you have tried to solve this problem
i have tried: if y = maxy then
y := maxy
end if

nothing seems to work

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

Turing:





Please specify what version of Turing you are using
<Answer Here>
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Sat Dec 22, 2012 9:37 pm   Post subject: RE:Pong paddle help

With what you've tried, you're going to run into a problem. What's going to happen to the y variable if it's greater than maxy?
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  [ 2 Posts ]
Jump to:   


Style:  
Search: