From cda37f9e558c23a598cac96353bcbf37ef2d99b4 Mon Sep 17 00:00:00 2001 From: jonylu7 Date: Fri, 22 Mar 2024 10:06:40 +0800 Subject: [PATCH] add avatar --- include/Scene/DefaultScene.hpp | 2 +- src/Scene/DefaultScene.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/Scene/DefaultScene.hpp b/include/Scene/DefaultScene.hpp index 13e41864..3c4515c2 100644 --- a/include/Scene/DefaultScene.hpp +++ b/include/Scene/DefaultScene.hpp @@ -54,7 +54,7 @@ class DefaultScene { std::shared_ptr m_TileSetSpriteSheet = std::make_shared(); GameObjectManager m_Manager; - Dummy m_dummy; + Avatar m_Avatar; WayPointUnit m_waypointUnit; }; diff --git a/src/Scene/DefaultScene.cpp b/src/Scene/DefaultScene.cpp index 4ed7112b..5b7ea4f0 100644 --- a/src/Scene/DefaultScene.cpp +++ b/src/Scene/DefaultScene.cpp @@ -28,13 +28,12 @@ void DefaultScene::Start() { m_testdraw.Start(std::vector({glm::vec2(0.F, 0.F)}), DrawOverlays::OverlayShapes::R_CROSS); // m_GameObjectManager.Start(); - m_dummy.setCurrentCell({5,5}); - m_dummy.Start({23,16}); - + m_Avatar.setCurrentCell({5, 5}); + m_Avatar.Start({23, 16}); } void DefaultScene::Update() { - m_dummy.Update(); + m_Avatar.Update(); m_waypointUnit.Update();