example-jeepney-jam
Jeepney Jam
Your jeepney's accelerator is stuck flat out and there are no brakes. The road is narrow, endless and crowded with motorbikes, trikes, scooters, e-trikes, food carts and people. Swing the open back of the jeepney at anyone holding up a hand so they can dive in, then swing it out again at their stop and fling them through their doorway. Reach ₱500 as fast as you can. Everything you hit costs ₱1.
See DESIGN.md for the full design.
Play on macOS
From this directory, with Crystal, Cargo, CMake and HarfBuzz (Homebrew) installed:
./build # optimized build to /tmp/jeepney-jam
/tmp/jeepney-jam
./build debug makes a faster unoptimized build. The game reads its character models from assets/characters, so run the binary from this checkout.
Play in a browser
./build-web builds the game for browsers with the engine's web/build-game (see web/README.md). It needs Crystal, Emscripten (brew install emscripten), CMake, Rust and curl.
./build-web # optimized build to /tmp/jeepney-jam-web
python3 -m http.server -d /tmp/jeepney-jam-web 8000 # then open http://localhost:8000
Controls are the same as on the desktop. The web build uses the OFL fonts in web/fonts (Anton and Archivo Black) instead of the macOS system faces. URL options: ?JEEPNEY_MUTE=1, ?JEEPNEY_AUTOPLAY=1, and ?gcstats (logs each collection). Records last until the page reloads.
Play on iOS
./build-ios cross-compiles the same game for iOS 18 or later with the Metal renderer, the engine's UIKit host (engine/native/ios/host.m) and a Core Text font bridge (ios_font.m). It also builds bdwgc, the audio and Box2D libraries and the Rapier physics staticlib for the chosen target, and bundles assets/characters into the app. It needs Xcode, CMake and Rust (it adds the aarch64-apple-ios or aarch64-apple-ios-sim target with rustup). bdwgc is read from GARNET_IOS_GC_SOURCE, or v8.2.12 is cloned into /tmp/bdwgc-v8.2.12.
./build-ios simulator /tmp/jj-ios-sim # arm64 Simulator app, ad-hoc signed
xcrun simctl boot "iPhone 16 Pro"; open -a Simulator
xcrun simctl install booted /tmp/jj-ios-sim/JeepneyJam.app
xcrun simctl launch booted org.garnetengine.jeepneyjam
./build-ios device /tmp/jj-ios-device # arm64 iPhone app
For a device, set JEEPNEY_IOS_IDENTITY (a codesign identity) and JEEPNEY_IOS_PROFILE (a provisioning profile for org.garnetengine.jeepneyjam, or a wildcard team profile, or change CFBundleIdentifier in Info.plist) before building, then install with xcrun devicectl device install app --device <id> /tmp/jj-ios-device/JeepneyJam.app. JEEPNEY_IOS_DEBUG=1 makes an unoptimized build, which is much faster to compile but too slow to play.
Hold the phone in landscape:
| Action | Touch |
|---|---|
| Steer | Tilt the phone like a steering wheel. Centre is set when a run starts or resumes from pause. Small tilts are gentle; full lock is about 34° on Medium |
| Swing the back left / right | Swipe left / right anywhere. The swipe's length sets the depth; keep the finger down to hold it (drift, or the drop-off dial) and lift to release and throw |
| Honk | Tap |
| Pause | The II button at the top |
| Menus | Tap an item or a route in the picker; AGAIN / TITLE buttons on the finish screen |
| Tutorial | Tap to continue; SKIP (top right) to skip |
The pause menu switches steering between tilt and an on-screen slider (bottom left, for accessibility) and sets tilt sensitivity; both are remembered. The Simulator has no motion sensors, so it always shows the slider. A connected game controller uses the stick, the shoulder buttons to swing, A / B and the d-pad.
Launch options for checks (pass them to simctl launch with a SIMCTL_CHILD_ prefix, for example SIMCTL_CHILD_JEEPNEY_AUTOPLAY=1): JEEPNEY_AUTOPLAY=1 starts a run on autopilot, with JEEPNEY_START_PESOS, JEEPNEY_SEED and JEEPNEY_DIFFICULTY as on the desktop. JEEPNEY_STEERING=slider|tilt overrides the steering setting, JEEPNEY_RENDER_HEIGHT sets the render height in pixels (default 860), JEEPNEY_MUTE=1 disables audio, JEEPNEY_PROFILE=1 logs frame timings to the console every 300 frames (xcrun devicectl device process launch --console ...), and JEEPNEY_TOUCHES scripts synthetic touches in screen fractions, for example "2:tap:0.2:0.62; 6:swipe:0.6:0.5:0.85:1.2" (a tap at 2 s, then a right swipe held for 1.2 s at 6 s).
Controls
| Action | Keyboard | Gamepad |
|---|---|---|
| Steer | A / D or ← / → | Left stick |
| Swing the back left / right (hold) | Q / E or J / L | LT / RT |
| Honk | H or Tab | Y or X |
| Pause / back | Esc | Start or B |
| Menu | Arrows, Enter | D-pad, A |
| Restart | R | |
| Tutorial: continue / skip | Enter / Esc | A / B |
| Mute | M |
How to play
- Steering. The jeepney follows the road by itself and, with no steering or swing, eases back to the middle of the road, which traffic keeps clear: leave the controls alone and you hit nothing (but earn nothing). Steer off that line to dodge and to line up your swings.
- Pick up. People with a raised hand and a floating badge want a ride. The badge shows the fare: one to three ₱10 coins. As you approach, a ring appears on the ground: red is too close, green is the dive band. Swing the rear toward them so the back sweeps past at a green distance and they dive in. Too close and you bowl them over (−₱1). Too far and they belly-flop in the road.
- Flick, then drift. For the first third of a second a swing doesn't change your direction, so you can flick the rear at someone and keep going. The start of a swing gets a brief touch of slow motion. Hold it longer and the jeepney drifts away from the swing side. Drive near the middle: a full swing then sweeps the rear across to the curb instead of onto the pavement.
- Drop off. Each passenger's doorway gets a bobbing gold pin and a chevron drop zone painted on the road. Inside the zone, hold the swing toward the doorway. Time slows and a dial appears: let go when the arm is in the green (yellow is Perfect, +₱5) to fling them through the door. Miss and they hit the wall, and you get nothing. Fares are only paid on delivery. Drive past the doorway and they jump out the back unpaid, which at least frees the seat. Riders shout back as they land: thanks, delight at a perfect throw, or anger at a wall.
- Special fares have their own badge colour and rules:
- The Couple (pink): pick up both for +50% each. Pick up only one and they ride for free.
- The Backpacker (teal): always tips +25%.
- The Free Spirit (green): tips +100%, unless you hit a person while she's aboard.
- The Veteran (olive): +5% tip for everything you smash while he rides.
- Seats. There are twelve, six on each long bench. Riders spread out when there are few and shuffle up shoulder to shoulder as more get on. When you're full, hailers bounce off the crowded doorway.
- Difficulty. Picked after PLAY, easiest first. One-Way has only same-direction and parked traffic. No Auto-Steer has the same traffic, but the jeepney neither follows the road's bends nor eases back to the middle: you steer every bend. Two-Way adds oncoming traffic on the same road (with the auto-steer).
- A clean run is possible. Nothing parks where you pick up or drop off, traffic slowly edges out of your way (close in fast and you still catch it), and oncoming traffic waits rather than closing off both sides of the road.
One scene, title to nap
PLAY opens the difficulty picker over the title's frozen crash. Picking a route hands that very run to you: time eases back to full speed while the camera spins round behind the jeepney, then the tutorial plays on the same street (staged hailers on short trips, driven by the autopilot, freezing on comic captions: steering, hailers and the swing, the drop-off pin and zone, the dial, hits, special riders and the ₱500 goal). One pickup and one drop-off cover every outcome: after each take the tape rewinds (the jeepney backs along its own track while the world holds still, and the hailer or rider is put back) and it plays again with one thing changed: too far, too close, then aboard; a good throw, a miss, then a perfect one. ENTER or a tap carries on, ESC or SKIP hands over at once. "LET'S GO!" starts the clock and the HUD fades in. After the last fare the driver yells everybody out, they hop out the back, and a little further on the road runs into his home stretch. As he drives on down it the camera tilts up into the noon sky, flares white in the sun, and comes down on his yard with the jeepney already parked and him asleep in his chair, with the results.
The run loops. The start and end of every run happen on the same fixed home stretch (Street::HOME_SEED, Road::HOME_LENGTH): a straight of fixed width with the yard on the left, the title's crash spot just past it (Street::CRASH_S) and the road the tutorial plays on. Only the street between the end of the tutorial and the next home stretch is generated. The home stretch's segments are laid out once, in their own frame, and put back into the world wherever the road's next home stretch begins (Run#splice_home, while the ride home's camera looks back at the cab), so nothing is built on the way into the yard; the yard itself is put up a piece a frame while the title sits frozen and moved along with it. From the results, AGAIN or TITLE tilts the camera up again, puts him back in the cab and drives the jeepney out of the gate and down the road (depart.cr): AGAIN hands it to the player from there, TITLE drives on into the crowd at the crash spot and the title freezes over the burst, ready for the next PLAY. flow.cr has the states; intro.cr, tutorial.cr, outro.cr, yard.cr and comic.cr the scenes. HOW TO PLAY on the title always plays the tutorial; for now PLAY plays it every time too (Records::REMEMBER_TUTORIAL turns on remembering it). Restart and autoplay start a fresh run straight into play, just past the crash spot.
Your best time for each difficulty is saved in ~/Library/Application Support/Jeepney Jam/records.json.
Checks
./build spec # rules, road, driving, models, audio
JEEPNEY_CAPTURE=/tmp/jj ./build debug && JEEPNEY_CAPTURE=/tmp/jj /tmp/jeepney-jam
JEEPNEY_CAPTURE presses through the real flow and writes PNG frames: the title, the menu, the picker, the intro spin, every tutorial pause and rewind, "LET'S GO!", a pickup, the dial, a delivery, crashes, the boarding (board-panel.png) and fare (coin-panel.png) comic panels, the ride home (shout, hop-outs, the road, sky, pan down) and the finish. JEEPNEY_SEED, JEEPNEY_DIFFICULTY (OneWay, NoAssist or TwoWay) and JEEPNEY_FRAMES control the run, JEEPNEY_START_PESOS=460 reaches the finish quickly, JEEPNEY_SKIP_TUTORIAL=8 skips the tutorial 8 s in and JEEPNEY_DIRECT=1 starts the run straight away. JEEPNEY_OUTRO_TRACE=1 prints the jeepney's pose and the camera every step of the ride home up to the cut and saves a frame every 0.1 s. JEEPNEY_LEAVE=title (or again) then leaves the results and captures the drive back out of the yard; with title it carries on round the loop into PLAY. JEEPNEY_AUTOPLAY=20 plays the visible window on autopilot for 20 seconds and prints frame times (autoplay skips the title and tutorial). JEEPNEY_BENCH=1 adds per-frame timings and memory allocated per frame to a capture run (starting it directly); tools/alloc_profile.cr built with ./build tool-metal adds where that memory is allocated. JEEPNEY_NO_AA=1 turns off the antialiasing pass and JEEPNEY_NO_GLARE=1 the finish's sun glare, to compare. JEEPNEY_FINISH_BENCH=600 times that many frames of the results screen at the end of a capture run; build with ./build metal-release to time what a phone runs (the debug builds' maths swamps everything else). JEEPNEY_PROFILE=1 reports slow simulation steps (on iOS also frame, CPU and GPU times), and JEEPNEY_HIT_LOG=1 prints every hit with what was hit and what the jeepney was doing.
Tools in tools/ render model lineups (vehicles_lineup.cr, vendors_lineup.cr, characters_lineup.cr, characters_ragdolls.cr), the cabin with 2, 6 and 12 riders and the comic panels frame by frame (cabin_views.cr, which also times a panel render) and preview the synthesized sounds (sounds_preview.cr): ./build tool tools/vehicles_lineup.cr /tmp/lineup && /tmp/lineup. characters_bench.cr times building morphed locals: ./build tool-release tools/characters_bench.cr /tmp/bench && /tmp/bench.
How it's built
| Area | Files |
|---|---|
| Endless seeded road, straight and windy stretches | road.cr |
| Arcade handling: flick window, drift, wall bounces | drive.cr |
| Street frontage, doorways, signs, power lines, colliders | street.cr, signs.cr |
| Breakable assemblies, ragdolls and debris | actors.cr, parts.cr |
People: skinned characters authored in Blender (art/characters.py); crowd locals morph per person from one model per sex (art/people.py) |
characters.cr, morphs.cr, heads.cr, people.cr |
| Traffic, vendors, props, animals | vehicles.cr, vendors.cr |
| Hailers, dives, passengers, the dial, hits and recovery | mayhem.cr, town.cr |
| Clear pickups and drop-offs, a way past traffic | planner.cr |
| Rider replies | replies.cr |
| Ledger, fares and special-fare rules, the dial | ledger.cr, fares.cr, dial.cr |
| Cel shading (game-authored Slang): toon, road, person, hair-card and sky programs sharing the cel ramps | shaders/*.slang, shaders/cel.slang, kit.cr |
| HUD, stamps | hud.cr |
| The jeepney's cabin: benches, rails, ceiling, driver's area, fare box, signs; the seat layout | cabin.cr |
| 3D comic panels: fares passed hand to hand into the fare box (bottom right), passengers getting on (bottom left) | panels.cr |
| Title, picker and finish screens; the driver's yard | screens.cr, yard.cr |
| Title-to-finish flow, intro, tutorial, ride home, the drive back out, comic captions | flow.cr, intro.cr, tutorial.cr, outro.cr, depart.cr, comic.cr, app.cr |
| Synthesized sound effects, voices and music | sounds*.cr |
Everything is procedural except the character meshes. The cel look is the game's own shaders, written in Slang against the engine's garnet.lighting module and compiled for every backend (GL, GLES, Metal, Vulkan). After editing a .slang file, regenerate the checked-in outputs from the workspace root with scripts/garnet shaders build example-jeepney-jam/shaders; each program's typed parameter struct (such as Shaders::Toon::ToonParameters) is generated beside it. Models carry per-vertex colour, finish and wear, so an intact vehicle, stall or person costs two draws: one toon mesh and one ink shell.
example-jeepney-jam
- 0
- 0
- 0
- 0
- 0
- about 10 hours ago
- November 30, 2026
Wed, 02 Dec 2026 02:09:47 GMT