https://github.com/munificent/a-turn-based-game-loop
Demo code for http://journal.stuffwithstuff.com/2014/07/15/a-turn-based-game-loop/
https://github.com/munificent/a-turn-based-game-loop
Last synced: over 1 year ago
JSON representation
Demo code for http://journal.stuffwithstuff.com/2014/07/15/a-turn-based-game-loop/
- Host: GitHub
- URL: https://github.com/munificent/a-turn-based-game-loop
- Owner: munificent
- License: other
- Created: 2014-08-02T23:08:42.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-03T04:50:22.000Z (almost 12 years ago)
- Last Synced: 2025-02-27T17:35:40.280Z (over 1 year ago)
- Language: Dart
- Size: 137 KB
- Stars: 29
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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][sdk] installed.
Once you have Dart installed and its `bin/` directory on your `PATH`, then:
1. Clone this repo.
2. From the root directory of it, run: `$ pub serve`
3. In your browser, open: `http://localhost:8080`
Pub will automatically compile the Dart code to JavaScript if you hit that URL
with a production browser. Leave pub serve running, and whenever you change the
Dart code, it will notice that and recompile the JS on the fly.
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.
[this article]: http://journal.stuffwithstuff.com/2014/07/15/a-turn-based-game-loop/
[dart]: http://dartlang.org
[sdk]: https://www.dartlang.org/tools/download.html
[dartium]: https://www.dartlang.org/tools/dartium/