Race To The Shuk
🫓 Corn the Sloth vs Herman Poppleberry race through Jerusalem dodging giant falafel to grab the last pita in the shuk. Ridiculous 3D browser game.
About This Project
race-to-the-shuk is a single-file 3D browser racing game in which Corn the Sloth and Herman Poppleberry, the AI co-hosts of the My Weird Prompts podcast, compete to grab the last pita in a Jerusalem market. Players change lanes and jump over rolling falafel balls, pedestrians, and Egged buses, which cannot be jumped and must be avoided by going around them. The game runs directly in the browser with no build step or dependencies, and is served from GitHub Pages. The Jerusalem streets, market stalls, buses, and falafel are generated procedurally in code, and the characters are loaded as Draco-compressed GLB models created with Meshy AI, with a procedural fallback if the files are missing.
The project uses Three.js as its rendering engine and includes an optional real-world mode that integrates the Google Map Tiles API via 3DTilesRendererJS. When a user supplies their own Google Maps API key, the course relocates to streamed photorealistic city geometry, with a default route down 7th Avenue in Times Square and a Jaffa Road course in Jerusalem. The game raycasts the streamed terrain every 200 milliseconds to keep the runners on the street surface. The README documents key restrictions and quota limits for the API key setup.
The project is primarily of interest to developers exploring lightweight Three.js games, procedural city generation, or integrations with 3D tile streaming. It also serves as a reference for keyboard and touch control handling in a browser game and for loading optional external 3D assets with a built-in fallback.