Skip to content

Commit 34f02b7

Browse files
committed
images links fix
1 parent 08de4da commit 34f02b7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/Game.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Game {
1919
this.game_over_music = new Audio("sound/game_over.mp3")
2020

2121
this.background = new Image()
22-
this.background.src = "Images/game_background.png"
22+
this.background.src = "images/game_background.png"
2323

2424
this.hero = new Hero(this.container.width, this.container.height)
2525
this.goblins = [new Goblin(this.container.width, this.container.height, 0, +(Math.random() > 0.5), 3)]

scripts/Goblin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class Goblin {
44
constructor(canvas_w, canvas_h, id, side, speed) {
55
this.img = new Image()
6-
this.img.src = "Images/goblin.png"
6+
this.img.src = "images/goblin.png"
77
this.size = { w: 65, h: 80 }
88
this.pos = { x: 0, y: canvas_h - 185 }
99
this.side = side

scripts/Hero.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class Hero {
44
constructor(canvas_w, canvas_h) {
55
this.img = new Image()
6-
this.img.src = "Images/hero.png"
6+
this.img.src = "images/hero.png"
77
this.size = { w: 124, h: 124 }
88
this.pos = { x: -this.size.w / 2, y: canvas_h - 220 }
99
this.side = 0

styles/scss/menu.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
.menu {
1515
@include flex(column, center, center);
16-
background-image: url("../Images/menu_background.png");
16+
background-image: url("../images/menu_background.png");
1717
background-position: center;
1818
background-size: cover;
1919
background-repeat: no-repeat;

0 commit comments

Comments
 (0)