.
This commit is contained in:
parent
a74311d4d8
commit
0bc467a684
@ -269,6 +269,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//update teks pada speed kalau score update
|
||||||
function Movement() {
|
function Movement() {
|
||||||
if (++count < speed) return;
|
if (++count < speed) return;
|
||||||
if (ArahUlar > 0) ArahUlar--;
|
if (ArahUlar > 0) ArahUlar--;
|
||||||
@ -328,9 +329,9 @@
|
|||||||
|
|
||||||
if (e.code === "KeyE" || e.code == "KeyQ")
|
if (e.code === "KeyE" || e.code == "KeyQ")
|
||||||
speed =
|
speed =
|
||||||
e.code == "KeyE" && speed > 4
|
e.code == "KeyE" && speed > 5
|
||||||
? speed - 1
|
? speed - 1
|
||||||
: e.code == "KeyQ" && speed < 9
|
: e.code == "KeyQ" && speed < 15
|
||||||
? speed + 1
|
? speed + 1
|
||||||
: speed;
|
: speed;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -109,7 +109,7 @@
|
|||||||
padding: 15px 30px;
|
padding: 15px 30px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: white;
|
color: rgb(255, 255, 255);
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin: 10px 5px;
|
margin: 10px 5px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user