Mute the bark for now and try a pixel art thing on the work computer after a bit of more art work.

This commit is contained in:
Zed A. Shaw 2025-06-11 00:36:59 -04:00
parent f5f16d650f
commit 56f36b33ee
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,6 @@
#include "guecs/sfml/backend.hpp"
#include "guecs/sfml/components.hpp"
#include "guecs/sfml/sound.hpp"
#include "guecs/ui.hpp"
#include <fmt/xchar.h>
#include <deque>
@ -164,11 +165,12 @@ struct WorkComputerUI {
}
void init() {
$gui.set<guecs::Background>($gui.MAIN, {$gui.$parser});
guecs::Background bg{$gui.$parser};
bg.set_sprite("work_computer");
$gui.set<guecs::Background>($gui.MAIN, bg);
auto computer = $gui.entity("computer");
$gui.set<guecs::Label>(computer, {L"Work Computer"});
$gui.set<guecs::Sprite>(computer, {"work_computer"});
$gui.set<guecs::Clickable>(computer, { [&](auto, auto) {
GO_TO_WORK = false;
fmt::println("Leaving Work!");
@ -189,6 +191,7 @@ struct WorkComputerUI {
int main() {
sfml::Backend backend;
sound::mute(true);
guecs::init(&backend);
sf::RenderWindow window(sf::VideoMode({SCREEN_WIDTH, SCREEN_HEIGHT}), "Clicker the Dog");