Skip to content

Commit

Permalink
add avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
jonylu7 committed Mar 22, 2024
1 parent d4fc77a commit cda37f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/Scene/DefaultScene.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DefaultScene {
std::shared_ptr<SpriteSheet> m_TileSetSpriteSheet =
std::make_shared<SpriteSheet>();
GameObjectManager m_Manager;
Dummy m_dummy;
Avatar m_Avatar;
WayPointUnit m_waypointUnit;
};

Expand Down
7 changes: 3 additions & 4 deletions src/Scene/DefaultScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit cda37f9

Please sign in to comment.