Re:Multiplayer tanks that demolish real buildings from OpenS...
by n4ze3m on Friday November 06, 2026 @05:39AM
(#50390675)
Thanks everyone for trying it! I didn't expect this much traffic, so sorry for the hiccups along the way.
- Streets and buildings come from OpenStreetMap using OpenFreeMap vector tiles. The server decodes the tiles and builds 3D models of the buildings that can be destroyed.
- The map is rendered using MapLibre, and the tanks, buildings and debris on top using three.js.
- The server simulates the physics at 30 Hz and is the single source of truth. The browser predicts movement of the player's tank to make the controls feel real-time.
- The state of the damage to the buildings is stored in Postgres. When a player has demolished a building, it remains destroyed for all other players who visit it afterwards.
- The lighting is modelled after the real sun position based on player location. Tokyo can be dark while the sun is still up in New York.
- Streets and buildings come from OpenStreetMap using OpenFreeMap vector tiles. The server decodes the tiles and builds 3D models of the buildings that can be destroyed. - The map is rendered using MapLibre, and the tanks, buildings and debris on top using three.js. - The server simulates the physics at 30 Hz and is the single source of truth. The browser predicts movement of the player's tank to make the controls feel real-time. - The state of the damage to the buildings is stored in Postgres. When a player has demolished a building, it remains destroyed for all other players who visit it afterwards. - The lighting is modelled after the real sun position based on player location. Tokyo can be dark while the sun is still up in New York.