WillHuxtable/piston.js — pull request #1 by spleen387 (2014-03-16 19:30:18+00:00)
Title: new Entity destructor

changed entity id's (entities.length automatically increments)

removed "Entity.prototype.dieNextFrame = false;" because all entities
would share the same value

and moved "entities.splice" into "Entity.onDeath"

also changed the Entity.remove function because after splicing objects
from the entities array their id's will no longer match up with their
index