Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a basic digestion system #13

merged 1 commit into from Apr 23, 2019


None yet
2 participants
Copy link

commented Apr 22, 2019

This PR implements a basic digestion and starvation system.

Two components are added:

  • Fullness that stores the maximum fullness and the current fullness
  • Digestion that stores the rate at which fullness depletes

Three systems are added:

  • Digestion system to apply the digestion and modify the fullness
  • Starvation system to remove entities that starved to death (reached a fullness of 0)
  • Debug fullness system to visualize debug lines indicating the entities fullness.

Note that at the moment all entities die after 20 seconds because all values are constant and all entities spawn at the same time.

@marot marot referenced this pull request Apr 22, 2019


Feeding/hunger system #7

@khskarl khskarl merged commit 8fad920 into amethyst:master Apr 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.