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

#include "demo.h"

struct map {
  int* contents;

  int width;
  int height;
};

/*
 * 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_