To gain access to the external hardware a PC has attached, we will use SDL. I already added SDL to the project, and you can see the include file in the main.cpp. This will allow us to read the keyboard and mouse and output to the speakers. To get access to the code you CANNOT just simply download the folder from the GitHub. You must follow the steps below. When you guys commit, give meaningful commit messages so we can track changes. Additionally, we are compiling the code in 64-bit so select x64 at the top in Visual Studio. The dependencies are in 64-bit as well. Viewing the directory of the project you may have notice a folder named “deps.” This directory contains all the external dependencies our project requires to run like OpenGL and SDL. You do not need to change anything in here. We will be using these guidelines for coding. Great resource https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#main
- Install Visual Studio Community 2019 from its website. If already installed, see 1.A
- Select the checkbox for "Desktop development with C++" -> Click "Modify" on bottom right
- Click install
1.A. IF YOU ALREADY HAVE VISUAL STUDIO INSTALLED, READ -> Go to the Windows search pane in your taskbar -> Type "Apps & features" -> Search for Visual Studio -> Click on Visual Studio -> Click on the "Modify" button -> Click "Yes". This will bring up the window for part 2 above.
We will use Git from Visual Studio only. You can do it from the command pane but that will be too complicated. You must connect to the remote repository to obtain the code. This document from the URL below is helpful with showing you how to do it. https://docs.microsoft.com/en-us/visualstudio/get-started/tutorial-open-project-from-repo?view=vs-2019 I will sum it up this way too.
- Open Visual Studio Community 2019 (different version may be different)
- Click clone a repository on the right
- Enter the URL of the GitHub repository. May ask you to sign in if not. Must also have access to the repository
- Click clone
- The repository is now stored locally on your computer
- Make changes with the code
- Click on the “Team Explorer” tab on the bottom. You will likely be within the solution explorer. Can also click View -> Team Explorer
- Click “Changes”
- Add a message that gets linked to your commit. Be concise. Stay on the “Master” branch
- Click “Commit All”
- Click “Sync” to upload your changes to the repository
- The “Synchronization” window will pop up now. Your commit should be stored under “Outgoing Commits.” Click “Push”
Read this good example: https://www.git-tower.com/learn/git/faq/difference-between-git-fetch-git-pull