{"id":20505155,"url":"https://github.com/sl-pirate/snake","last_synced_at":"2025-10-08T06:53:33.576Z","repository":{"id":143305869,"uuid":"589309508","full_name":"SL-Pirate/snake","owner":"SL-Pirate","description":"A Multi-Player Snake game in sdl","archived":false,"fork":false,"pushed_at":"2023-05-03T12:35:57.000Z","size":26711,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T07:56:26.441Z","etag":null,"topics":["cpp","cross-platform-game","game","multiplayer","multiplayer-game","sdl","sdl2","snake","snake-game","snake-game-2d","snake-game-in-cpp","wxwidgets","wxwidgets-gui"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SL-Pirate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-15T18:55:53.000Z","updated_at":"2024-12-15T20:17:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"4303cb2e-4a2a-40af-98b4-387b0c523781","html_url":"https://github.com/SL-Pirate/snake","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-Pirate%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-Pirate%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-Pirate%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SL-Pirate%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SL-Pirate","download_url":"https://codeload.github.com/SL-Pirate/snake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242103271,"owners_count":20072242,"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":["cpp","cross-platform-game","game","multiplayer","multiplayer-game","sdl","sdl2","snake","snake-game","snake-game-2d","snake-game-in-cpp","wxwidgets","wxwidgets-gui"],"created_at":"2024-11-15T19:44:17.592Z","updated_at":"2025-10-08T06:53:28.557Z","avatar_url":"https://github.com/SL-Pirate.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Multi-Player Snake game in sdl\n\n## ScreenShots\n\n![menu](https://raw.githubusercontent.com/SL-Pirate/snake/main/screenshots/menu.png)\n![game](https://raw.githubusercontent.com/SL-Pirate/snake/main/screenshots/game.png)\n![multiplayer](https://raw.githubusercontent.com/SL-Pirate/snake/main/screenshots/multiplayer.png)\n![paused](https://raw.githubusercontent.com/SL-Pirate/snake/main/screenshots/paused.png)\n![game over](https://raw.githubusercontent.com/SL-Pirate/snake/main/screenshots/gameOver.png)\n\n## build dependancies\n\n- wxWidgets\n- SDL2\n- SDL2_image\n- SDL2_ttf\n- SDL2_mixer\n- cmake\n- git\n\n## Building in linux\n\n```sh\ngit clone github.com/SL-Pirate/snake\ncd snake\nmkdir build\ncd build\ncmake ..\nmake\n```\n### To Run the program\ndo `sudo chmod +x ./snake`\n- This needs to be done only once!\n- after this is done just execute the `snake` binary from a command line or a graphical file manager.\n\n## Building for windows\n### Setting up building environment for windows\n\n1. Download and install wxWidgets from their official website\n1. Add the path_to_the_root_of_your_wxWidgets_folder to your system environment variables under the name `wxWidgets`\n1. Download the development packages of \n    - SDL2\n    - SDL2_image\n    - SDL2_ttf\n    - SDL2_mixer\n    \n    corresponding to your compiler\n1. Extract the development package of SDL2 and rename the directory as SDL2\n1. Extract the development package of SDL2_image to the same folder and rename it as SDL2_image\n1. Extract the development package of SDL2_image to the same folder and rename it as SDL2_ttf\n1. Extract the development package of SDL2_mixer to the same folder and rename it as SDL2_mixer\n\n    Now your directory should look like this\n    ```tree\n    {BaseFolder}\n    ├── SDL2\n        ├── cmake\n        ├── include\n        ├── lib\n        etc...\n    .......\n        SDL2_image\n        ├── cmake\n        ├── include\n        ├── lib\n        etc...\n    ........\n        SDL2_ttf\n        ├── cmake\n        ├── include\n        ├── lib\n        etc...\n    ........\n        SDL2_mixer\n        ├── cmake\n        ├── include\n        ├── lib\n        etc...\n    ```\n1. Add the path_to_the_root_of_your_SDL2_BaseFolder to your system environment variables under the name `SDL2`\n\n### Compiling\n- if using `MinGW32-gcc`\n```sh\ngit clone github.com/SL-Pirate/snake\ncd snake\nmkdir build\ncd build\ncmake .. -G \"MinGW Makefiles\"\nmake\n```\n- if using msvc\n```sh\ngit clone github.com/SL-Pirate/snake\ncd snake\nmkdir build\ncd build\ncmake --build ..\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsl-pirate%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsl-pirate%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsl-pirate%2Fsnake/lists"}