supercasiobros/include/bonus.h

32 lines
355 B
C
Raw Normal View History

2020-01-29 14:34:47 +01:00
// v0.3
#ifndef BONUS_H
#define BONUS_H
2020-01-29 14:34:47 +01:00
#include <box.h>
2020-01-29 14:34:47 +01:00
// Bonus
// Come from boxes
2020-01-29 14:34:47 +01:00
typedef enum
{
BONUS_NONE=0,
BONUS_CHAMPI,
BONUS_FLEUR,
BONUS_1UP,
BONUS_STAR
} bonus_id; // TODO add fragment
2020-01-29 14:34:47 +01:00
typedef struct
{
int type;
box_t b;
int p1;
} bonus_t;
void bonus_set(bonus_id t, int x, int y);
2019-12-08 16:34:32 +01:00
void bonus_draw();
2020-01-29 14:34:47 +01:00
2019-12-08 16:34:32 +01:00
void bonus_move();
#endif