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

Dies after getting repeated food #1

Open
DanEscudero opened this issue Feb 18, 2018 · 0 comments
Open

Dies after getting repeated food #1

DanEscudero opened this issue Feb 18, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@DanEscudero
Copy link
Owner

Whenever gets food, and gets it again next frame
OR
whenever gets special fruit and gets food within next 3 frames, dies.
To solve:
Add a counter, of 3 for special fruit, or 1 for usual fruits, and counts down every frame, from the moment gets the fruit. Only checks if head hits tail if this counter is zero.

@DanEscudero DanEscudero added the bug Something isn't working label Feb 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant