elm-space-arena
July 10, 2016 ยท View on GitHub
- Live demo: https://www.danneu.com/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
(x, y)starts at the top-left.xincreases going right,yincreases going down.positionis always the center of an entity.- Deploys to gh-pages branch done with https://github.com/X1011/git-directory-deploy
Optimization Notes
obj.visible = falsemeans container and all of its children's matrices won't be updated.obj.renderable = falsemeans that the container will be updated but not rendered (use for culling).texture = Texture.EMPTYhas no special cases. Sprite is rendered anyway.