so://phie

freezo

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

blob: 6f41e1fe74f9be0c2eb788ceb6ba72da3c14b8fb (372 bytes)[raw]

1#pragma once

2

3typedef struct Door door_t;

4

5#include "game.h"

6#include "util.h"

7

8#define DOOR_COUNTDOWN 20

9

10struct Door {

11 pos_t pos;

12 bool is_locked;

13 int countdown;

14};

15

16door_t *door_create(pos_t pos);

17void door_update(door_t *door, game_t *game);

18void door_draw(door_t *door, game_t *game);

19void door_free(door_t *door);

20

21bool door_unlock(door_t *door, game_t *game);