Unlocking VSCode's power to make GAMES in C

preview_player
Показать описание
In all my Demos up to this point, we've done everything in a single source file. No custom headers and no extra source files. Today we use the VSCode sample project as a starting point directly from the raylib GitHub repo to create a template for multi-file projects we can use moving forward. In the next video, we'll take that template and use it to split up the source from my AppleCatcher video into multiple files and we'll go through the process of making a refactor like that.

The template created in this video:

My video making the Apple Catcher:

My video on the C Language:

My video on Tic-Tac-Toe with Raylib in C:

My video on Minesweeper with Raylib in C:

Chapters
0:00 Introduction
1:12 Opening a project in VSCode
3:11 Makefile overview
12:41 Makefile changes (for multi-file)
13:55 Adding external files
17:32 Conclusion
Рекомендации по теме
Комментарии
Автор

Hi Andrew, I was able to successfully configure the project for c thanks to your tutorial, I was curious as to how can we configure it for a c++ project, awesome tutorial btw. Also I was getting an error such as obj/main.o not found : no such file or directory, so I created a folder named obj in the root folder and then it worked

boring-person-rishabh
Автор

that snippet move was genius 🤯 very helpful video, thank you!

bloom
Автор

I'm loving these tutorials. They are exactly what I needed. The examples folder for raylib provides good games, and I'd like to see things like how to make different jump mechanics in a platformer (like variable jump height, double jump, the unforgiving Castlevania Jump arch), or how simple combinations of collisions that trigger events, like damage, or Go to a new screen/pop up, can pretty much cover tons of game mechanics

hawkbirdtree
Автор

Absolutely love your clarity and concise presentation. Thanks!

itsthem
Автор

Thank you, I'm learning C and practting with Raylib and I was really confused about the Makefile and JSON's, this was really helpful and easy to understand.

drezdon
Автор

After messing with Code::Blocks and notepad++ I am using MSVC and premake setup made by Jeff and I am very happy. Very easy setup and the debugger in MSVC is completely another level.

perelmanych
Автор

Hello, thanks for the tutorial. I am not familar with the syntax of makefile. I think it would be interesting to show how to modify the makefile to allow for subdirectories in the src folder (for example have a 'models' or 'effects' folder in a more complex game).

geodegeo
Автор

Thank you for this explanation, it was exactly what I was looking for.

arnoldbr
Автор

Is `Win32` the only configuration available on Windows? There's no x64 config available?

SaschaRobitzki
Автор

Thanks for this, setting up as a beginner in C or C++ can be a pain if not just using some premade template like with Codeblocks or Visual Studio.

astrahcat
Автор

I downloaded your template and tried to run it on VSC, but it shows "raylib.h: no such file or directory"
I also tried to write the whole directory in the include statement but it still showed some other error

When trying to debug run it,
It showed no main.o file in directory and aborted the compilation.

I tried to google it but couldnt find any help :(

nishumbhshah
Автор

Really enjoyed this tutorial. Almost have it all working expect the multi-file part. When attempting those changes I was getting a linker error? I'll try reviewing 12:41 and 13:55 again. I am on a MacBook.

kevindean
Автор

Hello sir, thanks for these videos I find them very helpful, I copied your latest template for 4.5 but when I hit F5 it says that "launch: program does not exist launch json" even tho Im using the same launch.json files in your template, could u pls help me with that?

youcefmaclaren
Автор

Why not just use cmake and vcpkg (considering you're on windows)?

biskitpagla
Автор

How do I set it up such that it uses MSVC compiler

punchline
Автор

HI! I cloned the repo on github and everytime I go and press F5 the terminal says the following:

"The terminal process failed to launch: Path to shell executable does not exist."

Anyone here knows how to fix it?

pepperpatty
Автор

why not use #pragma once instead of #ifndef?

AngeloComedy
Автор

can't install in Macos, thanks for nothing, crap software

Srednicki
Автор

i'm on windows, I compile all as single compilation unit and my build system is single line file build.bat yo
cl main.cpp /D_CRT_SECURE_NO_WARNINGS -FC -GR- -EHa- /EHsc -nologo -Zi /MDd /link raylib.lib glfw3.lib glew32.lib opengl32.lib shell32.lib User32.lib Gdi32.lib Winmm.lib /SUBSYSTEM:CONSOLE

tomibomi