|
| 1 | +## About the project |
| 2 | +This project displays Conway's game of life using C++ and SFML. |
| 3 | + |
| 4 | +## Directory and Files: |
| 5 | +- `.vscode` contains my vs code configuration. You might want to use your own. |
| 6 | +- `release` contains all the dlls and main.exe required to run the program on a windows machine. |
| 7 | + - Under this folder we have `main.exe`. Double click on this and run the game. |
| 8 | + - All other are required dll files necessary to run the game and must be present in the same folder. |
| 9 | +- `src` folder contains the active working directory. |
| 10 | + - `custom_headers` contain the custom header files made for the project. |
| 11 | + - `exec` contains the most recent executable along with dll and ilk and other stuff generated by the compiler. |
| 12 | + - `obj` contains the intermediate object files that are generated by the compiler. |
| 13 | + - `main.cpp` contains the main run code. |
| 14 | + - `onion.py` is a small python script I wrote to automate my repetitive tasks. Following are the commands which can be run from cmd from the project root dir. |
| 15 | + - `python onion.py make debug` : Compiles the code and puts the executable into `exec` and object files into `obj` folder |
| 16 | + - `python onion.py make release` : Copies the recently compiled executable from exec into release folder. If executable does not exist then run the debug build then copies. |
| 17 | + - `python onion.py run debug` : Runs the executable in the debug folder. |
| 18 | + - `python onion.py run release` : Runs the executable in the release folder. |
| 19 | + - `python onion.py pack debug` : Packs the src folder into a zip. |
| 20 | + - `python onion.py pack release` : Packs the release folder into a zip. |
| 21 | + - `release_pack.zip` is zipped version of release folder. |
| 22 | + - `src_pack.zip` is zipped version of src folder. |
| 23 | + |
| 24 | +## Setup: |
| 25 | + - Install the SFML library and edit the library path in the `.vscode` folder and in the `onion.py` script also. |
| 26 | + - Install Visual Studio and C/C++ tools along with it. |
| 27 | + - Install the C/C++ extension from Microsoft in VS Code. |
| 28 | + - Run `Developer Command Prompt for the Visual Studio` for the `32-bit architecture`. |
| 29 | + - Change the directory to the project directory. |
| 30 | + - Run `code .` command. |
| 31 | + - Now you are ready to work with the project. |
| 32 | + |
| 33 | +## Run Only: |
| 34 | +To simply run the game just donwload the release pack, extract it and run the main.exe |
0 commit comments