Search Unity

What is the role of tile-system in a game like Project Zomboid?

Discussion in 'Game Design' started by BIGTIMEMASTER, Jun 23, 2022.

  1. BIGTIMEMASTER

    BIGTIMEMASTER

    Joined:
    Jun 1, 2017
    Posts:
    5,181
    I understood the purpose of a tile system to be either for traditional board-game style games, or because it's an efficient way to handle procedural generation worlds.

    In a game like Project Zomboid where player and AI movement does not appear restricted by tiles, and the map is not procedural, what purpose does a tile world serve? Could it be for more efficient AI path-finding? I.e. rather than build a navmesh we just sample array of tiles to get type available for movement? Or helps with performance in loading/unloading?
     
  2. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,694
    I'd guess yes to both. Implementing a grid-based A* pathfinder is simpler than an irregular navmesh. And it certainly make it easier to identify boundaries for streaming bits of the map in and out.

    In addition, it might have made it easier for the devs to create the maps, using something like Tiled for example.
     
    angrypenguin and BIGTIMEMASTER like this.
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,882
    ^^^^
    This