mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-08 12:14:58 +00:00
Update README.md
This commit is contained in:
1 parent
f3fd49870c
commit
6606d6cd08
2 files changed
+84
-65
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user