39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
# 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):
|
|
|
|
```shell
|
|
# 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:
|
|
|
|
```shell
|
|
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.
|