Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Example Code


Files

file  bouncy.h
 Example class definitions and functions for using Spritelib.

file  spritelibtest.cpp
 Example code.


Classes

class  Bouncy
 Slightly modified Sprite. More...


Defines

#define BOUNCY_VELOCITY   300
 Velocity in thousandths-of-pixel per millisecond.


Functions

Sfxp v1_final (int m1, int m2, Sfxp v1, Sfxp v2)
 The famous elastic-collision equation, pt 1.

Sfxp v2_final (int m1, int m2, Sfxp v1, Sfxp v2)
 The famous elastic-collision equation, pt 2.

void ElasticCollide2 (Sprite *spr1, Sprite *spr2)
 Calculates true elastic collisions between two sprites.

void MoveApart (Sprite *spr1, Sprite *spr2)
 Moves two sprites apart from each other, if they're colliding.

void TestFxp ()
 Fixed-point demonstration routine.

int main (int argc, char *argv[])
 A brief and simple test of SpriteLib.


Detailed Description

Example code showing how to use Sprite, SpriteManager, and SpriteLoader
Generated on Sat Oct 11 13:19:40 2003 for Spritelib by doxygen 1.3.4