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

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




PostPosted: Wed May 17, 2006 8:44 pm   Post subject: Pong so far

here is a pong game i've created. It would be much appreciated if anyone could give me any suggestions for improvement. one problem is the words you type in during get statements don't appear.

Thanks,
XeroX
Sponsor
Sponsor
Sponsor
sponsor
XeroX




PostPosted: Thu May 18, 2006 2:47 pm   Post subject: (No subject)

Here's a newer version. text still won't appear when you type it
Clayton




PostPosted: Thu May 18, 2006 2:56 pm   Post subject: (No subject)

first thing: you should only ever need one View.Update in your program

now on to your problem, the reason that the typing isnt appearing is because of the initial View.Set, which sets the screen to offscreenonly mode, which creates a buffer to store all changes to the screen then puts them to it when you use the command View.Update, so when you type in your letters, they are stored in the buffer until you call View.Update, that is why your letters arent showing up Very Happy
XeroX




PostPosted: Thu May 18, 2006 3:08 pm   Post subject: (No subject)

thanks Very Happy , that worked. once again, another copy (is there a way to edit one post and delete the previous version?) Question Confused


pong.t
 Description:

Download
 Filename:  pong.t
 Filesize:  4.57 KB
 Downloaded:  54 Time(s)

XeroX




PostPosted: Tue May 23, 2006 6:48 pm   Post subject: (No subject)

please see http://www.compsci.ca/v2/viewtopic.php?t=12400
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  [ 5 Posts ]
Jump to:   


Style:  
Search: