dvtate / phlappy-bird

A browser-based implementation of Flappy Bird written in Postfix Haskell

Home Page:https://dvtate.github.io/phlappy-bird/public

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flappy Bird in Postfix-haskell

This is a game made to demonstrate the capabilities of my language.

Building and Running

  • npm install: to install postfix-haskell compiler and other dependencies
  • npm run build: compile the project to webassembly
  • npm start: start a server which you can use to play the game
  • npm 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

Playing

  • Mobile controls: tap the screen to flap
  • Desktop controls: use the space bar to flap
  • If you hit a pipe, simply reload the page

Demo

A live demo is available here: https://dvtate.github.io/phlappy-bird/public/

About

A browser-based implementation of Flappy Bird written in Postfix Haskell

https://dvtate.github.io/phlappy-bird/public


Languages

Language:WebAssembly 81.0%Language:HTML 19.0%