If you just want to run the file, you can find the executable under the "Relesases" section. Download the release that corresponds to your OS and have fun!
Building from source: Make sure cargo is installed on your computer. Clone this repository, cd into it, and run cargo run to play.
Use the arrow keys to change the direction of the snake.
Made using Bevy
From this tutorial
Changes from tutorial:
- Better system for restarting upon death
- All components with the
Sizecomponent are queued (happens to be all components that need to be reset) and those are despawned
- All components with the
- Solved opposite direction input bug
- Created
QueuedInputcomponent that is updated on input, this component is then read during the movement state
- Created
- Food cannot spawn on the snake anymore
- Created
OccupiedPositionsthat would update each movement cycle and keep track of which spots can't have food in them
- Created