← All games

Purgatory

An original gothic arena shooter with 24 levels, five weapons with ten fire modes, Rapier ragdolls, five chapter themes, a four-step graphics fidelity slider, and no reloads, built with Three.js for Linux and the web.

Freezing a brute with the Freezer, then shattering it with the shotgun.
Freeze, then shatter: one of Purgatory's weapon combinations, on the Ultra graphics step.

You are a soul with a shotgun and nowhere left to go. Purgatory throws you into sealed arenas, including a moonlit cemetery, a cathedral of ash, a soul-burning foundry, a drowned city, and the Abyss itself. The gate opens only when every wave of the damned is dead.

It’s an original homage to the fast, crowd-clearing arena shooters of the early 2000s, Painkiller (2004) above all. It isn’t affiliated with or derived from that game; the names, levels, code, models, sounds, and music are original or openly licensed.

Momentum, not reloading

There’s no reload key. Every weapon has two fire modes, and the best tools are combinations. Freeze an enemy, then shatter it with the shotgun. Shoot a stake into your own grenade to launch it. Fire both barrels of the Tempest to call down a storm orb. Every kill leaves a soul that heals you a little; collect 66 and you become the Wraith for fifteen seconds, invulnerable and four times as deadly.

The arsenal: the Thresher, a spinning melee blade whose head you can hurl and recall; the Shotgun / Freezer; the Stake Launcher / Grenade, whose stakes ignite over distance and pin bodies to walls; the Rocket / Chaingun; and the Tempest, which throws shuriken or chain lightning that leaps between targets. The weapon bar shows both reserves of every weapon, and a weapon that runs dry clicks and hands you the best one that can still fire.

The damned, and their generals

Shamblers, skeletons, and hounds rush you; monks and floating witches throw hellfire from range; knights carry swords; brutes soak up punishment. Every melee attack winds up with a growl, panned toward the attacker, before it lands, so you can always dodge it. Each chapter ends with a general that fires projectile volleys, summons reinforcements in rage phases at 70% and 35% health, and sends out expanding shockwaves you have to jump.

Danger is shown as well as heard. Red arcs around the crosshair point to whatever hurt you, a dashed arc warns of hellfire from off-screen, and chevrons at the screen’s edge point to the last hidden enemies of a wave and to the open gate. At a quarter of your health the readout pulses red, the screen’s edges darken, and a heartbeat quickens as health falls. When you die, the death screen names what killed you, lists what hurt you most, and says how that attack is avoided.

A chapter general's boss bar and an expanding shockwave ring in Dune Sepulchre.
A chapter general in Dune Sepulchre.

The campaign runs five chapters, 24 levels, 104 sectors, and 22 environment themes, each chapter with its own combat theme. A new campaign asks for a difficulty: Reverie, Purgatory or Torment. Progress saves as every wave begins, so Continue resumes the wave you quit with the supplies you had. Each level hides a relic; find it or collect 25 souls there to earn that chapter’s Grave Tarot card, which gives thirty seconds of double damage, extra speed, or invulnerability once per sector. Cleared levels keep records of your fastest clear, most kills and deathless runs.

Graphics fidelity and options

One slider under Options › Video has four steps, and every step plays the same fight; only the picture changes. Low has no shadows, ambient occlusion or antialiasing, for weak and integrated graphics. Medium, the default, adds sun shadows and FXAA. High adds bloom on lamps, fire, blasts and muzzle flashes, a colour grade and vignette, and ambient occlusion. Ultra adds stronger bloom, 4096-pixel shadows refreshed every frame, full-resolution ambient occlusion, SMAA, denser particles and up to twice the pixel density. On the integrated Radeon it was measured on, a 1280×800 frame rendered in about 0.8 to 1.0 ms on Low and 1.8 to 2.3 ms on Ultra.

The same frame of Hallowed Ground, Frostbound Crossing and Cathedral of Ash on Low, Medium, High and Ultra.
The same three frames on Low, Medium, High and Ultra.

Every keyboard, mouse and controller action can be rebound, two per action, the sticks can be swapped for left-handed play, and sprint can be held or toggled. There are separate mouse and stick sensitivities, a stick dead zone, controller vibration, inverted look, a HUD scale from 75 to 150%, a crosshair in four styles, five colours and several sizes, and reduced camera motion. Menus work with the mouse, the keys or a D-pad, fade in, and light up when pressed, and the key line at the bottom names the controller’s buttons when one is connected.

What it’s built with

Purgatory is TypeScript on Three.js r180, bundled with Vite. The same build runs in any WebGL 2 browser or inside an Electron desktop shell, packaged as an AppImage for Linux. The desktop shell is locked down: the renderer is sandboxed with context isolation and no Node access, and the preload script exposes only save, fullscreen, and quit.

