Turns a Raspberry Pi into a gaming platform. A simple snake game is implemented. Makes use of a SNES controller connected over GPIO.
- Add to
GAMES
inMakefile
- Add to
game_index_t
ingamedef.h
- Add to
gamedef.c
- Assets in
assets/gamename/*
- Code in
gamename/*
startFunc
is called once, thenrenderFunc
every frame- to exit, cleanup everything and call
GameExit
- define your images in
IMAGE_LIST
inglobal.h
Bytes | Corresponding variable |
---|---|
0 - 119 | Ekans_ScoresTableEntry gEkansHighscores[10] |
120 - 127 | char gEkansScoreName[8] |
Bytes | Corresponding variable |
---|---|
0 - 7 | char name[8] |
8 - 11 | int score |