MarioKart64JS was made with AgentiLoop Agent!

AgentiLoop Agent!

You say it. Agent! ships it.

Agentic AI for your entire Mac. One app, any AI. Tell Agent! what you want in plain English and it doesn't just chat about it: it opens the apps, runs the commands, writes the code, builds it, tests it and keeps going until it's done.

macOS 14.6+Apple SiliconIntelNative Swift
The AgentiLoop Agent! window on a Mac: a status report on MarioKart64JS in the LLM Output panel (20 courses, 8 playable characters, 12,426 lines of JavaScript) above the activity log of the shell commands it ran

Why Agent! is ridiculously good

  • Drives your whole MacAnswers your email, drives Safari, builds Xcode apps, fixes code and runs your Mac apps for you. Not a chat box: hands on the keyboard.
  • Auto-PilotGive it a goal with /auto [goal] and walk away. It plans, edits, builds, checks its own work and fixes what broke, end to end.
  • Any AI you wantPick from 27 LLM providers, or stay 100% local with LM Studio, vLLM or Ollama. Your Mac, your model, your rules.
  • Native Swift, not a web wrapperA real Mac app wired into Accessibility, AppleScript and MCP, so it can click, type and script things other agents can't even see.
  • Goals that stickSet a goal with checkable success criteria and Agent! keeps grinding until every one is proven, not just "looks right".
  • The proof is this page16 courses, 8 drivers, online 4P races and Wii-style 3D karts, all built with Agent! using Auto-Pilot, Goals and editing via prompts.
Built by AgentiLoop Agent!

Mario Kart 64 JS

Fan project · Three.js · no emulator

Mario Kart 64, rebuilt from scratch in JavaScript by AI agents, supervised by the AgentiLoop Team. The low-res graphics and sound are extracted from a Mario Kart 64 (USA) ROM, using the n64decomp/mk64 decompilation as the map. Hi-res graphics come from MK64 Reloaded (press G), and Wii-style 3D karts are a keypress away (press 3). The game code is a port of the decompiled original, running natively in Three.js, WebGL and Vite.

16 Courses Online 4P Wii 3D Karts
MarioKart64JS animated 3D title screen. Click to play

Play online with up to 4 players  ·  any browser  ·  macOS universal Windows x64 / arm64  ·  Linux x64 / arm64  ·  Raspberry Pi

16native courses
8drivers
4×HD texture tier
0emulators
Built with AgentiLoop Agent!

Game Showcase

Four racing games made with AgentiLoop.ai. Free to play.

GoKart.games racing on Sunset Speedway

GoKart.games

A free arcade kart racer built with Godot 4 for macOS, Windows & Linux.

AgentiLoop Racing F1 Simulator at Monaco

AgentiLoop Racing F1

F1 in your browser: 18 real circuits, pit stops, tyre compounds, ERS and DRS on 240 Hz physics.

CrazyTaxi driving through the Arcade city

CrazyTaxi

A three.js reconstruction of the Sega Dreamcast Crazy Taxi, playable in the browser.

MarioKart64JS 3D race with Mario

MarioKart64JS

MarioKart64 ported to JavaScript, created with Auto-Pilot, Goals and editing via prompts.

GoKart and AgentiLoop Racing F1 are 100% original. MarioKart64JS and CrazyTaxi are fan-made reverse-engineering studies: free, not for sale, and not affiliated with or endorsed by Nintendo, SEGA or Formula 1. All trademarks belong to their owners.

Play it in your browser

MarioKart64JS title screen. Click to play

The full game runs right here at mk64js.gokart.games/play, no download: the same 240p / 480p / 960p / native resolutions and 4× HD textures as the desktop apps (press G).

Online play: pick 2P, 3P or 4P GAME and you race other people over the internet. A room starts when it fills up (or 15 seconds after the first player joins), CPU karts take any empty seats, and Mario GP, VS and Battle all work online. The browser, macOS, Windows, Linux and Raspberry Pi versions share the same lobby.

What's in the box

An experiment in how far AI-assisted development can go at re-creating a classic. Here's what works today.

All 16 courses

Every Mario Kart 64 track is rebuilt from course geometry and textures extracted from the ROM and verified against it, laid out by the n64decomp/mk64 decompilation.

The real soundtrack

A port of the decomp's sequence player decodes the VADPCM instruments and plays the original .m64 sequences in an AudioWorklet: title, menus and every course theme.

