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

bouncy.h File Reference

Example class definitions and functions for using Spritelib. More...

#include <spritelib/sprite.h>
#include "screen.h"

Include dependency graph for bouncy.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

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.


Detailed Description

Example

Definition in file bouncy.h.


Generated on Sat Oct 11 13:19:26 2003 for Spritelib by doxygen 1.3.4