Adoranda/include/game.h

30 lines
467 B
C
Raw Normal View History

2021-07-29 18:33:22 +02:00
#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;
};
2021-07-29 18:33:22 +02:00
2021-12-23 18:37:48 +01:00
enum action {
DIR_DOWN,
DIR_LEFT,
DIR_UP,
DIR_RIGHT,
ACTION_SHIFT,
ACTION_MENU,
ACTION_ALPHA,
ACTION_OPTN,
ACTION_F1,
ACTION_F2,
2021-08-25 01:01:43 +02:00
};
/*get the input with a timeout*/
int get_inputs(void);
struct Game init_game(struct Player *player);