menu-17.png

Snake Game (C++)

This demo was created in as part of a university project, in it, my objective was to explore the SDL API and try to create a game from the ground up.

My main focus on the game was the inclusion of Local co-op with the interesting limitation of distance between the heads.

Proposition

The mechanics I will analyse are the main character body and his possible actions.

 

Main Character:

  • Body

    • Health

    • Connected to the heads

  • 2 Heads

    • Movement

    • Attack/Pick up action

 

The snake will be composed by two heads connected by the body.

The heads will be able to move according to the input of the players and when close to an enemy/pick up they can attack/pick it up.

The body will connect both heads like a chain, move with them and will prevent them from separate more than his length.

voltar-21.png

press to zoom

press to zoom
1/2