From e79ebdb8aa88157fd3be5233ca7fe5a9a865661a Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Sun, 1 Nov 2015 19:47:13 -0800 Subject: [PATCH] cleanup syntax --- examples/color_busters_game/createColorBusterCubes.js | 6 +++--- examples/color_busters_game/createColorBusterWand.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/color_busters_game/createColorBusterCubes.js b/examples/color_busters_game/createColorBusterCubes.js index ad7b8b5307..2bc14e5a01 100644 --- a/examples/color_busters_game/createColorBusterCubes.js +++ b/examples/color_busters_game/createColorBusterCubes.js @@ -4,7 +4,7 @@ var CUBE_DIMENSIONS = { z: 1 }; -var NUMBER_OF_CUBES_PER_SIDE: 20; +var NUMBER_OF_CUBES_PER_SIDE= 20; var STARTING_CORNER_POSITION = { x: 0, @@ -62,7 +62,7 @@ function createColorBusterCube(row, column, vertical) { x: row, y: vertical, z: column - } + }, userData: JSON.stringify({ hifiColorBusterCubeKey: { originalColorName: startingColor[0], @@ -76,7 +76,7 @@ function createColorBusterCube(row, column, vertical) { function createBoard() { var vertical; - for (vertical = 0; vertical === NUMBER_OF_CUBES_PER_SIDE) { + for (vertical = 0; vertical === NUMBER_OF_CUBES_PER_SIDE;vertical++) { var row; var column; //create a single layer diff --git a/examples/color_busters_game/createColorBusterWand.js b/examples/color_busters_game/createColorBusterWand.js index 68e6ecfee5..4af5306177 100644 --- a/examples/color_busters_game/createColorBusterWand.js +++ b/examples/color_busters_game/createColorBusterWand.js @@ -44,7 +44,7 @@ function createColorBusterWand() { userData: JSON.stringify({ hifiColorBusterWandKey: { owner: MyAvatar.sessionUUID, - currentColor: startingColor[1] + currentColor: startingColor[1], originalColorName: startingColor[0], colorLocked: false }