Introducing Hollow Core

Hollow Core is a first-person maze shooter that runs in the browser. Ride a lift through six sectors of a silent mining station, find keycards and hidden compartments, and shut down the Overseer. It is now one of the games on this blog.

Some author3 min read

Hollow Core is a first-person maze shooter that runs in your browser, with nothing to install. You ride a lift down through six sectors of a silent mining station, fight the maintenance machines that kept working after everyone left, and look for the keycards and hidden compartments that get you to the Overseer at the bottom.

It is the newest of the games here, alongside Nova Pinball and Island Flight.

Play Hollow Core

The start of the first sector: a corridor of server cabinets, with the player's weapon in view

Six sectors, one campaign

Each sector is a maze of corridors, rooms and lift shafts, generated from a fixed seed, so everyone gets the same campaign. A generated sector is only accepted if a checker can prove it can be finished. The keycards must be reachable before the doors they open, the lift must be reachable without finding any secret, and nothing may be walled in.

The threat level you pick at the start changes how many machines you meet and how much damage they do.

Some wall panels slide away when you push them, and red canisters explode and set off other canisters. Hidden compartments hold data cores and supplies.

Machines and weapons

Five kinds of machine guard the station:

  • Skitter: fast, and it bites.
  • Sentry: a hovering gun drone.
  • Trooper: fires bursts.
  • Warden: slow, but it fires orbs you can dodge.
  • Overseer: the machine at the bottom. The last lift stays sealed until it is destroyed.

There are four weapons: the Arc Prod (melee, no ammunition), the Bolt Pistol, the Scattergun and the Rail Repeater. The Bolt Pistol and Rail Repeater fire bolts, and the Scattergun fires shells.

Scoring and saving

When you clear a sector, a report shows the machines destroyed, the hidden compartments and data cores you found, and your time. Clearing a sector quickly earns a time bonus. Each sector also pays 1,000 points for destroying every machine, 1,000 for finding every hidden compartment and 1,000 for collecting every data core.

If you die, the sector restarts with the gear you arrived with. Your settings, best score and place in the descent are saved in your browser. There is no server, so nothing leaves your computer.

Controls

KeyAction
W A S D or arrow keysMove, strafe and turn
MouseTurn (click the view to capture the mouse)
Left click, Ctrl or FFire
E, Space or right clickOpen doors, push panels, use the lift console
ShiftRun
1 to 4, mouse wheel or QChange weapon
TabSector map
MMusic on or off
Esc or PPause

It is built for a desktop browser with a keyboard and mouse. There are no touch controls.

How it's built

The view is a software ray caster. The renderer casts rays into a 480 × 270 pixel canvas and draws the walls, floor, ceiling, light, sprites and weapon, and the browser scales the result up with pixelated rendering. It doesn't use WebGL or a 3D library.

There are no image or sound files. The textures and sprites are painted by code when the page starts. The art sheet below is one of the things the game generates this way.

The art sheet: textures, machines, pickups and effects, all painted by code

The sound effects are built from tones and filtered noise with the Web Audio API. The music is a small generative sequencer, seeded by the sector, so each sector always has the same tune.

The game logic doesn't touch the page, so the tests run under plain Node. They check that every sector generates and passes the completability checker at every threat level, that a scripted player can open every secret and finish every sector, and that random input never puts anything inside a wall.

Hollow Core has no third-party dependencies. Its code lives in web/games/hollow-core/ in this blog's repository.