Skip to toolbar

Create a Game Loop using C and SDL

Learn to create a game loop from scratch using the C programming language and SDL
Instructor:
Gustavo Pezzi
484 students enrolled
C Programming Language
SDL
Game Loop

This short course will teach you how to write a basic game loop using the C programming language.

We will learn, together, how to:

  • Write a basic C program and compile it using the GCC compiler

  • Install SDL and any other dependencies

  • Use SDL to create and open a basic window in your operating system

  • Control the time step of your game loop

  • Update game objects as a function of delta time

You should know the basics concepts of programming, such as variables, conditionals, loops, and functions.

You can use any operating system to follow along with the course, but the video is taught under Linux.

Introduction

1
Motivations and Learning Outcomes

Dependencies

1
Installing SDL
2
Picking a Code Editor

Building Our Project

1
Compiling Our Code
2
Building with Makefile

Creating a Window

1
Creating a SDL Window

User Input

1
Handling User Input

Rendering

1
Rendering with SDL
2
Drawing a Rectangle

Updating Our Game Objects

1
The Update Function
2
Fixing Our Time Step
3
Updating as a Function of Delta Time

Final Project

1
Download Source Code
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!

Be the first to add a review.

Please, login to leave a review
30-Day Money-Back Guarantee

Includes

1 hours on-demand video
1 article
Full lifetime access
Access on mobile and TV
Certificate of Completion
WP Twitter Auto Publish Powered By : XYZScripts.com