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
Graphics.Collage - preserves the game state in
localStorage, just try to reload the page while playing!
- Install elm elm-lang.org/install
- Clone this repo and
cdinto it - Run
elm reactor - Open localhost:8000/src/Main.elm in the browser
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">