nespera / elm-flatris

A Flatris clone in Elm language

Home Page:http://unsoundscapes.com/elm-flatris.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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">

About

A Flatris clone in Elm language

http://unsoundscapes.com/elm-flatris.html

License:Other


Languages

Language:Elm 95.8%Language:JavaScript 4.2%