flypup / duel-of-the-devs

Duel of the Devs Web Game. Continuation of GitHub Game Off 2012 entry.
http://minimonks.com
2 stars 1 forks source link

Entities Pool #60

Open robwalch opened 11 years ago

robwalch commented 11 years ago

pool:

robwalch commented 11 years ago

Isn't this done?

robwalch commented 11 years ago

See:

ec.addPool(Class);
Class.create();

So far only objects with PhysicsStub can be pooled. Objects with a Chipmunk physics shape/body need new physics objects to be assigned when pulling them out of the pool.