|
From: Emiliano <sky...@fa...> - 2004-02-27 19:45:22
|
----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Emiliano" <sky...@fa...> Cc: <dev...@li...> Sent: Friday, February 27, 2004 8:18 PM Subject: Re: [Dev-C++] WinAPI help... > Happy to be able to help :-) > > About the use of dynamic speed in the program. In case the program has > lost a lot of time, it might be an idea to have the update code run in a > while loop and perform multiple steps before next redraw. That way the > movement in each update step is still small enough that you don't get any > extra problems with collision detections. Good idea... now it only remains the key problem... the window procedure gets the message (WK_KEYDOWN), the PostQuitMessage() is called, even multiple times, but "GetMessage()" won't notice it at all!! Maybe too many messages waiting?? but the WM_QUIT should be dealt with sooner or later. Or is it lost (tragic) or bypassed?? Emiliano |