Ken-Soft

Software and the World

SDL - Simple Space Shooter Game Demo

Posted under C/C++, Game Development, Programming, Software Development by Kenny on Sunday 20 September 2009 at 8:32 pm
Bookmark and Share

This page contains source code for a simple space shooter game written in C++ using the SDL library. There are no enemies or levels, but only a ship that shoots bullets. This is meant for a beginner who is interested in getting started with SDL for use of making games. (This will be an ongoing tutorial)

All source code can be found in the ZIP file
Version Downloads with project files (All you really need is the source):
Version 3: Enemies, Event Queue(timer based), explosions, bullet & enemy collision, some minor code fixes
Version 2: Animated sprites, uses custom sprite class
New to SDL? Start with Version 1 below
Version 1: Project file for DevCpp (Windows)
Version 1: Project file for Code::Blocks (Linux)

Also, for a Sprite class with rotations, animations, etc. Check out my ongoing Sprite library, also written in C++ using SDL
SDL Sprite Library


No Comments »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Copyright © 2009 www.Ken-Soft.com