X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/60a6915a0b24975e28a02b28e43d34f6dbb15625..77dc64fee29f530ecef0b09d2380729734cf62dd:/bin/test diff --git a/bin/test b/bin/test index 222a653..e5218df 100755 --- a/bin/test +++ b/bin/test @@ -114,7 +114,7 @@ engine.update(10); console.log("\n## Adding system to the engine and updating".bold.black) var entity = new Serpentity.Entity(); -entity.add(new TestComponent()); +entity.addComponent(new TestComponent()); engine.addEntity(entity); engine.update(10); @@ -134,7 +134,7 @@ engine.update(10); console.log("\n## Adding a second entity".bold.black) var entity = new Serpentity.Entity(); -entity.add(new TestComponent()); +entity.addComponent(new TestComponent()); engine.addEntity(entity); engine.update(10);