This is a game made to demonstrate the capabilities of my language.
npm install
: to install postfix-haskell compiler and other dependenciesnpm run build
: compile the project to webassemblynpm start
: start a server which you can use to play the gamenpm run optimize
: use binaryen's optimizer to optimize some things my compiler still doesn't handle- Note that you must manually install binaryen or use
npm i wasm-opt -g
- Note that you must manually install binaryen or use
- Mobile controls: tap the screen to flap
- Desktop controls: use the space bar to flap
- If you hit a pipe, simply reload the page
A live demo is available here: https://dvtate.github.io/phlappy-bird/public/