]> git.r.bdr.sh - rbdr/serpentity/blobdiff - browser_test/index.html
Removes bower.json
[rbdr/serpentity] / browser_test / index.html
index 3be1f38f4db2496d6883552a417c72cfd47fe574..1183efc45142f84fe2c1e3d965cbbce9c7862ea5 100644 (file)
@@ -3,12 +3,7 @@
   <head>
     <title>Serpentity Browser Test</title>
     <script src="/bower_components/neon/neon.js"></script>
   <head>
     <title>Serpentity Browser Test</title>
     <script src="/bower_components/neon/neon.js"></script>
-    <script src="/bower_components/serpentity/serpentity.js"></script>
-    <script src="/bower_components/serpentity/entity.js"></script>
-    <script src="/bower_components/serpentity/node.js"></script>
-    <script src="/bower_components/serpentity/node_collection.js"></script>
-    <script src="/bower_components/serpentity/component.js"></script>
-    <script src="/bower_components/serpentity/system.js"></script>
+    <script src="/bower_components/serpentity/dist/serpentity.js"></script>
     <script type="application/javascript">
         /////////////////
         // Load the stuff
     <script type="application/javascript">
         /////////////////
         // Load the stuff
 
         console.log("\n## Adding system to the engine and updating")
         var entity = new Serpentity.Entity();
 
         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);
 
         engine.addEntity(entity);
         engine.update(10);
 
 
         console.log("\n## Adding a second entity")
         var entity = new Serpentity.Entity();
 
         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);
 
         engine.addEntity(entity);
         engine.update(10);