JackCarterSmith 65d8d93ce4
General upgrade to modern toolchain
> Conan v2 support ready
> SDL2 lib fix
> Both linux and windows patch
2024-03-16 12:43:12 +01:00
2018-06-28 00:04:55 +02:00
2024-03-16 12:43:12 +01:00
2024-03-16 12:43:12 +01:00
2021-01-09 22:26:46 +01:00
2018-06-23 11:30:59 +02:00
2024-03-16 12:43:12 +01:00

Arena Survival Tournament

This is one of my first game prototype. It's fully coded in C with SDL2 and SDL2_image libs. All SDL2 parts and sub-parts are under the same license as SDL2 lib. All code of AST are covered by the MIT license.

Functions

The game can do following and you can learn from that like we do when you created this code:

  • Generate random maps level
  • Control a simple IA
  • Manage gold resources
  • Players movements
  • Bad code practice

Compiling

Before compiling, you need to install your favorite compiler (GCC or MSVC) with CMake and the lib manager Conan>=1.59 (https://conan.io):

# For debian based distribution:
apt-get update
apt-get install build-essential cmake conan

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

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

Running

Simply run the program with data folder (required) and logs folder (optional) or use the launch script.

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