borgware-2d/games/breakout/config.h

33 lines
624 B
C
Raw Normal View History

2010-01-21 18:32:17 +00:00
#ifndef CONFIG_H
#define CONFIG_H
/* amount of speed to slow down on bounce */
2010-01-21 18:32:17 +00:00
#define BOUNCE_SLOWDOWN 8
/* minimum speed of the ball */
2010-01-21 18:32:17 +00:00
#define BALL_MINSPEED 64
#define BALL_MAXSPEED 224
/* initial amount of lifes */
#define START_LIFES 3
2010-01-15 14:42:46 +00:00
/* rebound size */
2010-01-21 18:32:17 +00:00
#define REBOUND_SIZE 4
/* rebound reflection: values to add to the vector at rebound field n
* note: directions are inverted
*/
static int8_t rebound_reflection[6][2] =
{
{-54,-20}, /* offside */
{-32,-12},
{-16, -8}, /* side ... middle */
{16, -8},
{32, -12},
{54, -20}
};
2010-01-15 14:42:46 +00:00
/* "color" of the rebound */
#define REBOUND_COLOR 2
2010-01-21 18:32:17 +00:00
#endif /* CONFIG_H */