Back FoxCode
code design mobile

Project

Laser Reactor

Optical puzzle game: place and rotate mirrors, prisms and lenses to route a laser beam into the reactor across 100+ levels

Nuxt Vue TypeScript Tailwind Capacitor

Date

April 2026

Client

Personal Project

Role

Fullstack Developer

Duration

Ongoing

Status

In development

Laser Reactor is a puzzle game played on a grid. A source emits a laser beam, and the goal is to route it into the reactor by placing and rotating pieces. The reactor charges only when the beam hits it without a break for about a second and a half, with the power and color that the level requires.

There are 100+ levels, all designed by hand, and new ones are still being added.

Mechanics

  • Optics. Mirrors, half mirrors, splitters, lenses that raise beam power, prisms that change its color, filters and dichroic mirrors that react to one color only, polarizers and portals.
  • Obstacles and locks. Weak blocks that break under a strong enough beam, keys and gates matched by color and shape, fog of war.
  • Energy. Later levels add a second layer on top of the laser: solar panels, cables, capacitors, transformers, Tesla towers, boilers that produce steam, and fans that produce wind.

How it is built

  • Tick-based simulator. The beam moves one cell per tick, so effects have a visible order: a block cracks before the beam passes, a receiver starts emitting a moment after it is hit.
  • Beam rendering. The laser is drawn with Three.js and a custom GLSL shader. The pieces are Vue components, with GSAP for animation. There is also an experimental PixiJS renderer that draws the whole board on one canvas, which I use to compare performance on phones.
  • Level design. I design the levels myself. Two CLI generators are only a helper: they produce candidate layouts from a seed and a difficulty profile, and a solver checks that a layout can be completed.
  • Around the game. An in-game codex of pieces, tutorial overlays, hints, undo, ambient music and sound effects, English and Polish.

The app is a Nuxt 4 SPA that works as a PWA and is packaged for Android with Capacitor.

Laser Reactor screenshot 1