bananu7 / rts

MIT License
7 stars 0 forks source link

buildings block units really badly #39

Closed bananu7 closed 1 year ago

bananu7 commented 1 year ago

The idea here is to make the units navigate well around buildings. The SC2 approach is to make buildings be a part of the navigation grid; if I constrain all buildings to integer sizes on the map grid, this could actually work fine, even before turning the map from grid to a navmesh.

The downside (or perhaps upside) is that walling-in is then an option; with the fog-of-war it's going to be complicated because the pathing could change depending on whether the other player walls in or not when clicked into a FoW area. That might be a topic left until FoW is actually done though.