This is the repo for the demos in this article on writing a turn-based game loop for a roguelike.
Running them yourself
The code here is written in Dart. To get it up and running locally, you'll need to have the Dart SDK installed.
Once you have Dart installed and its
bin/ directory on your
- Clone this repo.
- From the root directory of it, run:
$ pub serve
- In your browser, open:
You can also run the Dart code natively using Dartium, which comes with the Dart SDK. Just hit the same URL and it is smart enough to serve the raw Dart code instead of the compiled JS.