C++ · SDL2 · scanning laser

LaserSnake

A classic snake game — cartoon snake with eyes and an animated forked tongue, red apple, menus, high scores — that plays on your screen and simultaneously burns the live game onto a real wall with a scanning laser projector. No laser? It's a perfectly good snake game anyway.

Download v1.30.0 Read the documentation

What it does

On-screen game

Fast, smooth SDL2 rendering of the cartoon snake, apple, score and menus. Resizable window, fullscreen, top-20 high scores persisted locally.

Laser projection

The same live scene is driven through an EtherDream-compatible scanning laser — snake silhouette with a bright-head-to-dim-tail gradient, apple, score readout, purple border.

Beam safety by design

The beam is disarmed by default. ARM is one explicit sticky switch; focus loss, controller errors, removal and exit all blank and disarm automatically. Double-Esc is a safety kill.

Multi-laser profiles

Connect several scanners at once. Each gets its own colour gains, global power, output window (scale + position on the wall) and beam-velocity budget, remembered per device.

Steady, flicker-free output

A continuous point-stream feeds the scanner (no frame boundaries), travels are double-blanked to kill ghost lines, and beam velocity is budgeted per laser so nothing smears.

Live preview panel

A “what the laser sees” mirror shows the exact point stream being sent — blanked travel in grey — with KPPS/point/fps readouts, test-pattern and calibration-sheet support.

Screenshots

LaserSnake main menu — play game, high scores, laser config, test patterns and quit — with the laser output panel, arm-lasers switch and debug information
Main menu and laser output panel
Virtual test rig — the intended output on the left next to the mirror simulation of the scanner rig on the right
Virtual test rig — intended output vs. mirror simulation
Gameplay — the cartoon snake with a forked tongue chasing the red apple during a two-second countdown, with score and speed readouts
In the game — snake, apple and countdown

Laser safety — read this

Downloads

Windows 10/11 x64. Runs fully offline — no internet needed at runtime. The game works with or without a scanner connected.

Windows installerv1.30.0 · per-user install, no admin required · ~4.1 MB
Download .exe
Portable packagev1.30.0 · zip — unzip and run, no install · ~2.9 MB
Download .zip

Note: I'm not buying an MS cert just to sign this free app, so you will get a SmartScreen warning when running it — that's expected.

MIT Licence with Website Attribution

Copyright (c) 2026 epicdomain.net

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

  1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2. Any public distribution, publication, or redistribution of the Software, including modified versions, must include clear attribution to the original author and a link to the original project website: epicdomain.net/lasersnake.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

Go deeper

The documentation below is generated directly from the source tree — features, configuration, controls and troubleshooting, all verified against the code at generation time.

Open the documentation →