Gameplay advances in fixed 1/60-second steps, decoupled from rendering, with its own seeded random sequence, so a seeded fight replays exactly at any frame rate and on any graphics step. Each frame draws motion between the last two steps, so it stays even on 120 and 144 Hz displays. Physics is a hybrid. The player and living enemies use fast swept-box collision against the arena. When an enemy dies, its current animated pose is handed to a Rapier 3D ragdoll. Grenades are rigid bodies with continuous collision detection, and stakes ray-cast ahead of a flying corpse and pin the struck bone to the architecture with a spherical joint.

There are no audio files at all. Gunfire, footsteps, pickups, enemy telegraphs, and the five chapter themes are oscillators and filtered noise generated at runtime with the Web Audio API. Each theme thins to a drone between waves and grows a layer while a general lives, scheduled on the audio clock so its tempo never follows the frame rate.

How it was made

Every environment, weapon, and enemy costume is built by headless Blender Python scripts, which handle procedural masonry, baked weapon materials, animation retargeting onto new rigs, level-of-detail reduction, and optimized GLB export. Those scripts start from CC0 sources (models, materials, and the HDR sky from Poly Haven, plus a zombie model and animations by Rikindle3D from OpenGameArt), and the full manifest is in the repository.

The game was built with AI coding agents, following OpenAI’s guide to building games with Astra. After launch it went through twelve rounds of improvements, each run by a fresh AI session and pushed only after its logs were checked. Those rounds found that on a 144 Hz screen, 58% of frames showed no movement while walking, and added the chapter themes, rebinding, the death recap, the low-health warning, the difficulty choice, mid-sector resume and the fidelity slider. They also measured the HUD’s contrast over bright snow and sand and in crowded fights until every label held its target. The tests now include 181 Vitest checks and in-browser scenario scripts for every fire mode, enemy, environment and boss, run in Electron and in Firefox, plus a balance autopilot that has played all 104 sectors.

The trailer is rendered by the game itself: a Python script drives scripted shots offscreen at 1920×1080 on Ultra in virtual time, so every frame is identical on every run, then scores the cut with the game’s own synthesized sound and chapter themes.

On phones and tablets

The likeliest reason the browser version crashed on iPhones was texture memory. The game uploaded 141 embedded 1024-pixel textures with mipmaps, though only 54 of them were different images. Identical images are now shared on every platform with no visible change, and phones and tablets also get 512-pixel textures, a half-size sky, and the later arenas only when a level needs them. In a fight on the iPhone profile, graphics memory fell from 960 MB to 123 MB, and the test browser’s own peak from 7.7 GB to 2.3 GB.

On a touchscreen there’s a move stick, a drag to look, FIRE, ALT, JUMP, RUN, weapon ◀ and ▶, USE, TAROT, INSPECT and pause. Every button is at least 44 pixels and clear of the notch and home indicator. The session also fixed quick taps on JUMP or FIRE that were lost between frames, and a stick that dropped the first finger when a second one landed. The controls appear only on touchscreens with no mouse or trackpad, or after a touch, and the menus, which were cut off on phones, now fit either way up. If the browser kills the tab, the next visit says so and offers the lightest settings.

Hallowed Ground on an iPhone-sized screen, with a move stick on the left and ALT, FIRE, JUMP and RUN on the right.
Hallowed Ground on a phone, in a headless iPhone 15 profile on its lightest settings.

It has only been played in headless test browsers with iPhone, iPad and Android phone profiles so far. A real phone still has to confirm iOS’s memory limit, sound, frame rate, and how the controls feel under a thumb.

Play it

Play it in your browser at nearbycoder.github.io/PainKiller, on a desktop or on a phone or tablet. It’s the current game, about 53 MB before the title screen, needing a browser with WebGL 2. Saves are kept in the browser, and sound starts on your first click, key or tap.

Download v0.1.0 from GitHub releases as an AppImage, a portable Linux archive, or a web build you can serve yourself. That release is the October 4 launch build: the whole campaign is there, but not the improvements above. For the current desktop version, build it from source with Node 22 or later. It supports keyboard and mouse, controllers, and touch, though controllers and touch have only been tested with synthetic input. Four of the themes use Blender-authored scenes and the other eighteen are compact procedural arenas, and the five generals share one rig.

Browse the source on GitHub. GitHub records the repository’s creation on October 4, 2026.

See it in action

Purgatory feature trailer

The 2:02 feature trailer, re-recorded after twelve rounds of improvements on the Ultra graphics step, with the game's synthesized sound effects and its five chapter themes; there is no narration. All footage is scripted gameplay rendered offscreen in virtual time, so every frame is identical on every run. Re-encoded here at 540p. Full-resolution original on GitHub

Keyboard shortcuts

Shortcuts stay out of text fields. Extra shortcuts are off until you enable them on this device. Ctrl or Command K is always available.

?
Open this help
Ctrl / ⌘ K
Open site search
Alt A
Browse articles
Alt R
Open your reading list
Alt T
Browse topics
Escape
Close dialogs or leave article focus mode