bestcourses is supported by learners. When you buy through links on our website, we may earn an affiliate commission. Learn more

Creating Games From Scratch Using SDL 2.0

Create your own games from beginning to end on popular, crossplatform, SDL 2.0

3.2 / 5.0
138 students1 hours 27 minutes

Created by W S, offered on Udemy

bestcourses score™

Student feedback


To make sure that we score courses properly, we pay a lot of attention to the reviews students leave on courses and how many students are taking a course in the first place. This course has a total of 138 students which left 23 reviews at an average rating of 3.2, which is below the average.

Course length


We analyze course length to see if courses cover all important aspects of a topic, taking into account how long the course is compared to the category average. This course has a length of 1 hours 27 minutes, which is pretty short. This might not be a bad thing, but we've found that longer courses are often more detailed & comprehensive. The average course length for this entire category is 9 hours 9 minutes.

Overall score


This course currently has a bestcourses score of 3.7/10, which makes it an below average course. Overall, there are most likely better courses available for this topic on our platform.


Have you ever wanted to program your own game in C++ from scratch? Do you want to enjoy easy & free multiplatform deployment (Windows, Mac, Linux iOS and Android?). In this course, we will have a basic introduction to programming games in C++ using the SDL 2.0 library. We will use SDL 2.0 to:

  • Get a window on the screen
  • Draw line and rectangle primitives
  • Draw sprites on the screen
  • Use object-oriented principles to manage Sprites and game character data
  • Load and play sounds & music from disk
  • Do collision detection using Rectangles
  • Manage game state & game state transitions using finite state machines

Overview & Motivation

Why use SDL 2.0? Many people opt to go with complete game engines, such as Unity or Unreal Engine 4, to create their games. Unity and Unreal have licensing costs associated with them. Are you prepared to take on that extra cost? What if you can avoid spending that money on the engine and spend it on licensing assets and other resources instead?

What about using a free and open source sound, graphics and input API to deploy your game to all devices? And the freedom to program in pure C or C++?

LibSDL lets you do all that. Simple C commands will enable you to load sounds & music, load & display hardware accelerated graphics easily. The simple framework I provide in the code examples here will make it easy for you to get started creating your own games from scratch.

Programming from C++ directly (instead of using an engine) will give you much more control over how things get done inside your game. If you like raw programming and always wanted to see how games like Super Mario Brothers, Dragon Warrior, and other classic NES games would get assembled, try this course!

Many professional & indie games use libsdl already, including:

Robin hood - the Legend of Sherwood, Left 4 Dead 2, Steel Storm, Edna & Harvey, Proteus, Psychonauts, Amnesia, FastForward, Syberia, AwesomeNauts and more.

What you will learn

  • Program your own 2d games using SDL 2.0
  • Understand the discrete nature of games and the "game loop"
  • Play sfx & music in your game
  • Do body body collision detection and resolution


  • To be able to follow this course, you will need an intermediate skill level with coding in C++
  • You will need an IDE in your chosen development environment (On Windows, usually Visual Studio, Mac=Xcode)
  • You will need to download SDL 2.0 from (free & open source)
Udemy logo
Available on


With almost 200,000 courses and close to 50 million students, Udemy is one of the most visited online learning platforms. Popular topics include software development, the digital economy, but also more traditional topics like cooking and music.

Frequently asked questions

  • Price: $19.99
  • Platform: Udemy
  • Language: English
  • 1 hours 27 minutes
Creating Games From Scratch Using SDL 2.0 thumbnail

bestcourses score: 3.7/10

There are most likely better courses available for this topic.