X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/42c62ebf0114f17ffc88f7a025b0bd826cd068fb..77dc64fee29f530ecef0b09d2380729734cf62dd:/bin/test?ds=inline 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);