SDL Tutorials

Category

SDL App States

Tim Jones    |     October 19th, 2011    |     27 comments
In this muchly desired side tutorial we are going to look at how to implement something most commonly called Game States (or as I call them, App States). This tutorial will be based upon the code from the SDL Collision Events tutorial.

To simply explain what an app state is, try to think of your game (or application) as a parent with many child applications. In other words, your primary application can yield control to a single child when needed.
SDL Tutorials
App States
Game States

SDL TTF

Alexander Bock    |     September 8th, 2011    |     11 comments
Text is an important part of almost all games. From informing the player of the awesome combo that they just got, to menu titles, button captions and epic storylines. In this tutorial, we will take a look at SDL_ttf, an addon library for SDL that uses the FreeType library to load fonts and render text.
SDL Tutorials
Fonts

SDL + OpenGL Tutorial Basics

Tim Jones    |     June 5th, 2010    |     49 comments
In this new tutorial series, we will be looking at using SDL along with OpenGL. SDL as it stands is nice for basic 2D graphics/composition, but when i
SDL Tutorials
SDL + OpenGL Tutorials

SDL Per Pixel Collision

Jason Norris    |     January 28th, 2010    |     18 comments
Are bounding box and circle collisions just not cutting it? Well, now we're going to dive right down into pixel precision!

Before we start, I'd like to say that this is an advanced SDL tutorial. You should have experience with creating SDL applications and some basic knowledge of getting a program with it's libraries up and running.

First, we'll start off with a very simple Game class to build the foundation of our demo project.
SDL Tutorials

SDL Net - Part 1

Tim Jones    |     January 7th, 2010    |     5 comments
The following user tutorial was created by Kahshoo-heem, for the purpose of expanding upon the SDLTutorials.com series, and expounding upon the use of
SDL Tutorials

SDL Net - Part 2

Tim Jones    |     January 7th, 2010    |     12 comments
The following user tutorial was created by Kahshoo-heem, for the purpose of expanding upon the SDLTutorials.com series, and expounding upon the use of
SDL Tutorials

SDL Scale Surface

Tim Jones    |     July 15th, 2008    |     14 comments
The following user tutorial was created by Mod J., for the purpose of expanding upon the SDLTutorials.com series, and expounding upon the use of SDL.
SDL Tutorials

SDL Sokoban

Tim Jones    |     June 9th, 2008    |     6 comments
The following user tutorial was created by Arseniy B., for the purpose of expanding upon the SDLTutorials.com series, and expounding upon the use of S
SDL Tutorials

SDL SoundBank

Tim Jones    |     April 11th, 2008    |     24 comments
In this side tutorial we are going to be adding a soundbank that will load all of our sounds, and then we call play them via an ID whenever we want. T
SDL Tutorials

SDL Image

Tim Jones    |     March 14th, 2008    |     75 comments
This side tutorial is rather simple, short, and sweet. I am going to show you how to stop using those pesky bitmap (BMP) files that are too big and do
SDL Tutorials
RECENT TUTORIALS

First Foray into SDL/OpenGL

OpenGL handles the drawing of models in a window but it does not provide the window, or handle events; that is why SDL is required. The prime purpose of this tutorial is to set up the SDL window and events mechanism. It also sets up the OpenGL environment that uses the window, the game loop, and a rotating cube.

Huh? My Pong clone uses 100% CPU and is still slow?

Your program is being a CPU hog! In some cases, this situation can actually make your program run slowly! Your code needs to give some time back to the OS (i.e. delay or sleep).

Setting up MonoDevelop to run Tao

A new series from Stephen Jones demonstrating how to use C#, Mono, and Tao to develop SDL / OpenGL games.
Tag.