This project is a soccer game in C++. This project was realized in the optional course of computer science of my DUT GEII. This course was given by Philippe Lucidarme following his tutorial. The game is written in C++ using SFML. It was normally developed with Qt Creator but I change the structure to use the Make file. (The game is not finished yet !)
- Makefile
- build/
- objects/
- app/
- images/
- include/
- src/
src/
is a folder that contains all the .cpp files including the main.cpp
file which is the starting point of the project. include/
contains all the .hpp files and the SFML library used. image/
contains all the .png images used. build/
(this folder is not in the Github, it is created after the build, see the build section) contains the .o and .d files in the objects/
folder and the executable in the app/
folder. Makefile
is the Makefile the project that shortcut all the command (uselly the project was made on Qt creator but so I created it). The Makefile uses the c++
compiler (my version: Apple clang version 12.0.5 (clang-1205.0.22.9)) but if you use another one the CXX
variable can be modified.
$ git clone https://github.com/theolemague/Soccer.git
...
$ cd Soccer
To build the project, use the command make
$ make
c++ -Wall -Iinclude/ -c src/ball.cpp -MMD -o build/objects/src/ball.o
...
The build/
directory should appear
To start the project, use the command make run
. Note that if you run the executable by writing the command (.exe_file_name
), you must have the images/
in the same folder where you run the command.
% make run
./build/app/main
(window should open)
To clean the project (remove executable and objects files), use the command make clean
$ make clean
rm -rf ./build