Demos

Most of the demos were downloaded from the original (now defunct) SDL website, and some random places on the internet. I don't know any of the authors and have no idea what the licences are, unless they are included in the archives.

I have manually cleaned up the projects to the point that they compile on my rig.

Most links to original sources are available on web archive only.

All projects can be compiled with gcc and make both on Windows and Linux.


Game loop - Fix Your Timestep!

Original link: https://gafferongames.com/post/fix_your_timestep/

Mirror (code): ggl

deWiTTERS Game Loop

Original link: http://www.koonsolo.com/news/dewitters-gameloop/

Mirror (code): dwl

The Game Loop and Frame Rate Management

Original link: http://www.brandonfoltz.com/downloads/tutorials/The_Game_Loop_and_Frame_Rate_Management.pdf

Mirror (code): gml

2D Tunnel Demo - the famous classical 2d tunnel with lookups

Screenshot

Original link: http://www.ouhlavache.com/stv/tunnel2d.tar.bz2

Mirror (code): 2d_tunnel

Bump - a bump mapping demo

Screenshot

Original link: http://www.libsdl.org/projects/bump

Mirror (code): bump

Fire - an organic fireworks demo

Screenshot

Original link: http://www.libsdl.org/projects/fire

Mirror (code): fire-1.0

plasma - A warping plasma demo

Screenshot

Original link: https://www.libsdl.org/projects/pipenightdreams/

Mirror (code): plasma-1.0

Prometheus TrueColor Emulation

Screenshot Screenshot

Original link: https://www.libsdl.org/projects/PTC/

Mirror (code): PTC-demos-1.0

sierp - Fun with sierpinski-like patterns

Screenshot

Original link: https://www.libsdl.org/projects/sierp/

Mirror (code): sierp-1.0

warp - Realtime picture 'gooing' demo

Screenshot

Original link: https://www.libsdl.org/projects/warp/

Mirror (code): warp-1.1

water - Motion in a pool of water.

Screenshot

Original link: https://www.libsdl.org/projects/water/

Mirror (code): water-1.0

SDL xflame - The classic X11 flame demo

Screenshot

Original link: https://www.libsdl.org/projects/xflame/

Mirror (code): xflame-1.0

Waves - Liquid surface modelling

Screenshot

Original link: http://home.uninet.ee/~ragnar/waves/

Mirror (code): waves-1.2

Lightning - A lightning graphics demo with some sound effects

Screenshot

Original link: http://www.angelfire.com/ri/nctv8/lightning.tar.gz

Mirror (code): lightning

stars - A rotating starfield demo

Screenshot

Original link: https://www.libsdl.org/projects/stars/

Mirror (original code archive): stars-1.0.tar.gz

Mirror (code): stars-1.0

Birthday Intro - a fast written birthday intro for a friend

Screenshot

Original link: http://www.syntheticsw.com/~wizard/projects/birthday/

Mirror (code): birthday

Fading - Fading technique using a black Surface instead of expensive pixel operations.

Screenshot

Original link: http://www.2dgame-tutorial.com/sdl/fading.htm

Mirror (code): fadingv3

flxplay - an FLX/FLC animation player

Screenshot

Original link: http://www.libsdl.org/projects/flxplay/

Mirror (original code archive): flxplay-0.2.tar.gz

Mirror (code): flxplay-0.2

SDL_Collide - collision detection library

Screenshot

Original link: http://gpwiki.org/index.php/Files:Sdl_collide.zip

Mirror (code): sdl_collide

SDL_BlitPool Library

Screenshot

Original link: http://members2.jcom.home.ne.jp/shirowmiura/BlitPool/index_en.html

Mirror (code): SDL_BlitPool

SDL Sprite Class

Screenshot

Original link: https://kennycason.com/posts/2009-01-02-sprite-class-in-c-using-sdl.html

Mirror (code): sdl_sprite

Bouncing Penguin - Grab the bouncing penguin with your mouse, and throw him!

Screenshot

Original link: http://gpwiki.org/index.php/Files:SDL_bouncing.zip

Mirror (code): bouncing

cmouse - one way to implement color cursors with SDL

Screenshot

Original link: http://www.libsdl.org/projects/cmouse

Mirror (code): Mouse

newvox - Voxel-style landscape rendering fly-by

Screenshot

Original link: https://www.libsdl.org/projects/newvox/

