so://phie

freezo

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

blob: d67b88ec25fc974ea14fc393635a8790c02a3b9c (569 bytes)[doc][blame][raw]

1#pragma once

2

3typedef struct Boss boss_t;

4

5#include "game.h"

6#include "util.h"

7

8typedef enum {

9 BOSS_TEST,

10} boss_e;

11

12struct Boss {

13 pos_t pos;

14 boss_e type;

15 bool on_ground;

16 float velocity;

17 float gravity;

18 int dir;

19 bool stunned;

20 bool frozen;

21 int frozen_timer;

22 float fall_height;

23 fz_timer_t *timer_walking;

24 fz_timer_t *timer_sneaking;

25};

26

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

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

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

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

31void boss_free(boss_t *boss);