Skip to content

Used fixed point arithmetic in energy & health #747

Open
@Indy2222

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions