Hamster Ball Blitz!

Lead Designer & Programmer at MassDigi

Development Info

Roles: Lead Designer, Programmer
Studio: MassDigi
Team Size: 6
Development Time: 9 weeks (May 2024 – July 2024)
Tools Used: Unity, FMOD, PlasticSCM, DevToDev, Miro
Project Status: Complete & Released

Genre: Action
Platform: IOS and Android

About Hamster Ball Blitz

Hamster Ball Blitz is a physics-based fighting game where you help Chester the hamster as he battles his way through the bracket of the (c)hampionship games. Dash, roll, and bounce your way to victory!

As part of MassDigi’s 2024 Summer Innovation Program, I worked as a Lead Designer and Programmer to take Hamster Ball Blitz from concept to release in just three months. The process started with some pretty rigorous ideation—we’re talking hundreds of concepts (Monty is ruthless) before narrowing things down and building a quick-and-dirty prototype to prove out the core idea. From there, I helped build the bones of the project, develop its gameplay systems, and spent a whole lot of time polishing everything into a visually appealing, tactile, and genuinely fun finished product.

Player Controls

Player movement in game

Collisions in game

				
					 public void MoveHamster(Vector2 input, float forceMultiplier = 1f)
{
    if (isMovementLocked || input.sqrMagnitude == 0f)
        return;

    Vector2 desiredDirection = input.normalized;
    float currentSpeed = rb.velocity.magnitude;

    // Steer existing momentum toward the player's input.
    if (currentSpeed > 0f)
    {
        Vector2 currentDirection = rb.velocity / currentSpeed;

        Vector2 steeredDirection = Vector2.Lerp(currentDirection, desiredDirection, agility);

        rb.velocity = steeredDirection * currentSpeed;
    }

    // Multiplying by mass keeps acceleration consistent while still allowing mass to affect collisions.
    rb.AddForce(desiredDirection * moveForce * forceMultiplier * rb.mass);

    facingDirection = desiredDirection;
    frictionDelayTimer = frictionDelay;
}

				
			
				
					private float GetImpactToward(Hamster target)
{
    Vector2 directionToTarget = ((Vector2)target.transform.position - rb.position).normalized;
    return Mathf.Max(0f, Vector2.Dot(prevVelocity, directionToTarget));
}

protected float CalculateStaminaLostFromCollision(Collision2D collision)
{
    if (!collision.gameObject.TryGetComponent(out Hamster attacker))
    {
        return 0f;
    }

    float impact = attacker.GetImpactToward(this);
    return impact * attacker.staminaDmgMod * staminaLossMod;
}

public bool HitEnemyHarder(Collision2D collision)
{
    if (!collision.gameObject.TryGetComponent(out Hamster opponent))
    {
        return false;
    }

    float myImpact = GetImpactToward(opponent);
    float opponentImpact = opponent.GetImpactToward(this);

    return myImpact > opponentImpact;
}

				
			

For the player movement, I wanted the hamster to feel responsive without losing the weight and momentum that make the controls fun. Instead of directly setting the player’s velocity, the MoveHamster function steers the player hamster’s existing momentum toward the input direction based on an agility stat, then applies additional force in that direction. This lets faster or heavier movement still feel physical while giving us a separate way to tune how sharply the player can turn. I also added custom friction and a short friction delay so momentum carries naturally after an input instead of immediately being dampened.
For collisions, I mirrored that same momentum-based philosophy to determine how strong an impact should be. Rather than only checking how fast a hamster is moving, I sampled how much of that velocity is actually directed into the opponent. GetImpactToward calculates that directional force, CalculateStaminaLostFromCollision uses it to determine stamina damage, and HitEnemyHarder compares the impact generated by both hamsters to determine who won the collision. This makes head-on attacks feel much more powerful than glancing blows and rewards players for lining up their movement instead of simply building as much speed as possible.

Enemy AI State-Machine

				
					private IEnumerator EnemyAI()
{
    while (!isDead)
    {
        EnemyState nextState = DetermineState();

        if (nextState != _currentState)
            ChangeState(nextState);

        yield return ExecuteState();
    }
}

