asalga / x

👾 Experimental game

Home Page:https://asalga.github.io/x/app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notes

  • When an entity is removed from the scene and it had components register event listeners on the entity, the component does not have to unregister those events, the entity will do that

  • You can get the world coordinate of an entity by calling Entity.getWorldCoords(v). but before doing so, you must zero out the v if you're re-using the vector.

Rendering

  • Order of layer rendering is in 'layerRenderOrder' in Renderer.js

Entities

  • 'user'
  • 'mouse'
  • 'bee'
  • 'hummingbird'
  • 'emitter'
  • 'background'

Events

  • entityadded

  • collision

  • hurt

  • killed

  • death <- rename to entityremoved?

  • increasescore

  • payload

  • GAME_MOUSE_DOWN

  • GAME_MOUSE_UP

About

👾 Experimental game

https://asalga.github.io/x/app/


Languages

Language:JavaScript 98.0%Language:CSS 0.9%Language:HTML 0.9%Language:Shell 0.2%