5 ms·
Beginning Game Programming in C++
- woodman 11y agoC++, not C :(
- dang 11y agoThanks. Fixed.
- richerlariviere 11y agoThat's a classic one. I used to refer to this website for SDL related projects.
- douche 11y agoIt's awesome that he's reworked them to stay up to date - I remember poring over the SDL 1.2 tutorials almost ten years ago. Also looks like the OpenGL page is updated as well - no more immediate-mode 1.0 stuff, like there still is in the Nehe tutorials that everyone used to use.
- melling 11y agohttps://handmadehero.org https://handmadehero.org is a project that teaches how to write a game from scratch. He starts without even using OpenGL. It's mostly C, but he does use the C++ compiler.
- seivan 11y agoI guess the opposite of that (Without introducing editors) would be Cocos2d-x. You could still stay in C++ code-land but get everything out of the box (ECS, Memory management, scenes, etc)
- uhtred 11y agoI've been using cocos2d-x for a few months now to create my first game, and I am really impressed with it.
- omegote 11y agoIt would be great if lazyfoo had a changelog. Looks like it was last updated on 2016/2/15, but who knows what was updated? I mean I've been visiting lazyfoo since 10 years ago...
- shmerl 11y agoI hope someone will make a tutorial for using SDL with Vulkan. > You should not be trying to use multithreaded optimization. Play with fire and you will get burned. That's some poor encouragement there. They should be teaching how to do multithreading properly instead, or referring to such resources. May be using languages like Rust where multithreading is more sane will encourage using it more.
- cmrdporcupine 11y agoAs I discovered to my misfortune recently, SDL2 is a nightmare of undefined behaviour when you start involving multiple threads, even if you're doing things in what naively would appear to be the correct way with locks and the like. Depending on your OS and GL backend, a bunch of stuff is thread local and will bomb out or just fail to do anything. In the end I ended up having to do everything SDL related, not just rendering, but including things like polling the keyboard and mouse, inside one thread, with mailboxes back to everywhere else. The documentation was pretty weak on explaining this, too.
- shmerl 11y agoIs there anything more multithreading friendly? What about alternatives, like GLFW[1]? It's now integrated with Vulkan as well: http://www.glfw.org/docs/3.2/vulkan.html http://www.glfw.org/docs/3.2/vulkan.html [1]: https://github.com/glfw/glfw https://github.com/glfw/glfw http://www.glfw.org http://www.glfw.org
- bottled_poe 11y agoI find this hard to believe. I've implemented multi-threaded rendering engines with OpenGL without too any major issues. As long as you aren't adding multiple threads to the main render loop, you shouldn't have these issues. Could you elaborate?
- webkike 11y agoHe's talking about multi-threading with SDL, not OpenGL.
- pjc50 11y agoHere's the tutorials I used to learn game programming in C: http://bespin.org/~qz/pc-gpe/ http://bespin.org/~qz/pc-gpe/ .. 20 years ago :(