Finally have the boss fight rendering into a render texture correctly. The 'flipped' problem was because I didn't call .display() in render.

This commit is contained in:
Zed A. Shaw 2025-10-31 12:50:20 -04:00
parent 82a38e5fa1
commit 740e1052fe
6 changed files with 17 additions and 11 deletions

View file

@ -35,7 +35,7 @@ namespace scene {
Engine(components::AnimatedScene& scene);
void init();
void render(sf::RenderWindow& window);
void render(sf::RenderTarget& window);
bool mouse(float x, float y, guecs::Modifiers mods);
sf::Vector2f position_sprite(textures::SpriteTexture& st, const std::string& cell_name, float scale_x, float scale_y, bool at_mid, float x_diff=0.0f, float y_diff=0.0f);