]> git.r.bdr.sh - rbdr/serpentity/blobdiff - browser_test/index.html
Updates github url in bower
[rbdr/serpentity] / browser_test / index.html
index 9133ed55ad79207b91ca6cc4eae70ae575ddd90f..1183efc45142f84fe2c1e3d965cbbce9c7862ea5 100644 (file)
@@ -2,13 +2,8 @@
 <html>
   <head>
     <title>Serpentity Browser Test</title>
-    <script src="/node_modules/neon/neon.js"></script>
-    <script src="/lib/serpentity/serpentity.js"></script>
-    <script src="/lib/serpentity/entity.js"></script>
-    <script src="/lib/serpentity/node.js"></script>
-    <script src="/lib/serpentity/node_collection.js"></script>
-    <script src="/lib/serpentity/component.js"></script>
-    <script src="/lib/serpentity/system.js"></script>
+    <script src="/bower_components/neon/neon.js"></script>
+    <script src="/bower_components/serpentity/dist/serpentity.js"></script>
     <script type="application/javascript">
         /////////////////
         // Load the stuff
 
         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);