[add] Load BroomRace Bubble
[add] Sound tool 추가 [add] Sound Event 분리
This commit is contained in:
@@ -970,7 +970,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\BroomRace_Bubble.h">
|
||||
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CamPosition_WorldLook.h">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||
</ClInclude>
|
||||
@@ -2009,7 +2009,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\BroomRace\Bubble">
|
||||
<UniqueIdentifier>{ce57978a-c208-4fe6-bbfd-8f582c20ff07}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook">
|
||||
<UniqueIdentifier>{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -2892,9 +2892,6 @@
|
||||
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
|
||||
</ClCompile>
|
||||
@@ -2907,6 +2904,9 @@
|
||||
<ClCompile Include="..\Private\BroomRace_Bubble.cpp">
|
||||
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "Broom.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "EffectPool.h"
|
||||
|
||||
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -39,6 +40,8 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
|
||||
|
||||
m_pInfoInstance->Add_Event(TEXT("BROOMRACENPCINTERACT"), [this](void* p) {this->RaceReady(); });
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -357,6 +360,11 @@ void CBroomRaceManager::RaceReady()
|
||||
MSG_BOX("Failed Load Balloons");
|
||||
}
|
||||
|
||||
if (FAILED(Load_Broomrace_Effect()))
|
||||
{
|
||||
MSG_BOX("Failed Load Broomrace_Effect");
|
||||
}
|
||||
|
||||
CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {};
|
||||
|
||||
/* InstanceProp RouteMarker*/
|
||||
@@ -577,6 +585,48 @@ HRESULT CBroomRaceManager::Load_Balloons()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Load_Broomrace_Effect()
|
||||
{
|
||||
CEffectPool* pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
|
||||
if (nullptr == pEffectPool)
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/EffectPart/Bubble_Data.xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
_float4 vPosition = {};
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &vPosition.z);
|
||||
vPosition.w = 1.f;
|
||||
|
||||
pEffectPool->Use_Skill(SKILL_TYPE::BROOM_RACE_BUBBLE, this, &vPosition);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ void CBroomRace_Bubble::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = pBubble->Get_WorldPostion();
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
bStartCinematic = true;
|
||||
#elif Bin
|
||||
bStartCinematic = false;
|
||||
#elif gimchi
|
||||
#elif gimch
|
||||
bStartCinematic = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -126,6 +126,8 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_fRayDistance = 5.f;
|
||||
m_pModelCom->Set_DisableRootMotionScale(true);
|
||||
|
||||
Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ class CBroomRaceManager final : public CGameObject
|
||||
|
||||
HRESULT Load_RaceRing();
|
||||
HRESULT Load_Balloons();
|
||||
HRESULT Load_Broomrace_Effect();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
Reference in New Issue
Block a user