move thread into app
This commit is contained in:
parent
4d3863ac70
commit
f9f1a85eff
@ -31,9 +31,13 @@ public class DotHack extends MIDlet implements Runnable {
|
||||
while (true) {
|
||||
try
|
||||
{
|
||||
sagiri.time_begin = System.currentTimeMillis();
|
||||
|
||||
game.repaint();
|
||||
game.serviceRepaints();
|
||||
Thread.sleep(1000/sagiri.fps);
|
||||
|
||||
sagiri.time_delta = System.currentTimeMillis() - sagiri.time_begin;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user