Bodycam: Operation Blackout is a single-player first-person shooter for the browser, seen through the lens of a body camera. The inspection drones in a derelict industrial annex have turned hostile, and you have to find and disable all fourteen of them, from the pump room in the basement to the plant on the roof, with a service pistol and a compact carbine. The camera sets the look: a wide lens, sway as you walk, grain, and exposure that shifts as you pass from dim rooms into daylight.
A drone only spots you within 13 meters and with a clear line of sight. When it does, it turns to face you, pauses and flashes amber, and a little under a second later it launches an energy orb at the spot where you stood, so there’s time to step behind a wall or a machine. Cover stops its orbs and your shots alike. Each orb that lands takes 22 points of armor, and armor recovers after about six seconds without a hit. Most drones go down after two hits, and three of them take a third. If your camera goes offline, you redeploy a little way back, and the drones you’ve already disabled stay down. Press Q to scan, and the game plots a route to the nearest drone through doorways and up the stairs, with a marker on screen that leads the way and counts down the meters.
Four floors
Two switchback stairwells join four playable levels. You start on the ground floor in the intake corridor, the part of the building rebuilt from the body-camera footage, and a side room opens onto the works gallery: dispatch, switchgear and a motor bay with a parked coupe. Below, pressure vessels, gauges and switchboards crowd the utility basement’s pump room, and a service gallery leads on to the boiler room, the valve shop and the service stores. Upstairs, the records floor holds document intake, archive stacks, a survey office and a map room, and a link gallery leads back to the west stairs. At the top of the east stair, the roof plant is out in daylight among condenser banks, pipe runs and an aerial mast, on a roof darkened by rain. Three drones patrol the corridor and its side rooms, three each hold the basement, the works gallery and the records floor, and the last two are on the roof.




Drones, pistol and carbine
The inspection drones are modeled in code: a lofted shell from the battery door to the nose, four rotors whose blades change pitch, chord and sweep along their span, twin obstacle sensors in the nose, and a camera hung below on elastomer suspension. Each one hovers in a loop sized to the room around it, and several times a second it checks whether it can see you.


The service pistol holds 12 rounds and fires up to four times a second, and the compact carbine holds 24 and fires about seven. A reload takes about 1.5 seconds with the pistol and 1.9 with the carbine, a little longer from an empty magazine, and the count refills only as the weapon comes back to the ready. Right-click or the left trigger narrows the view for a focused aim, and you can’t fire while sprinting. Each weapon has its own reload, holster, draw and recoil timing, and the hand, the magazine and the weapon move separately: the empty magazine falls out of the bottom of the frame while the replacement comes in carried between palm and fingertips. R reloads even with a full magazine, so you can watch it, and switching away in the middle of a reload keeps its progress.

src/encounters.js: it fires only along a clear line, after a warning long enough to reach cover.Keyboard, controller or touch
With a keyboard and mouse, you move with WASD, look with the mouse or the arrow keys, fire with the left button or Space, aim with the right button, reload with R, pick a weapon with 1 or 2, scan with Q, hold Shift to sprint, open the floor plan with Tab and pause with Escape, and M turns the sound on and off. An Xbox controller, read through the browser’s Gamepad API, moves and looks with the sticks, aims and fires with the triggers, reloads with X, switches with the right bumper, scans with Y, sprints with a click of the left stick, and opens the floor plan with View and the pause menu with Menu. It rumbles when you fire, take a hit or seat a magazine. Press A on the main menu to start with it, and unplugging it mid-fight pauses the game. On a touchscreen, you drag on the left to move and on the right to look, with buttons to fire, scan, reload and swap. The floor plan shows one floor at a time, with your position, the drones still active and the current route, and the left and right arrow keys, the d-pad or the bumpers step between floors.
From footage to annex
The game is built around a clip. The project’s package description calls it a walkable Three.js reconstruction of the supplied body-camera footage: 23 seconds at 2560×1440, with sound, that walks down a graffiti-covered corridor with a pistol drawn, glances through two doorways and climbs a switchback stair to an upper landing. The README calls the intake corridor the original body-camera corridor, and the rest of the annex opens out from it. It also says the sampled photographic artwork derives from that reference, the pistol in your hand included, and that some of the graffiti and foreground artwork comes from small regions of the frame with reconstructed fine detail. From the main menu, Camera archive plays the original footage, or rides the reconstructed route: the same walk inside the engine, interpolated through 38 keyframes, with the clip’s own sound and a running timestamp that starts from the footage’s 14:33:31.


