Arena Survival Tournament

This is one of my first game prototype. It's completely coded in C and use SDL2 and SDL2_image libs for the graphical backend. All SDL2 parts and sub-parts are under the zlib license. All code of AST are covered by the MIT license.

Functions

Here is a non-exhaustive list of the elements implemented in this demo:

  • Random level generator,
  • Simple AI behavior,
  • Tiles management,
  • Players movements,
  • Bad code practices...

Compiling

Before compiling, you need to install your favorite compiler (GCC or MSVC) with CMake. The library manager Conan>=1.59 (https://conan.io) is supported too for SDL2 easy-setup.

# For debian-based distribution:
apt-get update
apt-get install build-essential cmake
python -m pip install -U conan

Clone the repo and launch in order conan and cmake in order to compile the program:

conan install . -of ./build --build=missing -s build_type=Release -pr:b=default	#Conan v2
conan install . -of ./build -if ./build --build=missing -s build_type=Release -pr:b=default #Conan v1
cmake --preset release # or with '-G "MinGW Makefiles"/"Ninja"' if under Windows
cmake --build --preset release

Running

Simply run the program with data folder (required) and logs folder (optional).

Description
Little school project in C (SDL)
Readme 372 KiB
Languages
C 90.3%
Python 6.3%
CMake 3.4%