Skip to content

Highly portable C version of the game Snake. Separates the dependent code from the independent code, maximises portability to other platforms.

Notifications You must be signed in to change notification settings

LeoBound/Snake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Snake

Highly portable C version of the game Snake. Separates the dependent code from the independent code, maximises portability to other platforms. When porting this game to other platforms, you need only change the code in LIB.c. Every other file is portable. Note that headers for libraries such as SDL2 are not incuded in other headers, only locally inside the c file. This speeds up compilation times by a lot because headers are only included where they are needed. The actual implementation of the functions in this file does not matter to any of the other files in the game. This forces that only the dependent code can be used here, and nowhere else. I consider even the usage of that standard library to be dependent code. For instance, when using libGCCVB, a virtual boy compiler, the standard library actually has not been implemented for that platform!

OSX Build

In addition, an OSX build in a .app file has been included in this respository. Because SDL has been compiled statically, it should run on your machine without any linking issues.

About

Highly portable C version of the game Snake. Separates the dependent code from the independent code, maximises portability to other platforms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.5%
  • Makefile 7.5%