Commit graph

4 commits

Author SHA1 Message Date
Howard Stearns
590ad22d89 Update spaceInvaders to use per-entity collision handlers.
Also fix bitrot:
* The 'f' key triggers a profile, after which all bets are off regarding time-dependent behavior such as lifetime and update().
 (I'm moving space-invaders "fire" to the space bar as a work-around.)

* You don't get a collision without
 a non-default shapeType property (if the object type is "Model")
 a truthy collisionsWillMove property

* Entity handles (such as returned by Entity.addEntity) no longer have a separate 'id' property, so don't reference that. Just use the handle object itself.

* When an entity's lifetime expires, Entities.getEntityProperties(theEntityHandle) returns default values.
 It looks like the space-invaders script was written at a time when this returned falsey.
 (I'm changing the script to see if the properties.type === 'Unknown'.)

NOT FIXED is that the level of detail is cutting out when showing all the invaders.
2015-05-25 17:16:35 -07:00
Seth Alves
f9d46b0cb5 interface decides on entityIDs rather than bouncing a temporary id through the entity server 2015-05-19 14:25:23 -07:00
Chris Collins
d6a3b94c73 Changed references of global.js to a var
Changed references of global.js to a var
2015-01-15 10:48:31 -08:00
Chris Collins
816e369c08 More Script updates
More Script updates
2015-01-06 22:32:45 -08:00
Renamed from examples/example/spaceInvadersExample.js (Browse further)