New bossfight layout with fake 'paper cutouts' to work out how the UI would work.

This commit is contained in:
Zed A. Shaw 2025-09-24 01:29:36 -04:00
parent a4fdfb779f
commit d398b042a7
13 changed files with 79 additions and 20 deletions

View file

@ -3,14 +3,19 @@
#include <memory>
#include <SFML/Graphics/RenderWindow.hpp>
#include <guecs/ui.hpp>
#include "textures.hpp"
namespace boss {
using std::shared_ptr;
using namespace DinkyECS;
using namespace textures;
struct UI {
shared_ptr<World> $world = nullptr;
Entity $boss_id = NONE;
SpriteTexture $boss_sprite;
SpriteTexture $player_sprite;
SpriteTexture $floor_sprite;
guecs::UI $gui;
UI(shared_ptr<World> world, Entity boss_id);
@ -18,6 +23,7 @@ namespace boss {
void init();
void render(sf::RenderWindow& window);
bool mouse(float x, float y, guecs::Modifiers mods);
void position_sprite(SpriteTexture& st, const std::string& name, float scale, bool at_mid=false);
bool boss_dead();
};
}