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

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




PostPosted: Wed Nov 17, 2004 2:20 pm   Post subject: Pong.

I'm making pong, but I don't want to hit the enter key to move the paddle. The rest of the horribe flaws I'll worry about later.


pong.t
 Description:

Download
 Filename:  pong.t
 Filesize:  1.24 KB
 Downloaded:  123 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Kuntzy




PostPosted: Wed Nov 17, 2004 3:07 pm   Post subject: (No subject)

code:
var chars : array char of boolean
        Input.KeyDown (chars)
        if chars ('t') then
            put "The T key is pressed"
        end if


thats right out of Turing help documents
bass_maniac




PostPosted: Wed Nov 17, 2004 4:01 pm   Post subject: (No subject)

Quote:
Code:
var chars : array char of boolean
Input.KeyDown (chars)
if chars ('t') then
put "The T key is pressed"
end if

thats right out of Turing help documents


And if you look under 'Keyboard' in the help file you can replace ('t') with KEY_LEFT_ARROW or something.
Shadowsithe




PostPosted: Fri Nov 19, 2004 2:34 pm   Post subject: (No subject)

Ok, so I fixed that but every so often ... or almost always the ball goes through the paddle. This makes me sad.


pong.t
 Description:

Download
 Filename:  pong.t
 Filesize:  1.59 KB
 Downloaded:  119 Time(s)

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  [ 4 Posts ]
Jump to:   


Style:  
Search: