Individual academic projectDesktop version

Brick Breaker

One arena. Several rules to coordinate.

Six levels, four brick types, powerups and local two-player co-op. My focus is contact ordering, effects and shared progression.

My workI develop levels, collision rules, effects, local co-op and their interface.

Brick Breaker: four rows of bricks, one paddle and a ball in the first level.

Python / pygame-ce · Desktop

Pygame-rendered captures with scripted input. Desktop games.

First level in solo mode. Actual pygame-rendered capture during a scripted simulation; the original appearance is preserved.

Brick Breaker belongs to the same Python collection as Pong and shares its launcher, interface components and JSON storage. Its game model remains separate: multiple damage sources alter one shared level.

From bricks to effects

Standard

One durability point: one impact destroys the brick.

Reinforced

Two durability points: the first contact damages it without destroying it.

Explosive

Destruction adds active neighbours to a damage queue in stable order.

Bonus

Destruction may create a pickup, within the limit of existing objects.

The four brick types and their rules.

Six formations are declared as immutable grids that build fresh bricks at each level’s start. Standard, reinforced, explosive and bonus bricks combine progressively; finishing level six produces victory. An explicit transition starts the next level while retaining score and lives.

Explicit ordering

A simultaneous contact must not become two conflicting decisions.

The sweep tests expanded rectangles and rejects separating contacts. At a seam, normals may combine, but only one brick—the lowest identifier—takes direct damage. Damage applies immediately, so the next source reads the updated state.

  1. Balls

    Stable spawn-identifier order.

  2. Lasers

    Firing order, after balls.

  3. Pickups

    Collection after contacts and losses.

Contact order within a simulation step.

Multiball adds separated balls up to three, while enlargement and lasers belong to one paddle. Timed effects refresh rather than stack. Explosions traverse neighbours through a queue; an inactive brick cannot score again.

Share a run

Two paddles, one shared run.

Each paddle stays in its half of the arena. Score, lives and progression belong to the team; enlargement and lasers remain individual. Losing a ball costs no life while another is still playing. The final loss resolves once before preparing a new launch.

The model consumes 1/120-second steps with a separately capped 60-frame-per-second renderer. Pause and focus loss suspend effects and clear held keys. Solo and co-op records are separate; only finished victories and defeats are recorded, not restarting or simply clearing a level.

Cooperative Brick Breaker: two paddles, two shared lives and the relaunch message after a loss.
Local co-op after losing a life: two paddles and a launch to prepare. Actual pygame-rendered capture from a scripted sequence.

Verification and limits

Isolated tests cover durability, collisions, explosions, progression, co-op, effects, saves and interface among other behaviour. Captures come from the pygame renderer under windowless SDL, with a scripted sequence and isolated records.

Game feel, level balance and two-player comfort on a physical keyboard still require physical playtesting. This desktop game has no browser version.