I am using javascript and HTML5 canvas for turn-based games (e.g., checkers, mastermind, minesweeper).
Should I write a fixed-timestep game loop? What are the alternatives?
I am using javascript and HTML5 canvas for turn-based games (e.g., checkers, mastermind, minesweeper). Should I write a fixed-timestep game loop? What are the alternatives? |
|||||
|
Constantly looping is probably unnecessary for a turn-based game. If the only time something is going to change is when a player moves, consider using Here's an approximate setup:
|
|||||||||
|