32 lines
355 B
C
32 lines
355 B
C
// v0.3
|
|
#ifndef BONUS_H
|
|
#define BONUS_H
|
|
|
|
#include <box.h>
|
|
|
|
// Bonus
|
|
// Come from boxes
|
|
|
|
typedef enum
|
|
{
|
|
BONUS_NONE=0,
|
|
BONUS_CHAMPI,
|
|
BONUS_FLEUR,
|
|
BONUS_1UP,
|
|
BONUS_STAR
|
|
} bonus_id; // TODO add fragment
|
|
|
|
typedef struct
|
|
{
|
|
int type;
|
|
box_t b;
|
|
int p1;
|
|
} bonus_t;
|
|
|
|
void bonus_set(bonus_id t, int x, int y);
|
|
|
|
void bonus_draw();
|
|
|
|
void bonus_move();
|
|
|
|
#endif |