To install the game requirements, you can choose one of these methods:
Access the following link to select proper package for your operating system and architecture. The are packages available to Windows, Debian-based systems, CentOS and MAC OS X:
https://www.vagrantup.com/downloads.html
After completing the installation of Vagrant, you can clone the project with the clone command:
$ git clone https://github.com/LManaslu/Wenova.git
Access the path of the cloned repository:
$ cd Wenova
At this path, has a Vagrantfile, the file with all configurations for Virtual Machine that can run the project.
To start the VM you need to do the up command:
$ vagrant up
The first time will take several minutes.
$ vagrant ssh
In the VM, the path that you clone project is synced with /home/vagrant/Wenova
And when you need to go out from VM you can do this with logout command:
$ logout
In the next time, to run the VM, you'll need to do the steps 3 and 4 again.
If you prefer, you can install the game requirements manually, using bash commands.
$ git clone https://github.com/LManaslu/Wenova.git
$ sudo apt-get install g++
$ sudo apt-get install libsdl2-2.0-0 libsdl2-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev
To compile game code, inside game folder, you can use Makefile available in the repository, there are several make commands available:
To compile all sources files (.cpp) from src/ folder and headers files (.h) from include/ folder, use make command:
$ make
Optionally, for a faster compilation, you can use the -j flag:
$ make -j
To remove all .d and .o files from obj/ folder, use clean command:
$ make clean
To remove all .d and .o files from obj/ folder and remove the binary executable from bin/ folder, use dist-clean command:
$ make dist-clean
To run the compiled game, you can use the run command:
$ make run