mirror of https://github.com/bgiraudr/Adoranda.git
28 lines
472 B
C
28 lines
472 B
C
#pragma once
|
|
#include "camera.h"
|
|
|
|
struct Game {
|
|
/*the current map to display*/
|
|
struct Map *map;
|
|
/*the player*/
|
|
struct Player *player;
|
|
/*the camera*/
|
|
struct Camera camera;
|
|
/*the background color*/
|
|
int background;
|
|
};
|
|
|
|
enum action {
|
|
DIR_DOWN = 0,
|
|
DIR_LEFT = 1,
|
|
DIR_UP = 2,
|
|
DIR_RIGHT = 3,
|
|
ACTION_SHIFT = 4,
|
|
ACTION_ALPHA = 5,
|
|
ACTION_F1 = 6,
|
|
ACTION_OPTN = 7
|
|
};
|
|
|
|
/*get the input with a timeout*/
|
|
int get_inputs(void);
|
|
struct Game init_game(struct Player *player); |