A Flatris clone in Elm language v0.18.
Current demo can be seen here.
- works on both desktop and mobile
- renders the grid to canvas with
- preserves the game state in
localStorage, just try to reload the page while playing!
Instructions to run
- Install elm elm-lang.org/install
- Clone this repo and
- Open localhost:8000/src/Main.elm in the browser
Touch support (tested on iOS)
For a touch support compile to html
elm make src/Main.elm --output elm-flatris.html and add the following meta:
<meta name="viewport" content="width=480,user-scalable=0">