Making Solid Controller work

This commit is contained in:
2023-04-01 22:35:16 -07:00
parent 2ce629dc52
commit 55dc3dc943
5 changed files with 21 additions and 15 deletions

View File

@ -22,4 +22,5 @@ set(ROSE_ASSETS_DIR ${DAWN_ASSETS_DIR}/games/rose)
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Player.xml)
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Urchin.xml)
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Crab.xml)
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/SwordHitbox.xml)
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/SwordHitbox.xml)
tool_prefab(${ROSE_ASSETS_DIR}/prefabs/Wall.xml)

View File

@ -9,6 +9,7 @@
#include "prefabs/Player.hpp"
#include "prefabs/Urchin.hpp"
#include "prefabs/Crab.hpp"
#include "prefabs/Wall.hpp"
#include "prefabs/ui/debug/FPSLabel.hpp"
#include "display/mesh/CapsuleMesh.hpp"
#include "display/mesh/CubeMesh.hpp"
@ -23,11 +24,13 @@ namespace Dawn {
auto player = Player::create(this);
auto urchin = Urchin::create(this);
urchin->transform.setLocalPosition(glm::vec3(0, 0, -5));
auto wall = Wall::create(this);
auto crab = Crab::create(this);
crab->transform.setLocalPosition(glm::vec3(3, 0, 0));
// auto urchin = Urchin::create(this);
// urchin->transform.setLocalPosition(glm::vec3(0, 0, -5));
// auto crab = Crab::create(this);
// crab->transform.setLocalPosition(glm::vec3(3, 0, 0));
canvas = UICanvas::create(this);