2010-01-21 18:32:17 +00:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
2010-01-15 12:19:54 +00:00
|
|
|
/* amount of speed to slow down on bounce */
|
2010-01-23 20:15:45 +00:00
|
|
|
#define BOUNCE_SLOWDOWN 4
|
2010-01-15 12:19:54 +00:00
|
|
|
|
|
|
|
/* minimum speed of the ball */
|
2010-01-21 18:32:17 +00:00
|
|
|
#define BALL_MINSPEED 64
|
|
|
|
#define BALL_MAXSPEED 224
|
2010-01-15 12:19:54 +00:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
2010-01-15 14:42:46 +00:00
|
|
|
|
|
|
|
/* "color" of the rebound */
|
|
|
|
#define REBOUND_COLOR 2
|
2010-01-21 18:32:17 +00:00
|
|
|
|
2010-01-23 20:15:45 +00:00
|
|
|
/* rebound reflection: values to add to the vector at rebound field n
|
|
|
|
* the size of this array must be REBOUND_SIZE +2
|
|
|
|
*/
|
|
|
|
static const int8_t rebound_reflection[6][2] =
|
|
|
|
{
|
|
|
|
{-72, -20}, /* offside left */
|
|
|
|
{-40, -12}, /* left */
|
|
|
|
{-16, -8}, /* center left */
|
|
|
|
{ 16, -8}, /* center right */
|
|
|
|
{ 40, -12}, /* right */
|
|
|
|
{ 72, -20} /* offside right */
|
|
|
|
};
|
|
|
|
|
2010-01-21 18:32:17 +00:00
|
|
|
#endif /* CONFIG_H */
|
2010-01-23 20:15:45 +00:00
|
|
|
|