Lazy Foo' Productions

SDL Forums external link SDL Tutorials 🐰SDL3 Tutorials🥚 Articles OpenGL Tutorials OpenGL Forums external link
Follow BlueSky Follow Facebook Follow Twitter Follow Threads
Donate
News FAQs Contact Bugs

Beginning Game Programming v3.0

Last Updated: Oct 7th, 2024

Hey, you're not supposed to be here 😉.

Anyway, you are currently looking at the pre-alpha version of the SDL3 tutorials. This page will become fully public once SDL3 has its first official stable release.

These tutorials were designed for beginner C++ programmers (with some stuff thrown in for the more experienced) who want to move from text based applications to real time games with graphics. By the end of these tutorials, you'll know the basics so you can really start digging into lower level game programming.
Table of Contents
Introduction
A little intro before we start coding.
Hello SDL3
Get started making games with your first SDL3 App.
Textures and Extension Libraries
Load PNGs and render textures.
Key Presses and Key States
Learn how to handle keyboard input.
Color Keying
Give your textures transparent backgrounds.
Sprite Clipping and Stretching
Clip sprites from a sprite sheet and resize them.
Rotation and Flipping
Learn to rotate and flip your images.
Color Modulation and Alpha Blending
Modify your texture colors and make your images transparent with alpha blending.
True Type Fonts
Render True Type fonts with SDL_ttf.
Mouse Events
Learn how to handle mouse input.
Timing
Learn the basics of application time.
If you find any bugs or typos in the tutorials please contact me.