Why is there a load() at all?

  • I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    For a personal project, I’m using load() because I don’t know which file I’m supposed to load when the scene starts. Also, said file can change during game runtime.

    In my case, I’m changing textures. With the game paused, the player can change some stuff, like the character’s hair. I don’t need to preload all of them, and maybe a preloaded one might not be the one that should actually be loaded in the end.

    • jackOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Okay, that makes sense. Thank you