danneu / elm-space-arena

(practice) 2D spaceship shooter build with Elm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-space-arena

A sloppy 2D spaceship shooter built with Elm to explore game development.

It's a work-in-progress with shameful code.

Clone

$ git clone https://github.com/danneu/elm-space-arena.git
$ cd elm-space-arena
$ npm install
$ elm make
$ npm start
Dev server running on <http://localhost:8080>

Technical Notes

Optimization Notes

  • obj.visible = false means container and all of its children's matrices won't be updated.
  • obj.renderable = false means that the container will be updated but not rendered (use for culling).
  • texture = Texture.EMPTY has no special cases. Sprite is rendered anyway.

About

(practice) 2D spaceship shooter build with Elm


Languages

Language:Elm 55.7%Language:JavaScript 32.3%Language:Shell 11.3%Language:CSS 0.4%Language:HTML 0.3%