1.1.0 • Published 4 years ago
navkolo v1.1.0
Navkolo
Navkolo is a library for making escape room-like puzzle/adventure games, where the player can navigate through static scenes, click on objects and submit answers to puzzles. Built on top of phaser framework.
Installation
NPM
npm install navkoloCDN
Get if from jsDelivr.
Starting a game
To start a navkolo game, call
window.Navkolo.start(phaserConfig, gameConfigUrl, gameConfig)Either gameConfigUrl or gameConfig should be passed. An example config is in test_config/config.json
Alternatively, create and start a Phaser.Game with a config in which scene is a Navkolo.Game (or its subclass).
Development
Building js file
npm run buildLocal testing
cp dist/navkolo.min.js test_config
cd test_config
python3 -m http.serverThe test configuration will be served from the local web server from python.
Publishing new version
- Make a change, build minified js file and and test it locally
- Update version in
package.json - Run
npm publish - Add a version tag in git
License
This project is licensed under the MIT License - see LICENSE for details.