Update README.md

This commit is contained in:
Ilkka Seppälä
2020-08-29 21:21:01 +03:00
parent f3fd49870c
commit 6606d6cd08
2 changed files with 84 additions and 65 deletions

View File

@ -36,7 +36,7 @@ public abstract class GameLoop {
protected volatile GameStatus status;
protected GameController controller;
protected final GameController controller;
private Thread gameThread;
@ -53,7 +53,7 @@ public abstract class GameLoop {
*/
public void run() {
status = GameStatus.RUNNING;
gameThread = new Thread(() -> processGameLoop());
gameThread = new Thread(this::processGameLoop);
gameThread.start();
}