Skip to content

Winntr/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZJDxvd5vlI

Snake-Game

My take on the snake game, I went for a really wierd approach on how the snake works. The screen is a grid of rectangles from the sfml library and I change color of the rectangles based on the interactions in the game. The player has a head position and then has a vector of vector2's for the tail and I simply remove the oldest tail section and add a new one between the tail and the head to give the illusion of the tail following. The apples spawn randomly within the bounds and the player class controls everything other the the rectangles themselves.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages