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

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




PostPosted: Thu Nov 20, 2003 9:11 pm   Post subject: ping pong

I wanted to display a ping pong game...REMEMBER:im a beginner

lol.

loop

put "! $ !"

delay(10)

put "! $ !"

delay(10)

put "! $!"

delay(10)

put "! $ !"

delay(10)

put "! $ !"

end loop


neways...i wanted to know...how could i move just the dollar sign back and forth within the bars (! !) instead of repeating the bars on the screen...thanx...
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Thu Nov 20, 2003 10:30 pm   Post subject: (No subject)

use locate

like this:

code:
loop
    locate (1, 1)
    put "!$  !"
    delay (100)
    locate (1, 1)
    put "! $ !"
    delay (100)
    locate (1, 1)
    put "!  $!"
    delay (100)
    locate (1, 1)
    put "! $ !"
    delay (100)
end loop
air_force91




PostPosted: Fri Nov 21, 2003 1:53 pm   Post subject: (No subject)

thanx Smile
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  [ 3 Posts ]
Jump to:   


Style:  
Search: