https://github.com/bxt/adinfinitvm
A fun and never ending puzzle game
https://github.com/bxt/adinfinitvm
coffeescript game puzzle-game
Last synced: 10 days ago
JSON representation
A fun and never ending puzzle game
- Host: GitHub
- URL: https://github.com/bxt/adinfinitvm
- Owner: bxt
- Created: 2016-06-27T20:59:01.000Z (almost 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-09-24T15:23:17.000Z (over 8 years ago)
- Last Synced: 2024-07-30T20:07:37.035Z (9 months ago)
- Topics: coffeescript, game, puzzle-game
- Language: CoffeeScript
- Homepage: https://bxt.github.io/adinfinitvm/
- Size: 243 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AD·INFINITVM·ATQVE·PLVS·VLTRA
=============================*To infinity and beyond*
The game **adinfinitvm** is an easy and never ending puzzle game. You try to
connect ropes to a loop without end by rotating. An alternate game mode
is inspired by MacMahon squares and reveals the nature of this game: a two-color
edge-matching puzzle without displacing pieces.[Go here to play adinfinitvm](http://bxt.github.io/adinfinitvm/).
[Go here to read my blog post about the game (german)](http://bernhardhaeussner.de/blog/134_Ein_sch%C3%B6nes_Online-Spiel_names_adinfinitvm).
Developing
----------The game is written in [CoffeScript](http://coffeescript.org/) without any additional libraries.
To compile the CoffeScript files in `src/` to Javascript, first install:
npm install -g watchify
npm install coffeeify minifyifyThen run:
watchify \
src/main.coffee \
-t coffeeify --extension=".coffee" \
-d -p [minifyify --map script.min.js.map --output script.min.js.map] \
-v -o script.min.jsThis will continuously watch the files for changes and recompile.
Testing
-------To test install:
npm install -g mocha
npm install chaiThe test framework is [Mocha](https://mochajs.org/) and Chai is used [for assertions](http://chaijs.com/api/bdd/). Then run:
mocha -w
The `-w` means watch for changes and re-test.
Debugger
--------First install the awesome [`node-inspector`](https://github.com/node-inspector/node-inspector):
npm install -g node-inspector
Put the keyword `debugger` somewhere in your code. Then run:
node-debug _mocha --compilers coffee:coffee-script/register
Et voila! You stop at a breakpoint where you put your `debugger` keyword.
Linter
------First install:
npm install -g coffeelint
Then run:
find src -type f -iname '*.coffee' | xargs coffeelint
This will show a list of code problems.