Commit 660d635a authored by nargessalehi98's avatar nargessalehi98

Add some small changes.

parent 4d24925c
...@@ -11,21 +11,21 @@ import java.util.PrimitiveIterator; ...@@ -11,21 +11,21 @@ import java.util.PrimitiveIterator;
* in the while loop (update() and render()) should be * in the while loop (update() and render()) should be
* long running! Both must execute very quickly, without * long running! Both must execute very quickly, without
* any waiting and blocking! * any waiting and blocking!
* *
* Detailed discussion on different game loop design * Detailed discussion on different game loop design
* patterns is available in the following link: * patterns is available in the following link:
* http://gameprogrammingpatterns.com/game-loop.html * http://gameprogrammingpatterns.com/game-loop.html
* *
* @author Seyed Mohammad Ghaffarian * @author Seyed Mohammad Ghaffarian
*/ */
public class GameLoop implements Runnable { public class GameLoop implements Runnable {
/** /**
* Frame Per Second. * Frame Per Second.
* Higher is better, but any value above 24 is fine. * Higher is better, but any value above 24 is fine.
*/ */
public static final int FPS = 30; public static final int FPS = 30;
private GameFrame canvas; private GameFrame canvas;
private GameState state; private GameState state;
//state for other player //state for other player
...@@ -35,7 +35,7 @@ public class GameLoop implements Runnable { ...@@ -35,7 +35,7 @@ public class GameLoop implements Runnable {
public GameLoop(GameFrame frame) { public GameLoop(GameFrame frame) {
canvas = frame; canvas = frame;
} }
/** /**
* This must be called before the game loop starts. * This must be called before the game loop starts.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment