game | ||
html | ||
js | ||
scss | ||
.browserslistrc | ||
.gitattributes | ||
.gitignore | ||
package.json | ||
pnpm-lock.yaml | ||
postcss.config.js | ||
README.md | ||
screenshot.png | ||
webpack.config.js |
inkjs boilerplate
This is a cross-platform template, but auto-rebuilding is set for Linux only. Hence the repository title. Edit the auto-rebuilding script for your system.
Console commands to start working
git clone
npm install
or betterpnpm install
webpack prod
and you'll have the game in thebuild
folder.
Screenshot
Features
- Autosaving (with a restart button)
- Keyboard support (press 1-9 to select 1th-9th choices, 0 to choose 10th)
- Great game performance (all JS is ~200Kb in size with Inkjs runtime)
- For authors:
npm watch
will auto-recompile the game on changes to JS or JSON
Compatibility
Compatible browsers: Chrome >= 60, Firefox >= 60, iOS >= 12, Safari >= 12.
If you want to support older browsers (released before 2018), you'll have to rewrite the CSS. I use Bootstrap 5 because it's a good framework but it's also very modern. Other than that, the code depends only on inkJS and jQuery so it should comfortably support IE9+