Mirror (code): newvox-1.0

Scrap - An example of cut-and-paste in an SDL application

Screenshot

Original link: https://www.libsdl.org/projects/scrap/

Mirror (code): scrap-1.0

screenart - A palette animation based screen art demo

Screenshot

Original link: https://www.libsdl.org/projects/screenart/

Mirror (code): screenart-1.1

SDL_plattest - simple 3D, 2D, and sound demonstration programs

Screenshot

Original link: http://burningsmell.org/SDL_plattest/

Mirror (code): SDL_plattest

Custom Resource Files

Original link: http://gpwiki.org/

Mirror (code): C_CustomResource

RWops demo - Display images and play sounds from custom resource files using RWops

Screenshot

Original link: http://gpwiki.org/index.php/Files:SDL_ResourceLoader.zip

Mirror (code): SDL_ResourceLoader

SDL Gl - Using SDL With OpenGL

Screenshot

Original link: http://gpwiki.org/index.php/Files:Sdl_ogl.zip

Mirror (code): sdl_ogl

sdl_wingman - Clean simple demo of using joysticks with SDL

Screenshot

Original link: http://burningsmell.org/sdl_wingman/

Mirror (code): sdl_wingman-0.2

sdl_with_gtk - example of using gtk+ (2.4.x) functionality (e.g. GtkFileChooser) from within a SDL-based program

Original link: http://www.easyfish.de/sdl_with_gtk.tar.bz2

Mirror (code): sdl_with_gtk

Shadow of the Blitz - A simple remake of the game Shadow of the Beast.

Screenshot

Original link: http://www.glop.org/software/sotb/

Mirror (code): sotb-0.2.0

Spiralizer - A 'gillion-lines-on-screen' style spiralic demo

Screenshot

Original link: http://sourceforge.net/projects/spiralizer

Mirror (code): spiralizer-2004-04-20

Nodding Chod - a stupid thing where you click the mouse and some dude's head starts nodding

Screenshot

Original link: http://www.cloudsprinter.com/random/nodchod.zip

Mirror (code): nodchod

phire - Particle based flame effect

Screenshot

Original link: http://sdl.kill.mine.nu/phire/

Mirror (code): phire

roaddemo - A demo of drawing textured quads along a bezier path, using SDL and OpenGL

Screenshot

Original link: http://rhk.dataslab.com/roaddemo/

Mirror (code): roaddemo-1.0.1

Mouse & Tiles - An example of how to use the mouse on a tiled landscape realized using some graphic primitives.

Screenshot

Original link: http://mars.sourceforge.net/down.php?dow=e

Mirror (code): SDL_mouse_tile

Sinus font - Just a simple sinus scroller developed to test the possibilities of SDL_ttf library.

Screenshot

Original link: http://www.marsnomercy.org/cms2/content/view/21/78/

Mirror (code): SDL_sinus_font

Mix - Just a simple audio mixer developed to test the possibilities of SDL_mixer library.

Original link: http://www.marsnomercy.org/cms2/content/view/21/78/

Mirror (code): SDL_mix

Isometric Mouse - An example of how to use the mouse on an isometric landscape converting isometric to screen (orthogonal) coordinates.

Screenshot

Original link: http://www.marsnomercy.org/cms2/content/view/21/78/

Mirror (code): SDL_iso_mouse

Mouse Scrolling - This example implements a smooth (I hope) scrolling based on mouse movements using just SDL Blits.

Screenshot

Original link: http://www.marsnomercy.org/cms2/content/view/21/78/

Mirror (code): SDL_mouse_scrolling

GL Blit - An exhaustive example about blitting sprites with OpenGL and SDL.

Screenshot

Original link: http://www.marsnomercy.org/cms2/content/view/21/78/

Mirror (code): GL_blit

A* pathfind - This example implements A* pathfind algorithm using "manhattan distance" heuristic.

Screenshot

Original link: http://www.marsnomercy.org/cms2/content/view/21/78/

Mirror (code): SDL_astar_pathfind

Savesurf - convert every SDL_image loadable file in png and take a screenshot of what is displayed on a SDL or OpenGL screen

Original link: http://encelo.netsons.org/

Mirror (code): PNG_savesurf

SDL Demo - use of direct pixel blitting of geometric shapes, threads, music, text...

Screenshot

