Learn SDL in C
SDL is a C library that gives your program a window, graphics, sound, and input. These short lessons start at the first window. Each program runs here in your browser.
This ball is a C program, running live on this page. The lesson Detect collisions explains each line.
The real program
The demo on each lesson is the C code on that page, compiled for the browser. The same file also works on your computer.
The fundamentals
There is no engine and no helper library. You write the code that draws each frame.
Free to use
This site has no accounts, no ads, and no tracking. It exists to help people learn.