Skip to content

Daviduxi/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ SNAKE GAME ๐Ÿ

๐ŸŽ๐Ÿ Classic snake game done with C!! ๐ŸŽ๐Ÿ

Note

This was the final project for the first year of programming with C. So the code may have some nuances that need to be improved, or some functions made less optimal at the direct request of the work instructions.

Warning

VSC has a few problems with running C programs, so at university we used the Pelles C program.

Tip

I recommend using a similar application, or if possible, the same one. To avoid file or library corruption.


โ–ถ How to play! ๐ŸŽฎ๐Ÿ•น๏ธ

  • Move the snake with the arrows (โ†โ†‘โ†“โ†’)
  • You die when you touch or crash into one of the edges. The goal is to get the maximum number of points, which you get by surviving and eating apples.
  • Every so often, objects appear: an apple that adds points, and an X that kills you. So be careful with the spawns at all times.

โ–ถ The code is composed of two files:

  • main โ†’ Contains the main body of the code, only with the calling of functions to optimize with the least number of lines of code.
  • library โ†’ Contains all the functions that are called in the main file, the purpose of functions is to clearly separate all parts of the code, so that any part of the code can be easily reused or modified.

About

Classic snake game done with C

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages