A Flatris clone in Elm language
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 12 commits behind w0rm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
elm-flatris.png
elm-package.json

README.md

elm-flatris

A Flatris clone in Elm language v0.18.

Screenshot

Current demo can be seen here.

Features

  • 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!

Instructions to run

  1. Install elm elm-lang.org/install
  2. Clone this repo and cd into it
  3. Run elm reactor
  4. 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">