Skip to content

Change water (and sand) update function #13

@svader0

Description

@svader0

Currently, the water update function (and maybe sand too! I forget) picks a random direction to move if there's an equal likelihood, aka there's air on either side. This is terrible for performance. Instead, have it pick based off whether the frame number is even or odd. We'd have to implement a frame counter int for this that resets when it reaches the maximum int value.

For example, if the frame number is 100439, go left, since its odd. if it was 100440, then we would go right.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions