X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/60a6915a0b24975e28a02b28e43d34f6dbb15625..77dc64fee29f530ecef0b09d2380729734cf62dd:/browser_test/index.html?ds=inline diff --git a/browser_test/index.html b/browser_test/index.html index 82921b7..1183efc 100644 --- a/browser_test/index.html +++ b/browser_test/index.html @@ -116,7 +116,7 @@ console.log("\n## Adding system to the engine and updating") var entity = new Serpentity.Entity(); - entity.add(new TestComponent()); + entity.addComponent(new TestComponent()); engine.addEntity(entity); engine.update(10); @@ -136,7 +136,7 @@ console.log("\n## Adding a second entity") var entity = new Serpentity.Entity(); - entity.add(new TestComponent()); + entity.addComponent(new TestComponent()); engine.addEntity(entity); engine.update(10);