Entry for https://ldjam.com/events/ludum-dare/46
- Install node.js.
- Run
npm install
.
Run npm run dev
, the game will be available at http://localhost:8080.
- Build the game using
npm run build
. - Commit your changes (including the
dist
directory). - Push the committed
dist
directory to thegh-pages
branch usinggit subtree push --prefix dist origin gh-pages
.
The game will be available at https://notclive.github.io/ludum-dare-46.
You may get the following message if a different branch has been deployed to gh-pages
$ git subtree push --prefix dist origin gh-pages
git push using: origin gh-pages
To https://github.com/notclive/ludum-dare-46.git
! [rejected] 5e8628c3702c5d6758e0655a0eb980c61b7a66aa -> gh-pages (non-fast-forward)
error: failed to push some refs to 'https://github.com/notclive/ludum-dare-46.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Resolve this with
git push origin 5e8628c3702c5d6758e0655a0eb980c61b7a66aa:gh-pages --force
using the SHA1 from the error message.
Sound effects with thanks to:
- Whistle: Audio Debris Sound Effects
- Water: amanda @ SoundBible
- Heartbeat: Daniel Simions @ SoundBible