Game Development with raylib C++ — Day #1
Download and Installation
This article kicks off a series for Developing Games using the raylib library in C++ and Visual Studio Code
Download and Install Visual Code
Go to this site https://code.visualstudio.com/download and download Visual Studio Code
After installing, click on the Extension button and install C/++ for Visual Studio Code by Microsoft. Type C/C++ in the search box. Make sure you pick the one as shown below with the blue star, and click on the Install button.
Download and Install raylib
Go to this site https://www.raylib.com/ and click on the Download Now button. You can donate but you don’t have to by clicking on No Thanks. Choose raylib 3.7 Windows Installer (with MinGW compiler). If you are reading this in the future, it's ok if the version numbers are different, just make sure it is the Min GW compiler.
Run the downloaded file and if you get a warning, click More Info and Run Anyway.
Go through the flow and accept the defaults and install raylib. This will create a portable installation in the c:\raylib folder.
Download raylib Template for Visual Studio Code
Go to my repository to download the zip for the template at https://github.com/JSeneque/raylib-vscode-template
Extract this zip file and keep this somewhere as this is the starting point for every project you do. You simple just make a copy of the folder and rename it.
Go into the newly renamed folder and double-click on the main.code-workspace file. You will get a message pop-up, click on “Yes, I trust the authors”
We now have everything we need to create C++ games using raylib and Visual Studio Code (VSCode). In the next article, Create your first program, we create a basic structured raylib application with creating and display a window, then closing the window.
If you enjoyed reading this article give me a Clap, also if you would like to see more, “Follow” me, so you may be notified of future releases. You may also send me a message if you need any further help.
I am available for your next chart-topping game!