so://phie

freezo

A retro platform game
git clone git://soophie.de/freezo

blob: 793e6a2cdee3ff4f7ffc1d3ba7a10ea0df2a034f (568 bytes)[raw]

1#pragma once

2

3typedef struct Boss boss_t;

4

5#include "game.h"

6#include "util.h"

7

8#define BOSS_WIDTH 12 * SCALE

9#define BOSS_HEIGHT 12 * SCALE

10#define BOSS_SPEED 0.5

11#define BOSS_FLOAT_TIME 80

12#define BOSS_RANGE 6 * TILE_WIDTH

13

14typedef enum {

15 BOSS_TEST,

16} boss_e;

17

18struct Boss {

19 pos_t pos;

20 boss_e type;

21 int dir;

22 int float_timer;

23 bool is_angry;

24};

25

26boss_t *boss_create(pos_t pos, boss_e type);

27void boss_update(boss_t *boss, game_t *game);

28void boss_draw(boss_t *boss, game_t *game);

29void boss_kill(boss_t *boss, game_t *game);

30void boss_free(boss_t *boss);