mirror of
https://github.com/bgiraudr/Adoranda.git
synced 2024-06-05 04:21:25 +02:00
27 lines
454 B
C
27 lines
454 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
|
|
};
|
|
|
|
/*get the input with a timeout*/
|
|
int get_inputs(void);
|
|
struct Game init_game(struct Player *player); |