A retro platform game
git clone git://soophie.de/freezo
blob: 6f41e1fe74f9be0c2eb788ceb6ba72da3c14b8fb (372 bytes)[raw]
1
#pragma once3
typedef struct Door door_t;5
#include "game.h"6
#include "util.h"8
#define DOOR_COUNTDOWN 2010
struct Door {11
pos_t pos;12
bool is_locked;13
int countdown;14
};16
door_t *door_create(pos_t pos);17
void door_update(door_t *door, game_t *game);18
void door_draw(door_t *door, game_t *game);19
void door_free(door_t *door);21
bool door_unlock(door_t *door, game_t *game);