blob: 4a71504e693ec9d1b6c50ddb701e1980c042d103 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "utils.h"
#include "settings.h"
#ifndef MAP_H
#define MAP_H
#define MAP_ZOOM_MIN 2.0
#define MAP_ZOOM_MAX 30.0
typedef struct {
Rectangle rect;
RenderTexture render;
Camera2D camera;
Vector2 playerPosition;
bool isEnabled;
bool isFullSize;
Texture heightmap;
} Map;
void initMap(Map* map, const World* world, const Settings* settings);
void updateMap(Map* map, Game* game);
void closeMap(Map* map);
#endif
|