summaryrefslogtreecommitdiff
path: root/src/assets.cpp
blob: 94651c647cafb9965444dc4835dbcd3a73b384f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "common.hpp"

namespace assets {

human_assets_t human;
sf::Texture tile_dirt;
sf::Texture tile_wall;

void load(void)
{
	human.head_idle.load("assets/units/human/head_idle", 1, 1, 1);
	human.body_idle.load("assets/units/human/body_idle", 2, 2, 2);
	human.legs_idle.load("assets/units/human/legs_idle", 2, 2);
	human.legs_walking.load("assets/units/human/legs_walking", 2, 2);

	tile_dirt.loadFromFile("assets/tiles/dirt.png");
	tile_wall.loadFromFile("assets/tiles/wall.png");
}

} // namespace assets