What if we just *spins board* pretend there's no gravity?
A gravitational twist on the classic game of Connect 4.
I am still learning CMAKE, so for the time being, please build this using Visual Studio 2019.
- Download this repository and unzip it. The root folder will be the folder with
-main
appended to the repository name. - Optional: You could delete the
img
folder,.gitattributes
,.gitignore
, andREADME.md
if wanted. - Open Visual Studio 2019 and select Continue without code → under the opening project options.
- Navigate to the Menu. File → New → Project from existing code. Select the Visual C++ option.
- For Project file location:, select the root folder you downloaded.
- For Project name:, name the project whatever you want. Select Next.
- Select Use Visual Studio, and leave all settings. Select *Next.
- We will be including include and library paths later. Select Finish.
- Navigate to the Solution Explorer on the left and open the
main.cpp
file located insrc
. - Navigate to the Menu. Project → [NAME HERE] Properties.
- Change the Configuration tab to All Configurations
- Under the C/C++ tab add the following lines to the Additional Include Directories section by clicking on the three dots at the end of the selection:
$(SolutionDir)include
,$(SolutionDir)lib\SFML\include
. - Under the Linker tab, navigate to the General sub tab. Add the following line to the Additional Library Dependencies section by clicking on the three dots at the end of the selection:
$(SolutionDir)lib\SFML\lib
. - Navigate to the Input sub tab within Linker and add the following dependencies to Additional Dependencies:
sfml-graphics.lib
,sfml-window.lib
,sfml-audio.lib
,sfml-system.lib
,sfml-network.lib
. - Optional: If you're going to be debugging and changing this code, change the Configuration tab to Debug and change the additional dependencies so they have a
-d
prefix before.lib
. An example would be:sfml-graphics-d.lib
. - Switch back to All Configurations in the Configuration tab and navigate back to general project properties.
- Under the General properties subtab, change the output directory to:
$(SolutionDir)build\$(Configuration)
. - Under the General properties subtab, change the intermediate directory to:
$(SolutionDir)build\Intermediate
- Build the project once by right-clicking on the project and selecting Build.
- You should get an error, but you will get an
.exe
in the specified build folder. - We need the
.dll
files from the SFML library. Download the library here. - Unzip and navigate to the
bin
folder. - Copy all the
.dll
files and paste them in the same folder where the project.exe
is. - Rebuild one more time.
- Exectuable will be located in
build/Debug
orbuild/Release
depending on which build type you used in Visual Studio.