Hole City 3D . a browser game where you're a hole swallowing an entire city (Three.js, single HTML file)
A single-file 3D game inspired by Hole.io, built entirely with Three.js , no engine, no build step, just one HTML file you open in a browser. You control a hole that roams a procedurally generated city, swallowing cars, trees, streetlights and skyscrapers to grow bigger. There are AI bot rivals competing on a live leaderboard, a 2-minute timer, 5 growth levels, physics-based objects that tilt and fall into the hole, dust particle bursts, Web Audio sound effects, and touch joystick support for mobile. Everything the asphalt textures, building windows, and city layout is generated in code with canvas textures. I learned a lot about Three.js lighting (PCFSoft shadow maps, ACESFilmic tone mapping) and keeping a whole game readable in one file.
Tech stack
- Claude
- GitHub Copilot
- Vercel
Links
Prompt
Step 1: Act as a senior game developer. Build a "Hole City" game with 3D graphics.
→ Chosen: HTML + Three.js, realistic style with shadows, features: timer + score & level, AI bot opponents, falling/wobble physics, mobile joystick controls.
Step 2: Add everything — sound effects, dust particles on collapse, bot difficulty selector. Translate to English. Make the city bigger because it gets cleared too fast.
Step 3: Make the city even larger and raise the camera higher.
Step 4: Give my hole a white ring instead of just black.
Step 5: Use this image as the loading/start screen background.
Step 6: Remove the duplicated small logo on the start page.
11 likes · 6 comments · 19 views
Comments (4)
Sounds good <div>Let me try it will reach you soon</div>
thanks mate
I played with mobile here nice game though. But it seems it van only move forward and sidesway. But can't come downward or back. Moving forward alone and at a point it comes to an end point with blue sky above. I think it should be endless if it can only move sideways and upward it no endpoint at the top. I hope this will be helpful. Thanks and keep building Sasam ❤️
Reminds me of a more modern hole io. I really enjoyed this game, thanks for sharing once again. Great graphics. Sasam starting off August with a banger 🔥
Ain't gonna lie this is great
damn good<div><br></div>