DigAlanDig - TecProg
The purpose of this repository is to apply some programming techniques to the game DigAlanDig
Programming techniques
Module 2
- Style and Design
- Compile with all connected warnings
- Use Static Analysis Tools
- List of Variables
- Choose meaningful names
- Initialize all variables when declaring
- Declare variables as possible
- Use constants
Starting the application
First, you have to install some lib's
- Simple DirectMedia Layer development files
$ (sudo) apt-get install libsdl2-dev
- Image loading library for Simple DirectMedia Layer 2, development files
$ (sudo) apt-get install libsdl2-image-dev
- Mixer library for Simple DirectMedia Layer 2, development files
$ (sudo) apt-get install libsdl2-mixer-dev
- Clone the repository to your pc
$ git clone git@github.com:digalandig-tecprog/DigAlanDig_TecProg.git && cd DigAlanDig_TecProg
- Now your machine is able to run the application. The next command is very simple
$ make
After that, a binary code is generated. Run the game
$ ./JOGO