aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-07 13:21:09 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-07 13:21:09 +0100
commit80fc064c77bb61d9b329b58532c9cacd99038e0a (patch)
tree35f3a52350294801f8bcee2b66befba5df2ec695 /game/GameScene.cpp
parenta2d9f875a219d6d1c53784a307b4915cc4e1ee14 (diff)
First setup for NPCs
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index 2b6b051..02af8db 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -5,6 +5,7 @@
#include "background/BackgroundSubScene.h"
#include "player/PlayerSubScene.h"
+#include "workers/WorkersSubScene.h"
#include <cmath>
#include <crepe/api/Animator.h>
@@ -41,6 +42,8 @@ void GameScene::load_scene() {
PlayerSubScene player(*this);
+ WorkersSubScene workers(*this);
+
GameObject floor = new_object("floor", "game_world", vec2(0, 325));
floor.add_component<Rigidbody>(Rigidbody::Data {
.body_type = Rigidbody::BodyType::STATIC,