summaryrefslogtreecommitdiff
path: root/src/util.h
blob: 8bd1d5e1ad8c4b9ca81097bffd3321d21bad1048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

struct Point2D {
	int x, y;
};

enum Direction {
	North,
	East,
	South,
	West
};

constexpr int TileSize = 24;

/*
 * Converts screen coordinates to a tile on the map
 */
Point2D ScreenToTile(Point2D);