Removed some unused code (avg tick time calculator)
Move vent/event props to init, to ensure that each GameObject instance has it's own vent/event instances
(is this a thing?)
Move collision detection from Hero to Entity class
so that all moving entities detect collisions, not just hero
Utlity.randomCoord: allow more flexible `world` param: any object with x,y,w,h props
Create AiEntity class
working on:
- collision detection (some weird things when colliding w/hero)
- moving withing domain (doesn't seem to work)
- doesn't seem to spawn at spawnPoint
- randomMove doesn't run infinitely
- need to trigger collision on hitting world bounds
Add `rest` method
calls `move:start`, then `move:end` after delay
Fixed randomCoords, to use world bounds properly
Make randomMove work
fixed this._super() (init) call - was missing options param.
Keep Entities from moving outside of world bounds
Merge branch 'master' of github.com:eschwartz/CanvasRPG