Original link: https://www.autistici.org/encelo/prog_sdldemos.php

Mirror (code): SDL_demo

Parallax 2, 3 and 4 - Parallax series of SDL examples

Screenshot Screenshot Screenshot

Original link: http://olofson.net/download/

Mirror (code): parallax-2

Mirror (code): parallax-3

Mirror (code): parallax-4

smoothscroll - ultra smooth scrolling using OpenGL for sub-pixel accurate and fast rendering

Screenshot

Original link: http://olofson.net/download/

Mirror (code): smoothscroll-1.1

ballfield - "3D" sprite demo using SDL and SDL_image

Screenshot

Original link: http://olofson.net/download/

Mirror (code): ballfield-1.0

pig - use of a fixed virtual logic frame rate together with interpolation, also known as "tweening"

Screenshot

Original link: http://olofson.net/download/

Mirror (code): pig-1.0

blur - demo with some blurred "wire netted" 3d objects, spectrum analyzer (fft) and scopes for music, text effect

Screenshot

Original link: https://su2.info/demos/

Mirror (code): blur-0.1

flares - graphics reacting to the music, alpha blending, scopes

Screenshot

Original link: https://su2.info/demos/

Mirror (code): flares-0.4

fire - fire/flames with some other whirling effect

Screenshot

Original link: https://su2.info/demos/

Mirror (code): fire-0.3

cairosdl - Helpers for drawing with cairo onto SDL surfaces

Screenshot Screenshot Screenshot

Original link: https://cgit.freedesktop.org/~joonas/cairosdl/

Mirror (code): cairosdl

Optimum Demos - A collection of demos from the Optimum demo group

Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot

Original link: https://www.libsdl.org/projects/optimum/

Mirror (code): optimum-1.0

Games

OilWar - Waste the invaders

Screenshot

Original link: https://code.google.com/archive/p/sdl-gweled/downloads

Mirror (code): OilWar-1.2.1

Twig's In Space - old-style video game as in the '80s

Screenshot

Original link: http://furball.schemm.lssu.edu/Twigs_In_Space/

Mirror (code): twigsinspace

TwigMan - jumping game meant to demonstate gravity and platform games

Screenshot

Original link: http://furball.schemm.lssu.edu/SDL/

Mirror (code): TwigMan

Aliens - an example of using SDL with SDL_image and SDL_mixer

Screenshot

Original link: http://www.libsdl.org/projects/aliens

Mirror (code): aliens-1.0.2

Eat - A simple little game where you catch food falling from the top

Screenshot

Original link: http://gpwiki.org/index.php/Files:EatCppSDL.zip

Mirror (code): EatCppSDL

KySoko - sokoban clone

Screenshot

Original link: http://gpwiki.org/index.php/Files:KySoko.zip

Mirror (code): KySoko

Paddles - pong clone

Screenshot

Original link: http://gpwiki.org/index.php/Files:Paddles-lin.tar.gz

Mirror (code): paddles

SDL Invaders - game inspired by the arcade classic Space Invaders

Screenshot

Original link: https://sourceforge.net/projects/sdlinvaders/

Mirror (code): SDLInvaders

SDLMemory - a very simple memory game

Screenshot

Original link: https://www.scs2.net/next/index.php?id=200

Mirror (code): SDLMemory

Jetpac - The Return

Screenshot

Original link: http://web.ukonline.co.uk/james.blewitt/jetpac.html

Mirror (code): jetpac-0.2.5

GNUfo - a shoot'em up game

Screenshot

Original link: http://jeuxfr.free.fr/Ufo/

Mirror (code): GNUfo

Modest Bricks

Screenshot

Original link: https://greg-kennedy.com/wordpress/2019/05/01/modest-bricks/

Mirror (code): modest

maze-rays - randomly-generated maze in a first-person perspective

Screenshot

Original link: http://code.google.com/p/maze-rays/

Mirror (code): maze-rays-1.1

lagunex

Screenshot

Original link: http://www.arcasas.es/lagunex/descargar.php

Mirror (code): lagunex-1.0.orig

Moon Lander for Linux

Screenshot

Original link: http://magigames.org/moonlander.html

Mirror (code): moon-lander

SDL Scavenger

Screenshot

Original link: https://sourceforge.net/projects/sdlscavenger/

Mirror (code): sdlscav-145