mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 09:29:02 +02:00
formatting
This commit is contained in:
parent
2c5c362957
commit
68fcf4ec8a
2 changed files with 12 additions and 12 deletions
|
@ -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 {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue