diff --git a/index.html b/index.html index 20d8eb8..41e288c 100644 --- a/index.html +++ b/index.html @@ -65,7 +65,7 @@ ex1.populate([['secondCreature', 10], ['simplePlant', 90]]);

Examples

Conway's Game of Life ?

-
var gameOfLife = new Terrarium(25, 25);
+    
var gameOfLife = new terra.Terrarium(25, 25);
 
 terra.creatureFactory.register({
   type: 'GoL',
@@ -87,7 +87,7 @@ gameOfLife.populate([['GoL', 100]]);
 gameOfLife.animate();

Cyclic Cellular Automaton ?

-
var cyclic = new Terrarium(25, 25);
+    
var cyclic = new terra.Terrarium(25, 25);
 
 terra.creatureFactory.register({
   type: 'cyclic',
@@ -263,7 +263,7 @@ cyclic.animate();

Terrarium

Terrariums are where the action happens. They're initialized with the following constructor:

-
var t = new Terrarium(width, height, id, cellSize, insertAfter);
+
var t = new terra.Terrarium(width, height, id, cellSize, insertAfter);

Required