quick fix

This commit is contained in:
Victor Lasserre 2023-12-15 13:48:31 +01:00
parent 0b89679d4a
commit e907afa4de
2 changed files with 13 additions and 11 deletions

View file

@ -10,17 +10,19 @@ let bullets = [];
let circles = [];
let squares = [];
let PNJS = [new PNJ(500, 100,0),
new PNJ(700, 100,0),
new PNJ(500, 600,0),
new PNJ(200, 700,0)];
let cars = [new Car(0, 0),
new Car(1, 7),
new Car(1, 13),
new Car(1, 14),
new Car(0, 7),
new PNJ(700, 100,0),
new PNJ(500, 600,0),
new PNJ(200, 700,0)];
let cars = [new Car(0, 0),
new Car(1, 7),
new Car(1, 13),
new Car(1, 14),
new Car(0, 7),
new Car(0, 15)];
let portals = [];
let maps = [];
players.push(new Player(-1,-50,-50,-1,"VOITURES",0));
function updatePlayer(data)

View file

@ -135,7 +135,7 @@ class Render {
})
if(affPortal)
{
portalSize.forEach((portal) => {
portals.forEach((portal) => {
if(portal.in.z==player.z)
this.RenderPortal(portal.in.x,portal.in.y,true);
else if(portal.out.z==player.z)