Index of /~TDP005/2012-HT2/kursmaterial/tdp005-sdl-lecture

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]ChangeLog2013-10-30 17:48 1.2K 
[   ]Makefile2013-10-30 17:48 821  
[TXT]README.txt2013-10-30 17:48 1.4K 
[   ]animation.cpp2013-10-30 17:48 2.6K 
[   ]basics.cpp2013-10-30 17:48 630  
[IMG]blue.png2013-10-30 17:48 902  
[   ]collision.cpp2013-10-30 17:48 2.3K 
[IMG]green.png2013-10-30 17:48 908  
[   ]images.cpp2013-10-30 17:48 1.1K 
[   ]keyboard.cpp2013-10-30 17:48 1.4K 
[   ]mouse.cpp2013-10-30 17:48 1.7K 
[IMG]red.png2013-10-30 17:48 768  
[   ]tdp005-sdl-lecture.tar.gz2013-10-30 17:48 5.2K 

Contents:
1. About SDL
2. Installing SDL
3. About these examples


1. About SDL (Simple Directmedia Layer)
=======================================

Reasons for choosing SDL:

* Cross platform
* Relatively easy to learn
* Free and Open source
* Works well for creating 2D games

SDL's homepage is available at http://www.libsdl.org/

2. Installing SDL
=================

On Ubuntu, install the package libsdl1.2-dev using APT:

sudo apt-get install libsdl1.2-dev

You might also want to install the packages SDL_image (libsdl-image1.2-dev),
SDL_gfx (libsdl-gfx1.2-dev) and SDL_ttf libsdl-ttf2.0-dev.

It is highly recommended to use SDL_image for loading images instead of the
functions from SDL.

3. About these examples
=======================

These examples show the basics of building an application using SDL.

They are incremental, meaning the later ones build upon the earlier
ones.

The order they should be worked through is:

    1. basics.cpp     	 # Creating a window and a main loop
    2. images.cpp	 # Loading and displaying images
    3. keyboard.cpp	 # Handling keyboard events
    4. mouse.cpp	 # Handling mouse events
    5. collision.cpp	 # Collision handling
    6. animation.cpp	 # Animating sprites

Use the accompanying Makefile to compile the examples.



=======================================================
This package was written by Torbjörn Lönnemark.