Computer Science Canada

how can i do this ?

Author:  Prateek [ Sat Jan 10, 2004 12:37 am ]
Post subject:  how can i do this ?

I am making a pong game and so far it is going good. I am thinking to have a pause in ma game. But i don't know how i pause my game when it is running. Give me some ideas how i can do this.

Author:  Tony [ Sat Jan 10, 2004 1:00 am ]
Post subject: 

please use appropriate (meaning descriptive) subjects Rolling Eyes

anyways... your pause would be

main loop
if pauseFlag = true then
     exit when hasch
     end loop
      pauseFlag = false %reset the flag
     getch(c) %clear buffer
end if
end main loop

create a flag variable that will trigger a "waiting" loop