New bossfight layout with fake 'paper cutouts' to work out how the UI would work.
This commit is contained in:
parent
a4fdfb779f
commit
d398b042a7
13 changed files with 79 additions and 20 deletions
|
|
@ -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();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue