Skip to content

Simple grid-based game made with SDL2 and uses CMake as a build system. Mirror of https://gitlab.com/aminosbh/falling-brick-game

License

Notifications You must be signed in to change notification settings

aminosbh/falling-brick-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Falling Brick game

This game is a simple grid-based game written in C.
It uses the SDL2 library to render graphics and uses CMake as a build system.

It could be used as a base for any SDL2 grid-based game. Just fork it, clone it and execute the rename_project.sh script. You will be prompted to enter the new project name, the new executable name and the new git repository, but you can keep the autodetected values. Finally, just commit and push the result to your repository.

Dependencies

On Debian/Ubuntu based distributions, use the following command:

sudo apt install git build-essential pkg-config cmake cmake-data libsdl2-dev libsdl2-gfx-dev

Optional packages:

sudo apt install libsdl2-image-dev libsdl2-ttf-dev libsdl2-net-dev libsdl2-mixer-dev

Build instructions

# Clone this repo
git clone https://gitlab.com/aminosbh/falling-brick-game.git
cd falling-brick-game

# Create a build folder
mkdir build
cd build

# Build
cmake ..
make

# Run
./falling-brick-game

Note: To use SDL2_image, SDL2_ttf, SDL2_net or SDL2_mixer, you should uncomment some instructions in the CMakeLists.txt file and re-execute the make command.

Open the project with an IDE under Linux

See IDE_USAGE.md for details.

License

Author: Amine B. Hassouna @aminosbh

This project is distributed under the terms of the MIT license <LICENSE>.

About

Simple grid-based game made with SDL2 and uses CMake as a build system. Mirror of https://gitlab.com/aminosbh/falling-brick-game

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published