This project is written in C and uses CMake as a build system.
It shows how we can make a basic animation using SDL2 : 2 Players moving in a map racing for the recipe.
It could be used as a base for any SDL2 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.
We developed this game during our Freshman year as part of our ISS project. It consists of 2 characters from the show 'Spongebob' racing to get the secret recipe, while also trying to avoid the obstacles that we have designed and prepared for the players.
The project was originally developed by:
- Amine Ben Hassouna
- [Ines Ayari][]
- [Chaima Rajah][]
Thank you for your interest in our project. There are many ways to contribute, and we appreciate all of them :
- Source Code
- Unit tests
- Bug Reports
- Documentation
- Localization
- etc
Do not hesitate to open a pull request of you find an error or if you want to add a features.
Contributions should be under the terms of the MIT license <LICENSE>.
- Git
- C Compiler (gcc, ...)
- CMake
- SDL2 library
- SDL2_image library
- SDL2_gfx library
On Debian/Ubuntu based distributions, use the following command:
sudo apt install git build-essential pkg-config cmake cmake-data libsdl2-dev libsdl2-image-dev libsdl2-gfx-devOptional packages:
- SDL2_ttf library
- SDL2_net library
- SDL2_mixer library
sudo apt install libsdl2-ttf-dev libsdl2-net-dev libsdl2-mixer-dev# Clone this repo
git clone https://gitlab.com/aminosbh/flying-plane-sdl-animation.git
cd flying-plane-sdl-animation
# Create a build folder
mkdir build
cd build
# Build
cmake ..
make
# Run
./flying-plane-sdl-animationNote: To use SDL2_ttf, SDL2_net or SDL2_mixer, you should uncomment some
instructions in the CMakeLists.txt file and re-execute the make command.
See IDE_USAGE.md for details.
Author: Amine B. Hassouna @aminosbh [Ines Ayari]
[Chaima Rajah]
This project is distributed under the terms of the MIT license <LICENSE>.
The images under the assets directory are distributed under different licenses:
-
plane.pngandplane-shadow.png:
Author: Amine B. Hassouna @aminosbh
License: Creative Commons Attribution 4.0 International License. -
ocean.jpg:
Author: the3rdSequence.com
License: Creative Commons Attribution 4.0 International License.
Site: https://www.the3rdsequence.com/texturedb/texture/23/sea+water