clear maps
BIN
assets/map.jpeg
Before Width: | Height: | Size: 230 KiB |
Before Width: | Height: | Size: 230 KiB |
Before Width: | Height: | Size: 359 KiB |
Before Width: | Height: | Size: 460 KiB |
Before Width: | Height: | Size: 170 KiB |
Before Width: | Height: | Size: 776 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 733 KiB |
Before Width: | Height: | Size: 715 KiB |
Before Width: | Height: | Size: 520 KiB After Width: | Height: | Size: 520 KiB |
BIN
assets/map/map_secondaire.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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 = [];
|
||||
|
|