Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSurabian committed May 6, 2020
1 parent ae68dc4 commit f3fad78
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions src/modules/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {loader, autoDetectRenderer} from 'pixi.js';
import {noop as _noop} from 'lodash/util';
import levels from '../data/levels.json';
import Stage from './Stage';
import sound from'./Sound';
import sound from './Sound';

const BLUE_SKY_COLOR = 0x64b0ff;
const PINK_SKY_COLOR = 0xfbb4d4;
Expand Down Expand Up @@ -353,44 +353,44 @@ class Game {
}

getScoreMessage() {
let scoreMessage;
let scoreMessage;

if (this.score === 9400) {
scoreMessage = 'Flawless victory.';
}
if (this.score === 9400) {
scoreMessage = 'Flawless victory.';
}

if (this.score < 9400) {
scoreMessage = 'Close to perfection.';
}
if (this.score < 9400) {
scoreMessage = 'Close to perfection.';
}

if (this.score <= 9000) {
scoreMessage = 'Truly impressive score.';
}
if (this.score <= 9000) {
scoreMessage = 'Truly impressive score.';
}

if (this.score <= 8000) {
scoreMessage = 'Solid score.'
}
if (this.score <= 8000) {
scoreMessage = 'Solid score.';
}

if (this.score <= 6000) {
scoreMessage = 'Yikes.';
}
if (this.score <= 6000) {
scoreMessage = 'Yikes.';
}

return scoreMessage;
return scoreMessage;
}

showReplay(replayText) {
this.stage.hud.createTextBox('replayButton', {
location: Stage.replayButtonLocation()
});
this.stage.hud.createTextBox('replayButton', {
location: Stage.replayButtonLocation()
});
this.stage.hud.replayButton = replayText + ' Play Again?';
this.bindInteractions();

}

handleClick(event) {
let clickPoint = {
x: event.data.global.x,
y: event.data.global.y
const clickPoint = {
x: event.data.global.x,
y: event.data.global.y
};

if (!this.stage.hud.replayButton && !this.outOfAmmo()) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Stage extends Container {
* @returns {Promise} - This promise is resolved when all the ducks have flown away
*/
flyAway() {
this.dog.stopAndClearTimeline()
this.dog.stopAndClearTimeline();
this.dog.laugh();
this.lock();
const duckPromises = [];
Expand Down

0 comments on commit f3fad78

Please sign in to comment.