A retro platform game
git clone git://soophie.de/freezo
blob: 793e6a2cdee3ff4f7ffc1d3ba7a10ea0df2a034f (568 bytes)[raw]
1
#pragma once3
typedef struct Boss boss_t;5
#include "game.h"6
#include "util.h"8
#define BOSS_WIDTH 12 * SCALE9
#define BOSS_HEIGHT 12 * SCALE10
#define BOSS_SPEED 0.511
#define BOSS_FLOAT_TIME 8012
#define BOSS_RANGE 6 * TILE_WIDTH14
typedef enum {15
BOSS_TEST,16
} boss_e;18
struct Boss {19
pos_t pos;20
boss_e type;21
int dir;22
int float_timer;23
bool is_angry;24
};26
boss_t *boss_create(pos_t pos, boss_e type);27
void boss_update(boss_t *boss, game_t *game);28
void boss_draw(boss_t *boss, game_t *game);29
void boss_kill(boss_t *boss, game_t *game);30
void boss_free(boss_t *boss);