Our great sponsors
-
LearnC
Contains source code and resources for the Ebook Learn C Games Programming For Beginners Windows edition.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Check out the SDL2 Game Tutorials, they're C only and cover basics, graphics, sound and bitmap fonts, see also the Github sources of this series. If you want to use TTF fonts there's another C tutorial at that site.
I wrote asteroids in C + SDL2 about 2,000 lines of code and that included high score table, and high speed pixel perfect collision detection. The code is here: Windows C source code (Visual Studio), or Linux C Source code (VS Code + clang). The chapter 48 has the full version; the other chapters are steps.
I wrote asteroids in C + SDL2 about 2,000 lines of code and that included high score table, and high speed pixel perfect collision detection. The code is here: Windows C source code (Visual Studio), or Linux C Source code (VS Code + clang). The chapter 48 has the full version; the other chapters are steps.