]> git.r.bdr.sh - rbdr/serpentity/blobdiff - browser_test/index.html
Removes bower.json
[rbdr/serpentity] / browser_test / index.html
index 82921b71c5180fe95bbea86fba7873c996aec759..1183efc45142f84fe2c1e3d965cbbce9c7862ea5 100644 (file)
 
         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);
 
 
         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);