This course includes

  • 2 hours of on-demand video

  • Downloadable resources and exercises

  • Full lifetime access

  • Access on mobile and desktop

Watch Intro Video

Motivations & Learning Outcomes

Is this course for you?

This short course will teach you how to create a basic game loop using the C programming language and the SDL library. To really make the most out of this course, you should be comfortable with the basic concepts of programming (variables, if-else, loops, and functions). The course is taught using a Linux environment, but you can follow along with any modern operating system and the code will work in Linux, Windows, or MacOS.
Free enrollment
Is this course for you?
  • Activities and Discussions

    Join our community and get the most of our discussion boards

Course Content

  • 1
    • Introduction and Learning Outcomes
  • 2
    • Installing SDL
    • Picking a Code Editor
  • 3
    Building Our Project
    • Compiling Our Code
    • Building with Makefile
    • Installing MinGW and SDL on Windows
  • 4
    Creating a Window
    • Creating and Opening a SDL Window
  • 5
    User Input
    • Handling Input Events
  • 6
    • SDL Rendering
    • Drawing a Rectangle
  • 7
    Game Update
    • Updating Our Game Objects
    • Fixing Our Time Step
    • Updating as a Function of Delta Time
    • Using a Proper Delay Function
  • 8
    Final Project
    • Source Code (Download)
  • 9
    Moving Forward
    • Similar Courses


  • Gustavo Pezzi

    Senior Lecturer

    Gustavo Pezzi

    Gustavo teaches computer science and mathematics at BPP University, London. He researches how teaching game programming can help enhance awareness and understanding of mathematics and physics. He is also a professional software engineer with more than 10 years of experience, with an industry background in 3D systems, games, web systems, databases, and data science. His academic path includes institutions such as Pittsburg State University, City University of London, and University of Oxford.