3 ms·
I glanced over several episodes on youtube. It seems like he is building core around windows/winmain and plans to port or something later. Some guys on forum po
by Keyframe 12y ago
I glanced over several episodes on youtube. It seems like he is building core around windows/winmain and plans to port or something later. Some guys on forum ported it over sdl to osx and linux. Kind of a shame for what I expected. I was looking forward to seeing a C crossplatform setup from the start without sdl, sfml, glfw whatnots. It doesn't even look loke it's straight C either, but more c in c++ world. Game stuff is probably ok, as people say good things about it - haven't checked it all (yet).
- Kurtz79 12y agoAs someone said, he is keeping the platform layer and game layer separated, the game layer is meant to be platform independent. The idea is to write in real time every single line of code, and if he had tried to set up multiple platforms from the start he would have spent months in mostly boring and repetitive tasks, while he wanted to get to game programming as soon as possible, and get back to support more platforms later. After the first few weeks setting up the windows code, the focus has been on the game layer mostly. He is using mostly straight C (stating several times that he loathes C++) using a small subset of C++ features (function and operator overloading).
- bjg 12y agoI've been casually watching these, might be able to clear some stuff up... He started out with a widows platform layer, which implements generic services (input, sound, rendering, memory allocation) to get the system boot strapped. Since then he's mostly been writing generic game code (player movement, world rendering, time management, etc) which consumes the abstracted services and is cleanly separated from his windows platform layer. He architected it in such a way that it can be easily ported to other platforms once they have a game (he's brought up the raspberry pie a bunch a possible target platform). The other people doing the ports have ported the "lessons" to other platforms so that people who don't run windows can (mostly) follow along, they are just viewers of the stream. As for language choice, it is mostly C, the only C++ feature he uses (and why he compiles with a C++ compiler) is function overloading.
- pjc50 12y agoGraphics rendering and loading a UI is inherently linked to a platform. Some platforms you can just write to the hardware, but if you want crossplatform graphics you need to pick a library.