Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Used fixed point arithmetic in energy & health #747

Description

@Indy2222

For the sake of determinism: for example float addition is not commutative due to precision issues.

Idea: implement a simple fixed point type in de_types which uses i32 as the storage. Use ~10 bits for fractional part. Ensure that the minimum and maximum representable value is small / large enough for the game purposes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions