• Valmond@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    22 days ago

    In todays lesson we are going to program the “string” class.

    Why on earth would you use C for a text adventure? Portability & size?

    Even the cheapest microprocessor out there like the $2 ESP32 has at least 2MB of storage.

    I’d love a text based adventure scene though, gimme a modern Zork :-) !

    • MurrayL@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      21 days ago

      There’s definitely a modern text adventure scene still alive and kicking - it’s called interactive fiction now.

      Check out IFComp to see what folks are up to!

      • Valmond@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        16 days ago

        Thank you, will do!

        Edit: there is a lot! Any classic rpg like ones you’d recommend? Say like the Hobbit text adventure for example?

    • tiredofsametab@fedia.io
      link
      fedilink
      arrow-up
      2
      ·
      22 days ago

      It’s actually one of the first projects I ever did back in the '90s. I was poor and didn’t have any kind of laptop so I wrote C code on paper and put it into a computer when I had access. So many mistakes. Fun experience, though.

      • Valmond@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        21 days ago

        So you mean it’s time to start a text adventure sub?!

        I remember figuring out asm codes and sprites for the C64 when I was in class 😋

        • tiredofsametab@fedia.io
          link
          fedilink
          arrow-up
          2
          ·
          21 days ago

          I never messed with assembly on the C64. I’ve actually considered trying to buy one just to mess with it and relive a bit of my youth (and also get that lovely SID chip and its sounds). My C64 days were mostly playing existing games and messing about with BASIC.