Skip to content

Commit

Permalink
Place of the ship cannons changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MengelCode committed Mar 31, 2020
1 parent 12ccb22 commit 336d702
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions finalfate/logic.js
Expand Up @@ -437,10 +437,10 @@ class SpaceShip extends GameObject {
sfx0.pause();
sfx0.currentTime = 0;
sfx0.play();
var bullet = new Bullet(this.middleX - 2, this.middleY);
var bullet = new Bullet(this.middleX - 1, this.middleY);
displayList.addElement(bullet, false);
bulletList.addElement(bullet, false);
bullet = new Bullet(this.middleX + 2, this.middleY);
bullet = new Bullet(this.middleX + 1, this.middleY);
displayList.addElement(bullet, false);
bulletList.addElement(bullet, false);
if (this.quadfire) {
Expand Down Expand Up @@ -475,12 +475,13 @@ class SpaceShip extends GameObject {
context.fillStyle = "yellow";
context.fillRect(this.middleX * 10, (this.middleY - 2) * 10, 10, 20);
context.fillStyle = "orange";
context.fillRect((this.middleX - 2) * 10, (this.middleY - 1) * 10, 10, 10);
context.fillRect((this.middleX + 2) * 10, (this.middleY - 1) * 10, 10, 10);
if (this.quadfire) {
context.fillRect((this.middleX - 1) * 10, (this.middleY - 1) * 10, 10, 10);
context.fillRect((this.middleX + 1) * 10, (this.middleY - 1) * 10, 10, 10);
}
context.fillRect((this.middleX - 1) * 10, (this.middleY - 1) * 10, 10, 10);
context.fillRect((this.middleX + 1) * 10, (this.middleY - 1) * 10, 10, 10);

context.fillStyle = "darkgray";
context.fillRect((this.middleX - 2) * 10, (this.middleY - 1) * 10, 10, 10);
context.fillRect((this.middleX + 2) * 10, (this.middleY - 1) * 10, 10, 10);

};
/**
* CHEAT ZONE. Default: 100
Expand Down

0 comments on commit 336d702

Please sign in to comment.