First hack to get a random gen map going.

This commit is contained in:
Zed A. Shaw 2025-01-30 13:23:12 -05:00
parent 2daa1c9bd5
commit 56d67aba28
7 changed files with 72 additions and 34 deletions

View file

@ -19,7 +19,7 @@ struct Sprite {
};
struct TexturePack {
std::vector<sf::Image> images;
std::vector<sf::Image> surfaces;
std::vector<Sprite> sprites;
std::unordered_map<std::string, SpriteTexture> sprite_textures;
sf::Image floor;
@ -30,7 +30,7 @@ struct TexturePack {
void load_sprites();
sf::Image load_image(std::string filename);
Sprite& get_sprite(size_t sprite_num);
const uint32_t* get_texture(size_t num);
const uint32_t* get_surface(size_t num);
// this needs to go into a map place
void position_sprite(double x, double y, std::string name);
};