Compare commits
No commits in common. "e70e9a09afa7a82e3a9c42f8808639f15f2f13b8" and "f59a23476bf1be41d1f57e3ebed9184395c219fe" have entirely different histories.
e70e9a09af
...
f59a23476b
2 changed files with 7 additions and 8 deletions
|
|
@ -177,13 +177,6 @@ function updateBullets(dt)
|
|||
let lastbulletdonjon=[0,0]
|
||||
function Donjon() {
|
||||
if(player.z==10) {
|
||||
if(lastbulletdonjon[1]>=7) {
|
||||
lastbulletdonjon[1]=0
|
||||
bullets.push(new Bullet(107,95+(Date.now()*0.1)%365,10,1,0,-2));
|
||||
bullets.push(new Bullet(107,460-(Date.now()*0.1)%365,10,1,0,-2));
|
||||
} else {
|
||||
lastbulletdonjon[1]++
|
||||
}
|
||||
if(lastbulletdonjon[0]==59 && Math.floor(Date.now()/1000)%60 !=59) { lastbulletdonjon[0]=0 }
|
||||
if(Math.floor(Date.now()/1000)%60 > lastbulletdonjon[0]) {
|
||||
lastbulletdonjon[0]=Math.floor(Date.now()/1000)%60
|
||||
|
|
@ -196,5 +189,12 @@ function Donjon() {
|
|||
bullets.push(new Bullet(615,385,10,0,-2,-2));
|
||||
}
|
||||
}
|
||||
if(lastbulletdonjon[1]==5) {
|
||||
lastbulletdonjon[1]=0
|
||||
bullets.push(new Bullet(107,95+(Date.now()*0.1)%365,10,1,0,-2));
|
||||
bullets.push(new Bullet(107,460-(Date.now()*0.1)%365,10,1,0,-2));
|
||||
} else {
|
||||
lastbulletdonjon[1]++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@ class Sound{
|
|||
constructor(url){
|
||||
this.sound = new Audio(url);
|
||||
this.sound.type = "audio/mp3";
|
||||
this.sound.volume = 0.2;
|
||||
}
|
||||
|
||||
play(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue