Closed rosshadden closed 9 years ago
Whether we roll our own (they are very easy) or use an existing one, we should add a simple event system.
Then we could do things like entity.on('spawn', function() {}), instead of using the stupid/ancient entity.onSpawn = function() {} convention.
entity.on('spawn', function() {})
entity.onSpawn = function() {}
Whether we roll our own (they are very easy) or use an existing one, we should add a simple event system.
Then we could do things like
entity.on('spawn', function() {})
, instead of using the stupid/anciententity.onSpawn = function() {}
convention.