Starfire Impact
Ten sectors, a boss at the end of each, and a health bar instead of lives. About thirteen minutes if you reach the end.
Arrow keys to fly, Space to fire. On a phone, hold and drag anywhere on the field. Fullscreen gives you the same full viewport the standalone build ran in; Esc leaves it.
How it works
This is not a demo written for the site. Starfire Impact is a game I built as a standalone progressive web app: ten sectors, ten bosses, custom sprites, a full run of about thirteen minutes if you get to the end. The original lives in a private repo. What runs above is that same code, and the port only had to solve a few problems.
Everything was global
The original game.js declared Game, Player, Entity, Boss, Enemy and a dozen more at the top level, which is fine on a page it owns. Here it is a set of small ES modules, one per entity and one per concern of the engine, and the page calls one function, mountStarfire(), which builds the markup, binds input and opens the game. The cleanup it returns cancels the animation frame, releases every listener and silences the audio. When you switch tabs the loop stops and a run in progress waits for you.
Five megabytes of sprites
The sprites behind the ships, rocks and bosses come to about 5 MB, so nothing is fetched until the game opens, and a loading bar covers the wait. A sprite that fails to load leaves its slot empty and the entity falls back to the vector art the game was originally drawn with, so a missing file costs you a nice sprite and not the run.
Two things I did change
The standalone sized its canvas to the window, so a laptop gave it about 1500 by 800 units of room. In a column that same field would be four times more crowded for the same spawn rates, which is a harder game, not a smaller one. The field is now a fixed 1280 by 720 that scales into whatever box it is given, so the column and the fullscreen button play identically and fullscreen is bigger rather than easier.
And I rebalanced it. Almost nobody was reaching the final boss, so I flattened the difficulty slope over sectors 6 to 10, cut boss health growth, capped how many things can be on screen at once, and gave the ship a longer moment of invulnerability after a hit. Sectors 1 to 4 are unchanged. To check it rather than guess, I wrote a bot that plays the real game loop with a hundred millisecond reaction time and ran it sixty times against each version: median sector reached went from 4.5 to 10, and runs that beat the final boss went from none to about three in five.
Leaderboard
More games
Flyer
One button, thread the gaps. The reachable band is derived from the physics, not guessed.
PlayType Triangle Duel
Pick a starter, then face the type that beats it. Win from a losing matchup or do not win at all.
PlayTyping Test
Thirty seconds of real Rust, indentation handled for you. WPM and accuracy, the usual.
Play