Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisOptimism committed Apr 7, 2021
1 parent 5f997d8 commit 356070d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Binary file modified assets/images/background/day/.DS_Store
Binary file not shown.
16 changes: 8 additions & 8 deletions js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class Game {
preload() {
// neuro = loadFont('assets/fonts/neuropol.ttf');
// images
this.coinImage = loadImage('/assets/images/lab.png');
this.playerImage = loadImage('/assets/images/steffen.gif');
this.firstAidImage = loadImage('/assets/images/pizza.png');
this.coinImage = loadImage('assets/images/lab.png');
this.playerImage = loadImage('assets/images/steffen.gif');
this.firstAidImage = loadImage('assets/images/pizza.png');
this.obstacleImage = loadImage('assets/images/coronavirus.png');
this.foregroundImage = loadImage('assets/images/background/day/fg1.png');
this.foregroundImageNight = loadImage('assets/images/background/night/fg1.png');
this.foregroundImageNight = loadImage('assets/images/background/night/FG1.png');
this.dogImage = loadImage('assets/images/background/day/dog.gif');

// sounds
Expand Down Expand Up @@ -78,22 +78,22 @@ class Game {
]
// bachground Images Day
this.backgroundImagesNight = [{
src: loadImage('assets/images/background/night/bg4.png'),
src: loadImage('assets/images/background/night/BG4.png'),
x: 0,
speed: 1 * this.gameSpeed
},
{
src: loadImage('assets/images/background/night/bg3.png'),
src: loadImage('assets/images/background/night/BG3.png'),
x: 0,
speed: 1.5 * this.gameSpeed
},
{
src: loadImage('assets/images/background/night/bg2.png'),
src: loadImage('assets/images/background/night/BG2.png'),
x: 0,
speed: 2 * this.gameSpeed
},
{
src: loadImage('assets/images/background/night/bg1.png'),
src: loadImage('assets/images/background/night/BG1.png'),
x: 0,
speed: 6 * this.gameSpeed
}
Expand Down

0 comments on commit 356070d

Please sign in to comment.