{"id":18448886,"url":"https://github.com/coding-pelican/pacman-c","last_synced_at":"2025-04-15T11:27:43.230Z","repository":{"id":244930826,"uuid":"816589570","full_name":"coding-pelican/pacman-c","owner":"coding-pelican","description":"Simple implementation of the classic Pacman game using ASCII characters in C","archived":false,"fork":false,"pushed_at":"2024-06-18T10:33:45.000Z","size":556,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T02:42:13.535Z","etag":null,"topics":["ascii","c","cli-game","console-based","console-game","game","pacman","pacman-game","terminal-based","terminal-game","windows"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coding-pelican.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":"2024-06-18T03:36:50.000Z","updated_at":"2024-09-15T07:45:01.000Z","dependencies_parsed_at":"2024-06-18T11:57:01.691Z","dependency_job_id":"4e138129-ca5b-49b7-8673-ca007400db9f","html_url":"https://github.com/coding-pelican/pacman-c","commit_stats":null,"previous_names":["coding-pelican/pacman-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fpacman-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fpacman-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fpacman-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-pelican%2Fpacman-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding-pelican","download_url":"https://codeload.github.com/coding-pelican/pacman-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239132704,"owners_count":19587107,"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":["ascii","c","cli-game","console-based","console-game","game","pacman","pacman-game","terminal-based","terminal-game","windows"],"created_at":"2024-11-06T07:17:34.396Z","updated_at":"2025-02-16T13:23:13.586Z","avatar_url":"https://github.com/coding-pelican.png","language":"C","readme":"# ASCII Pacman\n\nASCII Pacman is a simple implementation of the classic Pacman game using ASCII characters in the C programming language. The game is played in the console window and features the iconic Pacman character, ghosts, and a maze-like game board.\n\n## Features\n\n- Classic Pacman gameplay with ASCII graphics\n- Player control using WASD or arrow keys\n- Ghosts with AI behavior (chasing, scattering, frightened, and eaten states)\n- Power pellets that allow Pacman to eat ghosts temporarily\n- Score tracking and high score display\n- Sound effects using the Windows Multimedia API (winmm)\n\n## Getting Started\n\n### Prerequisites\n\n- C compiler (e.g., GCC, Clang, or MSVC)\n- Windows operating system (for sound support using winmm)\n\n### Building and Running\n\n1. Clone the repository:\n\n```shell\ngit clone https://github.com/coding-pelican/pacman-c.git\n```\n\n2. Navigate to the project directory:\n\n```shell\ncd pacman-c\n```\n\n3. Compile the source code:\n\n```shell\nclang -o pacman.exe src\\\\pacman.c src\\\\audio_winmm.c -lwinmm\n```\n\n4. Run the game:\n\n```shell\n./pacman.exe\n```\n\n## Gameplay\n\n- Use the WASD or arrow keys to control Pacman's movement.\n- Eat all the pellets in the maze to clear it.\n- Avoid the ghosts, as they will chase Pacman and try to catch him.\n- Eat power pellets to temporarily turn the ghosts blue, allowing Pacman to eat them for bonus points.\n- The game ends when Pacman loses all his lives or the game is cleared.\n\n## Code Structure\n\nThe project consists of the following files:\n\n- `pacman.c`: The main game logic and rendering code.\n- `audio.h`: Header file containing audio-related function declarations.\n- `audio_winmm.c`: Implementation of audio functions using the Windows Multimedia API.\n- `README.md`: This readme file providing an overview of the project.\n\nThe code is organized into sections using region tags for better readability and navigation.\n\n## License\n\nThis project is released under the MIT License. See the [LICENSE](./LICENSE) file for more details.\n\n## Acknowledgements\n\n- This game is a clone (in progress) based on the original Pac-Man game developed by Namco.\n\n## Contributing\n\nContributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a\npull request. (It's a project I work on occasionally, and there are many areas that need refactoring or have potential\nbugs.)\n\n## Contact\n\nFor any questions or inquiries, please contact the project author:\n- Name: Gyeongtae Kim\n- Email: \u003ccodingpelican@gmail.com\u003e\n\nEnjoy playing ASCII Pacman!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-pelican%2Fpacman-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding-pelican%2Fpacman-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-pelican%2Fpacman-c/lists"}