How it’s built
The game and its website are two pages that Vite 8 builds from one repository, and Three.js 0.187 is the only runtime dependency. The game’s code is 31 JavaScript modules in src/, 5,341 lines and about 255 KB. Apart from the coupe, there are no model files: the architecture, the machinery, the props and the drones are all built from geometry in code, and parts that share a material are merged so that repeated stair posts, radiators and lamp fittings draw in a handful of calls. On every push to main, a GitHub Actions workflow builds both pages with Node.js 24 and publishes them to GitHub Pages.
The Graphics menu sets the largest texture edge to 512, 1024, 2048 or 4096 pixels, 1024 by default. Every surface has a file at each size, and a change downloads the new set two files at a time, rolls back to the previous size if any download fails, and is remembered by the browser. At 4096, 33 of the maps load as KTX2 files with GPU-compressed mipmaps, through Three.js’s KTX2Loader. The annex’s walls, floors and roof use scans of concrete and bitumen with matching normal and roughness maps.
The fluorescent light is computed rather than painted on. When the level loads, a Web Worker bakes the light of every tube into a 3D texture of 114 × 50 × 71 cells, each about 27 cm on a side, by tracing rays from each cell to three points across each tube and testing them against the boxes of the walls and equipment, so cabinets and tanks cast shadows that soften with distance. The materials’ shaders, patched through Three.js’s onBeforeCompile hook, read that volume at every pixel. The windows of the original corridor, its side rooms and the west stair are rectangular area lights, the shaders paint window light onto the annex floors, and the roof has its own lightmap of how much sky each spot can see.
The camera comes last. The scene renders in linear light into a half-float buffer, and a final pass applies lens aberration, bloom and exposure, draws in the weapon, then adds the sensor’s highlight clipping and grain across the whole frame. At the 1024 setting and above, damp patches on the floors reflect what the camera can see, found by stepping through the depth buffer, and at 2048 and 4096 the scene is multisampled on GPUs that support it. Both weapons are flat images that this pass moves and bends. The pistol and the gloved hand holding it come from the footage. In the carbine picture, the support arm and the magazine move on their own bone transforms, nearby metal fills the patch the glove normally hides, and for the reload a separate glove image bends at the wrist with its fabric grain intact.
The scanner and the floor plan share a navigation grid. While the level loads, the game moves the player’s own collision volume a step in each direction from the start, a few milliseconds each frame, to build a grid of walkable points 40 cm apart, with separate cells for the overlapping flights of each switchback. A scan runs a breadth-first search across it to the nearest live drone, and Canvas 2D draws the floor plan. The sound runs through the Web Audio API. The two gunshots are short recordings, played at a slightly random pitch, and everything else, from footsteps and reload clicks to a drone’s alert, its orb and the hit on your armor, is a burst of filtered noise shaped in code, each handling sound triggered as its pose crosses a point in the animation.
The website
The repository’s root page is the game’s website, styled as a body-camera feed, with REC and unit labels over a looping in-engine capture of a drone in the corridor, which stays still if you’ve asked for reduced motion or turned on a data saver. It has the mission briefing, a facility index with a tab and a screenshot for each floor, notes on the loadouts, the optics, the texture sizes and the camera archive, and a field manual with keyboard, Xbox and touch controls. Both clips on this page play there in a dialog, and the footer links the credits and the source.
How it was made
The README’s asset notes say the body-camera footage and the sampled photographic artwork derive from the supplied reference, and that the carbine artwork was generated with the built-in ImageGen tool, from a brief that called for a photographic, contemporary matte-black compact carbine, black fabric gloves and subdued window light on a transparent background. Several other photographic sources are CC0 assets from Poly Haven: the concrete wall scan by Charlotte Baglioni and Dario Barresi, the worn concrete floor by Dimitrios Savva and Rico Cilliers, the bitumen and a worn metal plate by Rob Tuytel, the rooftop panorama, from Greg Zaal’s Teufelsberg Roof, and the coupe’s light probe, from Dimitrios Savva and Jarod Guest’s Small Workshop. The coupe is adapted from Car Concept by Eric Chadwick, copyright 2024 Darmstadt Graphics Group GmbH and based on Unity Fan’s vehicle design, used under CC BY 4.0 as an optimized copy with adapted materials, lighting and glass. The website’s fonts are Barlow, Barlow Condensed and IBM Plex Mono, under the SIL Open Font License.
The repository has two commits, both dated November 18, 2026. The first holds a README stub and the icon, and the second published the game and its website.
Play it
Play in your browser, or start from the website. The game needs a browser with WebGL 2. The sound comes on when you deploy, and the game pauses whenever its window loses focus. To run it locally, clone the repository, run npm ci and npm run dev, and open the address Vite prints, adding /play/ for the game.
Browse the source on GitHub. The creation date shown here is the GitHub repository’s UTC creation date. The cover and the floor and drone shots are the website’s own in-engine stills from public/press, with the cover shrunk with Lanczos resampling. The gameplay frame comes from the repository’s weapon-handling capture, the corridor pair is the first frame of the supplied footage and of the graphics preview, the tour’s poster is another frame of the graphics preview, the handling clip’s poster is the website’s own, and the code excerpt is from src/encounters.js.