This commit is contained in:
2025-10-23 15:44:43 +08:00
parent a6cb5db26c
commit bf35c6f0d8

View File

@@ -16,26 +16,26 @@ Scene_Test::~Scene_Test()
void Scene_Test::Enter()
{
// SetScale(VecFPos(1.2f, 1.2f));
// map = new GameMap;
// map->LoadMap("map/cataclysm/town/elvengard/new_elvengard.map");
// map->Enter(this);
SetScale(VecFPos(1.2f, 1.2f));
map = new GameMap;
map->LoadMap("map/cataclysm/town/elvengard/new_elvengard.map");
map->Enter(this);
// RefPtr<CharacterObject> obj = new CharacterObject();
// obj->SetPosition({1000, 300, 0});
// obj->Construction(0);
RefPtr<CharacterObject> obj = new CharacterObject();
obj->SetPosition({1000, 300, 0});
obj->Construction(0);
// RefPtr<MonsterObject> monster = new MonsterObject();
// monster->SetPosition({1200, 301, 0});
// monster->Construction(1);
// monster->SetDirection(1);
RefPtr<MonsterObject> monster = new MonsterObject();
monster->SetPosition({1200, 301, 0});
monster->Construction(1);
monster->SetDirection(1);
// map->AddObject(obj);
// map->AddObject(monster);
map->AddObject(obj);
map->AddObject(monster);
// _camera = new GameMapCamera;
// _camera->SetFromActor(obj.Get());
// return;
_camera = new GameMapCamera;
_camera->SetFromActor(obj.Get());
return;
// // SDL_Log("Scene_Test::进入测试场景!");
RefPtr<Actor> actor = new Actor;