summaryrefslogtreecommitdiff
path: root/Week1-Pacman/src/map.h
blob: 0721a94a4c73aa74b85d56207a6b467d0836496e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MAP_H_
#define MAP_H_

#include "demo.h"

struct map {
  int* contents;

  int width;
  int height;

  SDL_Rect* colliders;
  int collider_count;
};

/*
 * Load map exported as CSV file from tiled.
*/
void load_map(const char* filename, struct map* map);
void draw_map(struct demo* demo, struct map* map);
void map_init(struct demo* demo);

#endif // MAP_H_