diff --git a/assets/map.jpeg b/assets/map.jpeg deleted file mode 100644 index e9ac31f..0000000 Binary files a/assets/map.jpeg and /dev/null differ diff --git a/assets/map/map.jpeg b/assets/map/map.jpeg deleted file mode 100644 index e9ac31f..0000000 Binary files a/assets/map/map.jpeg and /dev/null differ diff --git a/assets/map/map.jpg b/assets/map/map.jpg deleted file mode 100644 index 62b4342..0000000 Binary files a/assets/map/map.jpg and /dev/null differ diff --git a/assets/map/map2.png b/assets/map/map2.png deleted file mode 100644 index 3b6d61a..0000000 Binary files a/assets/map/map2.png and /dev/null differ diff --git a/assets/map/map3.jpg b/assets/map/map3.jpg deleted file mode 100644 index 7925848..0000000 Binary files a/assets/map/map3.jpg and /dev/null differ diff --git a/assets/map/map4.png b/assets/map/map4.png deleted file mode 100644 index fc5d960..0000000 Binary files a/assets/map/map4.png and /dev/null differ diff --git a/assets/map/map5.jpg b/assets/map/map5.jpg deleted file mode 100644 index 7bbd5cd..0000000 Binary files a/assets/map/map5.jpg and /dev/null differ diff --git a/assets/map/map6.png b/assets/map/map6.png deleted file mode 100644 index 512136f..0000000 Binary files a/assets/map/map6.png and /dev/null differ diff --git a/assets/map/map7.png b/assets/map/map7.png deleted file mode 100644 index 5a531eb..0000000 Binary files a/assets/map/map7.png and /dev/null differ diff --git a/assets/map/map7_recadr.png b/assets/map/map7_principale.png similarity index 100% rename from assets/map/map7_recadr.png rename to assets/map/map7_principale.png diff --git a/assets/map/map_secondaire.png b/assets/map/map_secondaire.png new file mode 100644 index 0000000..3b4acfa Binary files /dev/null and b/assets/map/map_secondaire.png differ diff --git a/js/game.js b/js/game.js index 1499bd0..84edc5e 100644 --- a/js/game.js +++ b/js/game.js @@ -9,7 +9,7 @@ function CookiePseudo() { return null; } -Renderer = new Render("canvas", "./assets/map/map7_recadr.png"); +Renderer = new Render("canvas", "./assets/map/map7_principale.png", "./assets/map/map7_secondaire.png"); LB = new LeaderBoard("canvas"); let sound = new Sound("./assets/sounds/"); sound.loadSounds(); @@ -174,6 +174,7 @@ function game() { { Net.died(player.id,-1); player.x=-50; + player.deaths++; player.health=10; } }); diff --git a/js/render.js b/js/render.js index 47387a7..812cc5f 100644 --- a/js/render.js +++ b/js/render.js @@ -7,7 +7,7 @@ imgCar.src = "./assets/car.png"; class Render { - constructor(id, mapsrc) { + constructor(id, mapsrc, map2src) { this.canvas = document.getElementById(id); this.ctx = canvas.getContext("2d"); this.players = [];