Daddy needs a new pair of RAM!

edit: the fps are way better in smaller terminal windows with lower character count but then it’s hard to make out the dice. D:

edit2: code here (expires in 2 weeks)

  • Pudutr0n@lemmy.worldOP
    link
    fedilink
    arrow-up
    18
    ·
    14 hours ago

    I haven’t shared the source code yet because criticism is terrifying and I’m a horrible coder, but with the encouragement of the the community I might give it a shot. I don’t even have a codeberg account yet though.

    The post contains these two video links: https://files.catbox.moe/8rz9m7.mp4 https://files.catbox.moe/5d3n2k.mp4

    If you still can’t see them, maybe you can suggest a different hosting service, one that works for you? Or if you really really want the source code I suppose I could send it by DM on the meantime.

    • oce 🐆@jlai.lu
      link
      fedilink
      arrow-up
      9
      ·
      13 hours ago

      There are millions of professional coders who couldn’t do what you did there.

    • vrek@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      13 hours ago

      Just letting you know the original post video didn’t load and gave a 500 error in jerboa but those two links work. Looks impressive but I’m confused on how to read the die. Yes there is a giant banner telling me the value it chose but I’m struggling to figure out how the visuals map to those values, can you give some details on how to read the die?

      • Pudutr0n@lemmy.worldOP
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        13 hours ago

        Yes, the values are rendered on top of each face with “pixel” maps (ascii art) that have the character of the digit they represent as each pixel. These are later manipulated by the perspective projection.

        For example on this d6 you can see the top face has 1s written down (in the shape of a sideways one) and the front one has 4s written down in the shape of a skewed and sideways 4.

        In this specific color scheme there’s not a lot of contrast between the values, but even in the palettes with better contrast, good readability is something I’m kind of giving up on solving well.

        edit: might be clearer here:

        • vrek@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          4 hours ago

          In the second picture (with the d20) I’m guessing the face with “999” is actually a 9 but what is the value of the face with “999#111”…there is no value of 91 on a d20 :)