Better work computer. Now it's a cubicle that you work at. It's debatable whether the cubicle is stealing your soul or clicker is.

main
Zed A. Shaw 3 weeks ago
parent ac24f2cc36
commit f5f16d650f
  1. 4
      assets/config.json
  2. BIN
      assets/work_computer-1024.png
  3. 8
      main.cpp

@ -18,8 +18,8 @@
}, },
"work_computer": "work_computer":
{"path": "assets/work_computer-1024.png", {"path": "assets/work_computer-1024.png",
"frame_width": 1024, "frame_width": 1280,
"frame_height": 1024 "frame_height": 720
}, },
"clicker_treat_bone": "clicker_treat_bone":
{"path": "assets/clicker_treat_bone.png", {"path": "assets/clicker_treat_bone.png",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 KiB

After

Width:  |  Height:  |  Size: 668 KiB

@ -77,7 +77,7 @@ struct ClickerUI {
"[FoodBowl|_|*%(300,400)clicker|_|_|_]" "[FoodBowl|_|*%(300,400)clicker|_|_|_]"
"[WaterBowl|_|_ |_|_|_]" "[WaterBowl|_|_ |_|_|_]"
"[Mood|_|_ |_|_|_]" "[Mood|_|_ |_|_|_]"
"[_|_|_ |_|_|_]" "[Money|_|_ |_|_|_]"
"[Treat|Food|Water|Pet|Work]"); "[Treat|Food|Water|Pet|Work]");
} }
@ -160,13 +160,15 @@ struct WorkComputerUI {
WorkComputerUI() { WorkComputerUI() {
$gui.position(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); $gui.position(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
$gui.layout("[_|*%(300)computer|_|_|_]"); $gui.layout("[computer]");
} }
void init() { void init() {
$gui.set<guecs::Background>($gui.MAIN, {$gui.$parser});
auto computer = $gui.entity("computer"); auto computer = $gui.entity("computer");
$gui.set<guecs::Sprite>(computer, {"work_computer"});
$gui.set<guecs::Label>(computer, {L"Work Computer"}); $gui.set<guecs::Label>(computer, {L"Work Computer"});
$gui.set<guecs::Sprite>(computer, {"work_computer"});
$gui.set<guecs::Clickable>(computer, { [&](auto, auto) { $gui.set<guecs::Clickable>(computer, { [&](auto, auto) {
GO_TO_WORK = false; GO_TO_WORK = false;
fmt::println("Leaving Work!"); fmt::println("Leaving Work!");

Loading…
Cancel
Save