-
Notifications
You must be signed in to change notification settings - Fork 1
DennisVinke/Geometry_Wars
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Advanced Programming Project: Creating a 2d Game using C++ and OpenGL. Aart Odding, s1595555 Dennis Vinke, s1390082 The source code of our project is located in the Geometry_Wars folder. Doxygen documentation and doxyfile can be found in the main folder TO set everything up follow the instructions below. Steps to compile the project: * Source code will only compile with C++17 standard. In visual studio this settings can be found in the project properties under C/C++ >> Language >> C++ Language Standard >> ISO C++ 17 (/std:c++17) * Create a new solution and add all the .h and .cpp files found in: - /Geometry_Wars/ And all its subdirectories * Make sure that the data folder is inside of the Geometry_Wars folder, and the Geometry Wars folder can be found, by moving up folders from the executable's directory: E.G. When the executable is in: C:\Users\aart\Documents\AP\AP\x64\Debug\Geometry_Wars.exe then having the shader folder located at: C:\Users\aart\Documents\AP\Geometry_Wars\shaders Is okay because the "Geometry_Wars" folder is visible by moving up from C:\Users\aart\Documents\AP\AP\x64\Debug\Geometry_Wars.exe to C:\Users\aart\Documents\AP\ * Three external libraries are used (with Johan's permission): GLM, glad, and SDL2. For each: * GLM is header only and thus the only thing that needs to be done is add the folder /glm_include/ to the include directories, under project properties. * GLAD has one c file which we have already added to the sources. The folder /glad_include/ needs to be added to the include directories. * SDL2: add the folder /SDL2-2.0.9/include/ to the solutions include directories, SDL3 has three.lib files, that need to be added. Under project properties >> VC++ Directories >> Library Directories, add /SDL2-2.0.9/lib/x86/ or /SDL2-2.0.9/lib/x64/, and under Linker >> Input >> Additional Dependencies add SDL2.lib, SDL2main.lib, SDL2test.lib. Lastly add SDL2.dll to the executable directory. For more information see: https://www.wikihow.com/Set-Up-SDL-with-Visual-Studio-2017 * Lastly when using SDL sometimes it is necessary to specify the subsystem: in project properties, under linker >> system >> SubSystem, select Console. If you do not follow this step, you will get a runtime error when executing the application.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published