SOVANN / App

Laser Logic

Laser Logic is a compact browser puzzle game where players rotate mirrors to direct a laser beam into a target. The game focuses on clear logical...

7/21/2026Views: 0Launches: 0

Laser Logic Project Report

1. The Concept

Laser Logic is a compact browser puzzle game where players rotate mirrors to direct a laser beam into a target. The game focuses on clear logical problem-solving: study the board, change a mirror orientation, observe the beam path, and solve the puzzle.

The finished game includes 20 playable levels, progression, reset and replay flows, a game menu, instructions, local sound settings, responsive Canvas gameplay, and mobile-friendly controls.

2. The Stack

The Stack: A single self-contained index.html built with vanilla HTML, CSS, and JavaScript. Gameplay is rendered with the Canvas API, feedback sounds use the Web Audio API, and player progress is stored with browser localStorage.

The AI Assist: Codex supported the project audit, UI implementation, Canvas rendering, laser-path logic, level progression, responsive design, accessibility review, sound debugging, game-feel polish, testing, and documentation.

3. The 1 Day Sprint

Morning (Hours 1–3): Reviewed the handoff, design rules, mockups, Sakurai game-feel references, and supplied UI assets. Established the single-file application structure, screen navigation, design tokens, responsive shell, modal layer, and home/gameplay layouts.

Afternoon (Hours 4–6): Built the responsive Canvas board, image asset loading, pointer-to-grid mapping, mirror rotation, laser reflection logic, loop protection, target detection, six initial levels, and progression. The level set was later expanded and verified to 20 playable levels.

The Finish Line (Hours 7–8): Completed menus, instructions, level pagination, local progress recovery, sound controls, completion screens, responsive and accessibility checks, and game-feel refinements including mirror snap feedback, laser glow, reflection accents, target pulses, and reduced-motion support.

4. The Roadblocks

Roadblocks: The main technical challenges were keeping the Canvas sharp and touch-accurate across portrait screen sizes, preventing repeated laser states from freezing the browser, making local storage recover safely from invalid data, and ensuring Web Audio begins only after a user interaction. The final QA environment also blocked automated inspection of a local file:// browser tab, so direct-file syntax, gameplay, and source-level validation were used where live browser-console inspection was unavailable.

5. Key Takeaways

A focused puzzle game benefits more from immediate, readable feedback than from excessive animation. Every mirror action now produces a clear response: rotation, movement feedback, an updated laser path, and reflection effects only when the beam truly reaches that mirror.

Keeping the game in one HTML file made the project easy to run, share, and maintain, while Canvas and local assets preserved the intended game-like visual style without requiring a framework or backend.

My final thought: Laser Logic became a complete, lightweight puzzle experience: simple to open, clear to play, responsive on touch and desktop, and satisfying to solve.