throwing blocks through map

This commit is contained in:
landgreen
2020-03-19 05:18:03 -07:00
parent 114be654cf
commit f08996b2fc
5 changed files with 22 additions and 10 deletions

View File

@@ -579,6 +579,7 @@ const game = {
}
for (i = 0, len = b.guns.length; i < len; i++) { //find which gun is mine
if (b.guns[i].name === "mine") {
if (b.modNoAmmo) count = Math.ceil(count / 2)
b.guns[i].ammo += count
game.updateGunHUD();
break;
@@ -698,7 +699,7 @@ const game = {
let i = who.length;
while (i--) {
if (who[i].position.y > game.fallHeight) {
if (save && game.difficultyMode < 2) {
if (save && game.difficultyMode < 3) {
Matter.Body.setVelocity(who[i], {
x: 0,
y: 0