Hampter Ball
A physics-based hamster collision game built in 3 days for a game jam. Roll your hamster, collect sunflower seeds to gain mass, and slam enemies off the platform. Playable in browser.
Core Gameplay
A two-player spherical hamster collision game where the goal is to knock the opponent off the platform. Players collect sunflower seeds scattered across the arena to feed their hamster and increase its physics mass — the heavier you are, the stronger your collision advantage.
Core Loop: Collect Seeds → Feed & Gain Mass → Collision Advantage → Knock Off Opponent
Mass System Design
Gaining mass affects multiple dimensions simultaneously: collision knockback force scales with mass ratio, wall-break damage = mass × velocity, movement force grows exponentially with mass (but speed is capped), and at mass 7.0 the hamster visually transforms from small to large.
Key design: mass continuously decays (-0.1/sec, minimum 0.5). Players can't just stockpile mass and rush — they must constantly decide between "maintaining weight" and "attacking now," creating a tense eat → fight → eat cycle.
Enemy AI
Three enemy types, all driven by physics forces (no NavMesh):
- Basic Enemy: Applies AddForce toward the player's direction to chase
- Pirate Hamster: Follows preset waypoints, then launches from a cannon toward the player (trigger-collision-driven state machine + physics-force movement)
- LV1 Boss: Initiates a cooldown-based charge when the player enters a distance threshold