Troll Slayer
Troll Slayer is a small top-down action game: explore the island, chop down trolls with your axe, drink potions to stay alive, and pick up armor for a few extra hits. A troll cave keeps sending reinforcements, so clear them out and reach the castle to win. Map, sprites, combat, and music are all generated in code — the whole game is one HTML file with no downloads and no server.
Play it here
Open full screen ↗Needs a keyboard — desktop or laptop works best. Click inside the game first, then: WASD to move, space or Z to swing the axe, E to drink a potion. Clear the trolls, then reach the castle.
Nothing you do here is sent anywhere — it all runs in your browser.
One file, no install
About 55 KB of HTML: the map, the sprites, the combat, and the music are all generated in code — nothing is downloaded.
Built with an AI pair
Written alongside Claude in an evening, from an empty file to a finished game loop with enemies, items, and a win condition.
Runs on your machine
A 2D canvas and the Web Audio API. No server, no account, no scores stored anywhere.
Want something like this for your business?
We build practical tools around the way your team already works.
Talk to Us