<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);