R
Rene Ruppert
Hi,
Recently I wrote a small Boulder Dash game which runs as a Java applet.
Now I've ported the whole thing to my PDA and it would work, but the game
screen won't show as soon as I include my main loop.
In the Java applet this was something like
while(true)
{
Thread.Sleep(GAME_DELAY);
// Move sprites...
// Read key input...
Invalidate();
Update();
}
In .NET the App won't start if I leave the while() loop in the game. If I
take it out, the game appears. Where does this difference come from and what
is the right way to port it?
Regards,
René
Recently I wrote a small Boulder Dash game which runs as a Java applet.
Now I've ported the whole thing to my PDA and it would work, but the game
screen won't show as soon as I include my main loop.
In the Java applet this was something like
while(true)
{
Thread.Sleep(GAME_DELAY);
// Move sprites...
// Read key input...
Invalidate();
Update();
}
In .NET the App won't start if I leave the while() loop in the game. If I
take it out, the game appears. Where does this difference come from and what
is the right way to port it?
Regards,
René