Adoranda/include/game.h

28 lines
472 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 {
2021-08-07 01:49:03 +02:00
DIR_DOWN = 0,
DIR_LEFT = 1,
DIR_UP = 2,
DIR_RIGHT = 3,
2021-08-08 01:43:26 +02:00
ACTION_SHIFT = 4,
2021-12-23 18:37:48 +01:00
ACTION_ALPHA = 5,
2022-01-23 00:53:07 +01:00
ACTION_F1 = 6,
ACTION_OPTN = 7
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);