X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/74892a8fd50cdc2a1294d776dc246912de9f94d5..990e42e786c23c83960a15b9ea6cafc914a7c472:/browser_test/index.html 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);