Let's make a game in C++ (SDL,OpenGL) - Episode 1 - Setup

preview_player
Показать описание
I have decided to start a "Let's make a game" tutorial-like video series. In the series I will show you how to make a game from scratch in C++ using SDL and OpenGL.

Next video:

Episode 1 - Here I explain how you setup your desktop (windows,linux) to be able to compile and run SDL applications.

For additional info about SDL programming:

My blog:

My Twitter:

Please give feedback
Рекомендации по теме
Комментарии
Автор

This is the best Tutorial series I have ever seen, you are a legend.

RawaZz
Автор

while editing the compiler settings in settings-->compiler, make sure that the selected compiler is the compiler you are using with your project.

sushantt
Автор

Thank you so much sir.

I am not new to programming, but I am new to OOP. Getting a C++ Compiler to work for the first time was actually a real pain for me, as I never had to deal with IDEs and Compilers, and wasn't sure what were standard programs to use as well as certain terminologies.

oooooo
Автор

nice...just today i got back to C++ and SDL after 5-6 months... :D
Keep this videos coming.. (:

vblazenka
Автор

Go to Settings>Compiler and Debugger then click on the Toolchain Executables tab.
Within the tab you will see the Compiler's installation directory, click Auto-detect and it should automatically find the compiler. If not, find the directory yourself.

alecdent
Автор

Thanks man! This is great, got it working on codeblocks I look forward to the rest of the series!

me
Автор

yes, I have the following option set at the project/build/linker settings:- lmingw32 - lSDLmain -lSDL just as in the video.

Lugobacsi
Автор

@RedReaper132 Whoops, I fixed it. Turns out I put a curly bracket where a round bracket should have been. Thanks for the great tutorials!

heatherfeatherfeather
Автор

Thanks! Worked perfectly! Using code blocks from now on!

Rock
Автор

Zakon :D Se bom pridružil učenju ko bom prišel na c++ :D dobr filmček/tutorial. "I'll join lerning from you, when I will get to the c++ : D good movie / tutorial."

FreedomFight
Автор

This most likely means you are linking your files incorrectly or your telling your program to look in the wrong location. You don't have to follow these, but the first tutorial is on setting up SDL. Google search lazy foo sdl tutorials. If this works for you like it so others can see.

JoshuaUndercoffler
Автор

11:16 You can also copy and past the file SDL.dll into the folder system32 instead of copy and past it in the folder Debug.. cause you won't have to do this every time you make a new project.

azangel
Автор

very good tutorial and very well explained

pvharmo
Автор

Got it! there's probably a space between - and lSDL, it should be -lSDL

DjLaikal
Автор

I don't know much but try getting the unreal engine, it's the engine used for games like Gears of War and it can look amazing! It's free (I think).

AGTandZZ
Автор

9:10 "don't really think about it, just put it in there"

How many people are going to insist that argc and argv are _required_? It's not. Maybe you would know that if you bothered to demonstrate it "not working", but you just assumed. This is not Java. This is C++. You didn't test it, you didn't even look up the standard for C (which C++ is backward-compatible with). If you bothered to look it up, you'd find section 5.1.2.2.1 (entitled _Program Startup_) of the C11, C0x, or C99 standard, which all clearly state, *and I quote*:

"The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters:

int main(void) { ... }

or with two parameters (referred to here as argc and argv, though any names may be used, as they are local to the function in which they are declared):

int main(int argc, char *argv[]) { ... }

or equivalent; or in some other implementation-defined manner. [it is referring to things like int main(int argc, char **argv, char **envp)]

  [...]"

End quote.

Another section adds, " Thus, int can be replaced by a typedef name defined as int, or the type of argv can be written as char ** argv, and so on."

 Stop spreading misinformation.

BradenBest
Автор

@RedReaper132 Oh, thank you very much! You sure helped me to get out from this situation, because when my sister has decides something to do, she cannot be stopped.
Good video anyway! It will facilitate her work, I think. :)

okamipower
Автор

.gx is a linux-type zip file, you just have to go back to the website and look for the .zip file to download :)

xTheArchivex
Автор

@Linux4You1 It's the Fluxbox window manager

superhenk
Автор

You should use something with the best code completion and never use a text editor unless you're comfortable with the language because they don't have code completion. I would suggest Eclipse. Ubuntu is the way to go if your system can handle it.

AtomicBl
visit shbcf.ru