Compare commits
No commits in common. "34ce42865cfef9565e0ae259f941e30bea0001fd" and "154957542a9c6796543c2045953e25f7f9a700f6" have entirely different histories.
34ce42865c
...
154957542a
2 changed files with 0 additions and 25 deletions
|
|
@ -37,7 +37,6 @@ function game() {
|
||||||
let newTime = new Date();
|
let newTime = new Date();
|
||||||
dt=newTime - currentTime;
|
dt=newTime - currentTime;
|
||||||
currentTime=newTime;
|
currentTime=newTime;
|
||||||
Donjon()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
net.connect(); //connect to server, create a player, and retrieve all players info
|
net.connect(); //connect to server, create a player, and retrieve all players info
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,6 @@ let maps = [new Game_Map(portals.slice(0,8),0,map0Squares,[]),
|
||||||
maps[-1]=maps[0]
|
maps[-1]=maps[0]
|
||||||
|
|
||||||
players.push(new Player(-1,-50,-50,-1,"VOITURES",0));
|
players.push(new Player(-1,-50,-50,-1,"VOITURES",0));
|
||||||
|
|
||||||
players.push(new Player(-2,-50,-50,-1,"DONJON",0));
|
|
||||||
|
|
||||||
function updatePlayer(data)
|
function updatePlayer(data)
|
||||||
{
|
{
|
||||||
|
|
@ -169,25 +167,3 @@ function updateBullets(dt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let lastbulletdonjon=[0]
|
|
||||||
function Donjon() {
|
|
||||||
if(player.z==10) {
|
|
||||||
if(lastbulletdonjon[0]==59) { lastbulletdonjon[0]=0 }
|
|
||||||
if(Math.floor(Date.now()/1000)%60 > lastbulletdonjon[0]) {
|
|
||||||
lastbulletdonjon[0]=Math.floor(Date.now()/1000)%60
|
|
||||||
bullets.push(new Bullet(235,65,10,0,2,-2));
|
|
||||||
bullets.push(new Bullet(235,491,10,0,-2,-2));
|
|
||||||
bullets.push(new Bullet(395,65,10,0,2,-2));
|
|
||||||
bullets.push(new Bullet(395,491,10,0,-2,-2));
|
|
||||||
bullets.push(new Bullet(104,209,10,2,0,-2));
|
|
||||||
bullets.push(new Bullet(107,356,10,2,0,-2));
|
|
||||||
bullets.push(new Bullet(235,65,10,0,2,-2));
|
|
||||||
bullets.push(new Bullet(235,491,10,0,-2,-2));
|
|
||||||
bullets.push(new Bullet(395,65,10,0,2,-2));
|
|
||||||
bullets.push(new Bullet(395,491,10,0,-2,-2));
|
|
||||||
bullets.push(new Bullet(104,209,10,2,0,-2));
|
|
||||||
bullets.push(new Bullet(107,356,10,2,0,-2));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue