Adoranda/include/engine.h

15 lines
407 B
C
Raw Normal View History

2021-07-29 18:33:22 +02:00
#pragma once
#define ENGINE_TICK 25
2021-07-29 18:33:22 +02:00
struct game {
struct map *map;
struct player *player;
};
void engine_draw(struct game const *game);
2021-08-04 20:12:53 +02:00
void engine_draw_map_around_player(struct game const *game);
2021-07-29 18:33:22 +02:00
void engine_draw_player(struct player const *player);
void engine_move(struct game *game, int direction);
int map_walkable(struct map const *map, int x, int y);
void engine_tick(struct game *game, int dt);