haroldo-ok

Restunts 32x — Development skill for Claude Code

Development community

A W.I.P. vibe-port of the Restunts rendering core (the reverse-engineering of Stunts / 4D Sports Driving, 1990) to the Sega 32X.

How to install Restunts 32x

This entry records only its repository, not the path inside it, so there is no exact command to give. Open haroldo-ok/restunts-32x and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Restunts 32x does

A W.I.P. vibe-port of the Restunts rendering core (the reverse-engineering of Stunts / 4D Sports Driving, 1990) to the Sega 32X. It runs on real hardware and in accurate emulators (tested headlessly in PicoDrive). Ported using Claude.

Alternatives in Development

  • Happy Coder — by GrocerPublishAgent - Spawn and control multiple Claude Codes in parallel from your phone or desktop 15.7k ★
  • Generic Extract Skill — You are an Autonomous 3D Technical Artist Agent 14.1k ★
  • Microsandbox — Open-source self-hosted MicroVM sandboxes with sub-200ms startup, hardware-level isolation via libkrun 5k ★

README

Restunts 32X

A port of the **Restunts** rendering core (the reverse-engineering of *Stunts / 4D Sports Driving*, 1990) to the **Sega 32X**. It runs on real hardware and in accurate emulators (tested headlessly in PicoDrive).

`restunts.32x` is a 512 KiB ROM. Load it in a 32X emulator (PicoDrive, Ares, Kega Fusion, BlastEm-32x) or flash it to 32X hardware.

![screenshot](restunts_screenshot.png)

What it is

A 3D showroom that renders the **actual Stunts models**, extracted from the game's own resource files, using Restunts' real rendering pipeline on the SH-2:

  • 5 real cars — Chevrolet Corvette ZR1, Porsche 962, Lamborghini Countach, Lancia Delta, Acura NSX — each in its correct default paint colours.
  • 4 real track pieces — the vertical loop, corkscrew, pipe, and banked road (extracted from GAME1.P3S, the same shape format as the cars).
  • Driving mode — a real chase-cam drive around the DEFAULT.TRK circuit. The road, terrain, and car are all rendered from an arbitrary first-person camera (not just an orbiting turntable), the car is placed and z-buffered into the scene with the rest of the world, and simple arcade physics (accelerate, on/off-road friction, steering) drive it around. Press Start to cycle Showroom -> Track view -> Driving -> Showroom.
  • Pipeline: rotate → perspective-project (integer, no 64-bit divide) → flat-shaded fill with a per-pixel z-buffer for hidden-surface removal. A Stunts car isn't a convex hull, so a z-buffer (nearest surface wins) is what correctly shows the exterior; it's verified pixel-identical to an independent reference renderer.
  • All fixed-point math; no FPU. Sound slave runs the PWM mixer.

Press **A / C** to cycle through all 9 models.

Controls (3-button pad)

**Showroom / track view:**

Button Action
D-pad L / R Orbit (yaw)
D-pad U / D Pitch
A Pre