Skip to content

meithecatte/rpi-game

Repository files navigation

rpi-game

Turns a Raspberry Pi into a gaming platform. A simple snake game is implemented. Makes use of a SNES controller connected over GPIO.

Adding a new game

  • Add to GAMES in Makefile
  • Add to game_index_t in gamedef.h
  • Add to gamedef.c
  • Assets in assets/gamename/*
  • Code in gamename/*
  • startFunc is called once, then renderFunc every frame
  • to exit, cleanup everything and call GameExit
  • define your images in IMAGE_LIST in global.h

Save format used by games

Ekans

Bytes Corresponding variable
0 - 119 Ekans_ScoresTableEntry gEkansHighscores[10]
120 - 127 char gEkansScoreName[8]

Ekans_ScoresTableEntry

Bytes Corresponding variable
0 - 7 char name[8]
8 - 11 int score

About

An arcade game for the Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published