aboutsummaryrefslogtreecommitdiffstats
path: root/src/map.h
blob: 23faebe59b7fc59fc181e19ffb228aca05b20875 (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
#include "utils.h"
#include "settings.h"

#ifndef MAP_H
#define MAP_H

#define MAP_ZOOM_MIN 1.0
#define MAP_ZOOM_MAX 30.0

typedef struct {
  Rectangle rect;
  Rectangle heightmapRect;
  float zoom;
  Vector2 playerPosition;
  float playerRotation;
  
  bool isEnabled;
  bool isFullSize;
} Map;

void initMap(Map* map, const Settings* settings);
void updateMap(Map* map, Game* game);

#endif