Thanks sir that solved my problem...!!
On Tue, Dec 22, 2009 at 1:51 PM, Asad Abbas <cyberstudent99@ yahoo.com> wrote: > the problem is that the loop stops on this line untill the user presses the > key.. and as a result ball stops moving.. and ball only moves when the user > press a key... You need either a separate thread to handle the ball, or a non-blocking function for user input. <http://www.simonhuggins.com/courses/cbasics/course_notes/snake.htm> would suggest code along the lines of: if (kbhit()){ movebat(getch( )); } -- PJH http://shabbleland. myminicity. com/ http://www.chavgang s.com/register. php?referer= 9375 http://www.kongregate.com/?referrer=Shabble [Non-text portions of this message have been removed]
