# SeaBattle — C + raylib A Battleships game written in C using [raylib](https://www.raylib.com/) for graphics. --- ## Requirements - Linux (Ubuntu/Debian or any distro with GCC and make) - GCC - make - raylib --- ## Setup Install the required Linux dependencies: ```bash sudo apt update sudo apt install build-essential git make gcc \ libgl1-mesa-dev libx11-dev \ libxrandr-dev libxinerama-dev \ libxcursor-dev libxi-dev ``` Then build and run the game: ```bash make run ``` If raylib is not installed on the system, the Makefile automatically: 1. Clones the official raylib repository 2. Builds raylib locally 3. Links the game against the local build No additional manual setup is required. --- ## Build commands | Command | Description | |--------------|------------------------------------| | `make` | Compile the project | | `make run` | Compile and launch the game | | `make clean` | Remove compiled objects and binary | --- ## Project structure ``` SeaBattle_C_Raylib/ ├── src/ # C source and header files ├── Makefile └── README.md ``` --- ## Libraries used | Library | Purpose | |------------|--------------------------------| | raylib | Window, input, and rendering | | libGL | OpenGL (via Mesa on Linux) | | libm | Math | | libpthread | Threads | | libdl | Dynamic linking | | librt | POSIX real-time extensions | | libX11 | X Window System |