formatting

This commit is contained in:
bwent 2015-08-14 11:06:44 -07:00
parent 2c5c362957
commit 68fcf4ec8a
2 changed files with 12 additions and 12 deletions

View file

@ -167,7 +167,7 @@ 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;
@ -182,9 +182,9 @@ 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;
@ -388,7 +388,7 @@ satelliteButton.addAction('onClick', function() {
if (satelliteGame && satelliteGame.isActive) {
MyAvatar.position = startingPosition;
satelliteGame.quitGame();
if(paused) {
if (paused) {
resume();
}
} else {

View file

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