Skip to content

Snake game made from a tutorial (and expanded!) using Rust and the Bevy framework.

Notifications You must be signed in to change notification settings

Nick0915/snake_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake

Install

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.

Controls

Use the arrow keys to change the direction of the snake.

Credits

Made using Bevy

From this tutorial

Changes

Changes from tutorial:

  • Better system for restarting upon death
    • All components with the Size component are queued (happens to be all components that need to be reset) and those are despawned
  • Solved opposite direction input bug
    • Created QueuedInput component that is updated on input, this component is then read during the movement state
  • Food cannot spawn on the snake anymore
    • Created OccupiedPositions that would update each movement cycle and keep track of which spots can't have food in them

About

Snake game made from a tutorial (and expanded!) using Rust and the Bevy framework.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages