diff --git a/website/game/menu/chat.js b/website/game/menu/chat.js index c656fdf..b723a48 100644 --- a/website/game/menu/chat.js +++ b/website/game/menu/chat.js @@ -120,7 +120,7 @@ MENUS["chatMenu"] = new class extends Menu { } break case "/jump": - PLAYER.jump(Number(arg2) || 0) + PLAYER.jump(Number(arg) || 0) break case "/debug": // Debug physics setDebugPhysics(!DEBUGPHYSICS) diff --git a/website/game/objects/character.js b/website/game/objects/character.js index bc54560..ab83959 100644 --- a/website/game/objects/character.js +++ b/website/game/objects/character.js @@ -543,6 +543,13 @@ export default class Character extends PhysicsObject { if (this == PLAYER) { NETPLAY.sendAction("jump", dist) } + + // High jumps should cause dust clouds + if (dist > 1000) { + PARTICLES.push(new Particle(this.x-20, this.y-4, IMG.particle, SPRITE.dust, [0,1], 0.1)) + PARTICLES.push(new Particle(this.x, this.y, IMG.particle, SPRITE.dust, [0,1], 0.1)) + PARTICLES.push(new Particle(this.x+20, this.y-4, IMG.particle, SPRITE.dust, [0,1], 0.1)) + } } // Collision