https://github.com/sims-yann/pac-man-game-in-c
This is a pac man game written in C with the help of the SDL2 library Hope you will have fun!!!!
https://github.com/sims-yann/pac-man-game-in-c
c pac-man pac-man-clone pac-man-game sdl2 sdl2-game sdl2-image sdl2-library sdl2-mixer sdl2-ttf
Last synced: 2 months ago
JSON representation
This is a pac man game written in C with the help of the SDL2 library Hope you will have fun!!!!
- Host: GitHub
- URL: https://github.com/sims-yann/pac-man-game-in-c
- Owner: sims-yann
- Created: 2025-02-06T19:13:39.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-06T19:17:42.000Z (4 months ago)
- Last Synced: 2025-02-06T20:27:13.605Z (4 months ago)
- Topics: c, pac-man, pac-man-clone, pac-man-game, sdl2, sdl2-game, sdl2-image, sdl2-library, sdl2-mixer, sdl2-ttf
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pacman Game (C + SDL2)
A simple **Pacman** game implemented in **C** using the **SDL2** library.
## 📌 Features
- Classic Pacman gameplay
- Smooth movement with keyboard controls
- Ghost AI (basic logic)
- Score tracking## 🛠 Requirements
- **Dev-C++**
- **SDL2 Library**## 📥 Installation
### 1. Install SDL2
Download and install the SDL2 library:
- SDL2 Documentation: [https://wiki.libsdl.org/](https://wiki.libsdl.org/)
- SDL2 Download: [https://github.com/libsdl-org/SDL/releases](https://github.com/libsdl-org/SDL/releases)### 2. Compile and Run
#### Using Dev-C++
1. Open **Dev-C++**.
2. Create a new **C Project**.
3. Add all source files to the project.
4. Configure the compiler settings to link with **SDL2**:
- Go to **Project Options → Parameters → Linkers**
- Add: `-lmingw32 -lSDL2main -lSDL2 -lSDL2_test -lSDL2_image -lSDL2_ttf -lSDL2_mixer
- Now go to **Project Options → Parameters → Directories**
- Add the directories leading to the "lib" and "include" folders in the different SDL library folders to the "include" and "library" tabs
5. Click **Compile & Run**.## 🎮 Controls
- **Arrow Keys**: Move Pacman
- **Backspace**: Exit the game## 📜 License
This project is public and free!!!---
✉️ Feel free to contribute or suggest improvements!