Scene now renders correctly, but I need to pull out the json in config_scene_element and make a component that's loaded.

This commit is contained in:
Zed A. Shaw 2026-02-13 23:30:57 -05:00
parent 2cef58be69
commit 458bf7e25e
2 changed files with 18 additions and 25 deletions

View file

@ -42,7 +42,7 @@ namespace scene {
void render(sf::RenderTexture& view);
bool mouse(float x, float y, guecs::Modifiers mods);
void attach_text(const std::string& actor, const std::string& text);
Element config_scene_element(nlohmann::json& config, bool and_play, bool duped);
Element config_scene_element(nlohmann::json& config, bool duped);
sf::Vector2f position_sprite(textures::SpriteTexture& st, const std::string& cell_name, sf::Vector2f scale, bool at_mid, float x_diff=0.0f, float y_diff=0.0f);