diff options
| author | Ben Beltran <ben@nsovocal.com> | 2014-08-20 09:27:23 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2014-08-20 09:27:23 -0500 |
| commit | 509e372f9ccbc49344493fdb36b2afb17103f4da (patch) | |
| tree | 7f023e4d6c8a2109486716e5af36e2de392fb1dc /browser_test/index.html | |
| parent | 60a6915a0b24975e28a02b28e43d34f6dbb15625 (diff) | |
Normalizes API for entitiesv0.1.7
Diffstat (limited to 'browser_test/index.html')
| -rw-r--r-- | browser_test/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
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); |