-
Notifications
You must be signed in to change notification settings - Fork 0
/
assets.hpp
39 lines (32 loc) · 1.35 KB
/
assets.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef ASSETS_HPP // include guard
#define ASSETS_HPP
#include <vector>
#include <SFML/Graphics.hpp>
class Assets {
public:
std::vector<sf::Texture> wall_textures;
std::vector<sf::Texture> sky_textures;
std::vector<sf::Texture> ceil_textures;
std::vector<sf::Texture> floor_textures;
std::vector<sf::Texture> sprite_textures;
Assets () {
sf::Texture texture;
texture.loadFromFile("resources/textures/walls.png");
wall_textures.push_back(texture);
texture.loadFromFile("resources/textures/sky.png");
sky_textures.push_back(texture);
texture.loadFromFile("resources/textures/floor1.png");
floor_textures.push_back(texture);
texture.loadFromFile("resources/textures/floor2.png");
floor_textures.push_back(texture);
texture.loadFromFile("resources/textures/ceiling1.png");
ceil_textures.push_back(texture);
texture.loadFromFile("resources/textures/ceiling2.png");
ceil_textures.push_back(texture);
texture.loadFromFile("resources/textures/sprites.png");
sprite_textures.push_back(texture);
texture.loadFromFile("resources/textures/sword_00.png");
sprite_textures.push_back(texture);
};
};
#endif /* ASSETS_HPP */