I built a real-world GPS zombie game as a PWA. No app store, no downloads, just run
|
For the past few months I've been working on a browser-based game that uses your real GPS location to spawn zombies around you. The goal is simple: keep moving or get caught. How it works:You open the link on your phone, allow GPS access, and the game places you on a live map. Zombies spawn around your real location and move toward you. Your phone vibrates and plays audio alerts when they get close, so you don't have to stare at the screen. The only way to survive is to physically run. Tech stack:– Leaflet + OpenStreetMap for the map layer – Geolocation API + Web Workers for real-time GPS tracking – Service Worker + cache-first strategy (works offline once loaded) – No framework, vanilla JS to keep it lightweight for mobile – Manifest + service worker for PWA installability Hardest part: Making the GPS tracking accurate enough without killing the battery. The Geolocation API behaves differently on every device, and I had to implement adaptive polling intervals based on movement speed. It's completely free, no account needed, no ads, just open and play. Would love any feedback on the gameplay loop, the UI, or the concept in general. submitted by /u/mfernandes777 |