diff --git a/public_html/css/game.css b/public_html/css/game.css
index f2e4ce5..8eb44c1 100644
--- a/public_html/css/game.css
+++ b/public_html/css/game.css
@@ -44,9 +44,9 @@ html, body{
#phoneScreen{
background-color: #322b2a;
position: absolute;
- left: 7%;
- top: 12%;
- right: 7%;
+ left: 6.7%;
+ top: 11.9%;
+ right: 6.7%;
bottom: 13%;
}
diff --git a/public_html/js/class.js b/public_html/js/class.js
index 90837f3..be80ca4 100644
--- a/public_html/js/class.js
+++ b/public_html/js/class.js
@@ -108,9 +108,9 @@ class Player
class Bullet
{
- constructor (x,y,z,dx,dy,id)
+ constructor (x,y,z,dx,dy,id, silent = false)
{
- if(z==player.z)
+ if(z==player.z && silent!=true)
bulletSound.play();
this.x=x;
this.y=y;
diff --git a/public_html/js/global.js b/public_html/js/global.js
index 3b2071d..508f1ba 100644
--- a/public_html/js/global.js
+++ b/public_html/js/global.js
@@ -183,8 +183,8 @@ 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));
+ bullets.push(new Bullet(107,95+(Date.now()*0.1)%365,10,1,0,-2, true));
+ bullets.push(new Bullet(107,460-(Date.now()*0.1)%365,10,1,0,-2, true));
} else {
lastbulletdonjon[1]++
}
@@ -192,12 +192,12 @@ function Donjon() {
if(Math.floor(Date.now()/1000)%60 > lastbulletdonjon[0]) {
lastbulletdonjon[0]=Math.floor(Date.now()/1000)%60
for(let i=0;i<5;i++){
- 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(615,178,10,0,2,-2));
- bullets.push(new Bullet(615,385,10,0,-2,-2));
+ bullets.push(new Bullet(235,65,10,0,2,-2, true));
+ bullets.push(new Bullet(235,491,10,0,-2,-2, true));
+ bullets.push(new Bullet(395,65,10,0,2,-2, true));
+ bullets.push(new Bullet(395,491,10,0,-2,-2, true));
+ bullets.push(new Bullet(615,178,10,0,2,-2, true));
+ bullets.push(new Bullet(615,385,10,0,-2,-2, true));
}
}
}