• ColeSloth@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    102
    ·
    2 days ago

    Old school coding and game programing was magic. The clever tricks that nes game programmers came up with to work around hardware limitations was phenomenal. It went way beyond the bushes and clouds in mario being the same thing but in a different color.

    • Valmond@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      16 hours ago

      The old scrollers in non-consoles (consoles had hardware scrollers) used funky tech too to reduce overdraw. Fun times.

    • jasoman@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      1 day ago

      In oblivion on Xbox they even reboot the console on a loading screen to clear up ram.

    • General_Effort@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      1 day ago

      nes game programmers

      Were these guys even Real Programmers?

      Here’s a great talk by a guy who worked on a 1982 game for the Atari 2600, a game console first released in 1977. It’s a fascinating insight into the early evolution of computing. They didn’t work around limitations. They used a machine to do whatever it could.

      If anyone has ever wondered by what standard C is a high-level language, this is for you. Or if you want to know how we ever could have developed something to connect the abstract logic of some algorithm with some glowing pixels on a screen.

      Pitfall Classic Postmortem With David Crane Panel at GDC 2011 (Atari 2600)

      There’s an ancient myth that a god created the first pair of tongs. Tongs need to be forged in a smithy. Obviously, you need tongs for that.

      • VindictiveJudge@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        21 hours ago

        IIRC, someone got with the author of that bit of code to ask how they came up with it, but they had simply learned it from someone else. So they tracked them down and found that they had also learned it from someone else. They eventually landed on Greg Walsh as the original author, but for a bit the code had no known origin.

      • Blooper@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        23 hours ago

        I read this article and I know it’s written in English, but I’ve accepted defeat in trying to understand it.

        I write code for a living and I’m doing my best to ignore the feelings of inadequacy I’m currently experiencing.

        • xavier666@lemm.ee
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          17 hours ago

          but I’ve accepted defeat in trying to understand it

          I may have shared the link but even I don’t know how it how it works.

          It’s like admiring the Eiffel Tower; you can understand that it’s a marvel of engineering without understanding the underlying engineering concepts. Such experiences are rare but they truly humble you.

          Regarding the square root, understand the following concepts

          1. Bit shifting simply shift the bits to a certain side (Left or right) => 0010 << 1 0100
          2. Mathematically, it multiplies or divides the input number with a factor of 2, depending upon the type of shift
          3. If you shift the number n with a nice shift amount x (I have greatly greatly over-simplified this), then you can calculate the inverse sq. root since inverse square root is 2^(-1/2)
          4. Calculating the inverse square root manually will take lots of clock cycles, which was not feasible for a FPS game with the limited h/w
          5. Bit shifting is a lot faster since we are not computing, but instead shifting

          The resultant shifting gives us an answer which is close enough to the answer, and that is good enough for FPS games for calculation of reflections.

          Source for bitshifting

          PS: Someone who is more experienced in this domain can correct me if I’m wrong.