{"id":19529828,"url":"https://github.com/yayuniversal/homemade-pacman","last_synced_at":"2026-05-09T05:02:21.785Z","repository":{"id":74738953,"uuid":"417663052","full_name":"yayuniversal/Homemade-Pacman","owner":"yayuniversal","description":"Homemade Pacman with C++ and OpenGL","archived":false,"fork":false,"pushed_at":"2021-10-17T21:45:43.000Z","size":281,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T16:25:06.453Z","etag":null,"topics":["cpp","opengl","pacman"],"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/yayuniversal.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":"2021-10-15T23:26:17.000Z","updated_at":"2021-11-20T19:11:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"5768a4f7-108b-4a92-9f21-e83c12e9d3e7","html_url":"https://github.com/yayuniversal/Homemade-Pacman","commit_stats":null,"previous_names":["yayuniversal/homemade-pacman"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2FHomemade-Pacman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2FHomemade-Pacman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2FHomemade-Pacman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yayuniversal%2FHomemade-Pacman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yayuniversal","download_url":"https://codeload.github.com/yayuniversal/Homemade-Pacman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783111,"owners_count":19856776,"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","opengl","pacman"],"created_at":"2024-11-11T01:27:47.836Z","updated_at":"2026-05-09T05:02:16.723Z","avatar_url":"https://github.com/yayuniversal.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Homemade Pacman\nHomemade Pacman with C++ and OpenGL\n\n![homemade_pacman_screenshot](https://user-images.githubusercontent.com/56023249/137645276-d19c4043-2d7f-45b7-97dd-9903099c957c.png)\n\n\n## Clone\n\nClone the repository with the `recurse-submodules` option to clone the libraries repositories as well: \n```\ngit clone --recurse-submodules https://github.com/lilianmallardeau/Homemade-Pacman.git\n```\nThen move to the cloned folder.\n\n## Build and run\n```\nmkdir build\ncd build\ncmake ..\nmake\ncd ..\n./build/Homemade_Pacman levels/level0\n```\nTo run, the current working directory **MUST** be the root folder of the repository, because the program has to load the shaders files in the `src/shaders/` folder and the texture in the `assets/` folder.\n\n## Changing the game options\nSome game options can be changed in the `src/parameters.h` header file. Although their name is already kind of explicit, here is a brief description of each of them:\n\n| Parameter | Description |\n|:---------:|:-----------:|\n| `FULLSCREEN` | 1 to enable fullscreen, 0 otherwise |\n| `SCALE` | Initial size of each map unit, in pixels. Ignored if `FULSCREEN` is set to 1. |\n| `PACMAN_SPEED` | Pacman movement at each frame, as a float[^1] |\n| `GHOSTS_SPEED` | Ghosts movement at each frame, as a float[^1] |\n| `GHOSTS_NUMBER` | Number of ghosts |\n| `MIN_GHOST_INIT_DISTANCE` | Minimum distance between Pacman and the generated ghosts |\n| `GHOSTS_ANIMATION_SPEED` | Delay in sec. between each sprite change for the ghosts |\n| `PACMAN_ANIMATION_SPEED` | Delay in sec. between each sprite change for Pacman |\n| `BACKGROUND_COLOR` | RGB background color |\n| `WALLS_COLOR` | RGB walls color |\n| `TUNNEL_COLOR` | RGB tunnels color |\n| `PELLETS_COLOR` | RGB pellets color |\n\n[^1]: The size of each map square is 1, ie. a speed of 1 will make pacman or the ghosts move of 1 square at each frame update (which is pretty fast 😅)\n\n## TODOs\n- [ ] Make the texture and the shader for `MovableEntities` static to avoid creating one for each entity\n- [ ] Use smart pointers\n- [ ] Use delta time instead of render loop to update the movement of the entities, to make the speed of the game independent of the system\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyayuniversal%2Fhomemade-pacman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyayuniversal%2Fhomemade-pacman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyayuniversal%2Fhomemade-pacman/lists"}