Templates / Home Turf
A retro top-down game on your own real streets: type a suburb or postcode, take any car or bike, fight the crews and tag their blocks.
A game made with SPOE that runs live on this page, no account needed. One click makes it your own project, free: no credits, and the code is yours to read and change.
A free retro top-down driving game called Home Turf, where you drive your own real streets. Start screen: the title HOME TURF over a picture, a box "Your postcode or suburb" (with an optional country, Australia picked first), a Drive button, and a Use my location button that uses the browser's location only when pressed. A link ?q=<place> or ?at=<lat>,<lon> skips the start screen and drives that place. Finding the place: on Drive, look it up with OpenStreetMap's Nominatim (GET https://nominatim.openstreetmap.org/search?q=<text>&countrycodes=<cc>&format=json&limit=1), once per press, never while typing; say plainly when nothing is found or the network fails. The map: the real streets, buildings, parks and water around that point, from OpenFreeMap's free vector tiles. Read https://tiles.openfreemap.org/planet (TileJSON) for the tile address, then load the zoom 14 tile holding the point and the eight around it, showing a progress bar. Decode each Mapbox Vector Tile yourself in plain JavaScript, with no library: protobuf varints, layers, keys and values, features with their tags, and geometry commands (MoveTo, LineTo, ClosePath, zigzag), extent 4096. Use the layers transportation (by class: motorway, trunk, primary, secondary, tertiary, minor, service), building, park, landcover (grass and wood) and water. The look: retro top-down, our own style: dark asphalt roads drawn wider by class with faint lane lines, buildings as blocks in warm concrete tones with a short drop shadow so they read as raised, green parks, blue water, at a scale where a minor street is about three car widths. Draw the map once per tile onto an offscreen canvas and only the car and traffic each frame. The map stays north-up and the camera follows the car smoothly. Draw the cars in code as small retro top-down cars with headlights and a shadow, the player's in a bright colour. Driving: arcade feel, accelerate, brake and reverse, steering that tightens at low speed, a handbrake for slides, grass and parks slow you down, water slows you a lot, and buildings are solid: hitting one stops you with a small bump (check the car's corners against building shapes through a grid so it stays fast). Keyboard: arrows or WASD, space for the handbrake. Phones: on-screen left, right, go and brake buttons. Life: eight to twelve other cars that drive along the real roads, turning at junctions, and stop for you if you are in front of them. The screen: speed, the suburb's name, distance driven, and a small mini-map in a corner with you on it. Buttons: Share this drive (copies a ?q= link to this place), Take a photo (saves a picture of the screen), and Change place. Always on screen, small: "Map data (c) OpenStreetMap contributors, tiles OpenFreeMap". The place a player types or their location is never sent anywhere but the lookup and the tiles, and never stored outside their own browser. It runs smoothly on a mid-range laptop and a phone, and every road, building and park it shows is the real one. Pictures: one, for the start screen: an aerial view of a city at dusk with glowing streets, painted in a retro style, with no words, letters or logos (16:9).
How it works · Features · Models · Pricing · Docs · Blog · Handle checker · Handwriting to font · Faceless video · App ideas · Templates · Arcade · Compare builders · Alternatives · Best AI app builders · Planners and kits · Verify an export · Developer API · Start free
About · Download · Status · Security · Privacy · Terms · Refunds · Subprocessors · access@spoe.ai · Powered by Venice