• Do you know any good C++ tutorials for making games?
    16 replies, posted
I want to learn C++ and be a programmer at Valve for a living, but I need to know stuff. I have a big book about C++ for dummies, but I was lost. I also got disinterested because there wasn't much purpose to it. It was just telling you how to code, but it didn't tell you how to associate your code with games or how to put code and game engines together to make a game. I looked at the Gamer To Game Developer tutorials because it associates the Unity Engine with code and tells you about how to code along the way, but it's C# and he doesn't explain as much as I expected. So, do you people know any good tutorials I could use to learn more about C++ and how to build actual games with it?
A facepuncher named SupahVee made some interesting tutorials about game development in c++11/14. Here is the link of his youtube channel: [url]https://www.youtube.com/channel/UC1XihgHdkNOQd5IBHnIZWbA[/url]
[QUOTE=evil-tedoz;47894587]A facepuncher named SupahVee made some interesting tutorials about game development in c++11/14. Here is the link of his youtube channel: [url]https://www.youtube.com/channel/UC1XihgHdkNOQd5IBHnIZWbA[/url][/QUOTE] That's too complicated for me. It doesn't explain enough.
[QUOTE=Trixil;47894682]That's too complicated for me. It doesn't explain enough.[/QUOTE] I'd recommend starting at a higher/easier level, like Unity or LÖVE.
[QUOTE=Darkwater124;47894749]I'd recommend starting at a higher/easier level, like Unity or LÖVE.[/QUOTE] How can I use Unity if it only accepts C#?
[url]http://lazyfoo.net/tutorials/SDL/index.php[/url] [editline]6th June 2015[/editline] [QUOTE=Trixil;47894787]How can I use Unity if it only accepts C#?[/QUOTE] i think he recommends that you to start off with an easier language
[QUOTE=awcmon;47894807][url]http://lazyfoo.net/tutorials/SDL/index.php[/url] [editline]6th June 2015[/editline] i think he recommends that you to start off with an easier language[/QUOTE] Oh this looks quite good. Thanks for the recommendation!
Well you are in the first stage here, you've got high expectations but everything overwhelms you. Basically you are going to want to start it slow like any other profession; a welder wannabe doesn't instantly know how to make a fancy table, he starts by terribly welding two pieces of metal together. Learning syntax for programming isn't too bad once you get muscle memory down, its understanding how to think like a programmer and figuring out how to convert your solutions to code. It takes time and it absolutely will be frustrating as hell but once it 'clicks' you'll start making some good progress. Interestingly enough, I learned how to code using the Lua programming language in Garry's Mod and after about 6 or so months of learning Lua I started to expand to other languages. Now I mess in Unity with C# as well and picked that up fairly quickly since I already knew the concepts of programming. My advice to you is to pick up a scripting language like Lua or Python and just make little stuff with it, make a text based game or something. Any practice is good practice and it will help you out a lot. Good luck [t]https://psygrammer.files.wordpress.com/2011/02/learning.png[/t]
I would recommend SFML; it's easier to learn than SDL (IMO. I think the lazyfoo site sucks), and a lot of common things (like cameras) are built in.
As proboardslol said, I'd recommend SFML aswell. It's fairly easy, you just need to learn the basic syntax, mess with it, create simple stuff. When you download the SFML files, there will be an "examples" folder, it has lots of simple programs. Look at the Pong example and try to learn as much as you can from it, it involves lots of important elements. When you get to understand everything there, create another simple game, with the goal of using stuff you had learned. If you fail no biggie, just try to finish a game , even if it's super easy. That's what I did, works pretty good for me. GOOD LUCK!
I would recommend that you learn Python or Lua. Both of them are easy to get a hang in but one cannot replace the other so which is why it's better to learn both. Pygame ([url]http://www.pygame.org/news.html[/url]) addon offers suitable module that allows you to create 2d games as well as 3d if you have PyOpenGL installed.
This is a GREAT tutorial for beginners, just make sure you actually spend time carefully reading through it: [url]http://www.cplusplus.com/doc/tutorial/[/url]. But first, you'll need a program called Dev-C++ to make C++-related stuff: [url]http://sourceforge.net/projects/orwelldevcpp/?source=typ_redirect[/url]
You don't [B]need[/B] any specific program to use C++, even Notepad + gcc will do just fine. (Not saying you should do that, just to make clear that it's possible)
[QUOTE=Darkwater124;47949863]You don't [B]need[/B] any specific program to use C++, even Notepad + gcc will do just fine. (Not saying you should do that, just to make clear that it's possible)[/QUOTE] I meant "C++ related stuff" as in a compiler for testing programs. If you make a .cpp file you'll need to compile it into a .exe or something else depending on the case
[QUOTE=A Fghtr Pilot;47949900]I meant "C++ related stuff" as in a compiler for testing programs. If you make a .cpp file you'll need to compile it into a .exe or something else depending on the case[/QUOTE] Yeah, and there's also other IDEs that do that stuff for you.
[QUOTE=A Fghtr Pilot;47949604]This is a GREAT tutorial for beginners, just make sure you actually spend time carefully reading through it: [url]http://www.cplusplus.com/doc/tutorial/[/url]. But first, you'll need a program called Dev-C++ to make C++-related stuff: [url]http://sourceforge.net/projects/orwelldevcpp/?source=typ_redirect[/url][/QUOTE] didn't support for that stop a while ago? or is it still developing?
[url]http://lazyfoo.net/tutorials/SDL/index.php[/url] best of luck :3 edit: I just realized someone already posted this... can't figure out delete
Sorry, you need to Log In to post a reply to this thread.