CursedGP

Slot-car racing on a haunted diorama. Race on real circuits against an AI rival or a friend online. When night falls, the track turns into a diorama of terror.

Play it: https://isgudtek.github.io/cursedgp/

Inspiration

When we were kids, slot-car sets were the big toys of the house. Before computers, before quartz watches, a car on a plastic track was the most exciting thing in the room. The sets looked enormous back then. The older you get, the tinier they look, until one day you see the whole track on a table and realise how small it really was.

CursedGP is that memory, rebuilt in the browser and made a little darker.

What it does

It is a classic slot-car racing game, with a lot of choices:

  • Circuits: a set of tracks, from the classic figure-eight to long winding laps.
  • Solo time trial: beat your own best lap.
  • VS AI: race against a rival with its own personality, from a careful rookie to a maniac.
  • 1v1 online: open a challenge, wait for an opponent, and race a friend in real time.

The night turns into a diorama of terror. Monsters, pitfalls and surprises wait on the track:

  • a giant kaiju that stomps the track and swipes its head across the lanes,
  • a spider that drops webs across the lanes,
  • a gargoyle that spits orbs,
  • swarms of bats that engulf a car and slow it down,
  • skeletons that reach out from the verge,
  • pumpkins that hop onto the lane,
  • ghosts that swoop on a car and slow it down,
  • portals that swap your lane,
  • thunderstorms with long rolling thunder and earthquakes,
  • and wolf howls from the dark.

You can change the camera (TV cameras, chase, overview or free). On a phone you can race with one thumb on the throttle and the other on the view. In haunted mode, Shift fends off the hazards for a moment. Gameplay shortcuts

  • Space: hold to accelerate
  • Shift: shield from hazards
  • X: change lane use it to avoid obstacles, get better trajectories and come from behind-derail your opponent
  • C: cycle camera views
  • Z: find your car
  • M: sound on or off
  • Esc: back to title

Garage: pick your car from many models, see its top speed, acceleration and corner grip, and watch it turn on a preview before you race.

How we built it

  • JavaScript and Three.js for the whole game: the 3D scene, the track geometry built from one curve, the physics, the AI, the menus and the mobile controls.
  • Procedural art and sound. The cars, the graveyards, the forest, the church, the skeletons and the pumpkins are built in code. The sound is synthesised in the browser (the thunder, the wolf howls, the lap click), so there are almost no files to download.
  • Online play uses a hosted real-time messaging service: a publish-and-subscribe network that moves messages between the two players as they happen. The host decides every race event and sends the results to the guest, so both screens stay in sync.
  • The messaging key is never in the page. A small Cloudflare Worker (a serverless function that runs on Cloudflare's network) holds the key and signs short-lived access tokens. The browser only ever receives those tokens.
  • GitHub Actions builds the game and publishes it to GitHub Pages on every push.

Challenges we ran into

It was a steering game. The specification gave us a solid base: a track, a car, a race. Then the features kept coming. Every addition had to fit the same track geometry, the same physics and the same network model, and every new hazard had to be fair to both players online. Keeping the two screens in step was the hardest part: the host decides everything, and the guest only replays what the host sends.

The biggest practical challenge was the online mode on GitHub Pages. Online play needs a real-time messaging service, which needs a key, and anything published on a static site is public. We used the messaging service for the 1v1 rooms, and we needed the game to publish on GitHub Pages, so we parked the key on a Cloudflare Worker. The game now asks the Worker for a short-lived token, and the key never reaches a browser.

Other challenges were smaller but stubborn:

  • making the game smoothly playable on every device: a laptop with a mouse, a phone with one thumb on the throttle, and everything between,
  • keeping the track readable from every camera, from the overview down to a close chase view,
  • making the hazards strong enough to matter without making the race unplayable,
  • and making a diorama feel creepy at 60 frames per second.

Accomplishments that we're proud of

  • A racing game that is genuinely fun to play, with a physics model that rewards a steady hand.
  • A diorama that feels like a little world: the storm, the graveyard, the forest, the church and the monsters all share one dark night.
  • Online one-versus-one that works in the browser, with no install and no account.
  • A static site with no server to keep alive, except a small token service.

What we learned

  • Keep one source of truth. Every race event lives on the host and is replayed on the guest. That made online play predictable, and it made the hazards easy to test.
  • Make the effects visible. A hazard the player never sees is not a hazard. Much of the work went into making monsters, shields and pitfalls easy to read at speed.
  • Procedural art scales. Building the scenery in code kept the download small and let us tune the look quickly.
  • Never ship a secret to a browser. Anything in a static build is public. The token service is the honest way to give a web game access to a paid service.
  • Test the boring parts. Lap counts, camera order, the layout on a phone and the state of the online room needed as many checks as the game itself.

How we used Kiro

How we used Kiro

To make CursedGP, we started by setting a clear goal with the /goal command: define the track, the cars, and their physics before building anything. In Plan mode, that goal became a practical blueprint for the project.

Then we moved into Auto mode. Kiro turned the blueprint into working pieces and selected the model that best matched the complexity of each task. Because the project carried its own rules and working knowledge, Kiro did not have to start from scratch every time. The decisions stayed consistent from one feature to the next.

As the build progressed, hooks handled the repetitive work around each change. They backed up the game, ran lint checks, verified that new modules were wired correctly, and helped standardize the development process. The specs kept the requirements, design, and task list connected to the implementation, while custom agents provided repeatable workflows for adding features, running quality checks, and preparing a release.

We also used browser checks against the real development server and the built game. This allowed us to verify actual behaviour — such as race states, positions, interface text, and page errors — rather than simply trusting that the code compiled.

The biggest fun part was then the live steering. While Kiro was already working, we could give it new directions: make the bats fly away, move the chequered flag, change how the car leans in a corner, or add another gameplay amenity. Kiro could adjust the running build without forcing us to wait for a completely new session.

That combination of a clear goal, automated support, reusable workflows, browser verification, and continuous steering made the project lean and surprisingly fast to refine. We started with a solid foundation, and Kiro helped us keep improving it without losing consistency.

The main tools we made available through the build were:

  • Steering rules
  • Hooks
  • Specs
  • Custom agents
  • Browser checks
  • Live steering

Kiro is an incredible tool, and it is scarily fantastic!

Where Kiro made the difference

Kiro’s main advantage was its spec-driven approach to development. Rather than treating each prompt as an isolated request, it maintained continuity between the project’s objectives, specifications, implementation tasks, steering rules, hooks, and validation procedures. This provided a stable engineering context across sessions and helped keep the game aligned with its original design as new features were introduced. The ability to switch between frontier models and less expensive, task-focused models was also significant. More capable models could be reserved for complex planning and reasoning, while cheaper models handled well-defined implementation and repetitive work. This allowed us to reduce token consumption substantially while still achieving the intended result with precision.

Credits

  • Built for the Kiroween hackathon. The Kiroween banners are the hackathon's own artwork.
  • Car and scenery models: Kenney, CC0 (public domain).
  • Pixel font: Press Start 2P, under the SIL Open Font License.
  • 3D library: Three.js, MIT licence.
  • AI-generated music created with Manus AI from original prompts, used under Manus's applicable terms for personal and commercial use. Project rights retained by the project creator.

Built With

Share this project:

Updates

Submission history