private EnemyState DetermineState()
{
    // Reactive states override normal combat behavior.
    if (isTeetering)
        return EnemyState.Teeter;

    if (IsObstacleRetreating && TrySetPath(obstacleRetreatLocation.position))
        return EnemyState.ObstacleRetreat;

    if ((isRetreating || _player.isDead) && TryFindRetreatPath())
        return EnemyState.Retreat;

    // Weighted choices create variation without overriding higher-priority reactions.
    EnemyState weightedState = GetWeightedEnemyStates();

    if (weightedState == EnemyState.Retreat && _currentRetreatCooldown <= 0 && TryFindRetreatPath())
    {
        return EnemyState.Retreat;
    }

    if (IsPlayerClose() && weightedState == EnemyState.Strafe && _currentStrafeCooldown <= 0 && TryFindStrafePath())
    {
        return EnemyState.Strafe;
    }

    return EnemyState.Chase;
}

private void ChangeState(EnemyState newState)
{
    ExitState(_currentState);
    _currentState = newState;
    EnterState(_currentState);
}

				
			

I built the enemy hamster behavior around a simple state machine, with high-priority reactions like teetering or backing away from obstacles taking control when necessary, while combat actions like strafing and retreating are chosen through weighted randomness.
The goal of the enemy AI was to make opponents feel reactive without making them completely predictable. Cooldowns keep enemies from repeating the same move too often, and each movement option checks for a valid NavMesh path before committing to it. This gave the enemies enough variation to feel alive while still keeping their behavior readable and fair for the player, and it made the system easy to tune as we adjusted the pace and difficulty of combat.

Enemy navmesh pathfinding

Core Design Pillars

Design Pillars Team Vote

As Lead Designer, one of my biggest responsibilities was defining the core pillars of the game—pillars that supported our creative vision, but more importantly, got the whole team excited about what we were making.
We threw around plenty of adjectives like “chaotic,” “unpredictable,” and “playful” before ultimately landing on an experience that was action-packed, somewhat controllable, silly, and tactile. This, we felt, best served the core concept of “sumo wrestling hamsters” and matched with an art style we were all jazzed about.
The mobile controls lent a unique sense of tactility and play. Our pillars aimed to capture that balance of wild, unpredictable action and ridiculous combos with a constant sense of progression to keep players engaged—and to get Chester closer and closer to achieving his dream.

Designing the Game Loops

Early in development, we had a problem: our prototype was fun, but how could we add depth and scale the difficulty without losing the simplicity that made it special? We went through a lot of iteration searching for our “atomic variable”—the primary knob we could turn to make the game easier or harder. Eventually, we realized that hamster speed and unpredictability were the key. The faster and more erratically the hamsters moved, the more challenging the game became.
From there, the rest of the difficulty curve and mid-term game loop started falling into place. I leveraged the hamster stat system I had built to carefully tune each hamster, giving them distinct behaviors and personalities while making sure every encounter still felt fair and manageable for the player at their current power level. I also designed distinct levels, each with a unique charm and mechanic, to help keep matches fresh and exciting. Trying out and discovering new combinations of relics also helped me accomplish this goal.

Polish with a Purpose

Animated Enemy HUD

Knockout Effects

Aim Ability Distortion

We saved roughly half of our development time for polish and all the extra details that elevate the player experience—and we needed every second of it. We added juicy effects like time slowdown, lens flares, and screen flashes to the aiming mechanic to give every shot more punch. Hamster ball collisions use an exaggerated scaling effect to make impacts feel bigger and more satisfying, while tons of UI effects helped solidify our saturated, pixel pop-art visual style.
A lot of that polish wasn’t just there to look good though. We used it to communicate mechanics and player feedback as clearly and immediately as possible. The stamina system, for example, has a persistent bar at the top of the screen as well as a contextual bar that appears next to a hamster whenever they take a hit. Having that bar appear at the moment of impact turned out to be especially important because it creates an immediate connection between getting hit and losing stamina.
Another example is the flame effect that shows the direction of the player’s most recent swipe. During testing, players sometimes had trouble telling whether a swipe had registered when fighting against conflicting momentum. The flames solved that problem while also reinforcing the speed and energy of the hamsters—turning what started as a readability issue into another part of the game’s visual feedback.