quick fix
This commit is contained in:
parent
0b89679d4a
commit
e907afa4de
2 changed files with 13 additions and 11 deletions
|
@ -10,17 +10,19 @@ let bullets = [];
|
||||||
let circles = [];
|
let circles = [];
|
||||||
let squares = [];
|
let squares = [];
|
||||||
let PNJS = [new PNJ(500, 100,0),
|
let PNJS = [new PNJ(500, 100,0),
|
||||||
new PNJ(700, 100,0),
|
new PNJ(700, 100,0),
|
||||||
new PNJ(500, 600,0),
|
new PNJ(500, 600,0),
|
||||||
new PNJ(200, 700,0)];
|
new PNJ(200, 700,0)];
|
||||||
|
|
||||||
let cars = [new Car(0, 0),
|
let cars = [new Car(0, 0),
|
||||||
new Car(1, 7),
|
new Car(1, 7),
|
||||||
new Car(1, 13),
|
new Car(1, 13),
|
||||||
new Car(1, 14),
|
new Car(1, 14),
|
||||||
new Car(0, 7),
|
new Car(0, 7),
|
||||||
new Car(0, 15)];
|
new Car(0, 15)];
|
||||||
|
let portals = [];
|
||||||
|
let maps = [];
|
||||||
|
|
||||||
players.push(new Player(-1,-50,-50,-1,"VOITURES",0));
|
players.push(new Player(-1,-50,-50,-1,"VOITURES",0));
|
||||||
|
|
||||||
function updatePlayer(data)
|
function updatePlayer(data)
|
||||||
|
|
|
@ -135,7 +135,7 @@ class Render {
|
||||||
})
|
})
|
||||||
if(affPortal)
|
if(affPortal)
|
||||||
{
|
{
|
||||||
portalSize.forEach((portal) => {
|
portals.forEach((portal) => {
|
||||||
if(portal.in.z==player.z)
|
if(portal.in.z==player.z)
|
||||||
this.RenderPortal(portal.in.x,portal.in.y,true);
|
this.RenderPortal(portal.in.x,portal.in.y,true);
|
||||||
else if(portal.out.z==player.z)
|
else if(portal.out.z==player.z)
|
||||||
|
|
Loading…
Reference in a new issue