Kart physics

Karts ride the course surface in the track's frame and can't pass through walls. Ramps and crests send you airborne with the decomp's gravity and drag.

Items & roulette

Item boxes spawn where the original game puts them. Hit one and the item window spins through shells, bananas, mushrooms and the rest, at the original timing.

Wii 3D karts

Press 3 for 3D Wii-style karts and Lakitu with real shadows, a 3D title screen and 3D finish fly-overs, in place of the N64 sprites. Press 3 again to go back.

240p or HD

Play at an N64-style 240 lines, or 2×, 4× and native resolution with optional HD textures from the MK64 Reloaded pack. Press G to cycle.

Download

Small desktop apps for the latest release. None of them contain any game files: each one is just a native web view that opens the hosted browser version by its web address, so they always run the latest game, with the same 240p / 480p / 960p / native resolutions and online 2P-4P GAME. macOS uses the system WebKit (signed and notarized), Windows opens a Microsoft Edge (Chromium) app window, Linux a Chrome / Chromium app window (WebKitGTK fallback), and the Raspberry Pi the system WebKitGTK. No Electron. An internet connection is required.

Checksums: SHA256SUMS.txt · all releases

More about MarioKart64JS

Wii 3D karts: press 3

An alternative look, and yes, you can dig it. Hit 3 on the title screen and the N64 title becomes a 3D scene: Mario, Wario, Bowser, Peach and Toad in Wii-style Standard Karts driving at you down a scrolling road. Hit 3 again for the original art. In a race, 3 swaps every kart (each driver in their own Standard Kart) and the referee Lakitu for 3D models with real shadows. Your choice is remembered for the next race.

The 3D title screen

Animated 3D title screen: five Wii karts driving at the camera

Racing in 3D

Fly-overs after the finish

Cross the line on the last lap and the camera takes over like the console's: it swings round the kart to its nose, cuts to roadside shots, a high crane and a low tail shot. With the Wii karts on, your 3D kart is the star of every one.

Controls

Keyboard or gamepad. Enter, Space, click or the arrow keys get you through the menus; Esc or Delete goes back, L opens Options and R opens Data.

↑WGas
↓SBrake
←→ADSteer
SpaceDrift, release for mini-turbo
ShiftEUse item: hold to drag, release to drop (with ↓ / S a green shell goes backwards)
QUse item, a held banana is thrown ahead
DeleteRestart
GResolution: 240p / 480p / 960p / native
3Wii 3D karts on / off (title screen and races)
JJump mode: Jumps / Glue
NMusic on / off
MCourse menu
URL arguments

Add these to the game's address to skip the menus or switch settings, for example /play/?track=banshee&char=mario&cc=extra&mode=mario_gp&autopilot&3d=3d&graphics=960&jump=glue&showphysics=true

trackStarts a race on that course: luigi, moomoo, koopa, kalimari, toad, frappe, choco, mario, wario, sherbet, royal, bowser, dk, yoshi, banshee, rainbow; battle: big-donut, block-fort, double-deck, skyscraper
charYour driver: mario, luigi, peach, toad, yoshi, donkeykong, wario, bowser
cc50 / 100 / 150 / extra (mirror). Default 150, ignored in Time Trials and Battle
modemario_gp / vs / time_trials / battle. Default mario_gp
autopilotNo value: the CPU drives your kart
3d3d / 2d: Wii 3D karts on / off, like 3
graphics240 / 480 / 960 / native, like G
jumpjump / glue: kart physics, like J
showphysicstrue / false: show physics bodies, like P (physics also works)
players2 / 3 / 4 with track: join an online race
lobbyA ws:// or wss:// lobby server URL, kept for the session

3d, graphics and jump are saved like their keys. The game adds menu, from, room and you to its own links; you don't need to set them.

Run it from source

You need Node.js.

git clone https://github.com/AgentiLoop/MarioKart64JS.git
cd MarioKart64JS
npm install
npm run dev        # http://localhost:5173

Hi-res graphics (press G) come from the MK64 Reloaded pack.

On the roadmap

  • Character select highlighter for the animated faces
  • Battle mode on the 4 battle arenas
  • More gameplay parity: CC classes, AI personalities, Lakitu
New from AgentiLoop.ai · free & open source BOSS-MAN The office maze arcade game. Finish the TPS report, dodge the bosses, keep your red stapler. 🔫📎 Play free at boss-man.us →