This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
ELMO-8: A PICO-8 inspired fantasy 8-bit game library implemented in WebGL.
version 2.0.2
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 2.0.2
Committed At 2016-11-22 22:39:06 UTC
ohanhi/keyboard-extra 1.2.0 <= v < 2.0.0 1.2.0
nphollon/update-clock 2.0.0 <= v < 3.0.0 2.1.0
elm-lang/window 1.0.1 <= v < 2.0.0 1.0.1
elm-lang/keyboard 1.0.1 <= v < 2.0.0 1.0.1
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1
elm-lang/animation-frame 1.0.1 <= v < 2.0.0 1.0.1
elm-community/webgl 1.0.0 <= v < 2.0.0 1.0.2
elm-community/linear-algebra 1.0.0 <= v < 2.0.0 1.2.2
elm-community/intdict 2.0.0 <= v < 3.0.0 2.1.0

README

ELMO-8

A Simple Game Library Inspired by the Excellent PICO-8

The goal of the library is to offer a small, simple game development environment which aspires to be as charming as PICO-8.

There are deliberate limitations to keep things simpler and to encourage the 8-bit aesthetic.

Aspirational specs:

  • Display: 128x128 16 colours
  • Sprites: 128 8x8 sprites
  • Map: 128x32 cels
  • Controls: 2 6-button joysticks

Goals

  • Be a nice little playground
  • Be a simple teaching tool
  • Be a nice way to write small games

Using

Install from http://package.elm-lang.org/packages/micktwomey/elmo-8/latest

  1. elm package install micktwomey/elmo-8
  2. Edit Hello.elm
  3. Download examples/birdwatching.png
  4. elm reactor
  5. Go to http://localhost:8000/Hello.elm

Hello.elm:

import Elmo8.Console as Console
import Elmo8.Pico8 as Pico8

type alias Model = {}

draw : Model ->  List Console.Command
draw model =
    [ Console.putPixel 10 10 Pico8.peach
    , Console.print "Hello World" 10 50 Pico8.orange
    , Console.sprite 0 60 90
    ]

update : Model -> Model
update model = model

main : Program Never
main =
    Console.boot
        { draw = draw
        , init = {}
        , update = update
        , spritesUri = "birdwatching.png"
        }

The result should look like this:

Basic Example

Examples

To play with the examples in this repo:

  1. git clone
  2. elm package install (not required but useful to check dependencies)
  3. elm reactor
  4. Look in http://localhost:8000/examples/

Posts