Match3-Game-with-raylib

Match-3 Game (C + raylib)

Match-3 Gameplay

A classic Match-3 puzzle game written in C using raylib.

A classic Match-3 puzzle game written in C using the raylib graphics and audio library. The game features smooth tile animations, score effects, background music, and sound effects.

This project includes a pre-built macOS (Apple Silicon) release and can also be built from source.


๐ŸŽฎ Gameplay Overview


๐Ÿ•น๏ธ Controls


Go to the Releases section of this repository and download:

Match3-macOS.zip

Run Instructions

unzip Match3-macOS.zip
cd Match3-macOS
./match3

โš ๏ธ Platform Support


๐Ÿ› ๏ธ Build From Source (Developers)

Requirements

Install Dependencies

brew install raylib pkg-config

Build

From the project root directory:

gcc src/main.c -o match3 \
$(pkg-config --cflags raylib) \
$(pkg-config --libs raylib) \
-framework OpenGL \
-framework Cocoa \
-framework IOKit \
-framework CoreVideo

Run

./match3

๐Ÿ“ Project Structure

Match3-Game-with-raylib/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ main.c
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ background.jpg
โ”‚   โ”œโ”€โ”€ 04b03.ttf
โ”‚   โ”œโ”€โ”€ bgm_old.mp3
โ”‚   โ””โ”€โ”€ match.mp3
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ .gitignore

๐Ÿ”Š Assets

The game requires the following files inside the assets/ directory:

Asset paths are relative to the executableโ€™s working directory.


๐Ÿ“ธ Screenshot

Match-3 Gameplay


๐Ÿงฉ Known Limitations


๐Ÿ›ฃ๏ธ Roadmap


๐Ÿ“„ License

MIT License Free to use, modify, and distribute with attribution.