{"id":22295847,"url":"https://github.com/meithecatte/rpi-game","last_synced_at":"2025-03-25T22:34:12.792Z","repository":{"id":98788752,"uuid":"92303265","full_name":"meithecatte/rpi-game","owner":"meithecatte","description":"An arcade game for the Raspberry Pi","archived":false,"fork":false,"pushed_at":"2021-12-01T12:39:03.000Z","size":11713,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T19:49:12.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meithecatte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-24T14:44:31.000Z","updated_at":"2023-04-21T17:46:15.000Z","dependencies_parsed_at":"2023-06-26T16:34:32.574Z","dependency_job_id":null,"html_url":"https://github.com/meithecatte/rpi-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Frpi-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Frpi-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Frpi-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meithecatte%2Frpi-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meithecatte","download_url":"https://codeload.github.com/meithecatte/rpi-game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245555988,"owners_count":20634834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T17:43:20.030Z","updated_at":"2025-03-25T22:34:12.722Z","avatar_url":"https://github.com/meithecatte.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpi-game\n\nTurns a Raspberry Pi into a gaming platform. A simple snake game is implemented.\nMakes use of a SNES controller connected over GPIO.\n\n## Adding a new game\n\n * Add to `GAMES` in `Makefile`\n * Add to `game_index_t` in `gamedef.h`\n * Add to `gamedef.c`\n * Assets in `assets/gamename/*`\n * Code in `gamename/*`\n * `startFunc` is called once, then `renderFunc` every frame\n * to exit, cleanup everything and call `GameExit`\n * define your images in `IMAGE_LIST` in `global.h`\n\n## Save format used by games\n\n### Ekans\n\n| Bytes     | Corresponding variable                            |\n|:---------:| ------------------------------------------------- |\n| 0 - 119   | `Ekans_ScoresTableEntry gEkansHighscores[10]`     |\n| 120 - 127 | `char gEkansScoreName[8]`                         |\n\n#### Ekans_ScoresTableEntry\n\n| Bytes     | Corresponding variable                            |\n|:---------:| ------------------------------------------------- |\n| 0 - 7     | `char name[8]`                                    |\n| 8 - 11    | `int score`                                       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeithecatte%2Frpi-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeithecatte%2Frpi-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeithecatte%2Frpi-game/lists"}