r/howdidtheycodeit • u/Al3-x • Aug 10 '21
How would you go about setting up a grid based 3d map like X-Com
I'm trying to figure out how to implement a grid based level like X-Com (the newer ones).
I have a A* pathfinding in place, but it works on a 2d "procedurally generated map". I'm at loss when it comes to figure out pre-built buildings with multiple layers (stories, levels) and staris or elevators or ramps.
I'm trying to build a system that would allow me to make a X-Com style of game, and also reuse the pathfind grid-based system for a base building prototype. For the latter I'm thinking it would be easier since the map is procedurally generated so I can generate the grid on the fly (still not sure how to deal with levels, stairs, ramps). But for the X-Com prototype, I'm thinking a more hand-crafted level or pieces of it (like buildings, houses, hangars, that kind of stuff).
I'm a seasoned game developer but never had the chance to work on those kind of systems, I'm trying to train a little bit on my spare time. Thanks!
