quick fix
This commit is contained in:
parent
0b89679d4a
commit
e907afa4de
2 changed files with 13 additions and 11 deletions
|
@ -20,6 +20,8 @@ let cars = [new Car(0, 0),
|
||||||
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));
|
||||||
|
|
||||||
|
|
|
@ -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