Snowball Showdown⚓︎
Difficulty:
Gold Solution⚓︎
Within the "reconnecting websocket" javascript for the game, there is a web socket message called moasb and it has a "launch code," which seems suspicious given the hint about the a huge snowball being able to be dropped from out of nowhere onto Wombly and crew.
mainScene.ws.sendMessage({
type: "moasb",
launch_code: "85e8e9729e2437c9d7d6addca68abb9f"
})
mainScene
.
Once the game starts, send the message:
mainScene.moasb();


Alternatively, this script also made for an interesting game.
scene.createHugeSnowball = function (x, y, blastRadius = 1200, scale = 9) {
// Create a huge snowball at the specified position
let hugeSnowball = this.physics.add.image(x, y, 'snowball').setDepth(4);
hugeSnowball.setScale(scale); // Make the snowball visually larger
hugeSnowball.blastRadius = blastRadius;
// Enable collision with world bounds and objects
hugeSnowball.setCollideWorldBounds(true);
// Event listener for when the snowball hits the ground
this.physics.world.on('worldbounds', (body) => {
if (body.gameObject === hugeSnowball) {
this.animateSnowballHit({ x: hugeSnowball.x, y: hugeSnowball.y }, hugeSnowball, true);
}
});
// Set it to fall straight down
hugeSnowball.setVelocity(0, 400); // Adjust fall speed as needed
// Destroy and animate on hitting ground
hugeSnowball.body.onCollide = true;
hugeSnowball.body.onWorldBounds = true;
return hugeSnowball;
};