statejs
Version:
Statejs is an event-driven finite state machine implmentation for JavaScript.
4 lines (3 loc) • 334 B
Markdown
This is an example demonstrating how to use the state machine for a simple HTML game. The source files:
- `js/game.js` - This is the main source file using the state machine to implement the state logic for the game.
- `js/mock-objects.js` - This is the source file that contains all the mock objects used in the game source file.