diff --git a/examples/example/planets-ui.js b/examples/example/planets-ui.js index 05e1d134eb..55e58de227 100644 --- a/examples/example/planets-ui.js +++ b/examples/example/planets-ui.js @@ -167,11 +167,11 @@ Script.include('https://hifi-staff.s3.amazonaws.com/bridget/tween.js'); pauseButton.addAction('onClick', function() { if (tweening) { - if(!tweeningPaused) { + if (!tweeningPaused) { tweeningPaused = true; } else { tweeningPaused = false; - } + } } if (!paused) { pause(); @@ -182,13 +182,13 @@ pauseButton.addAction('onClick', function() { // Allow to toggle pause with spacebar function keyPressEvent(event) { - if(event.text == "SPACE") { - if (tweening) { - if(!tweeningPaused) { + if (event.text == "SPACE") { + if (tweening) { + if (!tweeningPaused) { tweeningPaused = true; } else { tweeningPaused = false; - } + } } if (!paused) { pause(); @@ -201,7 +201,7 @@ function keyPressEvent(event) { rideButton.addAction('onClick', function() { if (!paused) { pause(); - } + } if (tweening) { tweening = false; tweeningPaused = true; @@ -388,7 +388,7 @@ satelliteButton.addAction('onClick', function() { if (satelliteGame && satelliteGame.isActive) { MyAvatar.position = startingPosition; satelliteGame.quitGame(); - if(paused) { + if (paused) { resume(); } } else { diff --git a/examples/example/solarsystem.js b/examples/example/solarsystem.js index 7c58cfb299..05f10eeebb 100644 --- a/examples/example/solarsystem.js +++ b/examples/example/solarsystem.js @@ -24,7 +24,7 @@ CreateSimulation = function() { trailsEnabled = true; - + var DAMPING = this.DAMPING = 0.0; var LIFETIME = this.LIFETIME = 6000; var BASE_URL = this.BASE_URL = "https://s3.amazonaws.com/hifi-public/marketplace/hificontent/Scripts/planets/planets/"; @@ -222,7 +222,7 @@ CreateSimulation = function() { visible: false }); } - + } this.resetTrails = function() { @@ -344,7 +344,7 @@ CreateSimulation = function() { }; this.initPlanets = function() { - planets.push(new Planet("mercury", MERCURY_LINE_COLOR, 0.387, 0.383)); + planets.push(new Planet("mercury", MERCURY_LINE_COLOR, 0.387, 0.383)); planets.push(new Planet("venus", VENUS_LINE_COLOR, 0.723, 0.949)); planets.push(new Planet("earth", EARTH_LINE_COLOR, 1.0, 1.0)); planets.push(new Planet("mars", MARS_LINE_COLOR, 1.52, 0.532)); @@ -355,7 +355,7 @@ CreateSimulation = function() { planets.push(new Planet("pluto", PLUTO_LINE_COLOR, 39.48, 0.186)); } initPlanets(); - + var LABEL_X = 8.0; var LABEL_Y = 3.0; var LABEL_Z = 1.0;