Dear mobile game devs. When I play games like that, I always wonder if it’s the physics engine that’s actually random and produces the result?

Or is the result calculated before the animation happens, and dictates the animation?

I’ve always wondered. I have some notion of programming, but from far back, and I’ve been scratching my head long enough about this.

Thanks in advance.

  • KeenFlame@feddit.nu
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    8 months ago

    Physics engines are rarely deterministic, which means most of these games use what you would call the “animation deciding results”

    It is very rare that it works the other way around contrary to what others have commented it is non trivial to make weighted deterministic random in this manner

    While technically possible, only very specialised games with reasons good enough to budget the programming required will go the route you describe as “result calculated before the animation”

      • KeenFlame@feddit.nu
        link
        fedilink
        arrow-up
        0
        arrow-down
        2
        ·
        8 months ago

        It’s really not! These days anyone can make games, I promise if you just have the drive, the tools available now are absolutely stellar in comparison to just a few years ago