Skip to content

Commit

Permalink
fixed sound issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisOptimism committed Apr 8, 2021
1 parent ff8e9db commit d5bb58c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function setup() {
let canvas = createCanvas(1000, 600);
canvas.parent('game')
if (!menuSong.isPlaying()) {
menuSong.play();
menuSong.loop();
}
}
Expand Down
2 changes: 1 addition & 1 deletion js/shotvillan.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ShotVillan {
constructor() {
this.x = game.villan.x + game.villan.width / 2;
this.y = game.villan.y + game.villan.height / 4;
this.y = game.villan.y + game.villan.height / 3.5;
this.width = 25;
this.height = 25;
this.damage = 20;
Expand Down

0 comments on commit d5bb58c

Please sign in to comment.