• Natanael
    link
    fedilink
    English
    1
    edit-2
    15 hours ago

    Definitely depends on the type of game, but it’s more likely the game stores data about which areas you cleared and then infer that the bodies of any permanently remaining enemy (like bosses) is to be displayed.

    Can vary even more for procedurally generated levels. If the set of enemies is fixed and stay in calculated positions in a map generated randomly, then it might store an array or something tracking the enemies.

    • @[email protected]
      link
      fedilink
      English
      1
      edit-2
      11 hours ago

      Procedurelly generated stuff is all about storing the differences from the procedural generation.

      So for example minecraft saves don’t store the terrain, they store how it differs (due to player interaction) from the procedurally generated baseline.

      (After all, all you need to recreate an untouched procedurally generate world are the bytes of the seed and nothing else)