sketchpunk / FunWithWebGL2

Fun with WebGL 2.0 Youtube Tutorial Series
666 stars 141 forks source link

Replace Entities.remove() with Entities.delete() in Ecs.js #7

Open roskelld opened 5 years ago

roskelld commented 5 years ago

Replaced .remove() for .delete() on the Entities Map Object. Map objects have no remove method.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete