snakesss

Crates.iosnakesss
lib.rssnakesss
version0.1.2
sourcesrc
created_at2022-06-19 21:14:04.225422
updated_at2022-06-20 07:33:16.17282
descriptionThe classic (2-player) snake game
homepage
repositoryhttps://github.com/Rqnsom/snakesss
max_upload_size
id609116
size815,589
Karlo (Rqnsom)

documentation

README

Simple 2-player snake game

Game made with a piston engine.

Note: It's really hard to capture a fun animation when playing solo a two-player game.

About

This was done as an educational challenge as a one-day hackathon. After watching this video, which sets up the coding ground for the basic snake game.

I wish I had more time to implement multiple gamestates (like MainMenu, ScoreScreen...), but it is what it is.

Enjoy!

Movement

  • Red player: arrow keys
  • Blue player: WASD keys

Every melon consumed lengthens the snake.

  • How to win: Avoid losing!
  • How to lose: Hit the enemy snake!
  • How to make peace: Frontal collision with the other snake (ain't these snakes peculiar creatures...)

General strategy:

  • The bigger your snake becomes, the higher the chance your opponent will not be able to avoid your elooongated snake body.

How to run

$ cargo run    # Should do the trick (from the repo root directory)
Commit count: 5

cargo fmt