diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index ba661a74c..a5d101b93 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -163,6 +163,7 @@ call Update_Resources.bat + @@ -171,6 +172,7 @@ call Update_Resources.bat + @@ -193,6 +195,7 @@ call Update_Resources.bat + @@ -232,8 +235,10 @@ call Update_Resources.bat + + @@ -463,6 +468,7 @@ call Update_Resources.bat + @@ -471,6 +477,7 @@ call Update_Resources.bat + @@ -493,6 +500,8 @@ call Update_Resources.bat + + @@ -531,8 +540,10 @@ call Update_Resources.bat + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 0c2b0d5dd..9aaf0dee3 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -914,15 +914,34 @@ 04.Mechanic\State\State_Combat\State_Block + + 02.GameObjects\Effect\Effects\Stupefy\StupefySide + 02.GameObjects\NPC\Hostile\Monster\Ranrok + + 02.GameObjects\Environment\03.MapElement\Balloon + + + 04.Mechanic\State\State_Combat\State_Parry + + + 02.GameObjects\Effect\Effects\Accio\AccioSide + + + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit + + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + @@ -1905,6 +1924,21 @@ {c0fdb122-503b-47f0-a544-90d153464c9a} + + {e198ab8c-2452-4f6e-adda-ecea58b44da9} + + + {b38bbd65-c266-4117-9a36-a0ec4a8377ca} + + + {b57b393b-0e6f-47ad-9301-46b8f725a452} + + + {4a11eb4b-127e-41f2-8456-cae963c94a4c} + + + {0e6d6920-c33c-4202-a2a5-3c883e1d4597} + @@ -2769,12 +2803,35 @@ 04.Mechanic\State\State_Combat\State_Block + + + + + + 04.Mechanic\State\State_Combat\State_Parry + + + 02.GameObjects\Effect\Effects\Accio\AccioSide + + + 02.GameObjects\Environment\03.MapElement\Balloon + + + 04.Mechanic\State\State_Combat\State_Parry + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + + + + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp index 01478df68..834213de4 100644 --- a/Jusin154_Team3D/Client/Private/Accio.cpp +++ b/Jusin154_Team3D/Client/Private/Accio.cpp @@ -66,7 +66,18 @@ HRESULT CAccio::Initialize(void* pArg) XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity()); - m_fDuration = 6.f; + m_fDuration = 4.f; + + m_Events.emplace(2.f, [&]() { + + m_pRope_Trail->Get_Component()->Rope_Fix(true); + + if (m_isDissolve) + m_pRope_Trail->SetDissolve(true); + + m_pRope_Trail->Get_TrailInfo()->fMass = 0.1f; + + }); return S_OK; } @@ -187,8 +198,6 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg) pCircle->Set_Visible(true); m_pWandLight->Set_Visible(true); - m_pWandLight->Get_Effect_Info()->isDissolve = false; - m_pWandLight->Get_Effect_Info()->isLightDissolve = false; pSpread_Circle->Set_Visible(true); @@ -311,8 +320,6 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc) pCircle->Set_Visible(false); pSpread_Circle->Set_Visible(false); - m_pWandLight->Get_Effect_Info()->isDissolve = true; - m_pWandLight->Get_Effect_Info()->isLightDissolve = true; m_pRotate0->Set_Visible(true); m_pRotate1->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/AccioSide.cpp b/Jusin154_Team3D/Client/Private/AccioSide.cpp new file mode 100644 index 000000000..41beb13af --- /dev/null +++ b/Jusin154_Team3D/Client/Private/AccioSide.cpp @@ -0,0 +1,206 @@ +#include "pch.h" +#include "AccioSide.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CAccioSide::CAccioSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CAccioSide::CAccioSide(const CAccioSide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CAccioSide::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/AccioSide"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CAccioSide::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"AccioSide"; + + + //m_pWandParticle = Get_PartObject("Wand_PT"); + + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + //SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandTrail->SetDissolve(true); + }); + + return S_OK; +} + +void CAccioSide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CAccioSide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + //if (m_isParticleEnd == false) + // m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CAccioSide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CAccioSide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + //m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + return S_OK; +} + +HRESULT CAccioSide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CAccioSide::Ready_Child() +{ + return S_OK; +} + +CAccioSide* CAccioSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CAccioSide* pInstance = new CAccioSide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CAccioSide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CAccioSide::Clone(void* pArg, CGameObject* pOwner) +{ + CAccioSide* pInstance = new CAccioSide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CAccioSide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CAccioSide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CAccioSide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + //Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CAccioSide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CAccioSide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/BombardSide.cpp b/Jusin154_Team3D/Client/Private/BombardSide.cpp index 9e44140a2..70a4b8841 100644 --- a/Jusin154_Team3D/Client/Private/BombardSide.cpp +++ b/Jusin154_Team3D/Client/Private/BombardSide.cpp @@ -50,7 +50,7 @@ HRESULT CBombardSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandTrail); SAFE_ADDREF(m_pWandParticle); - m_fDuration = 2.f; + m_fDuration = 3.f; m_Events.emplace(0.6f, [&]() { m_isParticleEnd = true; diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index 970fd4077..89c0a1342 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -3,11 +3,13 @@ #include "GameInstance.h" #include "RaceRing.h" +#include "MapElement_Balloon.h" #include "Layer.h" #include "BroomRacerAI.h" #include "Player.h" #include "Broom.h" #include "InfoInstance.h" +#include "InstancedProp.h" CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -43,6 +45,7 @@ HRESULT CBroomRaceManager::Initialize(void* pArg) void CBroomRaceManager::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); + switch (m_eRaceState) { case ENUM_CLASS(RACE_STATE::COUNTDOWN): @@ -55,24 +58,33 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta) break; case ENUM_CLASS(RACE_STATE::END): { - for (auto& racer : m_Racers) - { - if (racer.pAI) - { - racer.pAI->Get_Broom()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + if (m_bCurrentRace == true) + { + if (m_pGameInstance->Key_Down(DIK_ESCAPE)) + { + m_bRaceEnd = true; + _float Alpha = 2.f; + m_pInfoInstance->Event_CallBack(TEXT("UIFadeIn"), &Alpha); } - if (racer.pRacer) - { - if (m_pGameInstance->Key_Up(DIK_ESCAPE)) - { - m_bRaceEnd = true; + + for (auto& racer : m_Racers) + { + if (racer.pAI) + { + racer.pAI->Get_Broom()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + } + if (racer.pRacer) + { + } } } + } - break; + break; } + } void CBroomRaceManager::Update(_float fTimeDelta) @@ -112,28 +124,28 @@ void CBroomRaceManager::Update(_float fTimeDelta) } } - if (m_bRaceEnd) { + if (m_bRaceEnd) + { m_fDelay += fTimeDelta; for (auto& racer : m_Racers) { if (racer.pRacer) { if (m_fDelay >= 1.f) { racer.pRacer->Get_Broom()->Set_Ride(false); - - racer.pRacer->Get_Component()->Change_State(FSMSTATE::IDLE); + racer.pRacer->Get_Broom()->Set_Move(true); CTransform* pTransform = racer.pRacer->Get_Component(); CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); - pCharacter->Set_Position(XMLoadFloat4(&m_OriginPos)); pTransform->Set_State(STATE::POSITION, XMLoadFloat4(&m_OriginPos)); + pCharacter->Set_Position(XMLoadFloat4(&m_OriginPos)); m_bRaceEnd = false; m_fDelay = 0.f; + m_bCurrentRace = false; } } } } - - + m_bCurrentRace = true; #ifdef _DEBUG //Describe_Entity(); #endif // _DEBUG @@ -214,160 +226,6 @@ void CBroomRaceManager::Free() void CBroomRaceManager::Describe_Entity() { - //if (GUI::Button("Race Start")) - //{ - m_eRaceState = ENUM_CLASS(RACE_STATE::READY); - const _float SPAWN_DISTANCE = 80.f; - - if (FAILED(Load_RaceRing())) - { - MSG_BOX("Failed Load RaceRing"); - } - CBroomRacerAI::RacerDesc Desc = {}; - for (_uint i = 1; i < 4; i++) - { - Desc.pRacerManager = this; - Desc.iIndex = i; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc))) - return; - } - m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo(); - - for (auto& racer : m_Racers) - { - CTransform* pRingTransform = - m_pRaceRings[0]->Get_Component(); - - //_vector ringPos = pRingTransform->Get_State(STATE::POSITION); - //_vector ringLook = pRingTransform->Get_State(STATE::RIGHT); - //ringLook = XMVector3Normalize(ringLook); - - //_vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE; - - - //if (racer.pAI) - //{ - // CTransform* pTransform = - // racer.pAI->Get_Component(); - // _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f); - // spawnPos.m128_f32[0] += fRand; - - // pTransform->Set_State(STATE::POSITION, spawnPos); - // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - - // racer.pAI->Get_Broom()->Set_Move(false); - //} - //else if (racer.pRacer) - //{ - // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); - // pCharacter->Set_Position(spawnPos); - // CTransform* pTransform = racer.pRacer->Get_Component(); - - // // pTransform->Set_State(STATE::POSITION, spawnPos); - // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE); - // racer.pRacer->Get_Broom()->Set_Move(false); - //} - - //else if (racer.pRacer) - //{ - // CTransform* pTransform = - // racer.pRacer->Get_Component(); - // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); - // pCharacter->Set_Position(spawnPos); - // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE); - // racer.pRacer->Get_Broom()->Set_Move(false); - //} - ////if (GUI::Button("Race Start")) - ////{ - //m_eRaceState = ENUM_CLASS(RACE_STATE::READY); - //const _float SPAWN_DISTANCE = 80.f; - - //if (FAILED(Load_RaceRing())) - //{ - // MSG_BOX("Failed Load RaceRing"); - //} - //CBroomRacerAI::RacerDesc Desc = {}; - //for (_uint i = 1; i < 4; i++) - //{ - // Desc.pRacerManager = this; - // Desc.iIndex = i; - // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc))) - // return; - //} - //m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo(); - - //m_bRaceReady = true; - //} - //if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY)) - //{ - // /*if (GUI::Button("Countdown")) - // {*/ - // m_pInfoInstance->Event_CallBack(TEXT("Ready_Race")); - // m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN); - // //} - //} - } - //for (auto& racer : m_Racers) - //{ - // CTransform* pRingTransform = - // m_pRaceRings[0]->Get_Component(); - - // _vector ringPos = pRingTransform->Get_State(STATE::POSITION); - // _vector ringLook = pRingTransform->Get_State(STATE::RIGHT); - // ringLook = XMVector3Normalize(ringLook); - - // _vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE; - - - // if (racer.pAI) - // { - // CTransform* pTransform = - // racer.pAI->Get_Component(); - // _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f); - // spawnPos.m128_f32[0] += fRand; - - // pTransform->Set_State(STATE::POSITION, spawnPos); - // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - - // racer.pAI->Get_Broom()->Set_Move(false); - // } - // else if (racer.pRacer) - // { - // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); - // pCharacter->Set_Position(spawnPos); - // CTransform* pTransform = racer.pRacer->Get_Component(); - - // // pTransform->Set_State(STATE::POSITION, spawnPos); - // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE); - // racer.pRacer->Get_Broom()->Set_Move(false); - // } - - // else if (racer.pRacer) - // { - // CTransform* pTransform = - // racer.pRacer->Get_Component(); - // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); - // pCharacter->Set_Position(spawnPos); - // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE); - // racer.pRacer->Get_Broom()->Set_Move(false); - // } - - - // m_bRaceReady = true; - // //} - // //if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY)) - // //{ - // // /*if (GUI::Button("Countdown")) - // // {*/ - // // m_pInfoInstance->Event_CallBack(TEXT("Ready_Race")); - // // m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN); - // // //} - // //} - //} } #endif // _DEBUG @@ -436,13 +294,6 @@ void CBroomRaceManager::Check_RingPassed() _float Prev = XMVectorGetX(XMVector3Dot(prevPos - ringPos, ringFwd)); _float Curr = XMVectorGetX(XMVector3Dot(currPos - ringPos, ringFwd)); -#ifdef _DEBUG - GUI::Text("%s", racer.pAI ? "AI" : "Player"); - GUI::SameLine(); - GUI::Text("CurRing %d", racer.curRing); - GUI::Text("PrevSide %.2f", Prev); - GUI::Text("CurrSide %.2f", Curr); -#endif // _DEBUG if (Prev * Curr <= 0.f && fabs(Prev - Curr) > 1e-4f) { _float t = Prev / (Prev - Curr); @@ -492,8 +343,7 @@ void CBroomRaceManager::Finish() void CBroomRaceManager::RaceReady() { - //if (GUI::Button("Race Start")) -//{ + m_bCurrentRace = true; m_eRaceState = ENUM_CLASS(RACE_STATE::READY); const _float SPAWN_DISTANCE = 30.f; @@ -501,14 +351,36 @@ void CBroomRaceManager::RaceReady() { MSG_BOX("Failed Load RaceRing"); } - CBroomRacerAI::RacerDesc Desc = {}; - for (_uint i = 1; i < 4; i++) + + if (FAILED(Load_Balloons())) { - Desc.pRacerManager = this; - Desc.iIndex = i; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc))) - return; + MSG_BOX("Failed Load Balloons"); } + + CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {}; + + /* InstanceProp RouteMarker*/ + Instance_Desc.isShake = false; + Instance_Desc.eShaderPass = SHADER_PASS_WORLDMODLE_INSTANCE::NONCULL; + Instance_Desc.bEnableRigidbody = false; + Instance_Desc.vRadius = _float2(0.f, 0.f); + Instance_Desc.vSpeed = _float2(0.f, 0.f); + Instance_Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"; + Instance_Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/RouteMarker.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Instance_Desc))) { + return; + } + + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_RACERAI); + + if (nullptr != pLayer) + { + for (auto& pUnified : *pLayer->Get_Objects()) + { + dynamic_cast(pUnified)->Set_RaceInfo(); + } + } + m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo(); for (auto& racer : m_Racers) @@ -525,13 +397,15 @@ void CBroomRaceManager::RaceReady() if (racer.pAI) { CTransform* pTransform = - racer.pAI->Get_Component(); - _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f); - spawnPos.m128_f32[2] += fRand; + racer.pAI->Get_Broom()->Get_Component(); + _float fSideRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f); + + _vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * fSideRand; + + spawnPos += offset; pTransform->Set_State(STATE::POSITION, spawnPos); pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - racer.pAI->Get_Broom()->Set_Move(false); } else if (racer.pRacer) @@ -543,22 +417,13 @@ void CBroomRaceManager::RaceReady() pCharacter->Set_Position(spawnPos); pTransform->Set_State(STATE::POSITION, spawnPos); pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE); + racer.pRacer->Get_Broom()->Set_Ride(true); racer.pRacer->Get_Broom()->Set_Move(false); } } m_bRaceReady = true; - //} - //if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY)) - //{ - // /*if (GUI::Button("Countdown")) - // {*/ - // m_pInfoInstance->Event_CallBack(TEXT("Ready_Race")); - // m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN); - // //} - //} } void CBroomRaceManager::SetTargetRing(CGameObject* pRacer) @@ -654,6 +519,75 @@ HRESULT CBroomRaceManager::Load_RaceRing() return E_FAIL; } + return S_OK; +} + +HRESULT CBroomRaceManager::Load_Balloons() +{ + //tinyxml2::XMLDocument xmlDoc; + + //string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml"; + + //if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + // return E_FAIL; + + // Desc.pBroomRaceManager = this; + + // /* Transform */ + // auto* Rotation = Object->FirstChildElement("Scale"); + // Rotation->QueryFloatAttribute("x", &Desc.vScale.x); + // Rotation->QueryFloatAttribute("y", &Desc.vScale.y); + // Rotation->QueryFloatAttribute("z", &Desc.vScale.z); + + // auto* Scale = Object->FirstChildElement("Rotation"); + // Scale->QueryFloatAttribute("x", &Desc.vRotation.x); + // Scale->QueryFloatAttribute("y", &Desc.vRotation.y); + // Scale->QueryFloatAttribute("z", &Desc.vRotation.z); + + // auto* Position = Object->FirstChildElement("Position"); + // Position->QueryFloatAttribute("x", &Desc.vPosition.x); + // Position->QueryFloatAttribute("y", &Desc.vPosition.y); + // Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc))) + // return E_FAIL; + //} + + //tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon"); + + //if (nullptr == root) + //{ + // MSG_BOX("Failed to Find root"); + // return S_OK; + //} + + //for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + //{ + // CMapElement_Balloon::BALLOON_DESC Desc = {}; + + // auto* Value = Object->FirstChildElement("Value"); + // Value->QueryBoolAttribute("isFloating", &Desc.isFloating); + // Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex); + + // /* Transform */ + // auto* Rotation = Object->FirstChildElement("Scale"); + // Rotation->QueryFloatAttribute("x", &Desc.vScale.x); + // Rotation->QueryFloatAttribute("y", &Desc.vScale.y); + // Rotation->QueryFloatAttribute("z", &Desc.vScale.z); + + // auto* Scale = Object->FirstChildElement("Rotation"); + // Scale->QueryFloatAttribute("x", &Desc.vRotation.x); + // Scale->QueryFloatAttribute("y", &Desc.vRotation.y); + // Scale->QueryFloatAttribute("z", &Desc.vRotation.z); + + // auto* Position = Object->FirstChildElement("Position"); + // Position->QueryFloatAttribute("x", &Desc.vPosition.x); + // Position->QueryFloatAttribute("y", &Desc.vPosition.y); + // Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + // return E_FAIL; + //} return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp index 319bd3cab..8d950a3ed 100644 --- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp @@ -38,14 +38,11 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) return E_FAIL; } + m_iIndex = static_cast(pArg)->iIndex; if (FAILED(Ready_Components())) { return E_FAIL; } - m_bAI = true; - - m_iIndex = static_cast(pArg)->iIndex; - if (FAILED(Ready_Parts())) { return E_FAIL; } @@ -72,11 +69,11 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE); } - _float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f); - _float Y = m_pGameInstance->Real_Random_Float(-5.f, 5.f); + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-200.f, Y, 0.f, 1.f)); + m_bAI = true; #ifdef _DEBUG @@ -90,16 +87,10 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) m_pBroom->Set_Ride(true); + m_pBroom->Set_Move(false); + m_pBroomRaceManager = static_cast(pArg)->pRacerManager; - CBroomRaceManager::RacerInfo Info; - - Info.pAI = this; - Info.curRing = 0; - XMStoreFloat4(&Info.prevPos,Get_WorldPostion()); - - m_pBroomRaceManager->Push_BroomRacer(Info); - m_LaneOffsetX = m_pGameInstance->Real_Random_Float(-3.f, 3.f); m_LaneOffsetY = m_pGameInstance->Real_Random_Float(-3.f, 3.f); @@ -262,17 +253,15 @@ HRESULT CBroomRacerAI::Ready_Components() return E_FAIL; } - _int iRand = m_pGameInstance->Real_Random_Int(0, 2); - - switch (iRand) + switch (m_iIndex) { - case 0: + case 1: m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model"); break; - case 1: + case 2: m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model"); break; - case 2: + case 3: m_strModelPrototypeTag = TEXT("Prototype_Component_ChiyoKogawa_Model"); break; default: @@ -388,6 +377,20 @@ HRESULT CBroomRacerAI::Bind_ShaderParameters(_uint iMeshOrder) return S_OK; } +void CBroomRacerAI::Set_RaceInfo() +{ + if (m_pBroomRaceManager) + { + CBroomRaceManager::RacerInfo Info; + + Info.pAI = this; + Info.curRing = 0; + XMStoreFloat4(&Info.prevPos, Get_WorldPostion()); + + m_pBroomRaceManager->Push_BroomRacer(Info); + } +} + _vector CBroomRacerAI::Get_RingForwardTarget() { _vector ringPos = m_pRaceRing->Get_WorldPostion(); @@ -728,6 +731,8 @@ void CBroomRacerAI::Add_FSM() void CBroomRacerAI::Set_Input(_float fTimeDelta) { + if (m_pRaceRing == nullptr) + return; _float targetX = ComputeTurnToRing(); _float targetY = ComputeHeightAdjust(); diff --git a/Jusin154_Team3D/Client/Private/Broom_Panel.cpp b/Jusin154_Team3D/Client/Private/Broom_Panel.cpp index 18370b3da..a5f792dd4 100644 --- a/Jusin154_Team3D/Client/Private/Broom_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Broom_Panel.cpp @@ -8,6 +8,7 @@ #include "Broom_Record.h" #include "Broom_Exit.h" #include "Broom_Trophy.h" +#include "Broom_TargetGate2D.h" #include "InfoInstance.h" CBroom_Panel::CBroom_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -55,6 +56,7 @@ HRESULT CBroom_Panel::Initialize(void* pArg) m_pInfoInstance->Add_Event(TEXT("Race_Count"), [this](void* p) {this->Race_Count(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("Race_Start"), [this](void* p) {this->Race_Start(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("RaceEnd"), [this](void* p) {this->Race_End(); }); + m_pInfoInstance->Add_Event(TEXT("BroomTargetGate"), [this](void* p) {this->Set_TargetPosition(*reinterpret_cast<_vector*>(p)); }); Visible(false); ElementAllVisible(false); @@ -99,6 +101,18 @@ void CBroom_Panel::Update(_float fTimeDelta) } } + + if (m_bRaceBattle == true) + { + _bool Screen = World_to_ScreenUI(m_fTargetPos, m_fUIScreenPos, 130.f); + static_cast(m_pBroom_TargetGate2D)->Visible(Screen); + + if (Screen == true) + { + static_cast(m_pBroom_TargetGate2D)->Move(m_fUIScreenPos.x, m_fUIScreenPos.y); + } + } + __super::Update(fTimeDelta); } @@ -184,6 +198,12 @@ HRESULT CBroom_Panel::Ready_Element(void* pArg) } Add_Element(TEXT("Broom_Trophy"), m_pBroom_Trophy); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate2D)))) + { + return E_FAIL; + } + Add_Element(TEXT("Broom_TargetGate2D"), m_pBroom_TargetGate2D); + return S_OK; } @@ -212,6 +232,8 @@ void CBroom_Panel::Race_Start(_int iRing) static_cast(m_pBroom_Flag)->Set_Hover(true); static_cast(m_pBroom_Scoreboard)->Visible(true); static_cast(m_pBroom_Scoreboard)->Set_MaxRing(iRing); + static_cast(m_pBroom_TargetGate2D)->Visible(true); + m_bRaceBattle = true; } void CBroom_Panel::Current_Ring() @@ -226,6 +248,7 @@ void CBroom_Panel::Race_End() static_cast(m_pBroom_Finish)->Finish(m_fRaceTime); static_cast(m_pBroom_Record)->Finish(m_fRaceTime); m_bDinish = true; + m_bRaceBattle = false; } void CBroom_Panel::Race_Results() @@ -238,6 +261,11 @@ void CBroom_Panel::Race_Results() static_cast(m_pBroom_Trophy)->Score(static_cast(m_pBroom_Record)->NewScore()); } +void CBroom_Panel::Set_TargetPosition(_fvector Target) +{ + XMStoreFloat3(&m_fTargetPos, Target); +} + void CBroom_Panel::Set_BroomTimer() { m_fRaceTime = m_pInfoInstance->Get_Broom_Timer(); diff --git a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp index 474cab4dd..7da3b3c88 100644 --- a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp +++ b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp @@ -49,7 +49,7 @@ void CBroom_TargetGate::Update(_float fTimeDelta) if (m_bVisible != true) return; - m_fSize = _float3(45.f, 45.f, 1.f); + m_fSize = _float3(70.f, 70.f, 1.f); m_vPlayerPos = m_pInfoInstance->Get_PalyerPos(); if (m_vActive == true) diff --git a/Jusin154_Team3D/Client/Private/Broom_TargetGate2D.cpp b/Jusin154_Team3D/Client/Private/Broom_TargetGate2D.cpp new file mode 100644 index 000000000..603421d06 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Broom_TargetGate2D.cpp @@ -0,0 +1,223 @@ +#include "pch.h" +#include "Broom_TargetGate2D.h" +#include "GameInstance.h" + +CBroom_TargetGate2D::CBroom_TargetGate2D(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CBroom_TargetGate2D::CBroom_TargetGate2D(const CBroom_TargetGate2D& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CBroom_TargetGate2D::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CBroom_TargetGate2D::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 0.f; + Desc.fY = -140.f; + Desc.fSizeX = 70.f; + Desc.fSizeY = 70.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 10.f; + return S_OK; +} + +void CBroom_TargetGate2D::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CBroom_TargetGate2D::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + m_fTime += fTimeDelta * m_fTimeMult; + + __super::Update(fTimeDelta); +} + +void CBroom_TargetGate2D::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) { + m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CBroom_TargetGate2D::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CBroom_TargetGate2D::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CBroom_TargetGate2D::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + return S_OK; +} + +HRESULT CBroom_TargetGate2D::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Map_RaceGate"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + return S_OK; +} + +CBroom_TargetGate2D* CBroom_TargetGate2D::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBroom_TargetGate2D* pInstance = new CBroom_TargetGate2D(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBroom_TargetGate2D"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CBroom_TargetGate2D::Clone(void* pArg, CGameObject* pOwner) +{ + CBroom_TargetGate2D* pInstance = new CBroom_TargetGate2D(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBroom_TargetGate2D"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBroom_TargetGate2D::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +#ifdef _DEBUG +void CBroom_TargetGate2D::Describe_Entity() +{ +} +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp index 458a27a67..c7dfcba5f 100644 --- a/Jusin154_Team3D/Client/Private/Decendo.cpp +++ b/Jusin154_Team3D/Client/Private/Decendo.cpp @@ -24,7 +24,6 @@ CDecendo::CDecendo(const CDecendo& rhs) HRESULT CDecendo::Initialize_Prototype() { - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo"))) return E_FAIL; @@ -40,11 +39,11 @@ HRESULT CDecendo::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + if (FAILED(Create_Effect())) return E_FAIL; m_iSkillType = ENUM_CLASS(SKILL_TYPE::DESCENDO); - m_wstrEffectName = L"Decendo"; m_pProjectile_Blur = Get_PartObject("Decendo_Proj_Blur"); @@ -90,7 +89,6 @@ void CDecendo::Update(_float fTimeDelta) m_pProjectile_Blur->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); - } void CDecendo::Late_Update(_float fTimeDelta) @@ -98,13 +96,12 @@ void CDecendo::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); + Get_PartObject()->Oneside_Rope_Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); @@ -136,12 +133,15 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) CPartObject* pCircle0 = Get_PartObject(); CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + CPartObject* pDecendo_Wand_Line = Get_PartObject("Decendo_Wand_Line"); pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pDecendo_Wand_Line->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pCircle0->Set_Visible(true); pWandLight->Set_Visible(true); + pDecendo_Wand_Line->Set_Visible(true); /* 초기 위치 저장 */ _vector vStartPos = m_pOwner->Get_WorldPostion(); @@ -155,6 +155,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 비지블 */ m_pProjectile->Set_Visible(true); m_pProjectile_Blur->Set_Visible(true); + //m_pProjectile_Fire->Set_Visible(true); /*트레일 초기화 */ Get_PartObject()->Set_Visible(true); @@ -165,11 +166,9 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) XMStoreFloat3(&m_vCameraLook, vDirection); - - { /* 대상 위치 지정 */ - m_pInfoInstance->Get_LockOnInfo(m_Info); + if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); @@ -258,55 +257,59 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner) void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) { + + if (m_bHit == false) return; - dynamic_cast(m_pOwner->Get_Owner())->Set_SpellHit(true); - ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); - _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component(); + _vector vFootPos = {}; + _vector vHeadPos = {}; + _vector vPos = {}; - for (auto& pPair : m_PartObjects) + if (pCCT != nullptr) { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } + vFootPos = pCCT->Get_FootPosition(); + vPos = pCCT->Get_Position(); + vHeadPos = pCCT->Get_HeadPosition(); + CPartObject* pDecendo_Rock_PT = Get_PartObject("Decendo_Rock_PT"); + CPartObject* pDecendo_Red_Blur = Get_PartObject("Decendo_Red_Blur"); + CPartObject* pDecendo_Down = Get_PartObject("Decendo_Down"); + CPartObject* pDecendo_Ring = Get_PartObject("Decendo_Ring"); + CPartObject* pDecendo_Smoke = Get_PartObject("Decendo_Smoke"); + + pDecendo_Rock_PT->Set_Visible(true); + pDecendo_Rock_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Red_Blur->Set_Visible(true); + pDecendo_Red_Blur->Get_Component()->Set_State(STATE::POSITION, vPos); + + pDecendo_Down->Set_Visible(true); + pDecendo_Down->Get_Component()->Set_State(STATE::POSITION, vHeadPos); + + pDecendo_Ring->Set_Visible(true); + pDecendo_Ring->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Smoke->Set_Visible(true); + pDecendo_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + + } + m_pProjectile_Blur->Set_Visible(false); m_pProjectile->Set_Visible(false); - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - CPartObject* pCircle0 = Get_PartObject(); - CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); - - - pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - pCircle0->Set_Visible(false); - pWandLight->Set_Visible(false); - - _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - - - - Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject("Decendo_Smoke")->Get_Component()->LookAt(vPlayerPos); - - - Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); Get_PartObject()->Set_Visible(false); + } void CDecendo::Free() @@ -315,12 +318,11 @@ void CDecendo::Free() SAFE_RELEASE(m_pProjectile_Blur); SAFE_RELEASE(m_pProjectile); - } #ifdef _DEBUG void CDecendo::Describe_Entity() { - GUI::Begin("DECENDO", 0, IMGUI_GLOBAL_BEGIN_FLAG); + GUI::Begin("DECENDO"); GUI::InputFloat("Speed", &m_fLinearSpeed); diff --git a/Jusin154_Team3D/Client/Private/DecendoSide.cpp b/Jusin154_Team3D/Client/Private/DecendoSide.cpp index 481332cbf..eac181609 100644 --- a/Jusin154_Team3D/Client/Private/DecendoSide.cpp +++ b/Jusin154_Team3D/Client/Private/DecendoSide.cpp @@ -44,21 +44,19 @@ HRESULT CDecendoSide::Initialize(void* pArg) m_pWandLight = Get_PartObject("Wand_Light_R"); m_pWandTrail = Get_PartObject(); + m_pWand_Fire = Get_PartObject("Wand_Fire"); SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWand_Fire); m_fDuration = 2.f; - m_Events.emplace(0.6f, [&]() { - CWand* pWand = static_cast(m_pOwner); - if (pWand == nullptr) - return; - - m_isTrailEnd = true; - - XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandTrail->SetDissolve(true); + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); }); return S_OK; @@ -87,6 +85,9 @@ void CDecendoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + if(m_isParticleEnd == false) + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); m_pWandTrail->Trail_Update(TrailMat, fTimeDelta); @@ -114,17 +115,20 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject, void* pArg) return E_FAIL; m_isTrailEnd = false; + m_isParticleEnd = false; m_pWandLight->Set_Visible(true); + m_pWand_Fire->Set_Visible(true); /*트레일 초기화 */ m_pWandTrail->Set_Visible(true); + m_pWandTrail->Get_Component()->Reset_Trail(); /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); return S_OK; } @@ -182,6 +186,8 @@ void CDecendoSide::Free() Safe_Release(m_pWandLight); Safe_Release(m_pWandTrail); + Safe_Release(m_pWand_Fire); + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp index f984a891d..4cd141927 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp @@ -61,8 +61,6 @@ void CDialogue_Font::Update(_float fTimeDelta) if (m_bCurrentInteract == true) { - _int a = 10; - if (m_bChoiceText == true) { switch (m_iType) @@ -74,7 +72,6 @@ void CDialogue_Font::Update(_float fTimeDelta) CHoice(); break; case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT): - a = 10; break; case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT): @@ -82,7 +79,6 @@ void CDialogue_Font::Update(_float fTimeDelta) break; case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN): - a = 10; break; case ENUM_CLASS(NPCTEXTTYPE::BROOM): @@ -90,25 +86,37 @@ void CDialogue_Font::Update(_float fTimeDelta) m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace); NextText(); break; + + case ENUM_CLASS(NPCTEXTTYPE::BATTLE): + m_bBattle = true; + m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle); + NextText(); + break; default: break; } } else { - if (m_pGameInstance->Key_Down(DIK_RETURN) && m_bCurrentChoiceText == false) + if (m_fTime <= 0.f) { - switch (m_iType) + if (m_pGameInstance->Key_Down(DIK_RETURN) && m_bCurrentChoiceText == false) { - case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): - NextText(); - break; - case ENUM_CLASS(NPCTEXTTYPE::CHOICE): - CHoice(); - break; - default: - break; + switch (m_iType) + { + case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): + m_fTime = 0.5f; + NextText(); + break; + case ENUM_CLASS(NPCTEXTTYPE::CHOICE): + m_fTime = 0.5f; + CHoice(); + break; + default: + break; + } } + } } } @@ -129,6 +137,15 @@ void CDialogue_Font::Update(_float fTimeDelta) } } } + + if (m_fTime >= 0.f) + { + m_fTime -= fTimeDelta; + } + else + { + m_fTime = 0.f; + } } void CDialogue_Font::Late_Update(_float fTimeDelta) @@ -306,6 +323,7 @@ void CDialogue_Font::ReSet() m_bChoiceText = false; m_bCurrentChoiceText = false; m_bRace = false; + m_bBattle = false; vector<_int> Dummy; m_NextLevel.swap(Dummy); for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();) @@ -315,6 +333,7 @@ void CDialogue_Font::ReSet() m_DialoguInfo.push_back((*it)); it = m_pCurrentDialogue.erase(it); } + m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &m_bChoiceText); } void CDialogue_Font::NextText() diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp index 489588548..cfebe4404 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp @@ -3,6 +3,10 @@ #include "GameInstance.h" #include "Dialogue_Choice.h" #include "InfoInstance.h" +#include "Player.h" +#include "Human_Duelist.h" +#include "RandomNpc.h" +#include "Layer.h" CDialogue_Panel::CDialogue_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CPanelObject(pDevice, pContext) @@ -104,6 +108,11 @@ void CDialogue_Panel::Choice_Slot(CHOICEINFO Choice) m_bBroomRace = true; break; + case ENUM_CLASS(NPCTEXTTYPE::BATTLE): + m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice); + m_bBttle = true; + break; + default: break; } @@ -122,8 +131,65 @@ void CDialogue_Panel::ReSet_Choice() } } +void CDialogue_Panel::Change_Map() +{ + m_pInfoInstance->Load_DADA_INT(); + m_pGameInstance->Setting_Volumetirc( + 3.f, + 0.01f, + 0.11f, + 1.0f, + 0.f + ); + + + CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST); + if (nullptr != pDuelistLayer) { + CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); + pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f)); + pDuelist->Set_Battle(true); + } + + CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER); + if (nullptr != pLayer) { + CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); + CPlayer* pPlayer = pLayer->Get_Object(); + pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1008.f, 1.f)); + pPlayer->Set_Battle(true); + + _vector vPos = pPlayer->Get_WorldPostion(); + _vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f); + + pPlayer->Get_Component()->LookAt(vPos + vForward); + + } + +#ifdef Bin + CLayer* pNpcLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_NPC); + if (nullptr != pNpcLayer) { + + for (auto& pNpc : *pNpcLayer->Get_Objects()) + { + if (nullptr == dynamic_cast(pNpc)) + continue; + if (false == dynamic_cast(pNpc)->Get_BattleObserve_Npc()) + continue; + + dynamic_cast(pNpc)->Set_NpcState(ENUM_CLASS(CRandomNpc::NPC_STATE::OBSERVE)); + dynamic_cast(pNpc)->Set_Battle(true); + } + } +#endif // Bin + +} + void CDialogue_Panel::Priority_Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Down(DIK_J)) + { + Change_Map(); + } + if (!__super::Chack_Visible()) { return; @@ -139,16 +205,25 @@ void CDialogue_Panel::Update(_float fTimeDelta) } - if (m_bBroomRace == true) + if (m_bBroomRace == true || m_bBttle == true) { m_fTime += fTimeDelta; } if (m_fTime >= 1.f) { - m_bBroomRace = false; - m_pInfoInstance->Event_CallBack(TEXT("BROOMRACENPCINTERACT")); + if(m_bBroomRace == true) + { + m_bBroomRace = false; + m_pInfoInstance->Event_CallBack(TEXT("BROOMRACENPCINTERACT")); + } + else if (m_bBttle == true) + { + m_bBttle = false; + Change_Map(); + } } + __super::Update(fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp index be8b306ac..8c019cd6e 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp @@ -27,6 +27,7 @@ HRESULT CDuelist_Levioso::Initialize_Prototype() return E_FAIL; return S_OK; + } HRESULT CDuelist_Levioso::Initialize(void* pArg) @@ -42,24 +43,14 @@ HRESULT CDuelist_Levioso::Initialize(void* pArg) m_iSkillType = ENUM_CLASS(SKILL_TYPE::DUELIST_LEVIOSO); - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -70,7 +61,7 @@ void CDuelist_Levioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -83,19 +74,8 @@ void CDuelist_Levioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -104,17 +84,12 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (true == m_pGameInstance->SphereCast(0.25f, XMLoadFloat4(&m_vStartPos), XMVector3Normalize(vDir), XMVectorGetX(XMVector3Length(vDir)) - , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer)) - { - - } - if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); @@ -123,7 +98,7 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta) _vector vEndPos = XMLoadFloat4(&m_vEndPos); if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) { - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); OnCollision(this, &CollisionInfo); } } @@ -145,21 +120,23 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pDuelist->Get_WandPos().r[3]; - CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEffectParts* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEffectParts* pWandLight = Get_PartObject("Wand_Light_P"); + CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); + pSpread_Circle->Set_Visible(true); - - m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK))); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -177,7 +154,6 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPlayerPos = pPlayer->Get_Component()->Get_Position(); if (nullptr != pPlayer) { - XMStoreFloat4(&m_vTargetPos, vPlayerPos); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); @@ -189,15 +165,6 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -249,20 +216,17 @@ void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) if (m_bHit == false) return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); @@ -272,50 +236,44 @@ void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); - - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); + + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); } - //Get_PartObject("Levioso_Tornado") - //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CDuelist_Levioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CDuelist_Levioso::Describe_Entity() { - GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp index 06cf5a4dc..570a535cf 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp @@ -304,17 +304,25 @@ void CDuelist_NormalJap::OnCollision(CGameObject* pOther, void* pDesc) } if (m_bHitShield) { - _vector vDir = m_pTransformCom->Get_State(STATE::LOOK); - vDir = XMVector3Normalize(vDir); + _vector vIncident = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vHitDir)); - _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f)); + _vector vNormal = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vWorldNomal)); - _matrix rotX = XMMatrixRotationX(fRandAngle); - _vector vRandDir = XMVector3TransformNormal(vDir, rotX); + _vector vReflect = XMVector3Reflect(vIncident, vNormal); - XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir)); + _float y = XMVectorGetY(vReflect); + if (y < 0.f) + vReflect = XMVectorSetY(vReflect, 0.f); - m_fLinearSpeed = 15.f; + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + _vector vFinal = XMVector3Normalize( + vReflect * (1.f - 0.25f) + vUp * 0.25f + ); + + XMStoreFloat3(&m_vCameraLook, vFinal); + + + m_fLinearSpeed = 30.f; } else { Get_PartObject("JapPT0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp index 470e34595..bc7c74009 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp @@ -113,6 +113,8 @@ HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg) if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -146,7 +148,7 @@ HRESULT CDuelist_Protego::Ready_Components(void* pArg) return E_FAIL; } - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; @@ -203,11 +205,13 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc) m_pOwner->OnCollision(pOther, CollisionDesc); m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): m_pOwner->OnCollision(pOther, CollisionDesc); m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; } } diff --git a/Jusin154_Team3D/Client/Private/EffectInfo.cpp b/Jusin154_Team3D/Client/Private/EffectInfo.cpp index 41b28f264..92582e3c2 100644 --- a/Jusin154_Team3D/Client/Private/EffectInfo.cpp +++ b/Jusin154_Team3D/Client/Private/EffectInfo.cpp @@ -57,6 +57,8 @@ Client::CEffect_Container* CEffectInfo::Get_LockOnEffect() HRESULT CEffectInfo::Refresh_LockOnEffects() { + if (!m_pInfoInstance->Get_SearchLockonFloag()) + return S_OK; SAFE_RELEASE(m_pLockOnEffect); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp index 1180d6c14..a39378b13 100644 --- a/Jusin154_Team3D/Client/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp @@ -395,6 +395,12 @@ HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, m_pInstance_ModelCom->Load_InstanceModel(EffectSaveInfo.InstanceModelInfo); + if (m_EffectInfo.isScreenFX == true) + { + XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity()); + XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f)); + } + return S_OK; } @@ -769,11 +775,31 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; + if (m_EffectInfo.isScreenFX == false) + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; + else + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_OrthographicMatrix))) { + return E_FAIL; + } } if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index e897d9b8b..fa74fd942 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -18,7 +18,9 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "AvadakedavraSide.h" +#include "StupefySide.h" #include "TransformationSide.h" +#include "AccioSide.h" #include "NomalJapSide.h" #include "Lumos.h" @@ -511,7 +513,23 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; - + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefySide* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::ACCIO_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CAccioSide* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index b41d38844..0490cc895 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -730,6 +730,8 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End PHYSX_USERDATA* pUserData = static_cast(pActor->userData); tagCollInfo.pObject = pUserData->pOwner; + tagCollInfo.eCollisionType = ENUM_CLASS(PXOBJECT(pUserData->iSubKind)); + switch (pUserData->eKind) { case PHYSX_KIND::BODY_DYNAMIC: @@ -740,13 +742,6 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End pUserData->pOwner->OnCollision(this, &tagCollInfo); m_bHit = true; m_bHitShield = true; - if (!pUserData->pOwner->Get_Visible()) { - if (pUserData->pOwner->Get_Owner() != nullptr) - { - m_bHitShield = false; - pUserData->pOwner->Get_Owner()->OnCollision(this, &tagCollInfo); - } - } } break; } @@ -757,13 +752,6 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End pUserData->pOwner->OnCollision(this, &tagCollInfo); m_bHit = true; m_bHitShield = true; - if (!pUserData->pOwner->Get_Visible()) { - if (pUserData->pOwner->Get_Owner() != nullptr) - { - m_bHitShield = false; - pUserData->pOwner->Get_Owner()->OnCollision(this, &tagCollInfo); - } - } } break; case PXOBJECT::RANROK_PROP: diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index 9b3b06e37..214eb3e41 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -399,6 +399,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + m_eHitState = ENUM_CLASS(HIT_STATE::DESCENDO); break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::BOMBARDA); @@ -406,6 +407,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc) case ENUM_CLASS(SKILL_TYPE::JAP): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); m_fTumbleTimer = 0.f; + m_fHitTimer = 0.f; break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO); @@ -662,6 +664,8 @@ void CGoblin::Describe_Entity() GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); if (GUI::CollapsingHeader("Goblin")) { + _bool OnGround = m_pCharacter_Controller->IsOnGround(); + GUI::Checkbox("OnGround", &OnGround); GUI::Checkbox("LookAt", &m_bLookAt); string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index 33accfc49..7e4506566 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -406,12 +406,13 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) if (pEffect_Container != nullptr) { _uint iSkillType = pEffect_Container->Get_SkillType(); - damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); + //damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); switch (iSkillType) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + m_eHitState = ENUM_CLASS(HIT_STATE::DESCENDO); break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::BOMBARDA); @@ -419,6 +420,7 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) case ENUM_CLASS(SKILL_TYPE::JAP): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); m_fTumbleTimer = 0.f; + m_fHitTimer = 0.f; break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO); @@ -452,14 +454,14 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) } - m_DamageInfo.fDamage = damagePair.first; + /*m_DamageInfo.fDamage = damagePair.first; m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); if (0 == damagePair.second) { m_pFSM->Change_State(FSMSTATE::DEAD); _int ID = m_pStat->Get_Stat().iObjectID; m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID); return; - } + }*/ m_pFSM->Change_State(FSMSTATE::HIT); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp index a65ae99e4..5d17850e7 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp @@ -35,6 +35,7 @@ void CGoblin_Assassin::Behavior_IdleEnter() HRESULT CGoblin_Assassin::Behavior_IdleExitCheck() { + pair<_uint, _bool> pairAnimInfo; if (m_fTargetDistance <= 20.f && m_fTargetDistance > 10.f) { m_bLookAt = false; @@ -48,6 +49,7 @@ HRESULT CGoblin_Assassin::Behavior_IdleExitCheck() { m_bLookAt = true; m_pFSM->Change_State(FSMSTATE::MOVE); + m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_PROTEGO, this); return E_FAIL; } else if (m_fTargetDistance >= 25.f) @@ -508,96 +510,47 @@ void CGoblin_Assassin::Behavior_HitEnter() { pair<_uint, _bool> pairAnimInfo = {}; _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); - m_pFSM->Enable_State(FSMSTATE::HIT); + m_pCharacter_Controller->Reset_GravityAmount(); + m_fGravityAmount = 0.f; + m_fAirTime = 0.f; m_bLookAt = false; + m_bCameraShake = true; + m_bAir = false; _float fAnimSpeed = 1.f; switch (m_eHitSpell) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; - fAnimSpeed = 2.f; - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); - m_pCharacter_Controller->SetGravity(false); - m_bAir = true; - }, - 0.3f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [this]() { - CameraShake(10.f, 1.f, 2.f, 0.3f); - }, - 0.27f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, - 0.75f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_bAir = false; - m_pCharacter_Controller->SetGravity(true); - }, - 0.96f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, - 0.95f); - - Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [this]() {m_bLookAt = true; }, - 0.7f); - break; + { + Descendo_Event(); + } + break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; case ENUM_CLASS(SKILL_TYPE::JAP): { - if (m_fHitDegree >= 90.f) - { - _int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3); - switch (iRandIndex) - { - case 0: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; - break; - case 1: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2]; - break; - case 2: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; - break; - case 3: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4]; - break; - default: - break; - } - } - else if (m_fHitDegree >= 45.f) { - - if (m_fHitCross > 0.f) { - pairAnimInfo = m_Animation[STATEANIM::HIT_L]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::HIT_R]; - } - } - else { - pairAnimInfo = m_Animation[STATEANIM::HIT_FWD]; - } + Hit_Jap(); } break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + if (m_eHitState != ENUM_CLASS(HIT_STATE::AIR_LEVIOSO)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; case ENUM_CLASS(SKILL_TYPE::ACCIO): + if (m_eHitState != ENUM_CLASS(HIT_STATE::AIR_LEVIOSO)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; default: _int iRand = m_pGameInstance->Real_Random_Int(0, 1); @@ -605,10 +558,10 @@ void CGoblin_Assassin::Behavior_HitEnter() pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L]; else pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); } @@ -617,75 +570,39 @@ HRESULT CGoblin_Assassin::Behavior_HitExitCheck(_float fTimeDelta) pair<_uint, _bool> pairAnimInfo = {}; _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); - CTransform* pTransform = m_pTarget->Get_Component(); - if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD].first) - { - if (fRatio >= 0.15f) - { - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f,false,2.f); - } - } if (m_bAir) { _vector vDir = m_pTransformCom->Get_State(STATE::UP); vDir = XMVector4Normalize(vDir); _vector vPos = m_pCharacter_Controller->Get_Position(); - _vector Force = vDir * fTimeDelta*0.6f; + _vector Force = vDir * fTimeDelta * 0.6f; m_pCharacter_Controller->Set_Position(vPos + Force); } if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { - m_fGravityAmount += fTimeDelta * fRatio* 20.f; + m_fGravityAmount += fTimeDelta * fRatio * 50.f; m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount); } - if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first) - { - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, - 0.17f); - } - Hit_Accio(fTimeDelta); Hit_Levioso(fTimeDelta); HitState_Behavior(fTimeDelta); - - if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first) + TumbleAnim(fTimeDelta); + + if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { - m_fTumbleTimer += fTimeDelta; - - if (m_fTumbleTimer >= 1.5f) - { - m_fTumbleTimer = 0.f; - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_pCharacter_Controller->SetGravity(true); - - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, - 0.21f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); - m_fAirTime = 0.f; }, - 0.95f); + if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; } - return S_OK; - } - if (m_vStunTimer.y < m_vStunTimer.x) { - pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); } - if (m_pModelCom->IsFinishedAnim()) + if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE].first) { m_pFSM->Change_State(FSMSTATE::COMBAT); return E_FAIL; @@ -695,12 +612,8 @@ HRESULT CGoblin_Assassin::Behavior_HitExitCheck(_float fTimeDelta) void CGoblin_Assassin::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); m_bPos = false; m_bLookAt = true; - m_eHitState = ENUM_CLASS(HIT_STATE::END); - m_pCharacter_Controller->Reset_GravityAmount(); - m_fGravityAmount = 0.f; } void CGoblin_Assassin::Behavior_DeadEnter() @@ -805,6 +718,140 @@ void CGoblin_Assassin::Hit_Levioso(_float fTimeDelta) } } +void CGoblin_Assassin::Hit_Jap() +{ + pair<_uint, _bool> pairAnimInfo = {}; + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } + if (m_fHitDegree >= 90.f) + { + _int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3); + switch (iRandIndex) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; + break; + case 3: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4]; + break; + default: + break; + } + } + else if (m_fHitDegree >= 45.f) { + + if (m_fHitCross > 0.f) { + pairAnimInfo = m_Animation[STATEANIM::HIT_L]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::HIT_R]; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::HIT_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false); +} + +void CGoblin_Assassin::Descendo_Event() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(2.f); + m_fAirTime = 0.f; + + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 5.f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); + }, + 0.15f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() {CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; } + , 0.27f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); + m_pCharacter_Controller->SetGravity(false); + m_bAir = true; + }, + 0.3f); + + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, + 0.65f); + + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_bAir = false; + m_pCharacter_Controller->SetGravity(true); + m_eHitState = ENUM_CLASS(HIT_STATE::END); + m_pCharacter_Controller->Reset_GravityAmount(); + m_fGravityAmount = 0.f; + m_bCameraShake = true; + }, + 0.85f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + }, + 0.95f); + + Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, + [this]() {m_bLookAt = true; }, + 0.7f); +} + +void CGoblin_Assassin::TumbleAnim(_float fTimeDelta) +{ + pair<_uint, _bool> pairAnimInfo = {}; + _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + + if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first) + { + m_fTumbleTimer += fTimeDelta; + + if (m_fTumbleTimer >= 1.5f) + { + if (fRatio >= 0.85f) + { + m_fTumbleTimer = 0.f; + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_eHitState = ENUM_CLASS(HIT_STATE::END); + + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + m_fAirTime = 0.f; + m_bAir = false; + }, + 0.95f); + } + } + } +} + void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo = {}; @@ -818,47 +865,7 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): { - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - m_pCharacter_Controller->SetGravity(true); - m_pCharacter_Controller->Set_GravityAmount(1.5f); - m_fAirTime = 0.f; - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); - m_pCharacter_Controller->SetGravity(false); - m_bAir = true; - }, - 0.3f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [this]() { - CameraShake(10.f, 1.f, 2.f, 0.3f); - }, - 0.27f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, - 0.75f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_bAir = false; - m_pCharacter_Controller->SetGravity(true); - }, - 0.96f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, - 0.95f); - - Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [this]() {m_bLookAt = true; }, - 0.7f); + Descendo_Event(); } break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): @@ -886,11 +893,7 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) m_pCharacter_Controller->Set_Position(vPos + Force); pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f); - } - else { - m_fHitTimer = 0.f; - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.6f, false, 0.8f); } } break; @@ -903,7 +906,31 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); } } + if (m_eHitState == ENUM_CLASS(HIT_STATE::DESCENDO)) + { + switch (m_eHitSpell) + { + case ENUM_CLASS(SKILL_TYPE::JAP): + { + m_fHitTimer += fTimeDelta; + if (m_fHitTimer <= 0.4f) + { + _vector vPlayerLook = pTransform->Get_State(STATE::LOOK); + vPlayerLook = XMVector4Normalize(vPlayerLook); + _vector vPos = m_pCharacter_Controller->Get_Position(); + _float t = clamp(m_fHitTimer, 0.f, 1.f); + _float ease = 1.f - (t * t); + _vector Force = vPlayerLook * fTimeDelta * 6.f * ease; + + m_pCharacter_Controller->Set_Position(vPos + Force); + pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f); + } + } + break; + } + } } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index f1e88c4f9..c69945aba 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -330,6 +330,7 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + m_eHitState = ENUM_CLASS(HIT_STATE::DESCENDO); break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::BOMBARDA); @@ -337,6 +338,7 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc) case ENUM_CLASS(SKILL_TYPE::JAP): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); m_fTumbleTimer = 0.f; + m_fHitTimer = 0.f; break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp index 9bc5d9b0d..de0610eb0 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp @@ -398,109 +398,59 @@ void CGoblin_Mage::Behavior_HitEnter() { pair<_uint, _bool> pairAnimInfo = {}; _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); - m_pFSM->Enable_State(FSMSTATE::HIT); + m_pCharacter_Controller->Reset_GravityAmount(); + m_fGravityAmount = 0.f; + m_fAirTime = 0.f; m_bLookAt = false; + m_bCameraShake = true; + m_bAir = false; _float fAnimSpeed = 1.f; switch (m_eHitSpell) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; - fAnimSpeed = 2.f; - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); - m_pCharacter_Controller->SetGravity(false); - m_bAir = true; - }, - 0.3f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { - CameraShake(10.f, 1.f, 2.f, 0.3f); - }, - 0.27f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, - 0.75f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_bAir = false; - m_pCharacter_Controller->SetGravity(true); - }, - 0.96f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, - 0.95f); - - Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [&]() {m_bLookAt = true; }, - 0.7f); - - break; + { + Descendo_Event(); + } + break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; case ENUM_CLASS(SKILL_TYPE::JAP): { - if (m_fHitDegree >= 90.f) - { - _int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3); - switch (iRandIndex) - { - case 0: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; - break; - case 1: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2]; - break; - case 2: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; - break; - case 3: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4]; - break; - default: - break; - } - } - else if (m_fHitDegree >= 45.f) { - - if (m_fHitCross > 0.f) { - pairAnimInfo = m_Animation[STATEANIM::HIT_L]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::HIT_R]; - } - } - else { - pairAnimInfo = m_Animation[STATEANIM::HIT_FWD]; - } + Hit_Jap(); } break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + if (m_eHitState != ENUM_CLASS(HIT_STATE::AIR_LEVIOSO)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; case ENUM_CLASS(SKILL_TYPE::ACCIO): + if (m_eHitState != ENUM_CLASS(HIT_STATE::AIR_LEVIOSO)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; default: _int iRand = m_pGameInstance->Real_Random_Int(0, 1); - if(iRand == 0) + if (iRand == 0) pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L]; else pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); + } HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) @@ -508,16 +458,7 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) pair<_uint, _bool> pairAnimInfo = {}; _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); - CTransform* pTransform = m_pTarget->Get_Component(); - if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD].first) - { - if (fRatio >= 0.15f) - { - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); - } - } if (m_bAir) { _vector vDir = m_pTransformCom->Get_State(STATE::UP); @@ -529,54 +470,27 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { - m_fGravityAmount += fTimeDelta * fRatio * 20.f; + m_fGravityAmount += fTimeDelta * fRatio * 50.f; m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount); } - if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first) - { - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, - 0.17f); - } - Hit_Accio(fTimeDelta); Hit_Levioso(fTimeDelta); HitState_Behavior(fTimeDelta); + TumbleAnim(fTimeDelta); - if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first) + if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { - m_fTumbleTimer += fTimeDelta; - - if (m_fTumbleTimer >= 1.5f) - { - m_fTumbleTimer = 0.f; - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_pCharacter_Controller->SetGravity(true); - - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, - 0.21f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); - m_fAirTime = 0.f; }, - 0.95f); + if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; } - return S_OK; - } - if (m_vStunTimer.y < m_vStunTimer.x) { - pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); } - if (m_pModelCom->IsFinishedAnim()) + if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE].first) { m_pFSM->Change_State(FSMSTATE::COMBAT); return E_FAIL; @@ -586,12 +500,8 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) void CGoblin_Mage::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); m_bPos = false; m_bLookAt = true; - m_eHitState = ENUM_CLASS(HIT_STATE::END); - m_pCharacter_Controller->Reset_GravityAmount(); - m_fGravityAmount = 0.f; } void CGoblin_Mage::Behavior_DeadEnter() @@ -695,6 +605,141 @@ void CGoblin_Mage::Hit_Levioso(_float fTimeDelta) } } +void CGoblin_Mage::Hit_Jap() +{ + pair<_uint, _bool> pairAnimInfo = {}; + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } + if (m_fHitDegree >= 90.f) + { + _int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3); + switch (iRandIndex) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; + break; + case 3: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4]; + break; + default: + break; + } + } + else if (m_fHitDegree >= 45.f) { + + if (m_fHitCross > 0.f) { + pairAnimInfo = m_Animation[STATEANIM::HIT_L]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::HIT_R]; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::HIT_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false); +} + +void CGoblin_Mage::Descendo_Event() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(2.f); + m_fAirTime = 0.f; + + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 5.f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); + }, + 0.15f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() {CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; } + , 0.27f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); + m_pCharacter_Controller->SetGravity(false); + m_bAir = true; + }, + 0.3f); + + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, + 0.65f); + + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_bAir = false; + m_pCharacter_Controller->SetGravity(true); + m_eHitState = ENUM_CLASS(HIT_STATE::END); + m_pCharacter_Controller->Reset_GravityAmount(); + m_fGravityAmount = 0.f; + m_bCameraShake = true; + }, + 0.85f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + }, + 0.95f); + + Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, + [this]() {m_bLookAt = true; }, + 0.7f); + +} + +void CGoblin_Mage::TumbleAnim(_float fTimeDelta) +{ + pair<_uint, _bool> pairAnimInfo = {}; + _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + + if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first) + { + m_fTumbleTimer += fTimeDelta; + + if (m_fTumbleTimer >= 1.5f) + { + if (fRatio >= 0.85f) + { + m_fTumbleTimer = 0.f; + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_eHitState = ENUM_CLASS(HIT_STATE::END); + + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + m_fAirTime = 0.f; + m_bAir = false; + }, + 0.95f); + } + } + } +} + void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo = {}; @@ -708,47 +753,7 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): { - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - m_pCharacter_Controller->SetGravity(true); - m_pCharacter_Controller->Set_GravityAmount(1.5f); - m_fAirTime = 0.f; - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); - m_pCharacter_Controller->SetGravity(false); - m_bAir = true; - }, - 0.3f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { - CameraShake(10.f, 1.f, 2.f, 0.3f); - }, - 0.27f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, - 0.75f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_bAir = false; - m_pCharacter_Controller->SetGravity(true); - }, - 0.96f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, - 0.95f); - - Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [&]() {m_bLookAt = true; }, - 0.7f); + Descendo_Event(); } break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): @@ -757,14 +762,46 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) m_pCharacter_Controller->ConvertToDO(*m_pRigidBody); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); vCameraLook = XMVector3Normalize(vCameraLook); - m_pRigidBody->Add_Force(vCameraLook * 30.f, physx::PxForceMode::eIMPULSE); + m_pRigidBody->Add_Force(vCameraLook * 60.f, PSX::PxForceMode::eIMPULSE); m_fAirTime = 0.f; } break; case ENUM_CLASS(SKILL_TYPE::JAP): { m_fHitTimer += fTimeDelta; - if (m_fHitTimer <= 0.25f) + if (m_fHitTimer <= 0.4f) + { + _vector vPlayerLook = pTransform->Get_State(STATE::LOOK); + vPlayerLook = XMVector4Normalize(vPlayerLook); + _vector vPos = m_pCharacter_Controller->Get_Position(); + + _float t = clamp(m_fHitTimer, 0.f, 1.f); + _float ease = 1.f - (t * t); + _vector Force = vPlayerLook * fTimeDelta * 6.f * ease; + + m_pCharacter_Controller->Set_Position(vPos + Force); + pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.6f, false, 0.8f); + } + } + break; + } + if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first) + { + m_fAirTime = 0.f; + m_pCharacter_Controller->SetGravity(true); + pairAnimInfo = m_Animation[STATEANIM::LAND]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + } + } + if (m_eHitState == ENUM_CLASS(HIT_STATE::DESCENDO)) + { + switch (m_eHitSpell) + { + case ENUM_CLASS(SKILL_TYPE::JAP): + { + m_fHitTimer += fTimeDelta; + if (m_fHitTimer <= 0.4f) { _vector vPlayerLook = pTransform->Get_State(STATE::LOOK); vPlayerLook = XMVector4Normalize(vPlayerLook); @@ -778,22 +815,10 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f); } - else { - m_fHitTimer = 0.f; - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - } } break; } - if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first) - { - m_fAirTime = 0.f; - m_pCharacter_Controller->SetGravity(true); - pairAnimInfo = m_Animation[STATEANIM::LAND]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); - } } - } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp index e6fd0e12d..e136496cc 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp @@ -113,6 +113,8 @@ HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg) if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -146,7 +148,7 @@ HRESULT CGoblin_Protego::Ready_Components(void* pArg) return E_FAIL; } - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; @@ -186,6 +188,8 @@ CGameObject* CGoblin_Protego::Clone(void* pArg, CGameObject* pOwner) void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) { + if (!m_bVisible) + return; ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); @@ -201,16 +205,19 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) m_pOwner->OnCollision(pOther, CollisionDesc); m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): m_pOwner->OnCollision(pOther, CollisionDesc); m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC): m_pOwner->OnCollision(pOther, CollisionDesc); m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; } } diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp index 39d6534f2..ce5f55e14 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp @@ -272,7 +272,7 @@ void CGoblin::Behavior_SwingEnter() 0.28f); Add_Event(pairAnimInfo.first, - [&]() { m_bLookAt = true; + [this]() { m_bLookAt = true; m_bStep = true; m_pGoblinSpector->Set_Visible(false); m_pGoblinSpector->Spector_Trail_Visible(false); @@ -488,96 +488,47 @@ void CGoblin::Behavior_HitEnter() { pair<_uint, _bool> pairAnimInfo = {}; _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); - m_pFSM->Enable_State(FSMSTATE::HIT); + m_pCharacter_Controller->Reset_GravityAmount(); + m_fGravityAmount = 0.f; + m_fAirTime = 0.f; m_bLookAt = false; + m_bCameraShake = true; + m_bAir = false; _float fAnimSpeed = 1.f; switch (m_eHitSpell) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; - fAnimSpeed = 2.f; - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); - m_pCharacter_Controller->SetGravity(false); - m_bAir = true; - }, - 0.3f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [this]() { - CameraShake(10.f, 1.f, 2.f, 0.3f); - }, - 0.27f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, - 0.75f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_bAir = false; - m_pCharacter_Controller->SetGravity(true); - }, - 0.96f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, - 0.95f); - - Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [this]() {m_bLookAt = true; }, - 0.7f); + { + Descendo_Event(); + } break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; case ENUM_CLASS(SKILL_TYPE::JAP): { - if (m_fHitDegree >= 90.f) - { - _int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3); - switch (iRandIndex) - { - case 0: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; - break; - case 1: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2]; - break; - case 2: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; - break; - case 3: - pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4]; - break; - default: - break; - } - } - else if (m_fHitDegree >= 45.f) { - - if (m_fHitCross > 0.f) { - pairAnimInfo = m_Animation[STATEANIM::HIT_L]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::HIT_R]; - } - } - else { - pairAnimInfo = m_Animation[STATEANIM::HIT_FWD]; - } + Hit_Jap(); } break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + if (m_eHitState != ENUM_CLASS(HIT_STATE::AIR_LEVIOSO)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; case ENUM_CLASS(SKILL_TYPE::ACCIO): + if (m_eHitState != ENUM_CLASS(HIT_STATE::AIR_LEVIOSO)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; default: _int iRand = m_pGameInstance->Real_Random_Int(0, 1); @@ -585,10 +536,10 @@ void CGoblin::Behavior_HitEnter() pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L]; else pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); break; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed); } @@ -597,16 +548,7 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta) pair<_uint, _bool> pairAnimInfo = {}; _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); - CTransform* pTransform = m_pTarget->Get_Component(); - if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD].first) - { - if (fRatio >= 0.15f) - { - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f,false,2.f); - } - } if (m_bAir) { _vector vDir = m_pTransformCom->Get_State(STATE::UP); @@ -618,54 +560,27 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta) if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { - m_fGravityAmount += fTimeDelta * fRatio* 20.f; + m_fGravityAmount += fTimeDelta * fRatio * 50.f; m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount); } - if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first) - { - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, - 0.17f); - } - Hit_Accio(fTimeDelta); Hit_Levioso(fTimeDelta); HitState_Behavior(fTimeDelta); - - if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first) + TumbleAnim(fTimeDelta); + + if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first) { - m_fTumbleTimer += fTimeDelta; - - if (m_fTumbleTimer >= 1.5f) - { - m_fTumbleTimer = 0.f; - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_pCharacter_Controller->SetGravity(true); - - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, - 0.21f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); - m_fAirTime = 0.f; }, - 0.95f); + if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; } - return S_OK; } - if (m_vStunTimer.y < m_vStunTimer.x) { - pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); - } - - if (m_pModelCom->IsFinishedAnim()) + + if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE].first) { m_pFSM->Change_State(FSMSTATE::COMBAT); return E_FAIL; @@ -675,12 +590,8 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta) void CGoblin::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); m_bPos = false; m_bLookAt = true; - m_eHitState = ENUM_CLASS(HIT_STATE::END); - m_pCharacter_Controller->Reset_GravityAmount(); - m_fGravityAmount = 0.f; } void CGoblin::Behavior_DeadEnter() @@ -785,6 +696,141 @@ void CGoblin::Hit_Levioso(_float fTimeDelta) } } +void CGoblin::Hit_Jap() +{ + pair<_uint, _bool> pairAnimInfo = {}; + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } + if (m_fHitDegree >= 90.f) + { + _int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3); + switch (iRandIndex) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3]; + break; + case 3: + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4]; + break; + default: + break; + } + } + else if (m_fHitDegree >= 45.f) { + + if (m_fHitCross > 0.f) { + pairAnimInfo = m_Animation[STATEANIM::HIT_L]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::HIT_R]; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::HIT_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false); +} + +void CGoblin::Descendo_Event() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(2.f); + m_fAirTime = 0.f; + + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 5.f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); + }, + 0.15f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() {CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; } + , 0.27f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); + m_pCharacter_Controller->SetGravity(false); + m_bAir = true; + }, + 0.3f); + + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, + 0.65f); + + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_bAir = false; + m_pCharacter_Controller->SetGravity(true); + m_eHitState = ENUM_CLASS(HIT_STATE::END); + m_pCharacter_Controller->Reset_GravityAmount(); + m_fGravityAmount = 0.f; + m_bCameraShake = true; + }, + 0.85f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + }, + 0.95f); + + Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, + [this]() {m_bLookAt = true; }, + 0.7f); + +} + +void CGoblin::TumbleAnim(_float fTimeDelta) +{ + pair<_uint, _bool> pairAnimInfo = {}; + _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + + if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first) + { + m_fTumbleTimer += fTimeDelta; + + if (m_fTumbleTimer >= 1.5f) + { + if (fRatio >= 0.85f) + { + m_fTumbleTimer = 0.f; + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_eHitState = ENUM_CLASS(HIT_STATE::END); + + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); + m_fAirTime = 0.f; + m_bAir = false; + }, + 0.95f); + } + } + } +} + void CGoblin::HitState_Behavior(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo = {}; @@ -798,47 +844,7 @@ void CGoblin::HitState_Behavior(_float fTimeDelta) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): { - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - m_pCharacter_Controller->SetGravity(true); - m_pCharacter_Controller->Set_GravityAmount(1.5f); - m_fAirTime = 0.f; - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); - m_pCharacter_Controller->SetGravity(false); - m_bAir = true; - }, - 0.3f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [this]() { - CameraShake(10.f, 1.f, 2.f, 0.3f); - }, - 0.27f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [this]() {m_pModelCom->Set_AnimSpeed(1.5f); }, - 0.75f); - - Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_bAir = false; - m_pCharacter_Controller->SetGravity(true); - }, - 0.96f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, - 0.95f); - - Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [this]() {m_bLookAt = true; }, - 0.7f); + Descendo_Event(); } break; case ENUM_CLASS(SKILL_TYPE::BOMBARDA): @@ -866,11 +872,7 @@ void CGoblin::HitState_Behavior(_float fTimeDelta) m_pCharacter_Controller->Set_Position(vPos + Force); pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f); - } - else { - m_fHitTimer = 0.f; - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.6f, false, 0.8f); } } break; @@ -883,7 +885,31 @@ void CGoblin::HitState_Behavior(_float fTimeDelta) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); } } + if (m_eHitState == ENUM_CLASS(HIT_STATE::DESCENDO)) + { + switch (m_eHitSpell) + { + case ENUM_CLASS(SKILL_TYPE::JAP): + { + m_fHitTimer += fTimeDelta; + if (m_fHitTimer <= 0.4f) + { + _vector vPlayerLook = pTransform->Get_State(STATE::LOOK); + vPlayerLook = XMVector4Normalize(vPlayerLook); + _vector vPos = m_pCharacter_Controller->Get_Position(); + _float t = clamp(m_fHitTimer, 0.f, 1.f); + _float ease = 1.f - (t * t); + _vector Force = vPlayerLook * fTimeDelta * 6.f * ease; + + m_pCharacter_Controller->Set_Position(vPos + Force); + pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f); + } + } + break; + } + } } diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 407af3a78..e8f82652e 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -87,10 +87,6 @@ void CHuman_Duelist::Priority_Update(_float fTimeDelta) void CHuman_Duelist::Update(_float fTimeDelta) { - if (m_pGameInstance->Key_Up(DIK_J)) - { - m_pCharacter_Controller->Set_Position(XMVectorSet(1007.f, 6.f, 1016.f, 1.f)); - } m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta *m_fEasing, m_pTransformCom); @@ -172,9 +168,19 @@ HRESULT CHuman_Duelist::Render() m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + if (true == m_bDrawOutLine) { + m_pGameInstance->Begin_OutLine_Write(2); + } if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; } + if (true == m_bDrawOutLine) { + m_pGameInstance->End_OutLine_Write(); + } + + if (true == m_bDrawOutLine) { + Render_OutLine(); + } } #ifdef _DEBUG //m_pCharacter_Controller->Render(); @@ -215,16 +221,9 @@ HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType) if (FAILED(Bind_ShaderParameters(i))) { return E_FAIL; } - if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) { - return E_FAIL; - } - } - else { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { - return E_FAIL; - } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { + return E_FAIL; } m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); @@ -235,6 +234,79 @@ HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType) } return S_OK; } + +HRESULT CHuman_Duelist::Render_OutLine() +{ + m_bDrawOutLine = false; + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + Compute_Depth(); + _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar(); + _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar))); + m_fOutLineThickness = CMyTools::Lerp_f1D(0.03f, 0.08f, fRatio); + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::OUTLINE_READ)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; +} + +_vector CHuman_Duelist::Get_LockOnPos() +{ + return m_pCharacter_Controller->Get_Position(); +} + + void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc) { ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp index 876011eb1..42cb3e79b 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -8,6 +8,7 @@ #include "Character_Controller.h" #include "CallBack_Playable_Behavior.h" #include "CallBack_Playable_HitReport.h" +#include "Effect_Container.h" #pragma region STATE #include "State_Idle.h" @@ -18,6 +19,7 @@ #include "State_Spell.h" #include "State_Shield.h" #include "State_Hit.h" +#include "State_CutScene.h" #pragma endregion #include "EffectPool.h" @@ -33,13 +35,21 @@ void CHuman_Duelist::Behavior_IdleEnter() HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta) { - for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) - { - if (m_fSkillCoolTime[i] == 0.f) { - m_pFSM->Change_State(FSMSTATE::COMBAT); - return E_FAIL; + if (m_bBattle) { + m_pFSM->Change_State(FSMSTATE::CUTSCENE); + return E_FAIL; + } + + if (m_fTargetDistance <= 20.f) { + for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) + { + if (m_fSkillCoolTime[i] == 0.f) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } } } + return S_OK; } @@ -86,26 +96,33 @@ void CHuman_Duelist::Behavior_CombatEnter() HRESULT CHuman_Duelist::Behavior_CombatExitCheck() { - if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f) - { - m_pFSM->Change_State(FSMSTATE::SPELL); - return E_FAIL; - } - else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f) - { - m_pFSM->Change_State(FSMSTATE::SHIELD); - return E_FAIL; - } - else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f) - { - m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); - return E_FAIL; + if (m_fTargetDistance <= 20.f) { + if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SPELL); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SHIELD); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); + return E_FAIL; + } + else { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } } else { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; } + return S_OK; } @@ -142,12 +159,18 @@ void CHuman_Duelist::Behavior_LightAttackEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAP, Get_PartObject(), &iIndex); - /*m_pGameInstance->SlowMotion(0.5f, 0.4f);*/ }, + [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAP, Get_PartObject(), &iIndex);}, fRatio); Add_Event(pairAnimInfo.first, - [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAPSIDE, Get_PartObject()); }, + [this, fRatio]() { + _float OffsetRatio = 0.1f; + m_pGameInstance->SlowMotion(0.2f, 0.3f); }, + 0.f); + + Add_Event(pairAnimInfo.first, + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAPSIDE, Get_PartObject()); + }, 0.0f); m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)]; @@ -238,41 +261,82 @@ void CHuman_Duelist::Behavior_ShieldExit() void CHuman_Duelist::Behavior_HitEnter() { - m_pFSM->Enable_State(FSMSTATE::HIT); pair<_uint, _bool> pairAnimInfo; m_bLookAt = false; + switch (m_eHitSpell) { case ENUM_CLASS(SKILL_TYPE::JAP): + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): + if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { + return; + } pairAnimInfo = m_Animation[STATEANIM::DAZED_START]; - + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f); Add_Event(pairAnimInfo.first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_eHitState = ENUM_CLASS(HIT_STATE::STUN); }, 0.95f); Add_Event(m_Animation[STATEANIM::DAZED_LOOP].first, - [&]() { + [this]() { _string strBoneName = "HeadEnd"; m_pEffectPool->Use_Skill(SKILL_TYPE::STUN, this, &strBoneName); }, 0.1f); Add_Event(m_Animation[STATEANIM::DAZED_LOOP].first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::DAZED_END1]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_END1]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, 0.95f); break; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + { + Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(1.4f); + m_eHitState = ENUM_CLASS(HIT_STATE::END); }, + 0.75f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + }, + 0.95f); + + Add_Event(m_Animation[STATEANIM::TUMBLE].first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(1.4f); + m_eHitState = ENUM_CLASS(HIT_STATE::END); }, + 0.75f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + }, + 0.95f); + } } @@ -296,15 +360,36 @@ HRESULT CHuman_Duelist::Behavior_HitExitCheck(_float fTimeDelta) void CHuman_Duelist::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); - m_pCharacter_Controller->SetGravity(true); m_pCharacter_Controller->Reset_GravityAmount(); - m_eHitState = ENUM_CLASS(HIT_STATE::END); m_bLookAt = true; m_fAirTime = 0.f; } +void CHuman_Duelist::Behavior_CutSceneEnter() +{ + m_pFSM->Enable_State(FSMSTATE::CUTSCENE); + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_DUEL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CHuman_Duelist::Behavior_CutSceneExitCheck(_float fTimeDelta) +{ + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + return S_OK; +} + +void CHuman_Duelist::Behavior_CutSceneExit() +{ + m_pFSM->Disable_State(FSMSTATE::CUTSCENE); + m_bBattle = false; +} + void CHuman_Duelist::Hit_Levioso(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo; @@ -325,6 +410,7 @@ void CHuman_Duelist::Hit_Levioso(_float fTimeDelta) } if (m_fAirTime > 2.3f) { + m_eHitState = ENUM_CLASS(HIT_STATE::END); pairAnimInfo = m_Animation[STATEANIM::LAND]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_fAirTime = 0.f; @@ -337,6 +423,7 @@ void CHuman_Duelist::Hit_Levioso(_float fTimeDelta) void CHuman_Duelist::HitState_Behavior(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo = {}; + CTransform* pTransform = m_pTarget->Get_Component(); _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); @@ -346,35 +433,63 @@ void CHuman_Duelist::HitState_Behavior(_float fTimeDelta) { case ENUM_CLASS(SKILL_TYPE::JAP): { - if (iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE].first) { - pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + if (iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE_FWD].first) { + pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.7f, false, 1.5f); } else { - pairAnimInfo = m_Animation[STATEANIM::TUMBLE2]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.7f, false, 1.5f); + m_bHitJap = true; } - - Add_Event(pairAnimInfo.first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_pCharacter_Controller->SetGravity(true); - m_pCharacter_Controller->Set_GravityAmount(1.2f); }, - 0.8f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, - 0.95f); - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); } break; } } + if (m_eHitState == ENUM_CLASS(HIT_STATE::STUN)) + { + switch (m_eHitSpell) + { + case ENUM_CLASS(SKILL_TYPE::JAP): + { + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + break; + case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + { + pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_fAirTime = 0.f; + } + break; + } + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + } + + if (m_bHitJap) { + m_fHitTimer += fTimeDelta; + if (m_fHitTimer <= 0.4f) + { + _vector vPlayerLook = pTransform->Get_State(STATE::LOOK); + vPlayerLook = XMVector4Normalize(vPlayerLook); + _vector vPos = m_pCharacter_Controller->Get_Position(); + + _float t = clamp(m_fHitTimer, 0.f, 1.f); + _float ease = 1.f - (t * t); + _vector Force = vPlayerLook * fTimeDelta * 3.f * ease; + + m_pCharacter_Controller->Set_Position(vPos + Force); + } + else { + m_fHitTimer = 0.f; + m_bHitJap = false; + } + } + + } void CHuman_Duelist::Add_FSM() @@ -460,6 +575,15 @@ void CHuman_Duelist::Add_FSM() m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc)); } + { + CState_CutScene::STATE_CUTSCENE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CutSceneEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CutSceneExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_CutSceneExit(); }; + m_States.emplace(FSMSTATE::CUTSCENE, CState_CutScene::Create(&Desc)); + } + #pragma endregion } diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index 2bbe8d0c1..bf5a90cfe 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -113,9 +113,6 @@ HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit) void CInfoInstance::Get_LockOnInfo(LOCKON_INFO& Info) { - if (false == m_bSearchLockOnTarget) { - return; - } Info.pUnit = m_pMonsterInfo->Get_LockOnUnit(); Info.pInteractive = m_pInteractiveInfo->Get_LockOnUnit(); Info.pEffect = m_pEffectInfo->Get_LockOnEffect(); diff --git a/Jusin154_Team3D/Client/Private/InstancedProp.cpp b/Jusin154_Team3D/Client/Private/InstancedProp.cpp index 0a89ecc4f..f180069b0 100644 --- a/Jusin154_Team3D/Client/Private/InstancedProp.cpp +++ b/Jusin154_Team3D/Client/Private/InstancedProp.cpp @@ -27,7 +27,6 @@ void CInstancedProp::Late_Update(_float fTimeDelta) } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); } @@ -42,7 +41,7 @@ HRESULT CInstancedProp::Render() if (FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i))) return E_FAIL; - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_WORLDMODLE_INSTANCE::DEFAULT)))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_eShaderPass)))) return E_FAIL; m_pVIBufferInstanceCom->Render(i); @@ -67,7 +66,7 @@ HRESULT CInstancedProp::Render_Shadow(SHADOW eType) if (FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i))) return E_FAIL; - if (FAILED(m_pShaderCom->Begin(3))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_WORLDMODLE_INSTANCE::SHADOW)))) return E_FAIL; m_pVIBufferInstanceCom->Render(i); @@ -89,6 +88,10 @@ HRESULT CInstancedProp::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + INSTANCE_PROP_DESC* pDesc = static_cast(pArg); + + m_eShaderPass = pDesc->eShaderPass; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp index 25e9df4c0..c1948049d 100644 --- a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp +++ b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp @@ -77,6 +77,8 @@ CMapElement_Interactable* CInteractiveInfo::Get_LockOnUnit() HRESULT CInteractiveInfo::Refresh_LockOnTarget() { + if (!m_pInfoInstance->Get_SearchLockonFloag()) + return S_OK; SAFE_RELEASE(m_pLockOnInteractive); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); diff --git a/Jusin154_Team3D/Client/Private/Item_Potion.cpp b/Jusin154_Team3D/Client/Private/Item_Potion.cpp index 1609a2c54..cfcbd8f72 100644 --- a/Jusin154_Team3D/Client/Private/Item_Potion.cpp +++ b/Jusin154_Team3D/Client/Private/Item_Potion.cpp @@ -2,7 +2,8 @@ #include "Item_Potion.h" #include "GameInstance.h" - +#include "EffectPool.h" +#include "Layer.h" CItem_Potion::CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CPartObject(pDevice, pContext) { @@ -32,12 +33,16 @@ HRESULT CItem_Potion::Initialize(void* pArg) return E_FAIL; } + + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + SAFE_ADDREF(m_pEffectPool); + return S_OK; } void CItem_Potion::Priority_Update(_float fTimeDelta) { - + XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION)); #ifdef _DEBUG Describe_Entity(); @@ -56,14 +61,18 @@ void CItem_Potion::Late_Update(_float fTimeDelta) if (m_bVisible) { m_fTimer += fTimeDelta; - if (m_fTimer >= 1.7f) { + if (m_fTimer >= 1.6f) { + m_bAttach = false; + } + if (m_fTimer >= 3.f) { m_fTimer = 0.f; m_bVisible = false; + m_bAttach = true; } - } if (m_bAttach) { + m_bHit = false; _matrix socketMatrix = {}; socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); @@ -74,10 +83,23 @@ void CItem_Potion::Late_Update(_float fTimeDelta) m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); } + else + { + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + _matrix world = XMLoadFloat4x4(m_pTransformCom->Get_WorldMatrixPtr()); + m_pTransformCom->Set_WorldMatrix(world); + + m_pTransformCom->Go_Right(fTimeDelta); + + } + if (false == m_bHit) { + Check_GroundCollision(); + } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } + HRESULT CItem_Potion::Render() { @@ -108,9 +130,68 @@ HRESULT CItem_Potion::Render() } } +#ifdef _DEBUG + m_pRigidBody->Render(); +#endif // _DEBUG + + return S_OK; } +void CItem_Potion::Check_GroundCollision() +{ + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = m_pTransformCom->Get_State(STATE::POSITION); + _vector vDir = vEndPos - vStartPos; + _float fLength = XMVectorGetX(XMVector4Length(vDir)); + vDir = XMVector4Normalize(vDir); + m_SweepBuffer = {}; + _bool bHit = m_pGameInstance->SphereCast(0.02f, vStartPos, vDir, fLength, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eSTATIC, m_SweepBuffer); + if (true == bHit) { + vector Hits; + _uint iHitCount = m_SweepBuffer.nbTouches; + if (true == m_SweepBuffer.hasBlock) { + iHitCount += 1; + Hits.reserve(iHitCount); + Hits.emplace_back(&m_SweepBuffer.block); + } + else { + Hits.reserve(iHitCount); + } + for (_uint i = 0; i < m_SweepBuffer.nbTouches; ++i) { + Hits.emplace_back(&m_SweepBuffer.touches[i]); + } + + for (_uint i = 0; i < Hits.size(); ++i) { + PSX::PxSweepHit* pHit = Hits[i]; + PSX::PxActor* pActor = pHit->actor; + if (nullptr != pActor && nullptr != pActor->userData) { + const PSX::PxSweepHit& hit = m_SweepBuffer.block; + PSX::PxShape* pShape = hit.shape; + + PHYSX_USERDATA* pUserData = static_cast(pActor->userData); + + + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::TERRAIN: + { + OnCollision(this); + m_bHit = true; + break; + } + } + } + } + } +} + + +void CItem_Potion::OnCollision(CGameObject* pOther, void* pDesc) +{ + m_bHit = false; +} + void CItem_Potion::Set_Attach(_bool Attach) { m_bAttach = Attach; @@ -119,7 +200,14 @@ void CItem_Potion::Set_Attach(_bool Attach) HRESULT CItem_Potion::Ready_Components() { - __super::Ready_Components(nullptr); + + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + __super::Ready_Components(&Desc); /* Com_Model */ @@ -132,6 +220,16 @@ HRESULT CItem_Potion::Ready_Components() reinterpret_cast(&m_pShaderCom)))) return E_FAIL; + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::POTION); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_POTION"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + } + return S_OK; } @@ -188,6 +286,8 @@ void CItem_Potion::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pEffectPool); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp index aab65132f..f37bd626d 100644 --- a/Jusin154_Team3D/Client/Private/Land.cpp +++ b/Jusin154_Team3D/Client/Private/Land.cpp @@ -2,6 +2,7 @@ #include "Land.h" #include "GameInstance.h" +#include "InstancedProp.h" CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject{ pDevice, pContext } @@ -16,16 +17,24 @@ CLand::CLand(const CLand& rhs) void CLand::Priority_Update(_float fTimeDelta) { + for (auto& pInstanceProp : m_InstanceProps) + pInstanceProp->Priority_Update(fTimeDelta); } void CLand::Update(_float fTimeDelta) { + for (auto& pInstanceProp : m_InstanceProps) + pInstanceProp->Update(fTimeDelta); } void CLand::Late_Update(_float fTimeDelta) { if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis)) + { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + for (auto& pInstanceProp : m_InstanceProps) + pInstanceProp->Late_Update(fTimeDelta); + } } HRESULT CLand::Render() @@ -34,9 +43,6 @@ HRESULT CLand::Render() return E_FAIL; } - //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) - // return E_FAIL; - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::LAND)))) { return E_FAIL; } @@ -70,6 +76,11 @@ HRESULT CLand::Render_Shadow(SHADOW eType) return S_OK; } +void CLand::Add_InstanceProp(CInstancedProp* pIntanceProp) +{ + m_InstanceProps.push_back(pIntanceProp); +} + HRESULT CLand::Initialize_Prototype() { m_fUsingSurfaceParams = MRO_PARAMETER; @@ -207,6 +218,9 @@ void CLand::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); + + for (auto& pInstanceProp : m_InstanceProps) + SAFE_RELEASE(pInstanceProp); } #ifdef _DEBUG void CLand::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 2cf42d6ed..e6b1d4ca6 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -67,7 +67,6 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) #endif // #endif // _DEBUG - if (FAILED(Ready_Lights())) { return E_FAIL; } @@ -84,9 +83,16 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) if (FAILED(Ready_Background())) { return E_FAIL; } - if (FAILED(Ready_Land())) { + + map<_string, CLand*> Lands = {}; + + if (FAILED(Ready_Land(&Lands))) { return E_FAIL; } + + if (FAILED(Ready_IntstanceProp(&Lands))) + return E_FAIL; + if (FAILED(Ready_Markers())) { return E_FAIL; } @@ -114,10 +120,24 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } + if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Monster())) { return E_FAIL; } + if (FAILED(Ready_Layer_Duelist())) { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Npc())) { + return E_FAIL; + } + + if (FAILED(m_pInfoInstance->Late_Initialize())) return E_FAIL; @@ -338,7 +358,6 @@ HRESULT CLevel_GamePlay::Ready_Background() #else #endif - if (isReady_Hogsmeade) { if (FAILED(Ready_Layer_Hogsmeade())) @@ -350,131 +369,144 @@ HRESULT CLevel_GamePlay::Ready_Background() if (FAILED(Ready_Layer_Hogwart())) return E_FAIL; } - - - - if (FAILED(Ready_IntstanceProp())) - return E_FAIL; } return S_OK; } -HRESULT CLevel_GamePlay::Ready_Land() +HRESULT CLevel_GamePlay::Ready_Land(map<_string, CLand*>* Lands) { + CLand* pLand = { nullptr }; + CLand::LAND_DESC Land_Desc = {}; - /* South_Hogwart_Land */ + /* HN_BC */ Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f); Land_Desc.vScale = _float3(1.f, 1.25f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1"; Land_Desc.strAlphaMapTag = L"Land_HN_BC_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BC", pLand); - /* North_Hogwart_Land */ + /* HN_AV */ Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1"; Land_Desc.strAlphaMapTag = L"Land_HN_AV_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_AV", pLand); - /* North_Hogwart2_Land */ + + /* HN_AU */ Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1"; Land_Desc.strAlphaMapTag = L"Land_HN_AU_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_AU", pLand); - /* West_Hogwart_Land */ + /* HN_AZ */ Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1"; Land_Desc.strAlphaMapTag = L"Land_HN_AZ_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_AZ", pLand); - /* East_Hogsmeade_Land */ + /* HN_AY */ Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1"; Land_Desc.strAlphaMapTag = L"Land_HN_AY_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_AY", pLand); + /* HN_BA */ Land_Desc.vPosition = _float3(-606.f, 70.f, -647.7f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BA"; Land_Desc.strAlphaMapTag = L"Land_HN_BA_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BA", pLand); /* HN_BD */ Land_Desc.vPosition = _float3(201.4f, -22.9f, -650.1f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BD"; Land_Desc.strAlphaMapTag = L"Land_HN_BD_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BD", pLand); /* HN_BG */ Land_Desc.vPosition = _float3(-377.8f, 5.f, -1038.49f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BG"; Land_Desc.strAlphaMapTag = L"Land_HN_BG_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BG", pLand); /* HN_BH */ Land_Desc.vPosition = _float3(80.1f, -63.f, -908.3f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BH"; Land_Desc.strAlphaMapTag = L"Land_HN_BH_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BH", pLand); /* HN_BE */ Land_Desc.vPosition = _float3(431.2f, 100.1f, -658.3f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BE"; Land_Desc.strAlphaMapTag = L"Land_HN_BE_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BE", pLand); /* HN_BF */ Land_Desc.vPosition = _float3(-688.9f, 170.7f, -1066.f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BF"; Land_Desc.strAlphaMapTag = L"Land_HN_BF_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BF", pLand); /* HN_BI */ Land_Desc.vPosition = _float3(82.7f, -61.f, -1141.6f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BI"; Land_Desc.strAlphaMapTag = L"Land_HN_BI_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BI", pLand); /* HN_BJ */ Land_Desc.vPosition = _float3(367.1f, 44.8f, -1016.f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_HN_BJ"; Land_Desc.strAlphaMapTag = L"Land_HN_BJ_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("HN_BJ", pLand); /* TU_BB */ Land_Desc.vPosition = _float3(-829.5f, 58.3f, 112.9f); Land_Desc.vScale = _float3(1.f, 1.2f, 1.f); Land_Desc.strModelComTag = L"Prototype_Component_Land_TU_BB"; Land_Desc.strAlphaMapTag = L"Land_TU_BB_AlphaMap"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc, nullptr, &pLand))) return E_FAIL; + Lands->emplace("TU_BB", pLand); return S_OK; } @@ -498,9 +530,9 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogsmeade() CInfoInstance::GetInstance()->Load_DoorElemet("Element_Door_Info", LAYER_HOGSMEADE); /* Chests */ - CInfoInstance::GetInstance()->Load_ChestElemet("Element_Chest_Info", LAYER_HOGSMEADE); + CInfoInstance::GetInstance()->Load_ChestElemet("Element_Chest_Info", LAYER_HIDDEN); - /* Hogwart Unified*/ + /* Hogsmeade Unified*/ CUnified::UNIFIED_DESC Desc = {}; Desc.fLodSwitchDistnace = 500.f; Desc.vUnifiedCenterPos = _float4(62.f, 10.f, 93.f, 1.f); @@ -528,8 +560,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart() CUnified::UNIFIED_DESC Desc = {}; /* Hogwart Unified*/ - Desc.fLodSwitchDistnace = 400.f; - Desc.vUnifiedCenterPos = _float4(-250.2f, 17.2f, -500.7f, 1.f); + Desc.fLodSwitchDistnace = 500.f; + Desc.vUnifiedCenterPos = _float4(-291.2f, 17.2f, -500.7f, 1.f); Desc.vPosition = _float3(-291.2f, 17.2f, -474.7f); Desc.vRotation = _float3(0.f, 0.f, 0.f); Desc.vScale = _float3(1.f, 1.f, 1.f); @@ -542,26 +574,29 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart() return S_OK; } -HRESULT CLevel_GamePlay::Ready_IntstanceProp() +HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands) { + CInstancedProp* pInstancedProp = { nullptr }; CInstancedProp::INSTANCE_PROP_DESC Desc = {}; /* InstanceProp Oak_Tree*/ Desc.isShake = true; + Desc.eShaderPass = SHADER_PASS_WORLDMODLE_INSTANCE::DEFAULT; Desc.bEnableRigidbody = true; Desc.vRadius = _float2(0.015f, 0.02f); Desc.vSpeed = _float2(0.3f, 1.f); Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc))) { return E_FAIL; } Desc.isShake = false; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA_HN_BB.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) { return E_FAIL; } + /* BearBerry */ Desc.isShake = true; Desc.bEnableRigidbody = false; @@ -569,7 +604,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() Desc.vSpeed = _float2(0.6f, 1.f); Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BearBerry_A.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc))) { return E_FAIL; } @@ -684,7 +719,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() return E_FAIL; Desc.isShake = false; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/BogMyrtle_A_HN_BB.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) return E_FAIL; /* Dogwood_B */ @@ -708,16 +743,16 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_BB_2.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AZ.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc), "HN_AZ"))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/ScotsPine_LargeA_HN_AV.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc), "HN_AV"))) return E_FAIL; /* StratifiedCliff_A1 */ @@ -728,19 +763,19 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedCliff_A1"; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BC.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc), "HN_BC"))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_BB.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AZ.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc), "HN_AZ"))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AV.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc), "HN_AV"))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/CliffwallA_HN_AW.bin"; @@ -754,11 +789,11 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() Desc.vSpeed = _float2(0.3f, 1.f); Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_B"; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_BB.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AZ.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(Bind_InstanceProp(Lands, m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc), "HN_AZ"))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_B_HN_AW.bin"; @@ -772,7 +807,7 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp() Desc.vSpeed = _float2(0.3f, 1.f); Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_StratifiedRock_D_B"; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_HN_BB.bin"; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGWART, &Desc))) return E_FAIL; Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/StratifiedRock_D_B_BACK.bin"; @@ -935,75 +970,19 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) return E_FAIL; } + return S_OK; +} - _bool isLoad_NPC = { true }; - _bool isLoad_RandomNPC = { true }; -#ifdef _DEBUG -#ifdef gimch - isLoad_NPC = false; - isLoad_RandomNPC = false; -#endif // gimch -#ifdef 진우 - isLoad_RandomNPC = true; - isLoad_NPC = true; -#endif // -#ifdef 기무리 - isLoad_NPC = false; - isLoad_RandomNPC = false; -#endif // -#ifdef 나 - isLoad_RandomNPC = true; -#endif // -#ifdef Bin - isLoad_NPC = true; - isLoad_RandomNPC = true; -#endif // Bin -#endif // _DEBUG - - if (true == isLoad_NPC) +HRESULT CLevel_GamePlay::Ready_Layer_RacerAI(const _wstring& strLayerTag) +{ + CBroomRacerAI::RacerDesc Desc = {}; + for (_uint i = 1; i < 4; i++) { - { - CNPC_Ollivander::NPCDESC NPCDesc{}; - NPCDesc.vPos = _float4(40.f, 4.f, 68.9f, 1.f); - NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) { - return E_FAIL; - } - } - { - CNPC_EleazarFig::NPCDESC NPCDesc{}; - NPCDesc.vPos = _float4(101.f, 14.f, 100.f, 1.f); - NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) { - return E_FAIL; - } - } - } - - if (true == isLoad_RandomNPC) - { - for (_uint i = 0; i < 11; i++) - { - { - CRandomNpc::NPCDESC NPCDesc{}; - _float X = m_pGameInstance->Real_Random_Float(22.f, 29.f); - _float Z = m_pGameInstance->Real_Random_Float(20.f, 29.f); - NPCDesc.vPos = _float4(X, 1.f, Z, 1.f); - NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - NPCDesc.iIndex = i; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) { - return E_FAIL; - } - } - } - CHuman_Duelist::DUELISTDESC DuelistDesc = {}; - DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); - DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &DuelistDesc))) { + Desc.pRacerManager = m_pBroomRaceManager; + Desc.iIndex = i; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc))) return E_FAIL; - } } - return S_OK; } @@ -1119,6 +1098,96 @@ HRESULT CLevel_GamePlay::Reday_Layer_EffectPool() return S_OK; } +HRESULT CLevel_GamePlay::Bind_InstanceProp(map<_string, class CLand*>* Lands, CInstancedProp* pInstnace, const _char* LandTag) +{ + auto iter = Lands->find(LandTag); + + if (iter == Lands->end()) + return E_FAIL; + + iter->second->Add_InstanceProp(pInstnace); + + return S_OK; +} + +HRESULT CLevel_GamePlay::Ready_Layer_Duelist() +{ + + CHuman_Duelist::DUELISTDESC DuelistDesc = {}; + DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); + DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_DUELIST, &DuelistDesc))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CLevel_GamePlay::Ready_Layer_Npc() +{ + _bool isLoad_NPC = { true }; + _bool isLoad_RandomNPC = { true }; +#ifdef _DEBUG +#ifdef gimch + isLoad_NPC = false; + isLoad_RandomNPC = false; +#endif // gimch +#ifdef 진우 + isLoad_RandomNPC = true; + isLoad_NPC = true; +#endif // +#ifdef 기무리 + isLoad_NPC = true; + isLoad_RandomNPC = true; +#endif // +#ifdef 나 + isLoad_RandomNPC = true; +#endif // +#ifdef Bin + isLoad_NPC = true; + isLoad_RandomNPC = true; +#endif // Bin +#endif // _DEBUG + + if (true == isLoad_NPC) + { + { + CNPC_Ollivander::NPCDESC NPCDesc{}; + NPCDesc.vPos = _float4(40.f, 4.f, 68.9f, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + { + CNPC_EleazarFig::NPCDESC NPCDesc{}; + NPCDesc.vPos = _float4(101.f, 14.f, 100.f, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + } + + if (true == isLoad_RandomNPC) + { + for (_uint i = 0; i < 11; i++) + { + { + CRandomNpc::NPCDESC NPCDesc{}; + _float X = m_pGameInstance->Real_Random_Float(22.f, 29.f); + _float Z = m_pGameInstance->Real_Random_Float(20.f, 29.f); + NPCDesc.vPos = _float4(X, 1.f, Z, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + NPCDesc.iIndex = i; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + } + } + return S_OK; +} + void CLevel_GamePlay::ResetLevel_Environment() { Ready_Volumetric(); diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index 42434fe90..ec346f614 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -27,6 +27,7 @@ HRESULT CLevioso::Initialize_Prototype() return E_FAIL; return S_OK; + } HRESULT CLevioso::Initialize(void* pArg) @@ -42,24 +43,14 @@ HRESULT CLevioso::Initialize(void* pArg) m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO); - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -70,7 +61,7 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -83,19 +74,8 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -104,12 +84,12 @@ void CLevioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); @@ -140,21 +120,23 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEffectParts* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEffectParts* pWandLight = Get_PartObject("Wand_Light_P"); + CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); + pSpread_Circle->Set_Visible(true); - - m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + XMStoreFloat3(&m_vCameraLook , XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK))); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -166,9 +148,9 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) m_pInfoInstance->Get_LockOnInfo(m_Info); - if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { + if (nullptr != m_Info.pUnit) { - XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); + XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos()); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } @@ -179,15 +161,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -243,69 +216,84 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); if (pHitCCT != nullptr) { - _vector vFootPos = pHitCCT->Get_FootPosition(); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); + + /* 바람과 파티클은 풋포지션 */ + + + _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); - pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + _float3 vScale = _float3(1.f, 1.f, 1.f); + pLevioso_Tornado->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate0->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate1->Get_Component()->Set_Scale(vScale); + pLevioso_Bottom_PT->Get_Component()->Set_Scale(vScale); + + switch (static_cast(CollisionDesc.eCollisionType)) + { + case PXOBJECT::GOBLIN_MAGICIAN: + case PXOBJECT::GOBLIN_ASSASSIN: + case PXOBJECT::GOBLIN_WARRIOR: + { + _float3 vScale = _float3(0.7f, 0.7f, 0.7f); + pLevioso_Tornado->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate0->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate1->Get_Component()->Set_Scale(vScale); + pLevioso_Bottom_PT->Get_Component()->Set_Scale(vScale); + break; + } + + default: + break; + } + + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); } + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); - - //Get_PartObject("Levioso_Tornado") - //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CLevioso::Describe_Entity() { - GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp index 77f3a1dc6..9c0bbddcf 100644 --- a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp @@ -47,7 +47,12 @@ HRESULT CLeviosoSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); - m_fDuration = 1.f; + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); return S_OK; } @@ -75,7 +80,7 @@ void CLeviosoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_pWandTrail->Get_Component()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix()); + m_pWandTrail->Oneside_Rope_Trail_Update(pWand->Get_WorldMatrix() , fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Lightning.cpp b/Jusin154_Team3D/Client/Private/Lightning.cpp index 00fde485b..3f41eee83 100644 --- a/Jusin154_Team3D/Client/Private/Lightning.cpp +++ b/Jusin154_Team3D/Client/Private/Lightning.cpp @@ -109,6 +109,7 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) CPartObject* pHitPT0 = Get_PartObject("HitPT0"); CPartObject* pLightning_Tornado_PT = Get_PartObject("Lightning_Tornado_PT"); CPartObject* pLightning0 = Get_PartObject("Lightning0"); + CPartObject* pLightning1 = Get_PartObject("Lightning1"); CPartObject* pStart_Line = Get_PartObject("Start_Line"); CPartObject* pLightning_Smoke = Get_PartObject("Lightning_Smoke"); CPartObject* pLightning_Rock_PT = Get_PartObject("Lightning_Rock_PT"); @@ -124,13 +125,25 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) m_pInfoInstance->Get_LockOnInfo(m_Info); if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { - XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); + _vector vLockOnPos = Get_LockOnPos(m_Info); + + CCharacter_Controller* pCCT = m_Info.pUnit->Get_Component(); + + if (pCCT != nullptr) + { + _float fYHeight = XMVectorGetY(pCCT->Get_FootPosition()) - pCCT->Get_Volume().y * 2.f + pCCT->Get_Volume().x * 2.f; + //_float fYHeight = XMVectorGetY(m_Info.pUnit->Get_Component()->Get_State(STATE::POSITION)); + vLockOnPos = XMVectorSetY(vLockOnPos, fYHeight); + } + + XMStoreFloat4(&m_vTargetPos, vLockOnPos); + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } else { // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 - XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 10.f); } } @@ -139,18 +152,20 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) pHitPT0->Set_Visible(true); pLightning_Tornado_PT->Set_Visible(true); pLightning0->Set_Visible(true); + pLightning1->Set_Visible(true); pStart_Line->Set_Visible(true); pLightning_Smoke->Set_Visible(true); - //pLightning_Rock_PT->Set_Visible(true); + pLightning_Rock_PT->Set_Visible(true); pBottomLightning->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pFlare->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pHitPT0->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pLightning_Tornado_PT->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pLightning0->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); + pLightning1->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pStart_Line->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pLightning_Smoke->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); - //pLightning_Rock_PT->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); + pLightning_Rock_PT->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); m_fDistance = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); @@ -210,17 +225,6 @@ void CLightning::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index b8fe07547..87ca4545e 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -151,6 +151,7 @@ #include "Broom_Record.h" #include "Broom_Exit.h" #include "Broom_Trophy.h" +#include "Broom_TargetGate2D.h" #include "Ride_Panel.h" #include "Ride_Info_Key.h" @@ -190,6 +191,7 @@ #include "DecendoSide.h" #include "BombardSide.h" #include "LeviosoSide.h" +#include "AccioSide.h" #include "TransformationSide.h" #include "AvadakedavraSide.h" @@ -244,6 +246,7 @@ #include "Barral_Splesh.h" #include "Screen_Wind.h" #include "Stupefy.h" +#include "StupefySide.h" #include "Lightning.h" #include "LightningSide.h" #include "Transformation.h" @@ -272,6 +275,7 @@ #include "MapElement_Static.h" #include "WorldDecal.h" #include "PointLight.h" +#include "MapElement_Balloon.h" #pragma endregion @@ -373,6 +377,55 @@ HRESULT CLoader::Loading_For_Logo() m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); +#if 진우 +#pragma region SHADER + vector*>> jobMapShaders; + + { + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_UIEDITOR, + TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_UIINSTANCE, + TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_INSTANCE_MODEL, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_INSTANCE_PROP_MODEL, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_NPC_PBR_ANIM, + TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_ANIMMESH, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_POSTEX, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_NORTEX, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_MESH, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_VTXPOS, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements)); + } + + for (auto& JobMapShader : jobMapShaders) + { + pair<_wstring, CShader*>* pOut = JobMapShader.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + return E_FAIL; + } + Safe_Delete(pOut); + } + +#endif + +#pragma endregion m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); @@ -396,6 +449,8 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } + + m_strMessage = TEXT("로딩이 완료되었습니다.."); m_isFinished = true; @@ -419,8 +474,8 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Background = true; isLoad_Hogwart = false; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = false; - isLoad_DataClassroom = true; + isLoad_NPC = true; + isLoad_DataClassroom = false; #endif // gimch #ifdef 진우 isLoad_Background = false; @@ -1083,6 +1138,7 @@ HRESULT CLoader::Loading_For_GamePlay() } } +#ifndef 진우 #pragma region SHADER { @@ -1131,6 +1187,7 @@ HRESULT CLoader::Loading_For_GamePlay() } } #pragma endregion +#endif /* LAND_MODEL */ { /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ @@ -1764,6 +1821,25 @@ HRESULT CLoader::Loading_For_GamePlay() TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_Dark_D.png"), 0)))) { return E_FAIL; } + + /* Balloon_Diffuse */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Diffuse"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_%d.dds"), 4)))) { + return E_FAIL; + } + + /* Balloon_Normal */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Normal"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds"), 0)))) { + return E_FAIL; + } + + /* Balloon_MRO */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_MRO"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds"), 0)))) { + return E_FAIL; + } + #pragma endregion #pragma region LAKE_TEXTURE /* For.Prototype_Component_Water_Noise_D */ @@ -2173,6 +2249,23 @@ HRESULT CLoader::Loading_For_GamePlay() Desc1.vLocalTranslation = { 0.f, 0.f, 0.f }; } + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC PotionDesc{}; + { + PotionDesc.eType = ACTOR::SPHERE; + PotionDesc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC }; + PotionDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE }; + PotionDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + PotionDesc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + PotionDesc.fContactOffset = { 0.05f }; + PotionDesc.vhalfGeometryInfo = { 0.07f, 0.07f, 0.07f }; + PotionDesc.fDensity = 1.f; + PotionDesc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + PotionDesc.eLockFlag = {}; + PotionDesc.vAutoDamping = { 1.f, 1.f }; + PotionDesc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; + PotionDesc.vLocalTranslation = { 0.f, 0.f, 0.f }; + } + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC RanrokDesc{}; { @@ -2200,6 +2293,11 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_POTION"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, PotionDesc)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, RanrokDesc)))) { return E_FAIL; } @@ -2533,13 +2631,23 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLeviosoSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBombardSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDecendoSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CAccioSide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStupefySide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTransformationSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -3126,6 +3234,11 @@ HRESULT CLoader::Loading_For_GamePlay() { return E_FAIL; } + /* For.Prototype_GameObject_SpellLearn_Broom_TargetGate2D*/ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_TargetGate2D::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } /* For.Prototype_GameObject_SpellLearn_Ride_Panel*/ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_Panel::Create(m_pDevice, m_pContext)))) @@ -3509,9 +3622,20 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(Ready_RigidBody_Static(pModel_Instance))) return E_FAIL; } + + + /* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"), + CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, + "../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) + return E_FAIL; + #pragma endregion - + /* For.Prototype_Component_FloatingBalloon */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin")))) + return E_FAIL; /* For.Prototype_Component_Hogwart_Lake */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_Lake"), @@ -3726,6 +3850,10 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_MapElement_Balloon */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Balloon::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_Troll_Weapon */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext)))) return E_FAIL; @@ -3768,9 +3896,22 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region RECEIVE_THREAD + { + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + _uint iIndex = 0; + for (auto& JobMapShader : jobMapShaders) + { + pair<_wstring, CShader*>* pOut = JobMapShader.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + return E_FAIL; + } + Safe_Delete(pOut); + } + } /* 쉐이더 로딩 종료 이후 로딩*/ +#pragma region RECEIVE_THREAD { // MapModels m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); @@ -3795,7 +3936,23 @@ HRESULT CLoader::Loading_For_GamePlay() Safe_Delete(pOut); } } + + + { + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + _uint iIndex = 0; + for (auto& JobMapShader : jobMapShaders) + { + pair<_wstring, CShader*>* pOut = JobMapShader.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + return E_FAIL; + } + Safe_Delete(pOut); + } + } + #pragma endregion + m_strMessage = TEXT("정보를 불러오는 중입니다."); m_strMessage = TEXT("모델을 다시 불러오는 중입니다. "); diff --git a/Jusin154_Team3D/Client/Private/Lumos.cpp b/Jusin154_Team3D/Client/Private/Lumos.cpp index ef82b50ce..b000518ff 100644 --- a/Jusin154_Team3D/Client/Private/Lumos.cpp +++ b/Jusin154_Team3D/Client/Private/Lumos.cpp @@ -48,6 +48,12 @@ HRESULT CLumos::Initialize(void* pArg) void CLumos::Priority_Update(_float fTimeDelta) { + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); __super::Priority_Update(fTimeDelta); @@ -80,12 +86,7 @@ void CLumos::Late_Update(_float fTimeDelta) __super::Late_Update(fTimeDelta); - CWand* pWand = static_cast(m_pOwner); - if (pWand == nullptr) - return; - - m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); } diff --git a/Jusin154_Team3D/Client/Private/MapElement_Balloon.cpp b/Jusin154_Team3D/Client/Private/MapElement_Balloon.cpp new file mode 100644 index 000000000..3c901f86e --- /dev/null +++ b/Jusin154_Team3D/Client/Private/MapElement_Balloon.cpp @@ -0,0 +1,210 @@ +#include "pch.h" +#include "MapElement_Balloon.h" + +#include "GameInstance.h" + +CMapElement_Balloon::CMapElement_Balloon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMapElement{ pDevice, pContext } +{ +} + +CMapElement_Balloon::CMapElement_Balloon(const CMapElement_Balloon& rhs) + : CMapElement(rhs) + , m_fUsingSurfaceParams(rhs.m_fUsingSurfaceParams) + , m_fTimeAcc(0.f) +{ +} + +HRESULT CMapElement_Balloon::Initialize_Prototype() +{ + m_fUsingSurfaceParams = MRO_PARAMETER; + + return S_OK; +} + +HRESULT CMapElement_Balloon::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + m_isRotate = false; + m_fRadius = 10.f; + + BALLOON_DESC* pDesc = static_cast(pArg); + m_isFloating = pDesc->isFloating; + m_iDiffuseIndex = pDesc->iDiffuseIndex; + + memcpy(&m_vOriginPosition, &pDesc->vPosition, sizeof(_float3)); + + m_pTransformCom->Set_Scale(pDesc->vScale); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + + return S_OK; +} + +void CMapElement_Balloon::Priority_Update(_float fTimeDelta) +{ +} + +void CMapElement_Balloon::Update(_float fTimeDelta) +{ + m_fTimeAcc += fTimeDelta; + + if (m_isFloating) + Floating(); + + if (m_isRotate) + Rotation(); +} + +void CMapElement_Balloon::Late_Update(_float fTimeDelta) +{ + if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius)) + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +} + +HRESULT CMapElement_Balloon::Render() +{ + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelComs[0]->Render(0))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CMapElement_Balloon::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + CModel* pModel = { nullptr }; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"), + reinterpret_cast(&pModel)))) + return E_FAIL; + + m_pModelComs.push_back(pModel); + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_Diffuse"), + reinterpret_cast(&m_pDiffuseTextureCom)))) + return E_FAIL; + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_Normal"), + reinterpret_cast(&m_pNormalTextureCom)))) + return E_FAIL; + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_MRO"), + reinterpret_cast(&m_pMROTextureCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CMapElement_Balloon::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pDiffuseTextureCom->Get_SRV(m_iDiffuseIndex)))) + return E_FAIL; + if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) + return E_FAIL; + if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pMROTextureCom->Get_SRV(0)))) + return E_FAIL; + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +void CMapElement_Balloon::Rotation() +{ + +} + +void CMapElement_Balloon::Floating() +{ + _float3 vPosition = m_vOriginPosition; + + vPosition.y = m_vOriginPosition.y + sinf(m_fTimeAcc); + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f)); +} + +CMapElement_Balloon* CMapElement_Balloon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMapElement_Balloon* pInstance = new CMapElement_Balloon(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMapElement_Balloon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMapElement_Balloon::Clone(void* pArg, CGameObject* pOwner) +{ + CMapElement_Balloon* pInstance = new CMapElement_Balloon(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMapElement_Balloon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapElement_Balloon::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + for (auto& pModel : m_pModelComs) + SAFE_RELEASE(pModel); + + SAFE_RELEASE(m_pDiffuseTextureCom); + SAFE_RELEASE(m_pNormalTextureCom); + SAFE_RELEASE(m_pMROTextureCom); +} + +#ifdef _DEBUG +void CMapElement_Balloon::Describe_Entity() +{ +} +#endif // _DEBUG + + diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp index bef6474df..2cfcc1010 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp @@ -128,8 +128,8 @@ void CMapElement_Chest::Late_Update(_float fTimeDelta) if (CMapElement_Chest::CHEST_STATE::FOUND == m_eCurState) { - m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); - m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); + //m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } else m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); @@ -180,9 +180,25 @@ void CMapElement_Chest::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, } if (fDistance < m_fEncounterDistance) { m_iEntered = 4; + if (m_pGameInstance->Key_Down(DIK_F) && m_eCurState != CHEST_STATE::OPENED) + { + m_eCurState = CHEST_STATE::OPENED; + } } } +_bool CMapElement_Chest::IsScannable(_fvector vPosition) +{ + _float fDistance = XMVectorGetX(XMVector3Length(m_pTransformCom->Get_State(STATE::POSITION) - vPosition)); + + if (fDistance <= 20.f && m_eCurState == CHEST_STATE::IDLE) + { + m_eCurState = CHEST_STATE::FOUND; + } + + return false; +} + HRESULT CMapElement_Chest::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) { diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp index 0930f3ed7..c2232d956 100644 --- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -119,6 +119,8 @@ CMonster* CMonsterInfo::Get_TargetMonster() HRESULT CMonsterInfo::Refresh_LockOnMonsters() { + if (!m_pInfoInstance->Get_SearchLockonFloag()) + return S_OK; SAFE_RELEASE(m_pLockOnMonster); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index 30443d470..e4b3106b1 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -284,6 +284,7 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); for (auto& pPair : m_PartObjects) @@ -300,15 +301,23 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) } if (m_bHitShield) { - _vector vDir = m_pTransformCom->Get_State(STATE::LOOK); - vDir = XMVector3Normalize(vDir); + _vector vIncident = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vHitDir)); - _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f)); + _vector vNormal = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vWorldNomal)); - _matrix rotX = XMMatrixRotationX(fRandAngle); - _vector vRandDir = XMVector3TransformNormal(vDir, rotX); + _vector vReflect = XMVector3Reflect(vIncident, vNormal); + + _float y = XMVectorGetY(vReflect); + if (y < 0.f) + vReflect = XMVectorSetY(vReflect, 0.f); + + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + _vector vFinal = XMVector3Normalize( + vReflect * (1.f - 0.25f) + vUp * 0.25f + ); + + XMStoreFloat3(&m_vCameraLook, vFinal); - XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir)); m_fLinearSpeed = 15.f; } diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index e2e15895c..500078345 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -21,6 +21,7 @@ #include "Mesh.h" #include "Effect_Container.h" #include "ThestralCarriage.h" +#include "MapElement_Chest.h" CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CUnit(pDevice, pContext) @@ -117,6 +118,7 @@ HRESULT CPlayer::Initialize(void* pArg) // UI 연동 추가 m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); }); m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("NpcInteraction"), [this](void* p) {this->Set_Interaction(*reinterpret_cast<_bool*>(p)); }); m_bAI = false; @@ -168,9 +170,13 @@ void CPlayer::Update(_float fTimeDelta) { if (m_bNpcInteraction == true) { + m_bCurrentInteraction = true; m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction); } } + if (m_bGuarding) { + m_fParryTimer += fTimeDelta; + } m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); } @@ -362,7 +368,7 @@ HRESULT CPlayer::Update_RaycastElements() else { - if (m_pCurrentNpcInteraction) + if (m_pCurrentNpcInteraction && !m_bCurrentInteraction) { m_bNpcInteraction = false; m_pCurrentNpcInteraction = nullptr; @@ -373,7 +379,7 @@ HRESULT CPlayer::Update_RaycastElements() else { - if (m_pCurrentNpcInteraction) + if (m_pCurrentNpcInteraction && !m_bCurrentInteraction) { m_bNpcInteraction = false; m_pCurrentNpcInteraction = nullptr; @@ -383,6 +389,11 @@ HRESULT CPlayer::Update_RaycastElements() return S_OK; } +void CPlayer::Set_Interaction(_bool bInteraction) +{ + m_bCurrentInteraction = bInteraction; +} + HRESULT CPlayer::Render_Shadow(SHADOW eType) { if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { @@ -439,11 +450,19 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc) iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first) return; - if (m_bShield) - { - m_pFSM->Change_State(FSMSTATE::BLOCK); - return; + if (m_bShield) { + if (IsParryWindow()) + { + m_pFSM->Change_State(FSMSTATE::PARRY); + m_fParryTimer = 0.f; + return; + } + else { + m_pFSM->Change_State(FSMSTATE::BLOCK); + return; + } } + #ifdef _DEBUG if (m_isDebugMode == true) @@ -559,6 +578,12 @@ void CPlayer::Set_RaceInfo() } } +_bool CPlayer::IsParryWindow() +{ + return m_fParryTimer <= 0.15f; +} + + HRESULT CPlayer::Ready_Components() { CTransform::TRANSFORM_DESC Desc = {}; @@ -899,6 +924,25 @@ void CPlayer::Player_PixRot() } } +void CPlayer::Find_HiddenObjects() +{ + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_HIDDEN); + + if (nullptr == pLayer) + return; + + const list* pHiddenObjects = pLayer->Get_Objects(); + + for (auto& pObject : *pHiddenObjects) + { + CMapElement_Chest* pChest = dynamic_cast(pObject); + if (nullptr != pChest) + if (pChest->IsScannable(m_pTransformCom->Get_State(STATE::POSITION))) + return; + } + +} + void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta) { _vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f)); @@ -1037,7 +1081,7 @@ void CPlayer::Describe_Entity() m_pShaderCom->Shader_Refresh(); } m_pCharacter_Controller->Describe_Entity(); - GUI::Checkbox("Shield", &m_bShield); + GUI::Checkbox("Battle", &m_bDuel_ZOnlyMove); _float4 vMomentum = {}; XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum()); GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w); @@ -1124,6 +1168,7 @@ void CPlayer::Describe_Entity() GUI::Text("dot RU %.4f | UL %.4f | LR %.4f\n", dotRU, dotUL, dotLR); + m_pLightCom->Describe_Entity(); if (GUI::TreeNode("PLAYER_ANIMLIST")) { m_pModelCom->Describe_Entity(); diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 692c3a200..8f0f3f8de 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -34,6 +34,7 @@ #include "State_AncientSpell.h" #include "State_Shield.h" #include "State_Block.h" +#include "State_Parry.h" #include "State_Hit.h" #include "State_Broom_Ride.h" #include "State_Broom_Ride_Move.h" @@ -63,9 +64,11 @@ HRESULT CPlayer::InputAction() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState !=ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + { if ( - m_pGameInstance->Key_Down(DIK_SPACE) + m_pGameInstance->Key_Down(DIK_SPACE) || m_pGameInstance->Key_Down(DIK_LCONTROL) || m_pGameInstance->Key_Down(DIK_E) || m_pGameInstance->Key_Down(DIK_R) @@ -110,8 +113,10 @@ HRESULT CPlayer::InputMove() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { - + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + !m_bDuel_ZOnlyMove && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + { if (m_pGameInstance->Key_Pressing(DIK_W) || m_pGameInstance->Key_Pressing(DIK_A) || m_pGameInstance->Key_Pressing(DIK_S) @@ -128,7 +133,10 @@ HRESULT CPlayer::InputKeyUpMove() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + !m_bDuel_ZOnlyMove && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + { if (m_pGameInstance->Key_Up(DIK_W) || m_pGameInstance->Key_Up(DIK_A) || m_pGameInstance->Key_Up(DIK_S) @@ -144,7 +152,8 @@ HRESULT CPlayer::InputSpell() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) { if ( m_pGameInstance->Key_Down(DIK_1) || m_pGameInstance->Key_Down(DIK_2) @@ -166,11 +175,16 @@ HRESULT CPlayer::InputSpell() HRESULT CPlayer::InputAim() { - if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) || - m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) - { - if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON)) {m_bAim = true;} - return S_OK; + if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && + m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) { + if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) || + m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) + { + if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON)) { m_bAim = true; } + return S_OK; + } } return E_FAIL; } @@ -191,6 +205,7 @@ void CPlayer::Behavior_IdleEnter() { m_pFSM->Enable_State(FSMSTATE::IDLE); m_bSprintToggle = false; m_bWalkToggle = false; + m_bOnce = false; pairAnimInfo = m_Animation[STATEANIM::IDLE]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -202,6 +217,12 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) _vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f)); _vector xmvRight = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::RIGHT), 0.f)); _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex(); + + if (m_pBroom->Get_Ride()) + { + m_pFSM->Change_State(FSMSTATE::BROOM_RIDE); + return E_FAIL; + } if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { if (m_pGameInstance->Key_Down(DIK_SPACE)) { m_pFSM->Change_State(FSMSTATE::JUMP); @@ -394,6 +415,7 @@ void CPlayer::Behavior_MoveEnter() _bool bRight = m_pGameInstance->Key_Pressing(DIK_D); _bool bBackward = m_pGameInstance->Key_Pressing(DIK_S); m_pFSM->Enable_State(FSMSTATE::MOVE); + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::DODGE | FSMSTATE::LAND | FSMSTATE::DISMOUNT)) { if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE)) @@ -476,6 +498,11 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (m_pBroom->Get_Ride()) + { + m_pFSM->Change_State(FSMSTATE::BROOM_RIDE); + return E_FAIL; + } if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { if (m_pGameInstance->Key_Down(DIK_SPACE)) { @@ -587,7 +614,6 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) if (m_pGameInstance->Key_Pressing(DIK_D)) xmvInputDir += xmvCamRight; - if (XMVector3Equal(xmvInputDir, XMVectorZero())) return S_OK; @@ -600,7 +626,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) _float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir); m_fabsDir = fabsf(vDir); - m_fCross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x; + _float Cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x; _float2 fCamLook = { XMVectorGetX(xmvCamLook), XMVectorGetZ(xmvCamLook) }; @@ -630,7 +656,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) } } else if (absDir < XMConvertToRadians(160.f)) { - if (m_fCross > 0) + if (Cross > 0) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; m_fAmount = 1.f; @@ -659,8 +685,6 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) return S_OK; } - - else if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT) || !SUCCEEDED(InputMove())) { if (!m_pFSM->IsEnable(FSMSTATE::STOP)) @@ -669,29 +693,15 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) if (m_pFSM->IsEnable(FSMSTATE::WALK) || m_fMoveTime <= 0.13f) { m_bWalkToggle = false; m_pFSM->Disable_State(FSMSTATE::WALK); - if (m_fabsDir < XMConvertToRadians(45.f)) + + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + if (iRand == 0) { - if (iCurrentAnimIndex == m_Animation[STATEANIM::WALK_STOP_L].first) - { - pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_R]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_L]; - } - } - else if (m_fabsDir < XMConvertToRadians(135.f)) - { - if (m_fCross > 0.f) { - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_L]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R]; - } + pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_R]; } else { - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_BWD]; + pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_L]; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } else if (m_pFSM->IsEnable(FSMSTATE::SPRINT)) { @@ -895,6 +905,7 @@ HRESULT CPlayer::Behavior_DodgeExitCheck(_float fTimeDelta) m_pFSM->Change_State(FSMSTATE::MOVE); return E_FAIL; } + return S_OK; } @@ -910,7 +921,7 @@ void CPlayer::Behavior_BlinkEnter() m_bVisible = false; Get_PartObject()->Set_Visible(false); Add_Event(m_Animation[STATEANIM::DODGE].first, - [&]() { + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::BLINK, this); }, 0.1f); @@ -972,7 +983,7 @@ void CPlayer::Behavior_SlideEnter() pairAnimInfo = m_Animation[STATEANIM::SLIDE_START_R]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, 0.95f); } @@ -1025,8 +1036,20 @@ void CPlayer::Behavior_CombatEnter() if (m_pModelCom->Get_SecondAnimIndex() == m_Animation[STATEANIM::LUMOS].first) { - m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), -1); - m_eSpell = ENUM_CLASS(SKILL_TYPE::END); + pairAnimInfo = m_Animation[STATEANIM::LUMOS_STOP]; + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), pairAnimInfo.first, pairAnimInfo.second); + if (SUCCEEDED(InputMove())) + { + m_eSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pFSM->Change_State(FSMSTATE::MOVE); + return; + } + else { + m_eSpell = ENUM_CLASS(SKILL_TYPE::END); + m_pFSM->Change_State(FSMSTATE::IDLE); + return; + } + } if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) @@ -1036,6 +1059,7 @@ void CPlayer::Behavior_CombatEnter() pairAnimInfo = m_Animation[STATEANIM::SKILL]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this); + Find_HiddenObjects(); } else if (m_pGameInstance->Key_Down(DIK_Q)) { @@ -1195,25 +1219,13 @@ void CPlayer::Behavior_LightAttackEnter() if (m_LockOnInfo.pUnit) { - _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); - _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f); + Calc_CameraPlayerAngle(); - vLook = XMVector3Normalize(vLook); - vCameraLook = XMVector3Normalize(vCameraLook); - - _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook)); - fDot = clamp(fDot, -1.0f, 1.0f); - - _float fAngleRad = acosf(fDot); - _float Degree = XMConvertToDegrees(fAngleRad); - _vector vCross = XMVector3Cross(vLook, vCameraLook); - _float Cross = XMVectorGetY(vCross); - - if (Degree <= 30.f) + if (m_fDegree <= 30.f) { pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; } - else if (Degree <= 80.f) + else if (m_fDegree <= 80.f) { pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; Add_Event(pairAnimInfo.first, @@ -1221,9 +1233,9 @@ void CPlayer::Behavior_LightAttackEnter() }, 0.01f); } - else if (Degree <= 135.f) + else if (m_fDegree <= 135.f) { - if (Cross < 0.f) + if (m_fCross < 0.f) { pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK_90_L]; fRatio = 0.15f; @@ -1386,26 +1398,14 @@ void CPlayer::Behavior_SpellEnter() { if (m_LockOnInfo.pUnit) { - _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); - _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f); + Calc_CameraPlayerAngle(); - vLook = XMVector3Normalize(vLook); - vCameraLook = XMVector3Normalize(vCameraLook); - - _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook)); - fDot = clamp(fDot, -1.0f, 1.0f); - - _float fAngleRad = acosf(fDot); - _float Degree = XMConvertToDegrees(fAngleRad); - _vector vCross = XMVector3Cross(vLook, vCameraLook); - _float Cross = XMVectorGetY(vCross); - - if (Degree <= 30.f) + if (m_fDegree <= 30.f) { pairAnimInfo = m_Animation[STATEANIM::SPELL]; fRatio = 0.2f; } - else if (Degree <= 60.f) + else if (m_fDegree <= 60.f) { pairAnimInfo = m_Animation[STATEANIM::SPELL]; fRatio = 0.2f; @@ -1414,9 +1414,9 @@ void CPlayer::Behavior_SpellEnter() }, 0.01f); } - else if (Degree <= 120.f) + else if (m_fDegree <= 120.f) { - if (Cross < 0.f) + if (m_fCross < 0.f) { _int iRand = m_pGameInstance->Real_Random_Int(0, 1); switch (iRand) @@ -1449,7 +1449,7 @@ void CPlayer::Behavior_SpellEnter() case 1: pairAnimInfo = m_Animation[STATEANIM::SPELL_90_R]; fRatio = 0.14f; - if (Degree >= 120.f) + if (m_fDegree >= 120.f) { Add_Event(pairAnimInfo.first, [this]() {m_bLookAt = true; @@ -1630,7 +1630,7 @@ void CPlayer::Behavior_AncientSpellEnter() m_pFSM->Enable_State(FSMSTATE::ANCIENT_SPELL); pairAnimInfo = m_Animation[STATEANIM::ANCIENT_LIGHTNING]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - //m_pInfoInstance->Set_SearchLockOnFlag(false); + m_pInfoInstance->Set_SearchLockOnFlag(false); if (m_LockOnInfo.pUnit) m_pTransformCom->LookAt(m_LockOnInfo.pUnit->Get_WorldPostion()); @@ -1673,6 +1673,7 @@ HRESULT CPlayer::Behavior_AncientSpellExitCheck() void CPlayer::Behavior_AncientSpellExit() { m_pFSM->Disable_State(FSMSTATE::ANCIENT_SPELL); + m_pInfoInstance->Set_SearchLockOnFlag(true); Reset_Event(); m_bLookAt = false; } @@ -1686,6 +1687,9 @@ void CPlayer::Behavior_ShieldEnter() pairAnimInfo = m_Animation[STATEANIM::SKILL2]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.3f); + m_bGuarding = true; + m_fParryTimer = 0.f; + Add_Event(pairAnimInfo.first, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); }, 0.1f); @@ -1710,28 +1714,12 @@ HRESULT CPlayer::Behavior_ShieldExitCheck(_float fTimeDelta) } } - if (m_pFSM->IsEnable(FSMSTATE::PARRY)) - { - if (fRatio >= 0.35f) - { - if (SUCCEEDED(InputMove())) - { - m_pFSM->Change_State(FSMSTATE::MOVE); - return E_FAIL; - } - else { - m_pFSM->Change_State(FSMSTATE::IDLE); - return E_FAIL; - } - } - } return S_OK; } void CPlayer::Behavior_ShieldExit() { m_pFSM->Disable_State(FSMSTATE::SHIELD); - m_pFSM->Disable_State(FSMSTATE::PARRY); Reset_Event(); m_bLookAt = false; } @@ -1743,34 +1731,80 @@ void CPlayer::Behavior_BlockEnter() if (m_bShield) { m_bBlock = true; Start_CameraShake(0.3f, 3.f); - _int iRand = m_pGameInstance->Real_Random_Int(0, 6); - switch (iRand) - { - case 0: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK1]; - break; - case 1: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK2]; - break; - case 2: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK3]; - break; - case 3: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK4]; - break; - case 4: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK5]; - break; - case 5: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK6]; - break; - case 6: - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK7]; - break; + Calc_CameraPlayerAngle(); + + if (m_fDegree <= 60.f) { + _int iRand = m_pGameInstance->Real_Random_Int(0, 6); + + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK1]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK2]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK3]; + break; + case 3: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK4]; + break; + case 4: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK5]; + break; + case 5: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK6]; + break; + case 6: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK7]; + break; + } } + else if (m_fDegree <= 120.f) { + if (m_fCross < 0.f) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false); + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_L1]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_L2]; + break; + } + } + else if (m_fCross > 0.f) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_R1]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_R2]; + break; + } + } + } + else { + if (m_fCross > 0.f) + { + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_180_L]; + } + else if (m_fCross < 0.f) + { + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_180_R]; + } + } + + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f); } } @@ -1780,87 +1814,23 @@ HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta) _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); _float fEventRatio = 0.2f; - if (m_bBlock) - { - if (fRatio >= 0.1f && fRatio <= 0.2f) { - m_bCanParry = true; - } - else { - m_bCanParry = false; - } - } - if (m_bShield && m_bCanParry && m_pGameInstance->Key_Pressing(DIK_Q)) + if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction())) { - m_bBlock = false; - m_pFSM->Enable_State(FSMSTATE::PARRY); - if (m_LockOnInfo.pUnit) + if (fRatio >= 0.6f) { - _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); - _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f); - - vLook = XMVector3Normalize(vLook); - vCameraLook = XMVector3Normalize(vCameraLook); - - _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook)); - fDot = clamp(fDot, -1.0f, 1.0f); - - _float fAngleRad = acosf(fDot); - _float Degree = XMConvertToDegrees(fAngleRad); - _vector vCross = XMVector3Cross(vLook, vCameraLook); - _float Cross = XMVectorGetY(vCross); - - if (Degree <= 30.f) - { - pairAnimInfo = m_Animation[STATEANIM::PARRY4]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false); + if (SUCCEEDED(InputAction())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; } - else if (Degree <= 60.f) - { - pairAnimInfo = m_Animation[STATEANIM::PARRY4]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false); - } - else if (Degree <= 135.f) - { - if (Cross < 0.f) - { - pairAnimInfo = m_Animation[STATEANIM::PARRY2]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false); - } - else { - pairAnimInfo = m_Animation[STATEANIM::PARRY3]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false); - fEventRatio = 0.3f; - } - } - else { - pairAnimInfo = m_Animation[STATEANIM::PARRY_180]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true, false, false); + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; } } - else { - pairAnimInfo = m_Animation[STATEANIM::PARRY4]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - } - - Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, - 0.01f); - - - Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); }, - fEventRatio); - - //m_pGameInstance->SlowMotion(0.8f, 0.3f); - m_bShield = false; - return S_OK; } - - - - if (m_pModelCom->IsFinishedAnim()) { + if (fRatio >= 0.9f) { if (SUCCEEDED(InputMove())) { m_pFSM->Change_State(FSMSTATE::MOVE); @@ -1880,10 +1850,126 @@ void CPlayer::Behavior_BlockExit() m_bShield = false; } +void CPlayer::Behavior_ParryEnter() +{ + pair<_uint, _bool> pairAnimInfo; + _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + _float fEventRatio = 0.2f; + m_bGuarding = false; + + m_pFSM->Enable_State(FSMSTATE::PARRY); + + if (m_LockOnInfo.pUnit) + { + _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); + _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f); + + vLook = XMVector3Normalize(vLook); + vCameraLook = XMVector3Normalize(vCameraLook); + + _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook)); + fDot = clamp(fDot, -1.0f, 1.0f); + + _float fAngleRad = acosf(fDot); + _float Degree = XMConvertToDegrees(fAngleRad); + _vector vCross = XMVector3Cross(vLook, vCameraLook); + _float Cross = XMVectorGetY(vCross); + + if (Degree <= 30.f) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::PARRY4]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::PARRY5]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::PARRY6]; + break; + } + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); + } + else if (Degree <= 60.f) + { + pairAnimInfo = m_Animation[STATEANIM::PARRY4]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); + } + else if (Degree <= 135.f) + { + if (Cross < 0.f) + { + pairAnimInfo = m_Animation[STATEANIM::PARRY2]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, false); + } + else { + pairAnimInfo = m_Animation[STATEANIM::PARRY3]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, false); + fEventRatio = 0.3f; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::PARRY_180]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, false); + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::PARRY4]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, false); + } + + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, + 0.01f); + + + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); }, + fEventRatio); + + m_bShield = false; + +} + +HRESULT CPlayer::Behavior_ParryExitCheck(_float fTimeDelta) +{ + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction())) + { + if (fRatio >= 0.5f) + { + if (SUCCEEDED(InputAction())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + } + } + + if (fRatio >= 0.8f) { + + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + + } + return S_OK; +} + +void CPlayer::Behavior_ParryExit() +{ + m_pFSM->Disable_State(FSMSTATE::PARRY); +} + void CPlayer::Behavior_HitEnter() { m_pBroom->Set_Ride(false); - m_pFSM->Enable_State(FSMSTATE::HIT); pair<_uint, _bool> pairAnimInfo; if (m_eHitSpell != ENUM_CLASS(SKILL_TYPE::END)) { @@ -1893,7 +1979,7 @@ void CPlayer::Behavior_HitEnter() { pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,0.5f); return; } break; @@ -1940,14 +2026,20 @@ HRESULT CPlayer::Behavior_HitExitCheck(_float fTimeDelta) Hit_Levioso(fTimeDelta); - if (SUCCEEDED(InputMove())) + if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction())) { - if (fRatio >= 0.6f) { - m_pFSM->Change_State(FSMSTATE::MOVE); - return E_FAIL; + if (iCurrAnimIndex != m_Animation[STATEANIM::HIT_LEVIOSO].first && fRatio >= 0.6f) { + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + if (SUCCEEDED(InputAction())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } } } - else if (m_pModelCom->IsFinishedAnim()) { + else if (fRatio >= 0.9f) { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; } @@ -1956,7 +2048,6 @@ HRESULT CPlayer::Behavior_HitExitCheck(_float fTimeDelta) void CPlayer::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); Reset_Event(); m_pCharacter_Controller->SetGravity(true); m_eHitType = ENUM_CLASS(HIT_TYPE::END); @@ -2054,6 +2145,11 @@ HRESULT CPlayer::Behavior_Broom_HoverExitCheck(_float fTimeDelta) _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); pair<_uint, _bool> pairAnimInfo; + if (!m_pBroom->Get_Ride()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + _bool bFwd = m_pGameInstance->Key_Pressing(DIK_W); _bool bLft = m_pGameInstance->Key_Pressing(DIK_A); _bool bRht = m_pGameInstance->Key_Pressing(DIK_D); @@ -2196,6 +2292,11 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta) _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); pair<_uint, _bool> pairAnimInfo; + if (!m_pBroom->Get_Ride()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + _bool bFwd = m_pGameInstance->Key_Pressing(DIK_W); _bool bLft = m_pGameInstance->Key_Pressing(DIK_A); _bool bRht = m_pGameInstance->Key_Pressing(DIK_D); @@ -2290,7 +2391,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } else { @@ -2299,7 +2400,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } @@ -2364,6 +2465,11 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta) _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); pair<_uint, _bool> pairAnimInfo; + if (!m_pBroom->Get_Ride()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + _bool bFwd = m_pGameInstance->Key_Pressing(DIK_W); _bool bLft = m_pGameInstance->Key_Pressing(DIK_A); _bool bRht = m_pGameInstance->Key_Pressing(DIK_D); @@ -2443,7 +2549,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first,pairAnimInfo.second,1.f, false, 1.f, false,true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } else { @@ -2452,7 +2558,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first,pairAnimInfo.second,1.f, false, 1.f, false, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } } @@ -2496,16 +2602,6 @@ void CPlayer::Behavior_Broom_DismountEnter() pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DISMOUNT); m_pFSM->Enable_State(FSMSTATE::BROOM_DISMOUNT); m_pBroom->Set_Ride(false); - //_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)); - - //_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); - - //_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look)); - //_vector up = XMVector3Normalize(XMVector3Cross(look, right)); - - //m_pTransformCom->Set_State(STATE::RIGHT, right); - //m_pTransformCom->Set_State(STATE::UP, up); - //m_pTransformCom->Set_State(STATE::LOOK, look); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.6f); } @@ -2547,6 +2643,7 @@ void CPlayer::Behavior_Broom_DismountExit() { m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT); Reset_Event(); + m_bOnce = false; } void CPlayer::Player_InterpTurn(_float fTimeDelta) @@ -2636,35 +2733,37 @@ void CPlayer::Throwing_Interactive() void CPlayer::Attach_Broom() { - _matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr()); - _matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket")); + if (m_pBroom->Get_Ride()) { + _matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr()); + _matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket")); - _vector Scale, Rot, Trans; + _vector Scale, Rot, Trans; - XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal); + XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal); - _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans); + _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans); - m_OffsetPos = { 0.f,0.9f,0.f }; + m_OffsetPos = { 0.f,0.9f,0.f }; - _matrix Offset = XMMatrixTranslation(m_OffsetPos.x, - m_OffsetPos.y, m_OffsetPos.z); + _matrix Offset = XMMatrixTranslation(m_OffsetPos.x, + m_OffsetPos.y, m_OffsetPos.z); - _vector BS, BR, BT; - XMMatrixDecompose(&BS, &BR, &BT, BroomWorld); - _matrix BroomWorld_NoScale = - XMMatrixRotationQuaternion(BR) * - XMMatrixTranslationFromVector(BT); + _vector BS, BR, BT; + XMMatrixDecompose(&BS, &BR, &BT, BroomWorld); + _matrix BroomWorld_NoScale = + XMMatrixRotationQuaternion(BR) * + XMMatrixTranslationFromVector(BT); - _matrix SocketWorld = BoneNoScale * Offset * BroomWorld_NoScale; + _matrix SocketWorld = BoneNoScale * Offset * BroomWorld_NoScale; - _matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f)); + _matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f)); - _matrix FinalWorld = FixRot * SocketWorld; + _matrix FinalWorld = FixRot * SocketWorld; - m_pTransformCom->Set_WorldMatrix(FinalWorld); - m_pCharacter_Controller->Set_Position(FinalWorld.r[3]); + m_pTransformCom->Set_WorldMatrix(FinalWorld); + m_pCharacter_Controller->Set_Position(FinalWorld.r[3]); + } } void CPlayer::ProcessHitBehavior() @@ -2720,14 +2819,16 @@ void CPlayer::ProcessHitBehavior() pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_pCharacter_Controller->SetGravity(true); m_eHitType = ENUM_CLASS(HIT_TYPE::END); }, 0.9f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f); }, 0.5f); } @@ -2735,14 +2836,16 @@ void CPlayer::ProcessHitBehavior() pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD]; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_FWD].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_pCharacter_Controller->SetGravity(true); m_eHitType = ENUM_CLASS(HIT_TYPE::END); }, 0.9f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f); }, 0.5f); } @@ -2753,6 +2856,23 @@ void CPlayer::ProcessHitBehavior() } } +void CPlayer::Calc_CameraPlayerAngle() +{ + _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); + _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f); + + vLook = XMVector3Normalize(vLook); + vCameraLook = XMVector3Normalize(vCameraLook); + + _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook)); + fDot = clamp(fDot, -1.0f, 1.0f); + + _float fAngleRad = acosf(fDot); + m_fDegree = XMConvertToDegrees(fAngleRad); + _vector vCross = XMVector3Cross(vLook, vCameraLook); + m_fCross = XMVectorGetY(vCross); +} + void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) { pair<_uint, _bool> pairAnimInfo; @@ -2794,9 +2914,14 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::ACCIO): + Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); }, fRatio); + + Add_Event(AnimIndex, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO_SIDE, Get_PartObject()); }, + 0.f); Info.pText = TEXT("아씨오!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); break; @@ -2850,12 +2975,14 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); Add_Event(pairAnimInfo.first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::REPARO_LOOP]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::REPARO_LOOP]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); }, 0.95f); Add_Event(m_Animation[STATEANIM::REPARO_LOOP].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::REPARO_END]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::REPARO_END]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); }, 0.95f); } @@ -2973,7 +3100,7 @@ void CPlayer::Hit_Levioso(_float fTimeDelta) else { m_pCharacter_Controller->Set_Position(vPos); } - if (m_fAirTime > 2.3f) + if (m_fAirTime > 2.1f) { pairAnimInfo = m_Animation[STATEANIM::LEVIOSO_LAND]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -3266,6 +3393,17 @@ void CPlayer::Add_FSM() Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::BLOCK, CState_Block::Create(&Desc)); } + + { + CState_Parry::STATE_PARRY_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_ParryEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ParryExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_ParryExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::PARRY, CState_Parry::Create(&Desc)); + } #pragma endregion #pragma region Behavior_Combat_Focus @@ -3305,9 +3443,7 @@ void CPlayer::Add_FSM() m_pBroomTransform->Set_State(STATE::RIGHT, m_pTransformCom->Get_State(STATE::RIGHT)); _float3 vScale = { 0.3f,0.3f,0.3f }; - _float3 vPlayerScale = { 1.f,1.f,1.f }; m_pBroomTransform->Set_Scale(vScale); - m_pTransformCom->Set_Scale(vPlayerScale); m_bOnce = true; m_pInfoInstance->Event_CallBack(TEXT("BroomRide"), &m_bOnce); } diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp index d78be6555..0ab2b647d 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -151,7 +151,7 @@ HRESULT CProtego::Ready_Components(void* pArg) return E_FAIL; } - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp index 6edfd4e37..78fb49871 100644 --- a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp +++ b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp @@ -94,6 +94,7 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT"); CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit"); + CEffectParts* pScreenFX_Hit = Get_PartObject("ScreenFX_Hit"); m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -109,7 +110,7 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pProtego_HitPT->Set_Visible(true); pProtego_HitPT_Line->Set_Visible(true); pProtegoHit->Set_Visible(true); - + pScreenFX_Hit->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp index 70959070d..eedfdcc01 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp @@ -8,7 +8,7 @@ #include "GameInstance.h" CQuest_Data::CQuest_Data() - : m_pInfoInstance(CInfoInstance::GetInstance()) , + : m_pInfoInstance(CInfoInstance::GetInstance()), m_pGameInstance(CGameInstance::GetInstance()) { } @@ -79,8 +79,8 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath) { REWARDSINFO reward{}; - pReward->QueryIntAttribute("RequiredCount", &reward.iRewardType); - pReward->QueryIntAttribute("CurrentCount", &reward.iRewardID); + pReward->QueryIntAttribute("Type", &reward.iRewardType); + pReward->QueryIntAttribute("Value", &reward.iRewardID); quest.RewardsInfo.push_back(reward); @@ -103,7 +103,7 @@ QUESTINFO CQuest_Data::Get_Quest(_int QuestType, _int QuestID) case 0: return QuestInfos[QuestID]; case 1: - return m_QuestAcceptedInfos[QuestID]; + return m_QuestAcceptedInfos[QuestID].QeustInfo; case 2: return m_QuestEndInfos[QuestID]; default: @@ -122,9 +122,14 @@ const vector& CQuest_Data::Get_ClearQuest() const return m_QuestEndInfos; } -const vector& CQuest_Data::Get_AcceptQuest() const +vector& CQuest_Data::Get_AcceptQuest() { - return m_QuestAcceptedInfos; + m_QuestAcceptedInfo.reserve(m_QuestAcceptedInfos.size()); + + for (const auto& q : m_QuestAcceptedInfos) + m_QuestAcceptedInfo.push_back(q.QeustInfo); + + return m_QuestAcceptedInfo; } _int CQuest_Data::Get_Count(_int Index) @@ -156,8 +161,9 @@ HRESULT CQuest_Data::Set_AcceptQuest(_int Index) return E_FAIL; } m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); }); - m_QuestAcceptedInfoObject.push_back(m_pQuestInstance); - m_QuestAcceptedInfos.push_back(QuestInfos[Index]); + m_AcceptedInfo.QeustData = m_pQuestInstance; + m_AcceptedInfo.QeustInfo = QuestInfos[Index]; + m_QuestAcceptedInfos.push_back(m_AcceptedInfo); m_iAcceptQeustCount++; return S_OK; } @@ -176,23 +182,29 @@ void CQuest_Data::Set_ClearQuest(_int Index) void CQuest_Data::Update_AcceptQuest(_int MonsterID) { - vector<_int> toRemoveIndex; - - _int index = 0; - for (auto* instance : m_QuestAcceptedInfoObject) + for (auto it = m_QuestAcceptedInfos.begin(); it != m_QuestAcceptedInfos.end(); ) { - if (static_cast(instance)->Update_Objective(MonsterID)) + auto* quest = static_cast(it->QeustData); + auto& info = it->QeustInfo; + + _bool QuestClear = static_cast(quest)->Update_Objective(MonsterID); + + if (QuestClear == true) { - Set_ClearQuest(static_cast(instance)->Get_QuestID()); - toRemoveIndex.push_back(index); + Set_ClearQuest(quest->Get_QuestID()); + it = m_QuestAcceptedInfos.erase(it); + } + else + { + for (auto& obj : info.ObjectiveInfo) + { + if (obj.iTargetID == MonsterID) + { + obj.iCurrentCount++; + } + } + ++it; } - index++; - } - - for (auto it = toRemoveIndex.rbegin(); it != toRemoveIndex.rend(); ++it) - { - m_QuestAcceptedInfoObject.erase(m_QuestAcceptedInfoObject.begin() + *it); - m_QuestAcceptedInfos.erase(m_QuestAcceptedInfos.begin() + *it); } } diff --git a/Jusin154_Team3D/Client/Private/Quest_Info.cpp b/Jusin154_Team3D/Client/Private/Quest_Info.cpp index 50bee1036..aa76f638c 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Info.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Info.cpp @@ -48,8 +48,9 @@ HRESULT CQuest_Info::Initialize(void* pArg) SizeUpY(m_fOriginPerviewSize); m_fSortZ = 0.02f; m_fFontX = 530.f; - m_fFontY = 500.f; + m_fFontY = 530.f; m_iPerQuestIndex = -1; + m_iCurrentIndex = -1; Visible(false); static_cast(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(p); }); return S_OK; @@ -101,8 +102,17 @@ void CQuest_Info::Update(_float fTimeDelta) if (m_iCurrentIndex != m_iQuest_Index) { - Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 50.f)); + Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 30.f)); m_iCurrentIndex = m_iQuest_Index; + vector Texts; + Text Textinfo; + m_Text.swap(Texts); + for (_int i = 0; i < m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size(); ++i) + { + Textinfo.pCurrentText = to_wstring(m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].iCurrentCount); + Textinfo.pRequiredText = to_wstring(m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].iRequiredCount); + m_Text.push_back(Textinfo); + } } m_fTime += fTimeDelta * m_fTimeMult; @@ -138,11 +148,14 @@ HRESULT CQuest_Info::Render() if (m_iQuest_Index != -1) { - m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fOriginPerviewSize), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); for (_int i = 0; i < m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size(); ++i) { - m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY + 100 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), m_Text[i].pCurrentText.c_str(), _float2(m_fFontX + m_fX + 800.f, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("/"), _float2(m_fFontX + m_fX + 830.f, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), m_Text[i].pRequiredText.c_str(), _float2(m_fFontX + m_fX + 860.f, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); } } @@ -247,6 +260,16 @@ void CQuest_Info::Set_Hover(void* pArg) Visible(true); } +void CQuest_Info::Set_QuestType(_int Index) +{ + m_iQuestSlot = Index; + if (m_iCurrentQeustSlot != m_iQuestSlot) + { + m_iCurrentQeustSlot = m_iQuestSlot; + m_iCurrentIndex = -1; + } +} + void CQuest_Info::Y(_float fSizeY) { m_fSizeY = fSizeY; diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp index 890dae0b8..f1ceeb3fa 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp @@ -231,6 +231,16 @@ void CQuest_Info_Header::Set_Hover(void* pArg) Visible(true); } +void CQuest_Info_Header::Set_QuestType(_int Index) +{ + m_iQuestSlot = Index; + if (m_iQuestSlot != m_iCurrentQeustSlot) + { + m_iCurrentQeustSlot = m_iQuestSlot; + m_iQuest_Index = -1; + } +} + CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp index c3d12233d..68a3cfdeb 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp @@ -216,6 +216,8 @@ void CQuest_Info_Line::Set_Hover(void* pArg) Visible(true); } + + CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CQuest_Info_Line* pInstance = new CQuest_Info_Line(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp index e842d8608..31de7eb35 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp @@ -54,11 +54,11 @@ HRESULT CQuest_Panel::Initialize(void* pArg) Visible(true); ElementAllVisible(true); Set_Status(); - //m_pInfoInstance->Set_AcceptQuest(0); + m_pInfoInstance->Set_AcceptQuest(0); //m_pInfoInstance->Set_AcceptQuest(1); //m_pInfoInstance->Set_AcceptQuest(2); Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); - //static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); + static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); return S_OK; } @@ -260,6 +260,8 @@ void CQuest_Panel::Slot_Hover(_int Index) static_cast(m_pQuest_Status3)->Set_Click(m_bClick[2]); static_cast(m_pQuest_Slot)->Set_QuestType(iIndex); + static_cast(m_pQuest_Info)->Set_QuestType(iIndex); + static_cast(m_pQuest_Info_Header)->Set_QuestType(iIndex); } CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Client/Private/RaceRing.cpp b/Jusin154_Team3D/Client/Private/RaceRing.cpp index bc7828b29..877fd0186 100644 --- a/Jusin154_Team3D/Client/Private/RaceRing.cpp +++ b/Jusin154_Team3D/Client/Private/RaceRing.cpp @@ -30,7 +30,7 @@ HRESULT CRaceRing::Initialize(void* pArg) return E_FAIL; } - + //m_iIndex = static_cast(pArg)->iIndex; //_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f); //_float Y = m_pGameInstance->Real_Random_Float(15.f, 60.f); @@ -59,6 +59,8 @@ void CRaceRing::Priority_Update(_float fTimeDelta) void CRaceRing::Update(_float fTimeDelta) { m_pModelCom->Combined_BoneMatrix(); + + World_to_ScreenUI(); } void CRaceRing::Late_Update(_float fTimeDelta) @@ -99,6 +101,97 @@ HRESULT CRaceRing::Render() return S_OK; } +_bool CRaceRing::World_Screen(_float3 fWorld_Pos, _float2& fScreenPos, _float& fDepth) +{ + _matrix mView = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); + _matrix mProj = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); + _matrix mVP = mView * mProj; + + _vector Pos = XMVectorSet(fWorld_Pos.x, fWorld_Pos.y, fWorld_Pos.z, 1.f); + Pos = XMVector4Transform(Pos, mVP); + + _float w = XMVectorGetW(Pos); + + _bool bBehind = (w <= 0.f); + + _float NDCX = XMVectorGetX(Pos) / w; + _float NDCY = XMVectorGetY(Pos) / w; + _float NDCZ = XMVectorGetZ(Pos) / w; + + if (bBehind) + { + fScreenPos.x = g_iWinSizeX * 0.5f; // 중앙 + fScreenPos.y = g_iWinSizeY + 100.f; // 화면 아래 + fDepth = -1.f; + return true; + } + + fDepth = NDCZ; + + fScreenPos.x = (NDCX + 1.f) * 0.5f * g_iWinSizeX; + fScreenPos.y = (1.f - NDCY) * 0.5f * g_iWinSizeY; + + return true; +} + +_bool CRaceRing::Screen(_float2& fWorld_Pos, _float Winx, _float Winy) +{ + return fWorld_Pos.x >= 0 && fWorld_Pos.x <= Winx && + fWorld_Pos.y >= 0 && fWorld_Pos.y <= Winy; +} + +_float2 CRaceRing::Get_EdgePosition(_float2& fWorld_Pos, _float Winx, _float Winy) +{ + _float2 center = _float2(Winx * 0.5f, Winy * 0.5f); + _float2 dir = _float2(fWorld_Pos.x - center.x, fWorld_Pos.y - center.y); + + _float tX = FLT_MAX; + _float tY = FLT_MAX; + + if (dir.x != 0.f) + { + tX = (dir.x > 0) ? (Winx - center.x) / dir.x : (0.f - center.x) / dir.x; + } + + if (dir.y != 0.f) + { + tY = (dir.y > 0) ? (Winy - center.y) / dir.y : (0.f - center.y) / dir.y; + } + + float t = min(tX, tY); + + return _float2(center.x + dir.x * t, center.y + dir.y * t); +} + +void CRaceRing::World_to_ScreenUI() +{ + _float2 fScreenPos{}; + _float fDepth{}; + _float3 WorldPos{}; + + XMStoreFloat3(&WorldPos, m_pTransformCom->Get_State(STATE::POSITION)); + + if (!World_Screen(WorldPos, fScreenPos, fDepth)) + { + return; + } + + _float fWinSizeX = static_cast<_float>(g_iWinSizeX); + _float fWinSizeY = static_cast<_float>(g_iWinSizeY); + + if (!Screen(fScreenPos, fWinSizeX, fWinSizeY)) + { + fScreenPos = Get_EdgePosition(fScreenPos, fWinSizeX, fWinSizeY); + m_bShowOffScreenUI = true; + } + else + { + m_bShowOffScreenUI = false; + } + + m_fScreenPos = fScreenPos; +} + HRESULT CRaceRing::Ready_Components() { __super::Ready_Components(nullptr); diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index de1780a51..4f7fd24f7 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -67,7 +67,8 @@ void CRandomNpc::Update(_float fTimeDelta) if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) { return; } - m_pFSM->Update_State(fTimeDelta); + BattleObserve_Anim(); + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); #ifdef _DEBUG @@ -81,8 +82,6 @@ void CRandomNpc::Update(_float fTimeDelta) m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); - //m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); - _vector vCurrentPos = Get_WorldPostion(); pair pairTarget = m_pInfoInstance->Get_NearestPlayerAlly(vCurrentPos); if (nullptr != pairTarget.first) { @@ -321,7 +320,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) Desc.fRotationPerSec = XMConvertToRadians(180.0f); Desc.fRadius = 10.f; - if (FAILED(__super::Ready_Components(&Desc))) { + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, pArg))) { return E_FAIL; } @@ -350,6 +349,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHINEASBLACK"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } + m_bBattleObserve_Npc = true; break; case 4: m_strModelPrototypeTag = TEXT("Prototype_Component_Kitchen_Female_Model"); @@ -362,6 +362,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("F_STUDENT"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } + m_bBattleObserve_Npc = true; break; case 6: m_strModelPrototypeTag = TEXT("Prototype_Component_Elf_Model"); @@ -380,6 +381,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("GEORGEOSRIC"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } + m_bBattleObserve_Npc = true; break; case 9: m_strModelPrototypeTag = TEXT("Prototype_Component_DinahHecat_Model"); @@ -392,6 +394,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MUDIWAONAI"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } + m_bBattleObserve_Npc = true; break; } @@ -439,6 +442,49 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) return S_OK; } +void CRandomNpc::BattleObserve_Anim() +{ + if (m_eNpcState == ENUM_CLASS(NPC_STATE::OBSERVE)) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + _float fRandX = 0.f; + if (iRand == 0) + { + fRandX = m_pGameInstance->Real_Random_Float(1002.f, 1004.f); + } + else { + fRandX = m_pGameInstance->Real_Random_Float(1010.f, 1012.f); + } + + _float fRandY = m_pGameInstance->Real_Random_Float(1008.f, 1016.f); + + m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandY, 1.f)); + + _vector vPos = Get_WorldPostion(); + _vector vForward = XMVectorZero(); + if (fRandX <= 1007.f) { + vForward = XMVectorSet(1.f, 0.f, 0.f, 0.f); + } + else { + vForward = XMVectorSet(-1.f, 0.f, 0.f, 0.f); + } + + + m_pTransformCom->LookAt(vPos + vForward); + + m_eNpcState = ENUM_CLASS(NPC_STATE::IDLE); + } + + if (m_bBattleObserve_Npc && m_bBattle) { + + if (m_pModelCom->IsFinishedAnim()) + { + _int iRand = m_pGameInstance->Real_Random_Int(14, 21); + m_pModelCom->Set_AnimationIndex(iRand, false,1.f,false,1.f,false); + } + } +} + CRandomNpc* CRandomNpc::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CRandomNpc* pInstance = new CRandomNpc(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 0fbae648f..cd45ac499 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -483,6 +483,8 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) #endif if (0 == damagePair.second) { m_pFSM->Change_State(FSMSTATE::DEAD); + _int ID = m_pStat->Get_Stat().iObjectID; + m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID); return; } @@ -1056,7 +1058,11 @@ void CRanrok::Free() SAFE_RELEASE(m_pTargetableDO[i]); } m_pRanrok_Props.clear(); +#ifdef _DEBUG SAFE_RELEASE(m_pDepthStencilStateNone); +#endif // _DEBUG + + SAFE_RELEASE(m_pMotionTrailCom); SAFE_RELEASE(m_pCharacter_Controller); SAFE_RELEASE(m_pRigidBody); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp index 9108e575d..b25c6ae1d 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp @@ -89,8 +89,6 @@ void CRanrok_Breath::Update(_float fTimeDelta) _matrix CombinedMat = BoneMat * WorldMat; - - m_pBreath->Get_Component()->Set_WorldMatrix(CombinedMat); m_pBreath_Black->Get_Component()->Set_WorldMatrix(CombinedMat); m_pBreathSlog->Get_Component()->Set_WorldMatrix(CombinedMat); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index d14e6ffe0..2f1f432f2 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -138,7 +138,7 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg) _float randRight = m_pGameInstance->Real_Random_Float(-13.f, 13.f); _float randUp = m_pGameInstance->Real_Random_Float(5.f, 15.f); - _float randForward = m_pGameInstance->Real_Random_Float(0.f, 5.f); + _float randForward = m_pGameInstance->Real_Random_Float(5.f, 7.f); _vector vRandomPos = vRight * randRight + vUp * randUp + vForward * randForward; vPos += vRandomPos; diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp index 48d3dc591..cbb89ab33 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp @@ -336,16 +336,16 @@ void CRanrok::Behavior_FireBreathEnter() pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A]; Add_Event(pairAnimInfo.first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)]; m_bLookAt = false; }, 0.95f); Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bLookAt = true; }, 0.95f); @@ -353,8 +353,6 @@ void CRanrok::Behavior_FireBreathEnter() Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first, [this]() { - - CRanrok_Breath::BREATH_INFO BreathDesc; BreathDesc.fTime = 1.f; @@ -363,11 +361,6 @@ void CRanrok::Behavior_FireBreathEnter() m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc); }, 0.1f); - - /*Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first, - [this]() { - m_pModelCom->Play_HeadBone(true); - }, 0.2f);*/ } else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) { @@ -401,7 +394,7 @@ HRESULT CRanrok::Behavior_FireBreathExitCheck(_float fTimeDelta) _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); if (m_pModelCom->Get_PlayHeadBone()) { - m_fHeadAimWeight += fTimeDelta *0.3f; + m_fHeadAimWeight += fTimeDelta * 0.3f; if (m_fHeadAimWeight >= 0.7f) { m_fHeadAimWeight = 0.7f; @@ -453,22 +446,20 @@ void CRanrok::Behavior_FireSweepEnter() pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_WINDUP_A]; Add_Event(pairAnimInfo.first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)]; m_bLookAt = false; }, 0.95f); Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, 0.95f); Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first, [this]() { - - CRanrok_Breath::BREATH_INFO BreathDesc; BreathDesc.fTime = 2.5f; @@ -486,26 +477,26 @@ void CRanrok::Behavior_FireSweepEnter() } else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) { - pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G]; + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + if (iRand == 0) { + pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G_L]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G_R]; + } m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)]; - Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first, + Add_Event(pairAnimInfo.first, [this]() { CRanrok_Breath::BREATH_INFO BreathDesc; - BreathDesc.fTime = 3.f; + BreathDesc.fTime = 1.2f; BreathDesc.iPase = ENUM_CLASS(m_ePhase); m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc); m_bLookAt = false; - }, 0.2f); - - - Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first, - [this]() { - m_pModelCom->Play_HeadBone(true); - }, 0.3f); + }, 0.4f); } m_iBreathRand = (m_pGameInstance->Real_Random_Int(0, 1) == 0) ? -1 : 1; @@ -1008,7 +999,6 @@ void CRanrok::Behavior_LandExit() void CRanrok::Behavior_HitEnter() { pair<_uint, _bool> pairAnimInfo = {}; - m_pFSM->Enable_State(FSMSTATE::HIT); m_bLookAt = false; @@ -1038,7 +1028,6 @@ HRESULT CRanrok::Behavior_HitExitCheck(_float fTimeDelta) void CRanrok::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); m_bLookAt = true; } @@ -1061,7 +1050,7 @@ void CRanrok::Behavior_DeadEnter() m_pRightPt->Set_Visible(false); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _vector vPos = m_pCharacter_Controller->Get_Position(); _float4 vPosFloat4 = {}; @@ -1072,7 +1061,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1084,7 +1073,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.2f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1097,7 +1086,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.34f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1110,7 +1099,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.44f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1123,7 +1112,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.6f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this); @@ -1174,10 +1163,10 @@ void CRanrok::Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo) m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionInfo->vWorldPos); Add_Event(pairAnimInfo.first, - [&]() {m_bDisolve = true; }, + [this]() {m_bDisolve = true; }, 0.25f); Add_Event(pairAnimInfo.first, - [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, + [this]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; @@ -1190,10 +1179,10 @@ void CRanrok::Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo) m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionInfo->vWorldPos); Add_Event(pairAnimInfo.first, - [&]() {m_bDisolve = true; }, + [this]() {m_bDisolve = true; }, 0.25f); Add_Event(pairAnimInfo.first, - [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, + [this]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; @@ -1207,10 +1196,10 @@ void CRanrok::Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo) m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionInfo->vWorldPos); Add_Event(pairAnimInfo.first, - [&]() {m_bDisolve = true; }, + [this]() {m_bDisolve = true; }, 0.25f); Add_Event(pairAnimInfo.first, - [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, + [this]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; diff --git a/Jusin154_Team3D/Client/Private/Revelio.cpp b/Jusin154_Team3D/Client/Private/Revelio.cpp index 118d337b9..4863ab2c2 100644 --- a/Jusin154_Team3D/Client/Private/Revelio.cpp +++ b/Jusin154_Team3D/Client/Private/Revelio.cpp @@ -18,7 +18,6 @@ CRevelio::CRevelio(const CRevelio& rhs) HRESULT CRevelio::Initialize_Prototype() { - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio"))) return E_FAIL; @@ -41,10 +40,12 @@ HRESULT CRevelio::Initialize(void* pArg) m_pRevelioPT_Y = Get_PartObject("WandPT_Y"); m_pRevelioPT_B = Get_PartObject("WandPT_B"); m_pRevelioPT_R = Get_PartObject("WandPT_R"); + m_pWand_Light = Get_PartObject("Wand_Light"); SAFE_ADDREF(m_pRevelioPT_Y); SAFE_ADDREF(m_pRevelioPT_B); SAFE_ADDREF(m_pRevelioPT_R); + SAFE_ADDREF(m_pWand_Light); m_wstrEffectName = L"Revelio"; @@ -69,7 +70,7 @@ void CRevelio::Update(_float fTimeDelta) __super::Update(fTimeDelta); Update_Event(fTimeDelta); - + CPlayer* pPlayer = static_cast(m_pOwner); if (pPlayer == nullptr) @@ -82,6 +83,7 @@ void CRevelio::Update(_float fTimeDelta) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); } @@ -97,10 +99,9 @@ void CRevelio::Late_Update(_float fTimeDelta) HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg) { - if (FAILED(__super::Pre_Setting(pObject))) + if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; - CPlayer* pPlayer = static_cast(m_pOwner); if (pPlayer == nullptr) @@ -113,15 +114,43 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_Y->Set_Visible(true); m_pRevelioPT_R->Set_Visible(true); m_pRevelioPT_B->Set_Visible(true); + m_pWand_Light->Set_Visible(true); - Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - Get_PartObject("Revelio_Ring")->Set_Visible(true); + CEffectParts* pRevelio_ScreenFX = Get_PartObject("Revelio_ScreenFX"); + CEffectParts* pRevelio_ScreenFX_Reverse = Get_PartObject("Revelio_ScreenFX_Reverse"); + CEffectParts* pRevelio_Smoke = Get_PartObject("Revelio_Smoke"); + CEffectParts* pRevelio_Distortion = Get_PartObject("Revelio_Distortion"); + CEffectParts* pBottom_PT = Get_PartObject("Bottom_PT"); + pRevelio_ScreenFX->Set_Visible(true); + pRevelio_ScreenFX_Reverse->Set_Visible(true); + pRevelio_Smoke->Set_Visible(true); + pRevelio_Distortion->Set_Visible(true); + pBottom_PT->Set_Visible(true); + + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vFootPos = {}; + _vector vPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + vPos = pCCT->Get_Position(); + + pRevelio_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pBottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pRevelio_Distortion->Get_Component()->Set_State(STATE::POSITION, vPos); + + + } return S_OK; } @@ -186,7 +215,7 @@ void CRevelio::Free() SAFE_RELEASE(m_pRevelioPT_Y); SAFE_RELEASE(m_pRevelioPT_B); SAFE_RELEASE(m_pRevelioPT_R); - + SAFE_RELEASE(m_pWand_Light); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/State_Parry.cpp b/Jusin154_Team3D/Client/Private/State_Parry.cpp new file mode 100644 index 000000000..8e30f0278 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Parry.cpp @@ -0,0 +1,64 @@ +#include "pch.h" +#include "State_Parry.h" +#include "Unit.h" + + +CState_Parry::CState_Parry() + :CState_Root() +{ +} + +void CState_Parry::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Parry::Update(_float fTimeDelta) +{ + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; +} + +void CState_Parry::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Parry::Initialize(STATE_PARRY_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Parry* CState_Parry::Create(STATE_PARRY_DESC* pDesc) +{ + CState_Parry* pInstance = new CState_Parry; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Parry::Free() +{ + __super::Free(); +} + +void CState_Parry::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index 160dfa3eb..75a9bf618 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -43,11 +43,12 @@ HRESULT CStupefy::Initialize(void* pArg) m_wstrEffectName = L"Stupefy"; - m_pProjectile0 = Get_PartObject("Stupefy_PJ0"); - SAFE_ADDREF(m_pProjectile0); + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); + + m_pProjectile2 = Get_PartObject("Stupefy_PJ2"); + SAFE_ADDREF(m_pProjectile2); - m_pProjectile1 = Get_PartObject("Stupefy_PJ1"); - SAFE_ADDREF(m_pProjectile1); m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); SAFE_ADDREF(m_pStupefy_PJ_PT); @@ -74,8 +75,8 @@ void CStupefy::Update(_float fTimeDelta) Update_Event(fTimeDelta); m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile2->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } void CStupefy::Late_Update(_float fTimeDelta) @@ -119,9 +120,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) - - CEffectParts* pStupefy_PJ0 = Get_PartObject("Stupefy_PJ0"); - CEffectParts* pStupefy_PJ1 = Get_PartObject("Stupefy_PJ1"); CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion"); CEffectParts* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); @@ -129,13 +127,13 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); - pStupefy_PJ0->Set_Visible(true); - pStupefy_PJ1->Set_Visible(true); pWand_Distortion->Set_Visible(true); pStupefy_Light_Long->Set_Visible(true); pBodyFlare->Set_Visible(true); pStupefy_Smoke->Set_Visible(true); - m_pStupefy_PJ_PT->Set_Visible(true); + //m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); + m_pProjectile2->Set_Visible(true); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); @@ -143,10 +141,10 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vWandPos = pWand->Get_WorldPostion(); - pStupefy_PJ0->Get_Component()->Set_State(STATE::POSITION, vWandPos); - pStupefy_PJ1->Get_Component()->Set_State(STATE::POSITION, vWandPos); m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile2->Get_Component()->Set_State(STATE::POSITION, vWandPos); pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); @@ -160,7 +158,7 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition(); - pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f)); + pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos); @@ -186,22 +184,14 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) } - /* PJ 월드 구성하기 */ - - _float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos)); - - CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component(); - CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component(); - - _vector vUp = XMVector3Normalize(vDirection) * fLength; - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp)); - _vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight)); - _vector vPos = vPlayerPos; + _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + _vector vPos = pWand->Get_WorldPostion(); _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; - pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat); - pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat); + m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat); return S_OK; } @@ -270,11 +260,8 @@ void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) - m_pProjectile0->Set_Visible(false); - m_pProjectile1->Set_Visible(false); - - /*맞는순간 위로 올리기*/ - m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f)); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); } @@ -283,9 +270,10 @@ void CStupefy::Free() { __super::Free(); - SAFE_RELEASE(m_pProjectile0); - SAFE_RELEASE(m_pProjectile1); + SAFE_RELEASE(m_pProjectile); + SAFE_RELEASE(m_pProjectile2); SAFE_RELEASE(m_pStupefy_PJ_PT); + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/StupefySide.cpp b/Jusin154_Team3D/Client/Private/StupefySide.cpp new file mode 100644 index 000000000..550b84866 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/StupefySide.cpp @@ -0,0 +1,223 @@ +#include "pch.h" +#include "StupefySide.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CStupefySide::CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefySide::CStupefySide(const CStupefySide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStupefySide::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/StupefySide"))) + return E_FAIL; + + + return S_OK; + +} + +HRESULT CStupefySide::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"BombardSide"; + + + m_pWandParticle = Get_PartObject("Wand_Particle_B"); + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + //m_isTrailEnd = true; + + XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + }); + + m_Events.emplace(1.3f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); + + + return S_OK; +} + +void CStupefySide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStupefySide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + if (m_isParticleEnd == false) + m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CStupefySide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pWandTrail->SetDissolve(false); + + return S_OK; +} + +HRESULT CStupefySide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefySide::Ready_Child() +{ + return S_OK; +} + +CStupefySide* CStupefySide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefySide* pInstance = new CStupefySide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefySide::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefySide* pInstance = new CStupefySide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefySide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CStupefySide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CStupefySide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CStupefySide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp index c121c2775..38e694493 100644 --- a/Jusin154_Team3D/Client/Private/Transformation.cpp +++ b/Jusin154_Team3D/Client/Private/Transformation.cpp @@ -44,7 +44,10 @@ HRESULT CTransformation::Initialize(void* pArg) m_wstrEffectName = L"Transformation"; m_pTransformation_PJ = Get_PartObject("Transformation_PJ"); + m_pTransformation_PJ_PT = Get_PartObject("Transformation_PJ_PT"); + SAFE_ADDREF(m_pTransformation_PJ); + SAFE_ADDREF(m_pTransformation_PJ_PT); m_fDuration = 3.5f; @@ -70,7 +73,7 @@ void CTransformation::Update(_float fTimeDelta) CTransform* pPJTransform = m_pTransformation_PJ->Get_Component(); pPJTransform->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - + m_pTransformation_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -115,6 +118,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg) m_pTransformation_PJ->Get_Effect_Info()->isDissolve = false; m_pTransformation_PJ->Set_Visible(true); + m_pTransformation_PJ_PT->Set_Visible(true); CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion"); CEffectParts* pWand_Light = Get_PartObject("Wand_Light"); @@ -127,6 +131,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg) pWand_Distortion->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWand_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWand_PT->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + m_pTransformation_PJ_PT->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -264,6 +269,7 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc) pHit_Light->Get_Component()->Set_State(STATE::POSITION, vHitPos); pHit_PT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + m_pGameInstance->BillBoard(pHit_PT->Get_Component()); pHit_Light->Set_Visible(true); pHit_PT->Set_Visible(true); @@ -289,7 +295,7 @@ void CTransformation::Free() __super::Free(); Safe_Release(m_pTransformation_PJ); - + Safe_Release(m_pTransformation_PJ_PT); } #ifdef _DEBUG void CTransformation::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/TransformationSide.cpp b/Jusin154_Team3D/Client/Private/TransformationSide.cpp index abd658bd0..b4d6210ac 100644 --- a/Jusin154_Team3D/Client/Private/TransformationSide.cpp +++ b/Jusin154_Team3D/Client/Private/TransformationSide.cpp @@ -43,6 +43,7 @@ HRESULT CTransformationSide::Initialize(void* pArg) //m_pWandParticle = Get_PartObject("Wand_PT"); + m_pWandLight = Get_PartObject("Wand_Light_B"); m_pWandTrail = Get_PartObject(); @@ -52,18 +53,9 @@ HRESULT CTransformationSide::Initialize(void* pArg) m_fDuration = 2.f; - m_Events.emplace(0.6f, [&]() { + m_Events.emplace(0.8f, [&]() { m_isParticleEnd = true; - //m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - m_isTrailEnd = true; - - XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + m_pWandTrail->SetDissolve(true); }); return S_OK; @@ -99,7 +91,7 @@ void CTransformationSide::Update(_float fTimeDelta) // 트레일이 종료되면 위치를 고정함 _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); - m_pWandTrail->Trail_Update(TrailMat, fTimeDelta); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 4bc786933..cad16ffc3 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -652,7 +652,6 @@ void CTroll::Behavior_StunExit() void CTroll::Behavior_HitEnter() { - m_pFSM->Enable_State(FSMSTATE::HIT); _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); pair<_uint, _bool> pairAnimInfo; @@ -711,7 +710,6 @@ HRESULT CTroll::Behavior_HitExitCheck() void CTroll::Behavior_HitExit() { - m_pFSM->Disable_State(FSMSTATE::HIT); } void CTroll::Behavior_DeadEnter() diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index ef3398dd8..9cde886a1 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -14,8 +14,8 @@ #include "Interaction_Key.h" #include "NPCInteraction.h" #include "Broom_TargetGate.h" -#include "Player.h" -#include "Layer.h" + + CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CUIObject(pDevice, pContext) @@ -64,7 +64,9 @@ HRESULT CUI_Manager::Initialize(void* pArg) m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); }); m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); }); m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); }); + m_pInfoInstance->Add_Event(TEXT("UIFadeIn"), [this](void* p) {this->FadeIn(*reinterpret_cast<_float*>(p)); }); m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("BATTLE"), [this](void* p) {this->Set_Battle(*reinterpret_cast<_bool*>(p)); }); return S_OK; } @@ -84,6 +86,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pDialogue_Canvas)->Visible(false); static_cast(m_pInteraction_Key)->Set_Visible(true); static_cast(m_pNPCInteraction)->Set_Visible(true); + static_cast(m_pBroom_TargetGate)->Set_Visible(false); break; case UI_STATE::SPELL: @@ -188,9 +191,9 @@ void CUI_Manager::Update(_float fTimeDelta) else if (m_eType == UI_STATE::SPELL) Canvas_Change(UI_STATE::GAMEPLAYER); } - - if (m_bRace == false) + + if (m_bRace == false && m_bCurrentNPCInteract == false) { if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST) { @@ -313,11 +316,13 @@ void CUI_Manager::Update(_float fTimeDelta) } } - if (m_pGameInstance->Key_Down(DIK_J)) + if (m_bBattle == true) { - Change_Map(); + if (m_fAlpha >= 1.f) + Change_Map(); } + __super::Update(fTimeDelta); } @@ -495,7 +500,7 @@ void CUI_Manager::NpcInteract(_bool bInteract) void CUI_Manager::Set_Fade() { - m_fAlphaVelue = 1.5f; + m_fAlpha = 1.5f; m_bActive = true; m_bHover = true; m_bCgangede = true; @@ -503,30 +508,27 @@ void CUI_Manager::Set_Fade() void CUI_Manager::Change_Map() { - if (FAILED(m_pInfoInstance->Load_DADA_INT())) - return; - - if (FAILED(m_pInfoInstance->Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire"))) - return; - - CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER); - if (nullptr != pLayer) { - CPlayer* pPlayer = pLayer->Get_Object(); - pPlayer->Get_Component()->Set_Position(XMVectorSet(1003.f, 5.f, 1005.f, 1.f)); - } - - m_pGameInstance->Setting_Volumetirc( - 3.f, - 0.01f, - 0.11f, - 1.0f, - 0.f - ); } void CUI_Manager::Set_Race(_bool bRace) { m_bRace = bRace; + static_cast(m_pBroom_TargetGate)->Set_Visible(bRace); +} + +void CUI_Manager::Set_Battle(_bool bBattle) +{ + m_bBattle = bBattle; + //FadeIn(1.5f); +} + +void CUI_Manager::FadeIn(_float fAlphaVelue) +{ + m_fAlphaVelue = fAlphaVelue; + m_bActive = true; + m_bHover = false; + m_bCgangede = true; + m_bAlphaZero = true; } CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp index dcb28ea4a..8678ec167 100644 --- a/Jusin154_Team3D/Client/Private/Wand.cpp +++ b/Jusin154_Team3D/Client/Private/Wand.cpp @@ -44,7 +44,7 @@ HRESULT CWand::Initialize(void* pArg) void CWand::Priority_Update(_float fTimeDelta) { - m_pModelCom->Combined_BoneMatrix(); + #ifdef _DEBUG Describe_Entity(); @@ -59,11 +59,7 @@ void CWand::Update(_float fTimeDelta) void CWand::Late_Update(_float fTimeDelta) { - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -} - -HRESULT CWand::Render() -{ + m_pModelCom->Combined_BoneMatrix(); _matrix socketMatrix = {}; socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); @@ -75,6 +71,13 @@ HRESULT CWand::Render() m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); XMStoreFloat4x4(&m_pWandTipMatrix, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Effect")) * m_pTransformCom->Get_XMWorldMatrix()); + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +} + +HRESULT CWand::Render() +{ + + if (!m_bVisible) return S_OK; diff --git a/Jusin154_Team3D/Client/Public/AccioSide.h b/Jusin154_Team3D/Client/Public/AccioSide.h new file mode 100644 index 000000000..72b5784c0 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/AccioSide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CAccioSide final : public CEffect_Container +{ +private: + CAccioSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CAccioSide(const CAccioSide& rhs); + virtual ~CAccioSide() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEffectParts* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + //class CEffectParts* m_pWandParticle = { nullptr }; + +public: + static CAccioSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Broom.h b/Jusin154_Team3D/Client/Public/Broom.h index 30f4a947a..9e5d126da 100644 --- a/Jusin154_Team3D/Client/Public/Broom.h +++ b/Jusin154_Team3D/Client/Public/Broom.h @@ -31,6 +31,7 @@ class CBroom final : public CUnit virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; void Set_Ride(_bool bRide) { m_bRide = bRide; } + _bool Get_Ride() { return m_bRide; } void Set_Hover(_bool bHover) { m_bHoverToggle = bHover; } _bool Get_Hover() { return m_bHoverToggle; } _bool Get_Turbo() { return m_bTurbo; } diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h index 7d2a46194..fbb2b7251 100644 --- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h +++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h @@ -43,6 +43,7 @@ class CBroomRaceManager final : public CGameObject _int Get_RaceState() const { return m_eRaceState; } HRESULT Load_RaceRing(); + HRESULT Load_Balloons(); private: CInfoInstance* m_pInfoInstance = { nullptr }; @@ -65,6 +66,8 @@ class CBroomRaceManager final : public CGameObject _float m_fDelay = {}; _bool m_bRaceEnd = {}; + _bool m_bReturnPosition = { false }; + _bool m_bCurrentRace = { false }; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/BroomRacerAI.h b/Jusin154_Team3D/Client/Public/BroomRacerAI.h index 7222304c3..5664ad1e7 100644 --- a/Jusin154_Team3D/Client/Public/BroomRacerAI.h +++ b/Jusin154_Team3D/Client/Public/BroomRacerAI.h @@ -47,6 +47,7 @@ class CBroomRacerAI final : public CUnit virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; void Set_RaceRing(class CRaceRing* pRaceRing) {m_pRaceRing = pRaceRing;} class CBroom* Get_Broom() { return m_pBroom; } + void Set_RaceInfo(); private: CLight* m_pLightCom = { nullptr }; LIGHT_DESC LightDesc = {}; diff --git a/Jusin154_Team3D/Client/Public/Broom_Panel.h b/Jusin154_Team3D/Client/Public/Broom_Panel.h index 83592f8fb..6e5d9a18e 100644 --- a/Jusin154_Team3D/Client/Public/Broom_Panel.h +++ b/Jusin154_Team3D/Client/Public/Broom_Panel.h @@ -37,6 +37,7 @@ class CBroom_Panel final : public CPanelObject void Current_Ring(); void Race_End(); void Race_Results(); + void Set_TargetPosition(_fvector Target); public: void Set_BroomTimer(); @@ -54,12 +55,16 @@ class CBroom_Panel final : public CPanelObject CGameObject* m_pBroom_Record = { nullptr }; CGameObject* m_pBroom_Exit = { nullptr }; CGameObject* m_pBroom_Trophy = { nullptr }; + CGameObject* m_pBroom_TargetGate2D = { nullptr }; _float m_fRaceTime{}; + _bool m_bRaceBattle = { false }; _bool m_bDinish = { false }; _bool m_bResults = { false }; - + _bool m_bGateUI = { false }; + _float2 m_fUIScreenPos{}; + _float3 m_fTargetPos{}; public: static CBroom_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/Broom_TargetGate2D.h b/Jusin154_Team3D/Client/Public/Broom_TargetGate2D.h new file mode 100644 index 000000000..1ae02a764 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Broom_TargetGate2D.h @@ -0,0 +1,48 @@ +#pragma once + +#include "Client_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Engine) +class CTexture; +class CShader; +class CVIBuffer_Rect; +NS_END + +NS_BEGIN(Client) + +class CBroom_TargetGate2D final : public CElementObject +{ +private: + CBroom_TargetGate2D(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBroom_TargetGate2D(const CBroom_TargetGate2D& rhs); + virtual ~CBroom_TargetGate2D() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + +public: + static CBroom_TargetGate2D* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 8d4265ceb..1b016623e 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -25,7 +25,7 @@ namespace Client ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE, END }; enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END }; - enum class SHADER_PASS_WORLDMODLE_INSTANCE { DEFAULT, LIGHT, BLOOM }; + enum class SHADER_PASS_WORLDMODLE_INSTANCE { DEFAULT, LIGHT, BLOOM, SHADOW, NONCULL }; enum class SHADER_PASS_NPC_PBR_ANIM { EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, @@ -43,7 +43,7 @@ namespace Client enum class QUESTTYPE { MAIN, SUB, END }; enum class QUESTSTATE { NONE, ACCEPTED, CLEARED, END }; - enum class NPCTEXTTYPE { NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, END }; + enum class NPCTEXTTYPE { NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, END }; enum class EFFECT_TYPE { EFFECT, TRAIL, END }; @@ -72,7 +72,7 @@ namespace Client PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, /*사이드*/ - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE, /*트롤*/ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO, diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index b9d5838d9..d911d4b87 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -49,7 +49,7 @@ namespace Client { #define LAYER_HOGSMEADE TEXT("Layer_Hogsmeade") #define LAYER_HOGWART TEXT("Layer_Hogwart") #define LAYER_MARKER TEXT("Layer_Marker") -#define LAYER_PLAYER TEXT("Layer_Player") +#define LAYER_PLAYER TEXT("Layer__Player") #define LAYER_CAMERA TEXT("Layer_Camera") #define LAYER_MONSTER TEXT("Layer_Monster") #define LAYER_UI TEXT("Layer_UI") @@ -65,10 +65,12 @@ namespace Client { #define LAYER_INTERACTABLE TEXT("Layer_Interactable") #define LAYER_UNIFIED TEXT("Layer_Unified") #define LAYER_DOOR TEXT("Layer_Door") -#define LAYER_HIDDEN TEXT("Layer_HIDDEN") +#define LAYER_HIDDEN TEXT("Layer__HIDDEN") #define LAYER_RING TEXT("Layer_Ring") #define LAYER_RACERAI TEXT("Layer_RacerAI") #define LAYER_DADA_INT TEXT("Layer_DADA_INT") +#define LAYER_DUELIST TEXT("Layer_Duelist") +#define LAYER_NPC TEXT("Layer_Npc") #define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager") diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index 5e28ae2b9..6e63673dd 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -279,19 +279,25 @@ typedef struct tagEffectInfo _bool isNonSoftEffect = {}; _float2 vDissolveSmoothRange = { 0.1f , 0.1f }; - _float2 vPadding0 = {}; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; _bool isRimLight = {}; _bool isMask_G = {}; _bool isMask_B = {}; _bool isDissolve_B = {}; - _float4 vPadding1 = {}; - _float4 vPadding2 = {}; - _float4 vPadding3 = {}; - _float4 vPadding4 = {}; - _float4 vPadding5 = {}; - _float4 vPadding6 = {}; + _float4 vPadding1 = {}; + _float4 vPadding2 = {}; + _float4 vPadding3 = {}; + _float4 vPadding4 = {}; + _float4 vPadding5 = {}; + _float4 vPadding6 = {}; }EFFECT_INFO; typedef struct tagTrailInfo diff --git a/Jusin154_Team3D/Client/Public/DecendoSide.h b/Jusin154_Team3D/Client/Public/DecendoSide.h index 8901151b6..b1ddc9ce8 100644 --- a/Jusin154_Team3D/Client/Public/DecendoSide.h +++ b/Jusin154_Team3D/Client/Public/DecendoSide.h @@ -35,10 +35,11 @@ class CDecendoSide final : public CEffect_Container _bool m_isTrailEnd = {}; _float4x4 m_TrailStopMat = {}; + _bool m_isParticleEnd = {}; class CEffectParts* m_pWandLight = { nullptr }; class CTrailObject* m_pWandTrail = { nullptr }; - + class CEffectParts* m_pWand_Fire = { nullptr }; public: static CDecendoSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free() override; diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h index 18d0a0da3..09f691c71 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h @@ -86,6 +86,9 @@ class CDialogue_Font final : public CGameObject _bool m_bChoiceText = { false }; _bool m_bCurrentChoiceText = { false }; _bool m_bRace = { false }; + _bool m_bBattle = { false }; + + _float m_fTime{}; public: static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Panel.h b/Jusin154_Team3D/Client/Public/Dialogue_Panel.h index 1c6066029..3771b4001 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Panel.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Panel.h @@ -39,7 +39,7 @@ class CDialogue_Panel final : public CPanelObject void Choice_Slot(CHOICEINFO Choice); void ReSet_Choice(); - + void Change_Map(); private: CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; CTexture* m_pDiffuse_TextureCom = { nullptr }; @@ -55,6 +55,7 @@ class CDialogue_Panel final : public CPanelObject _int m_iChoiceCount{}; _bool m_bBroomRace = { false }; + _bool m_bBttle = { false }; public: static CDialogue_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h index 8b28a3824..01e917975 100644 --- a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h +++ b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h @@ -34,26 +34,14 @@ class CDuelist_Levioso final : public CEffect_Container private: class CInfoInstance* m_pInfoInstance = { nullptr }; private: - _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + _wstring m_wstrEffectName = {}; + class CPlayer* m_pPlayer = {}; - class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; - class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; - class CEffectParts* m_pTrail_PT_0 = { nullptr }; - - class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; - class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; - - _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; + class CEffectParts* m_pLeviosoPJ = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CDuelist_Levioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h index b4032a504..effac5751 100644 --- a/Jusin154_Team3D/Client/Public/EffectObject.h +++ b/Jusin154_Team3D/Client/Public/EffectObject.h @@ -57,7 +57,10 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; const _float4x4* m_pParentMatrix = { nullptr }; - _float4x4 m_FinalParentMatrix; + + _float4x4 m_ScreenViewMatrix = {}; + _float4x4 m_OrthographicMatrix = {}; + _float4x4 m_FinalParentMatrix; protected: EFFECT_INFO m_EffectInfo = {}; diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h index 3dc71cb4b..f495679f2 100644 --- a/Jusin154_Team3D/Client/Public/Goblin.h +++ b/Jusin154_Team3D/Client/Public/Goblin.h @@ -91,6 +91,7 @@ class CGoblin final : public CMonster _float m_fGravityAmount = {}; _float m_fHitTimer = {}; _float m_fTumbleTimer = {}; + _bool m_bCameraShake = {}; void Behavior_IdleEnter(); HRESULT Behavior_IdleExitCheck(); @@ -140,6 +141,9 @@ class CGoblin final : public CMonster void Hit_Accio(_float fTimeDelta); void Hit_Levioso(_float fTimeDelta); + void Hit_Jap(); + void Descendo_Event(); + void TumbleAnim(_float fTimeDelta); #pragma endregion diff --git a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h index 8288b8634..7a5b60522 100644 --- a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h +++ b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h @@ -91,6 +91,7 @@ class CGoblin_Assassin final : public CMonster _float m_fGravityAmount = {}; _float m_fHitTimer = {}; _float m_fTumbleTimer = {}; + _bool m_bCameraShake = {}; _float m_fMoveDecisionTime = 0.f; _float m_fMoveDecisionLimit = 1.2f; @@ -146,6 +147,9 @@ class CGoblin_Assassin final : public CMonster void Hit_Accio(_float fTimeDelta); void Hit_Levioso(_float fTimeDelta); + void Hit_Jap(); + void Descendo_Event(); + void TumbleAnim(_float fTimeDelta); #pragma endregion }; diff --git a/Jusin154_Team3D/Client/Public/Goblin_Mage.h b/Jusin154_Team3D/Client/Public/Goblin_Mage.h index 065c7a671..4c6da7eab 100644 --- a/Jusin154_Team3D/Client/Public/Goblin_Mage.h +++ b/Jusin154_Team3D/Client/Public/Goblin_Mage.h @@ -94,6 +94,7 @@ class CGoblin_Mage final : public CMonster _float m_fGravityAmount = {}; _float m_fHitTimer = {}; _float m_fTumbleTimer = {}; + _bool m_bCameraShake = {}; #ifdef _DEBUG _bool m_isDebugMode = {}; @@ -147,6 +148,9 @@ class CGoblin_Mage final : public CMonster void Hit_Accio(_float fTimeDelta); void Hit_Levioso(_float fTimeDelta); + void Hit_Jap(); + void Descendo_Event(); + void TumbleAnim(_float fTimeDelta); #pragma endregion diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h index 3d1264441..5629f187f 100644 --- a/Jusin154_Team3D/Client/Public/Human_Duelist.h +++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h @@ -32,11 +32,14 @@ class CHuman_Duelist final : public CMonster virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; virtual HRESULT Render_Shadow(SHADOW eType) override; + HRESULT Render_OutLine(); + virtual _vector Get_LockOnPos() override; virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override; virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; } void Set_Shield(_bool bShield) { m_bShield = bShield; } _matrix Get_WandPos(); + void Set_Battle(_bool bBattle) { m_bBattle = bBattle; } private: CCharacter_Controller* m_pCharacter_Controller = { nullptr }; CRigidBody_Dynamic* m_pRigidBody = { nullptr }; @@ -71,6 +74,10 @@ class CHuman_Duelist final : public CMonster _bool m_bSpellHit = {}; _bool m_bShield = { false }; _float m_fAirTime = {}; + _float m_fBlendTime = { }; + _float m_fHitTimer = {}; + _bool m_bHitJap = {}; + _bool m_bBattle = {}; _float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {}; @@ -104,6 +111,10 @@ class CHuman_Duelist final : public CMonster HRESULT Behavior_HitExitCheck(_float fTimeDelta); void Behavior_HitExit(); + void Behavior_CutSceneEnter(); + HRESULT Behavior_CutSceneExitCheck(_float fTimeDelta); + void Behavior_CutSceneExit(); + #pragma region HIT_BEHAVIOR void Hit_Levioso(_float fTimeDelta); diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index 099a146c6..b2d1680b4 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -28,6 +28,7 @@ DECLARE_SINGLETON(CInfoInstance) void Load_CutScenes(); void Release_Information(); LEVEL Get_RestartLevel(); + _bool Get_SearchLockonFloag() { return m_bSearchLockOnTarget; } public: void Update(_float fTimeDelta); void Change_Level(); diff --git a/Jusin154_Team3D/Client/Public/InstancedProp.h b/Jusin154_Team3D/Client/Public/InstancedProp.h index a1003cf15..460ed6b0e 100644 --- a/Jusin154_Team3D/Client/Public/InstancedProp.h +++ b/Jusin154_Team3D/Client/Public/InstancedProp.h @@ -16,12 +16,13 @@ class CInstancedProp final : public CGameObject public: typedef struct tagInstancedPropDesc { - _bool isShake; - _bool bEnableRigidbody; - _float2 vRadius; - _float2 vSpeed; - _wstring strPrototypeTag; - _string strInstanceDataPath; + SHADER_PASS_WORLDMODLE_INSTANCE eShaderPass; + _bool isShake; + _bool bEnableRigidbody; + _float2 vRadius; + _float2 vSpeed; + _wstring strPrototypeTag; + _string strInstanceDataPath; }INSTANCE_PROP_DESC; private: CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -36,13 +37,15 @@ class CInstancedProp final : public CGameObject virtual HRESULT Render_Shadow(SHADOW eType)override; private: - _bool m_isShake = {}; - _uint m_iNumMesh = {}; - _uint m_iNumInstacne = {}; + _bool m_isShake = {}; + _uint m_iNumMesh = {}; + _uint m_iNumInstacne = {}; + SHADER_PASS_WORLDMODLE_INSTANCE m_eShaderPass = {}; - vector m_RigidBody = { nullptr }; - CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr }; - CShader* m_pShaderCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr }; + + vector m_RigidBody = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; diff --git a/Jusin154_Team3D/Client/Public/Item_Potion.h b/Jusin154_Team3D/Client/Public/Item_Potion.h index 983d862fd..1f4333ee3 100644 --- a/Jusin154_Team3D/Client/Public/Item_Potion.h +++ b/Jusin154_Team3D/Client/Public/Item_Potion.h @@ -24,6 +24,8 @@ class CItem_Potion final : public CPartObject virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + void Check_GroundCollision(); + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; void Set_Attach(_bool Attach); public: @@ -31,11 +33,18 @@ class CItem_Potion final : public CPartObject const _float4x4* m_pSocketMatrices = { }; CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + + _float4 m_vStartPos = {}; + PSX::PxSweepBufferN<12> m_SweepBuffer = {}; + + class CEffectPool* m_pEffectPool = nullptr; _float4x4 m_pWandTipMatrix = {}; _float3 m_Offset = {}; _bool m_bAttach = { true }; - _float m_fTimer = {}; + _float m_fTimer = {}; + _bool m_bHit = {}; private: HRESULT Ready_Components(); diff --git a/Jusin154_Team3D/Client/Public/Land.h b/Jusin154_Team3D/Client/Public/Land.h index 6f8cecada..3f55faf5b 100644 --- a/Jusin154_Team3D/Client/Public/Land.h +++ b/Jusin154_Team3D/Client/Public/Land.h @@ -9,7 +9,7 @@ class CShader; NS_END NS_BEGIN(Client) - +class CInstancedProp; class CLand final : public CGameObject { public: @@ -32,6 +32,7 @@ class CLand final : public CGameObject virtual HRESULT Render() override; virtual HRESULT Render_Shadow(SHADOW eType) override; + void Add_InstanceProp(CInstancedProp* pIntanceProp); private: _float m_fRaduis = {}; _float m_fUsingSurfaceParams = {}; @@ -44,6 +45,7 @@ class CLand final : public CGameObject CTexture* m_pMROTextureCom = { nullptr }; CTexture* m_pMaskTextureCom = { nullptr }; + list m_InstanceProps = {}; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h index 4c1b1591b..d0148d6a7 100644 --- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h +++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h @@ -31,23 +31,27 @@ class CLevel_GamePlay final : public CLevel HRESULT Ready_Lights(); HRESULT Ready_Volumetric(); HRESULT Ready_Background(); - HRESULT Ready_Land(); + HRESULT Ready_Land(map<_string, class CLand*>* Lands); HRESULT Ready_Layer_Hogsmeade(); HRESULT Ready_Layer_Hogwart(); - HRESULT Ready_IntstanceProp(); + HRESULT Ready_IntstanceProp(map<_string, class CLand*>* Lands); HRESULT Ready_Markers(); HRESULT Ready_Layer_UI(const _wstring& strLayerTag); HRESULT Ready_Layer_Camera(); HRESULT Ready_Layer_Sound(); HRESULT Ready_Layer_Player(const _wstring& strLayerTag); + HRESULT Ready_Layer_RacerAI(const _wstring& strLayerTag); HRESULT Ready_Layer_Item(const _wstring& strLayerTag); HRESULT Ready_Layer_ReparoObject(const _wstring& strLayerTag); HRESULT Ready_Layer_SkyBox(const _wstring& strLayerTag); HRESULT Ready_Layer_Monster(); HRESULT Ready_Layer_Manager(const _wstring& strLayerTag); HRESULT Reday_Layer_EffectPool(); + HRESULT Ready_Layer_Duelist(); + HRESULT Ready_Layer_Npc(); void ResetLevel_Environment(); + HRESULT Bind_InstanceProp(map<_string, class CLand*>* Lands, class CInstancedProp* pInstnace, const _char* LandTag); public: static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg); virtual void Free() override; diff --git a/Jusin154_Team3D/Client/Public/Levioso.h b/Jusin154_Team3D/Client/Public/Levioso.h index 0e0bf441d..e0fdd493b 100644 --- a/Jusin154_Team3D/Client/Public/Levioso.h +++ b/Jusin154_Team3D/Client/Public/Levioso.h @@ -37,23 +37,11 @@ class CLevioso final : public CEffect_Container _wstring m_wstrEffectName = {}; class CPlayer* m_pPlayer = {}; - class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; - class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; - class CEffectParts* m_pTrail_PT_0 = { nullptr }; - - class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; - class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; - - _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; + class CEffectParts* m_pLeviosoPJ = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/MapElement_Balloon.h b/Jusin154_Team3D/Client/Public/MapElement_Balloon.h new file mode 100644 index 000000000..6f3feea91 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/MapElement_Balloon.h @@ -0,0 +1,63 @@ +#pragma once + +#include "Client_Define.h" +#include "MapElement.h" + +NS_BEGIN(Client) + +class CMapElement_Balloon : public CMapElement +{ +public: + typedef struct tagMapElemntBalloonDesc + { + _bool isFloating; + _uint iDiffuseIndex; + _float3 vPosition; + _float3 vRotation; + _float3 vScale; + }BALLOON_DESC; +private: + CMapElement_Balloon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapElement_Balloon(const CMapElement_Balloon& rhs); + virtual ~CMapElement_Balloon() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + + _bool m_isFloating = {}; + _bool m_isRotate = {}; + _uint m_iDiffuseIndex = {}; + + _float m_fTimeAcc = {}; + _float m_fUsingSurfaceParams = {}; + _float m_fRadius = {}; + + _float3 m_vOriginPosition = {}; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + + void Rotation(); + void Floating(); + +public: + static CMapElement_Balloon* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/MapElement_Chest.h b/Jusin154_Team3D/Client/Public/MapElement_Chest.h index 1b75562ff..9b9685789 100644 --- a/Jusin154_Team3D/Client/Public/MapElement_Chest.h +++ b/Jusin154_Team3D/Client/Public/MapElement_Chest.h @@ -39,6 +39,7 @@ class CMapElement_Chest final : public CMapElement virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override; + _bool IsScannable(_fvector vPosition); private: ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END }; diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h index 1c9329b47..b7d8fa705 100644 --- a/Jusin154_Team3D/Client/Public/Monster.h +++ b/Jusin154_Team3D/Client/Public/Monster.h @@ -12,7 +12,8 @@ class CMonster abstract : public CUnit { GROUND, AIR_LEVIOSO, - AIR_KNOCKBACK, + DESCENDO, + STUN, END }; diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 54adc3340..413341a15 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -36,12 +36,15 @@ class CPlayer final : public CUnit void Set_RaceRing(class CRaceRing* pRaceRing); class CBroom* Get_Broom() { return m_pBroom; } void Set_RaceInfo(); + _bool IsParryWindow(); _bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; } _matrix Get_WandPos(); void Set_OpenDoor(_bool bOpen) { m_bOpenDoor = bOpen; } void UpdateGrapInteractive(_float fTimeDelta); void Update_CameraShake(_float fTimeDelta); HRESULT Update_RaycastElements(); + void Set_Battle(_bool bBattle) { m_bDuel_ZOnlyMove = bBattle; } + void Set_Interaction(_bool bInteraction); #ifdef _DEBUG void Render_CameraCoordinateSystem(); #endif // _DEBUG @@ -58,6 +61,7 @@ class CPlayer final : public CUnit _bool m_bCameraShake = { false }; _bool m_bNpcInteraction = { false }; + _bool m_bCurrentInteraction = { false }; _float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, }; _float3 m_vCameraRightDir = { 1.f, 0.f, 0.f }; @@ -105,6 +109,7 @@ class CPlayer final : public CUnit void Add_SpellEvent(_uint AnimIndex, _float fRatio); void Play_SpellHitAnim(); void Player_PixRot(); + void Find_HiddenObjects(); void Update_CameraCoordinateSystem(_float fTimeDelta); #ifdef _DEBUG @@ -163,13 +168,18 @@ class CPlayer final : public CUnit _float m_fMoveTime = {}; _float m_fCross = 0.f; _float m_fabsDir = 0.f; - array<_float4x4, 256> SkinMatrices = {}; array<_int, 256> SecondMaskIndex = {}; _bool m_bOpenDoor = { false }; _bool m_bOpeningCutScene = { false }; _float m_fAirTime = {}; _bool m_bCanParry = {}; _bool m_bBlock = {}; + _bool m_bDuel_ZOnlyMove = {}; + _float m_fDegree = {}; + _bool m_bGuarding = {}; + _float m_fParryTimer = {}; + + /* 무적 불 변수*/ #ifdef _DEBUG _bool m_isDebugMode = { false }; @@ -242,6 +252,10 @@ class CPlayer final : public CUnit HRESULT Behavior_BlockExitCheck(_float fTimeDelta); void Behavior_BlockExit(); + void Behavior_ParryEnter(); + HRESULT Behavior_ParryExitCheck(_float fTimeDelta); + void Behavior_ParryExit(); + void Behavior_HitEnter(); HRESULT Behavior_HitExitCheck(_float fTimeDelta); void Behavior_HitExit(); @@ -274,6 +288,8 @@ class CPlayer final : public CUnit void Throwing_Interactive(); void Attach_Broom(); void ProcessHitBehavior(); + void Calc_CameraPlayerAngle(); + #pragma endregion #pragma region HITBEHAVIOR diff --git a/Jusin154_Team3D/Client/Public/Quest_Data.h b/Jusin154_Team3D/Client/Public/Quest_Data.h index eb283bcbd..c33d834fe 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Data.h +++ b/Jusin154_Team3D/Client/Public/Quest_Data.h @@ -12,6 +12,12 @@ NS_BEGIN(Client) class CQuest_Data final : public CBase { +private: + struct QuestAccepted + { + CGameObject* QeustData; + QUESTINFO QeustInfo; + }; private: CQuest_Data(); ~CQuest_Data() = default; @@ -29,9 +35,9 @@ class CQuest_Data final : public CBase _int Get_Count(_int Index); const vector& Get_AllQuest() const; const vector& Get_ClearQuest() const; - const vector& Get_AcceptQuest() const; + vector& Get_AcceptQuest(); HRESULT Set_AcceptQuest(_int index); - + private: CInfoInstance* m_pInfoInstance = { nullptr }; CGameObject* m_pQuestInstance = { nullptr }; @@ -41,10 +47,12 @@ class CQuest_Data final : public CBase OBJECTIVEINFO ObjectiveInfo = {}; REWARDSINFO RewardsInfo = {}; + QuestAccepted m_AcceptedInfo{}; + vector QuestInfos; vector m_QuestNoneInfos; - vector m_QuestAcceptedInfoObject; - vector m_QuestAcceptedInfos; + vector m_QuestAcceptedInfos; + vector m_QuestAcceptedInfo; vector m_QuestEndInfos; _int m_iQuest_Count{}; diff --git a/Jusin154_Team3D/Client/Public/Quest_Info.h b/Jusin154_Team3D/Client/Public/Quest_Info.h index b8fbc8db1..c51405fdf 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Info.h +++ b/Jusin154_Team3D/Client/Public/Quest_Info.h @@ -13,6 +13,12 @@ NS_BEGIN(Client) class CQuest_Info final : public CElementObject { +private: + struct Text + { + _wstring pCurrentText; + _wstring pRequiredText; + }; private: CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CQuest_Info(const CQuest_Info& rhs); @@ -33,6 +39,7 @@ class CQuest_Info final : public CElementObject public: void Set_Hover(void* pArg); + void Set_QuestType(_int Index); private: void Y(_float fSizeY); @@ -44,17 +51,23 @@ class CQuest_Info final : public CElementObject CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; CInfoInstance* m_pInfoInstance = { nullptr }; - _wstring m_pQuest_Info; + _wstring m_pQuest_Info; - _float m_fOriginPerviewSize{}; - _float m_fPreviewOffSet{}; - _float4 m_vHeaderBack{}; + _float m_fOriginPerviewSize{}; + _float m_fPreviewOffSet{}; + _float4 m_vHeaderBack{}; - _int m_iQuest_Index{}; - _int m_iCurrentQuest{}; + _int m_iQuest_Index{}; + _int m_iCurrentQuest{}; + + _int m_iPerQuestIndex{}; + _int m_iCurrentIndex{}; + + vector m_Text{}; + + _int m_iQuestSlot{}; + _int m_iCurrentQeustSlot{}; - _int m_iPerQuestIndex{}; - _int m_iCurrentIndex{}; public: static CQuest_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/Quest_Info_Header.h b/Jusin154_Team3D/Client/Public/Quest_Info_Header.h index c40271cf7..4c4541e2d 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Info_Header.h +++ b/Jusin154_Team3D/Client/Public/Quest_Info_Header.h @@ -33,6 +33,7 @@ class CQuest_Info_Header final : public CElementObject public: void Set_Hover(void* pArg); + void Set_QuestType(_int Index); private: CTexture* m_pDiffuse_TextureCom = { nullptr }; @@ -43,6 +44,10 @@ class CQuest_Info_Header final : public CElementObject _int m_iColor = true; _int m_iQuest_Index{}; _int m_iCurrentQuest{}; + + _int m_iQuestSlot{}; + _int m_iCurrentQeustSlot{}; + public: static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/Quest_Info_Line.h b/Jusin154_Team3D/Client/Public/Quest_Info_Line.h index 4eb33ea1b..23a7e7362 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Info_Line.h +++ b/Jusin154_Team3D/Client/Public/Quest_Info_Line.h @@ -42,6 +42,7 @@ class CQuest_Info_Line final : public CElementObject _int m_iColor = { false }; _int m_iQuest_Index{}; _int m_iCurrentQuest{}; + public: static CQuest_Info_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/RaceRing.h b/Jusin154_Team3D/Client/Public/RaceRing.h index 947cb43ff..8bc69c598 100644 --- a/Jusin154_Team3D/Client/Public/RaceRing.h +++ b/Jusin154_Team3D/Client/Public/RaceRing.h @@ -29,6 +29,12 @@ class CRaceRing final : public CGameObject virtual HRESULT Render() override; void Set_Target(_bool bTarget){ m_bTarget = bTarget; } +private: + _bool World_Screen(_float3 fWorld_Pos, _float2& fScreenPos, _float& fDepth); + _bool Screen(_float2& fWorld_Pos, _float Winx, _float Winy); + _float2 Get_EdgePosition(_float2& fWorld_Pos, _float Winx, _float Winy); + void World_to_ScreenUI(); + private: class CBroomRaceManager* m_pBroomRaceManager = { nullptr }; CShader* m_pShaderCom = { nullptr }; @@ -36,6 +42,8 @@ class CRaceRing final : public CGameObject _bool m_bTarget = { false }; _int m_iIndex = {}; + _bool m_bShowOffScreenUI = { false }; + _float2 m_fScreenPos{}; private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h index 3f63c55d1..0cca76157 100644 --- a/Jusin154_Team3D/Client/Public/RandomNpc.h +++ b/Jusin154_Team3D/Client/Public/RandomNpc.h @@ -13,6 +13,15 @@ class CRandomNpc final : public CUnit _float4 vRotQ; _int iIndex; }NPCDESC; + + enum class NPC_STATE + { + IDLE, + MOVE, + OBSERVE, + END + }; + protected: CRandomNpc(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CRandomNpc(const CRandomNpc& Prototype); @@ -28,26 +37,28 @@ class CRandomNpc final : public CUnit virtual _wstring Get_Name() override; virtual _wstring Get_NpcName() override; - + void Set_Battle(_bool bBattle) { m_bBattle = bBattle; } + _bool Get_BattleObserve_Npc() { return m_bBattleObserve_Npc; } + void Set_NpcState(_int iState) { m_eNpcState = iState; } void Set_Target(CUnit& pTarget, CTransform& pTransform); protected: - CInfoInstance* m_pInfoInstance = { nullptr }; - CCharacter_Controller* m_pCharacter_Controller = { nullptr }; - CRigidBody_Dynamic* m_pRigidBody = { nullptr }; - class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr }; - class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr }; - CUnit* m_pPlayerAllyUnit = { nullptr }; - CRandomNpc* m_pNPC_Ollivander = { nullptr }; + CInfoInstance* m_pInfoInstance = { nullptr }; + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr }; + class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr }; + CUnit* m_pPlayerAllyUnit = { nullptr }; + CRandomNpc* m_pNPC_Ollivander = { nullptr }; /*class CNPCInteraction* m_pNPCInteraction = { nullptr };*/ - CUnit* m_pTarget = { nullptr }; - _float4 m_vTargetPos = { }; - _float3 m_vToTargetDir = { }; - _float m_fTargetDistance = { FLT_MAX }; - _float m_fDegree = {}; - _float m_fCross = {}; + CUnit* m_pTarget = { nullptr }; + _float4 m_vTargetPos = { }; + _float3 m_vToTargetDir = { }; + _float m_fTargetDistance = { FLT_MAX }; + _float m_fDegree = {}; + _float m_fCross = {}; - CNPCStat* m_pNpcStat = { nullptr }; + CNPCStat* m_pNpcStat = { nullptr }; _int m_iEntered = { 0 }; _float2 m_vEnteringTimer = { 0.f, 1.f }; _float m_fEncounterDistance = { 8.f }; @@ -57,6 +68,9 @@ class CRandomNpc final : public CUnit _bool m_bInteract = { false }; _bool m_bPreviousInteract = { false }; _float m_fInteractTime{}; + _bool m_bBattleObserve_Npc = {}; + _bool m_bBattle = {}; + _int m_eNpcState = ENUM_CLASS(NPC_STATE::END); protected: virtual HRESULT Initialize_Prototype() override; @@ -65,6 +79,10 @@ class CRandomNpc final : public CUnit HRESULT Bind_ShaderResources() override; HRESULT Bind_ShaderParameters(_uint iMeshOrder); +private: + + void BattleObserve_Anim(); + public: static CRandomNpc* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr); diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index 2790e9664..96e109bfb 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -162,10 +162,12 @@ class CRanrok final : public CMonster const _float4x4* m_pTail2_BoneMat = { nullptr }; const _float4x4* m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr }; CRigidBody_Dynamic* m_pTargetableDO[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr }; + + #ifdef _DEBUG unique_ptr m_pSubShape = { nullptr }; - ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr }; + ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr }; _float4 m_vInitialRotQ = {}; _float3 m_vInitialTrans = {}; #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Public/Revelio.h b/Jusin154_Team3D/Client/Public/Revelio.h index 32f224ab0..3e48f48d0 100644 --- a/Jusin154_Team3D/Client/Public/Revelio.h +++ b/Jusin154_Team3D/Client/Public/Revelio.h @@ -32,11 +32,11 @@ class CRevelio final : public CEffect_Container virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; private: _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + class CPlayer* m_pPlayer = {}; class CEffectParts* m_pRevelioPT_Y = { nullptr }; class CEffectParts* m_pRevelioPT_B = { nullptr }; class CEffectParts* m_pRevelioPT_R = { nullptr }; - + class CEffectParts* m_pWand_Light = { nullptr }; public: static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free() override; diff --git a/Jusin154_Team3D/Client/Public/State_Parry.h b/Jusin154_Team3D/Client/Public/State_Parry.h new file mode 100644 index 000000000..d6bdf4fd6 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Parry.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Parry final : public CState_Root +{ +public: + typedef struct tagParry : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_PARRY_DESC; +private: + CState_Parry(); + virtual ~CState_Parry() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_PARRY_DESC* pDesc); + +public: + static CState_Parry* Create(STATE_PARRY_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Stupefy.h b/Jusin154_Team3D/Client/Public/Stupefy.h index e2b3fd52c..5b1313303 100644 --- a/Jusin154_Team3D/Client/Public/Stupefy.h +++ b/Jusin154_Team3D/Client/Public/Stupefy.h @@ -35,13 +35,12 @@ class CStupefy final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CEffectParts* m_pProjectile0 = {}; - class CEffectParts* m_pProjectile1 = {}; + class CEffectParts* m_pProjectile = {}; class CEffectParts* m_pStupefy_PJ_PT = {}; - + class CEffectParts* m_pProjectile2 = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.7f; + _float m_fLinearSpeed = 1.f; _float3 m_vCameraLook = {}; public: static CStupefy* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/StupefySide.h b/Jusin154_Team3D/Client/Public/StupefySide.h new file mode 100644 index 000000000..e98a245ec --- /dev/null +++ b/Jusin154_Team3D/Client/Public/StupefySide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CStupefySide final : public CEffect_Container +{ +private: + CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefySide(const CStupefySide& rhs); + virtual ~CStupefySide() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEffectParts* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + class CEffectParts* m_pWandParticle = { nullptr }; + +public: + static CStupefySide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Transformation.h b/Jusin154_Team3D/Client/Public/Transformation.h index f543872be..1a018bcb8 100644 --- a/Jusin154_Team3D/Client/Public/Transformation.h +++ b/Jusin154_Team3D/Client/Public/Transformation.h @@ -36,6 +36,7 @@ class CTransformation final : public CEffect_Container private: _wstring m_wstrEffectName = {}; class CEffectParts* m_pTransformation_PJ = { nullptr }; + class CEffectParts* m_pTransformation_PJ_PT = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index f02870f2e..3f896b725 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -51,6 +51,8 @@ class CUI_Manager final : public CUIObject void Set_Fade(); void Change_Map(); void Set_Race(_bool bRace); + void Set_Battle(_bool bBattle); + void FadeIn(_float fAlphaVelue); private: CInfoInstance* m_pInfoInstance = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; @@ -91,7 +93,7 @@ class CUI_Manager final : public CUIObject _bool m_bAlphaZero = { false }; _bool m_bRace = { false }; - + _bool m_bBattle = { false }; public: static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml index 76ecd9138..347166332 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml @@ -19,27 +19,31 @@ - + - - - - + + + + + - - - - + + + + - - + + - - + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml index 8c5eb8b85..109c05c93 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml @@ -64,6 +64,15 @@ + + + + + + + + + @@ -108,6 +117,8 @@ + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml index 1277384b9..4012e1b07 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml @@ -39,6 +39,9 @@ + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index 1067f2d9e..c8096c2ad 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -64,8 +64,11 @@ - - + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin index 27eb22b7a..4e97dd107 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9794013a035a76fdf79fcd30a2613587e5070faa3f20b2d8ff1b4f47d424a4b -size 1213 +oid sha256:9b99b36de0de4eef400ed778a5b4e6200a1660097afded0b0ebe8999707b18b9 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin index dbdb78591..4b9130996 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:176329508cfbef669f65fae151f6392051a746667799ccd07faaedcb2f5e8f64 +oid sha256:f966b2d82171e30a472c8b8253c15930a0d0b5b194a2dee9ba9083e660affbb9 size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin index c27ee694a..151a49755 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c4a57f446eda69fbd34f391fa68a82a46ea5dd296e73fac4927387d19454cc91 -size 1149 +oid sha256:3fbf2e05a5edbe032062221c076dd6d9104e615acbf8e166755ecd6855ae11d2 +size 1207 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin index 9b67aa64f..7fa901f2a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d814ab9201bdef7ae4b9058e392da7bf389903f7f0eab11a16c78d11041415e3 -size 1187 +oid sha256:881daecc8e50c07fed54580556949fbb8f0dbc6927e902f792c93cb750d8cfc7 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Trail_Y.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Trail_Y.trail new file mode 100644 index 000000000..43f85df93 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Trail_Y.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Wand_Light_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Wand_Light_B.bin new file mode 100644 index 000000000..f1532176e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Wand_Light_B.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98e9c7f5ee1a647aad6e4c5ad77f78e9cb939c7a5dfa58771725b7da4933cc8b +size 1153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin index c4cc976e1..0f9049321 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:13b514d4a7314f32775fbad8ac581294b69142834502a3c86b98b8fae7159ac5 -size 1209 +oid sha256:5187dcaa92ed304e2f1787ce23dbbad34d016fd0b239f357082dfe3016e66016 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin index e6d7a24b9..e0e908774 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:95bd3e54e07320b30e06faf79376c22599633019e5c6283abcac56623c483baa -size 1216 +oid sha256:174298b179b4a064bde526017f4df8d4bbc6af02b7d38c58e5a1cd43b075fb3d +size 1261 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin deleted file mode 100644 index 28a7edfb4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42804e44173b841e0dac548498a6b766808931d5534583a8586c7726c3793e75 -size 1174 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Red_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Red_Blur.bin new file mode 100644 index 000000000..7865a99df --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Red_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:307f75f7972b3c8918f413a4523fad79c31a5b2f7838d4bb4cfc63449ff4c64b +size 1158 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin index 0af7227d1..c8bb68cf5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9c51a3ba982b380a228c9117e0fb9cae1494d635d8745b3c95928785c8888279 -size 1156 +oid sha256:86063c7ad44d14b6bfe9040464f77bff0a26f1ec66bf36ac5e853cdbe33dbe0a +size 1153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Rock_PT.bin new file mode 100644 index 000000000..476db78d9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Rock_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:840afb67b113e8c846db2146215e3489d5401a83bc59fab8ad0facc9a272ceb7 +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin index 976f2a00d..f98ec0fb3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:da2e17868dbe73e7e5af16e6582751ae3d44dcc97dd62c21a80e67656520d941 -size 1162 +oid sha256:2d86bd61de414c07e7aa60cb8219759a7da5598df66a8d7141a9540203251b3b +size 1196 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin index bf27051ca..71f07db0e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f0296fdc4aa15e1920d0e4e1150b596d3c59bf1e3a5ee12cf00b2a590734b47a -size 1299 +oid sha256:b3766c2e69ab5feae1eb65fbb95b3bcbfedaecea9d06b43e5ed53aaf1a05f3c2 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Line.bin new file mode 100644 index 000000000..c587bbf5f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Line.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d8bf87228d1c9977b2116ba884061c04973b5696f338210350e1c0300f9bc41 +size 1192 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail index 91ae91941..a40564b18 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail index 91892cc7f..7416a36a9 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Fire.bin new file mode 100644 index 000000000..ba4288955 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Fire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcf53db5f6ae66aa1c1c53570c4c29b0461b5fc93ba88eb0682199128a6af789 +size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin index 9605e9512..8f6538dc5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a112ccc0f90259222c3723f490f47f7753afda0683ff68332a2ca2c020ec4adb -size 1200 +oid sha256:4861ad8ee602d6d85983874b99a14e2fbf534426fe5f8867fa1a35e52b064be7 +size 1198 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin index c93c69a1a..4213fca60 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d35e96ef4cec61733caa7b90101eed6fa320f144d5b8f4141521658e6c401c9f -size 1238 +oid sha256:028981d804f9832afe880942dcf3d24bb069e8bd928c7e09265810c9adfef0ba +size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin index 3d55bfec7..aee30218b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:51b9af9d2826a82ab2784cd6b72221ddc3f9a196fbc36962dc4729478c7557d5 -size 1160 +oid sha256:31508b23f35c1ec71bcfbeb87ef87b8e067391ec24efd8a9495025ea55d14337 +size 1152 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin index cc4462588..1e1ffa5cf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87dc61563f7386bdd600d7da84ab8f4b358e05ddafaffa62db29236333378755 +oid sha256:2ef6ed200f4e9ab5ee03e05cb96692f5a854c222b75116f9a044e4a49afb7e06 size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin deleted file mode 100644 index 20e29962f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2aad5dff0889db1d7985349f737a7c96722b79f155576a9ab5c072cf1493158b -size 1204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin deleted file mode 100644 index a62774e61..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:095e59e449f59358f23ca6bdacb586ee2a540885011318b374633cc3cc3f606a -size 1251 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin new file mode 100644 index 000000000..b15d91405 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a05561f06e3503b1f0cc9f4a1b64bf42de75c383ed1865b073303dc616b6ad35 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin new file mode 100644 index 000000000..1a673fe5b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:829af44b129883d9ad6988a32b0a4b32d2dd6a47f5724bbcb1a6351e96dcfc1b +size 1250 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin deleted file mode 100644 index b9248ccd2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bdf0bfea70a3d7fe55ac923f99742c48fe5478b5e87e68243a22c95d6235ab7 -size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin index 0eaa8dc74..d2369a17f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:43c4e97125ff00a6b01ec5dca8fd388d016873526865f7d9ae84fa6c1f9f83c6 -size 1158 +oid sha256:cd88edc0d87bd99f12d7750d45df7bfe07a15688378148d2c8c7db6ec326d96b +size 1205 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin index f7dd40d6d..549ff0172 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e03dc212166ae87ff83375abfd1901fa8656de70a3a2fb3aa1c7873ea84f5eaa -size 1158 +oid sha256:33f44b325c6d9dad348fe07a6c9ee332140e90567e8ad4ced6fdac278a040c45 +size 1205 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin new file mode 100644 index 000000000..cf7e4756c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15191901df0a291039dc63271d4c0d3526e3a39db8f33608a835f1725b47c3d0 +size 1211 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin index 124d7d888..1dcb3d954 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a7aba137c53306c7451b760eb809e8bc6fe0c8379c766976465b677232a6024 -size 1220 +oid sha256:6d30a41bf07e1367520482cf73b0ffeaf325acdd0e6a71f851c98616a9df892b +size 1219 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail index f83c08f63..f314332fa 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin deleted file mode 100644 index 09ee5477a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b5486e56e36e161b996225ede86832abf1db6e3e1239021e0e33c1d7aab22fcf -size 1197 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin deleted file mode 100644 index 5eae80ac7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d86b77b6ac7dda9b3dc2028af8b11b705dd76271879ed35f25dda7602aa958c2 -size 1334 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin new file mode 100644 index 000000000..0e8cfb3e1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4397ec9a2372621b95584fb5c639e4c1373385077d66d3844e733cbc492553a +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin deleted file mode 100644 index 25b037b0f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d22785083a70649bc4da5760e998517b9530fe3e45149aa9a949216738862c1 -size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin new file mode 100644 index 000000000..810d67d4f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b258f9b40f22c59db9e936497e79f846c9f8b2a338d59a443589edee594f6ef +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin new file mode 100644 index 000000000..b44562941 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e6a6b8e0a807c1dc028102c4cc240df07b973c9f29a2e80c639fa2ea234717b +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail index 7a7aaf91a..85574a148 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin index 39c7f067c..61bfacecf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c91832482aec9e9008a23900a48ed91867c91f964406108325e5eb606ddc2cf3 -size 1200 +oid sha256:ca923ddbb840314fbab63149019fa8078a5d53b2b9c3ef926a3345ebff72bcc3 +size 1145 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin index e1acabd7a..7f0d2568d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:853b2d298e52877fe66c5ecfb54fedfafe29f2541ae623d2592ff20da6a34f60 -size 1185 +oid sha256:4e85d9b3ac4015fa2587ef626587c8b16d8f8a1c841dbf40cfbe01cb02767dfd +size 1211 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin index 181e7d79c..0ec0ec564 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ab6d0d2876e2822e49f66453ff497db192e3d18d233cb124301527d676884fe1 -size 1141 +oid sha256:6c53b1e675d7a063539db06dab42bb209c1d95cf30daf2e02dfd72e47642f0c9 +size 1154 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning1.bin new file mode 100644 index 000000000..e3a24e320 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f800b1b83b7b6d16682b41d6d2ee8392a250716766e641a5e59f59e5397ed6f5 +size 1154 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/LightningTrail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/LightningTrail.trail deleted file mode 100644 index 5e6684844..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/LightningTrail.trail and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin index 42b41e352..16f014796 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:23080611a023b28998cb400c8015bff849ab06bcee7f090f59fe1a10726ee2d5 -size 1151 +oid sha256:1d7bc94928e99caf2e9ca575b1f7eb1651eca26476b6104555ce3d492779d8cb +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin index ffaab5e39..3732ffe7a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ff1990b32cd770dac906aa742fb4dff9b510ec3eba0841d6e0d29b4ce0f28fbf -size 1200 +oid sha256:8100d7b5b4119c04eeecfd020d17a34135019b25fa2a5496189f61d039b8f380 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin index c59807f34..563cf2020 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b599b9606464cc8a8a0d753b09a8626823c97bab27709007a6bf4782861ec13d +oid sha256:9e5cc31e2aab8ed53c1da2bae9a267e2ede7ec59e2837e0b845e1ab136e23a29 size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin index 838d1e157..d04d6215f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4895e8e3d74d359a3f24354c809953d67032f5fdc68ac865e2815a2bbe45e74b +oid sha256:c910f305f1540af566b0306b497d6447a098f3123728f695656b32710c276738 size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin index 64a94d8e7..19b881d54 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a23d45392df0be03277cf46c58d3c0a0b9945f0fed8a48b90e73869fde5375e8 +oid sha256:6430c4b06a14b73b1115f234c7e13c54b3c27760ab31f7f945ce32c93a9e82a9 size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin index 0313ac077..2a7f0e923 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f5b24c71bd7515777821be62cbcfb0e602e795cf5cac7ea117a8f81edae71a8 +oid sha256:09584e7e4ea78c06785371fd359f09d5b256ce6a9419d9a6d81a46992594e44d size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin index bdd39a614..3f3845faa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3d83b19cdaa30e7a5e8d3e564939973d1d0a5b8947caacd2dcc6b9ffab7c2048 +oid sha256:d3802b7e833701e65a5e93b6bb80bc0158926b15bc233ca3fb6cbb9d68feedfa size 1214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin new file mode 100644 index 000000000..957a93373 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70e327c3b8af9cdd5a8a809c3fc68e8465105a5a6d012724a0a09b366f52d707 +size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin index 869955ca3..b470b4188 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:834f86a71e3e16529a70114b7fafd4b891502f550a091bfc230f72a47d4256f7 -size 1238 +oid sha256:f29e7cec579177962fda34974b3b56d4454be4de80e3979553fb81838af99585 +size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin index e0e81d640..ee28b1d82 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:473ce1eeaa239aef55be2dfb73aaaeff61c6c3b566c152bed0c3e2b0a6a8588c -size 1160 +oid sha256:c23f4b98e7e0c473754733ec9f37f8d5d620e7c5ef5fdfaed19fa4c0f207efcc +size 1152 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/AccioSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/AccioSide.bin new file mode 100644 index 000000000..af95a657e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/AccioSide.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a03213a7d590f0eed660ae00c4fe7cd5555235be68b4c34165c8f8cca1d35d1 +size 129 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin index b6ebfcd4a..2fbeeaa5f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8829fbed6a4a80327c0d69dc2f8e8b7ebdab3bd5160e5e99cbc4a6e5881b8958 -size 577 +oid sha256:dcad37c05da7c2bda722a74a9ec3ad4ab559861b556da4b181440fa3c165ef38 +size 714 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin index 4876af65f..fa8eee62b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:35e40c07675c79a0e8b21779d8401a335631589ebb4cc86ee04552bc2386e12b -size 133 +oid sha256:89f8674e0a15e6b7c7866f9666076f5349b15e202a79e0ae47ea7dc93872063f +size 196 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin index 24957383b..f66063e5d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e7392a101f23639921ab9f6c35f1dfdd767d491f94df486b9f07af294447e880 -size 712 +oid sha256:c3f23491a4cf021055b8a80968779ddf3fd29e074a6202413031ca4de0b0015c +size 702 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin index ba832cd89..01be9eb8d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:21bcfe9b297b0aa4f00976963839e2ad0ea29c4a16b0259720b988c7ac44c647 -size 586 +oid sha256:3085b9f245739d5fdc8caa1c20d89120addbb918fc3e946340c670cfe8e19de0 +size 580 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin index 02021ee18..da222fe2b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9d05e13a9fff7a12d10a9c4237cca60f82d7ecc50167aa7b3ac1851e1429b46 -size 333 +oid sha256:2329ed39038a9b733a32c8a6bd004b1d774b3bd8e85b0fef9d09d6d892931391 +size 398 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin index 4c8852970..9779d8a20 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:361c1b52fd37940363fcd6713e1d77401a655af5c27d3b9f4f47ea116cb5379d -size 240 +oid sha256:b43fff3a5f758adbb0fd8bb2f7ddeefe805cb5ddb1ed61e0def98e314e3664ef +size 568 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin index 58a1dac3c..bc9c3873b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd7aa69103b5f95090b66b0d3327b62f6a57155b24c8a6ab3fd38a613955933c -size 631 +oid sha256:aea4f8f9c4b314cdf077e969b416eddc5b792ea0b3e5cbeb4dafb5b45989afda +size 630 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin new file mode 100644 index 000000000..c5ffa3902 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb0d150bb6e87ae13f391e22f1e29a1757113db0ae89ea77cd55e5a60b80ea31 +size 202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin index 3c4af65dd..d8bef51ff 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:52536d034b3795f665a0ba839cc3b517ea1b15a41e740c0c3d22a0b410c7f62c -size 676 +oid sha256:1911312baa29ce9e67c94c3210f561dfbc870a39785b891693a420e49d2c36b3 +size 753 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin new file mode 100644 index 000000000..f829c835c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8c9bcf30d20800a50aec55d63608b8e78b920a28cb4d748c88d85d6c33b8d9c +size 1169 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Bottom_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Bottom_PT.bin new file mode 100644 index 000000000..f79b63444 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Bottom_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2332439c61a824dec1973def42ab2e99b49c2509251e6f7a8a0e65d54de772a4 +size 1209 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Distortion.bin new file mode 100644 index 000000000..3bb16a0e6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Distortion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a18e95f30ac96930888cd8c14cc2ca64519c66f8316bb6d382b640ce6932d0f +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin deleted file mode 100644 index 6c51e6997..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2896c514480d951e5bc37b6344b283581d641850289dd797695b8d93676ecf15 -size 1233 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin new file mode 100644 index 000000000..87782589c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d0457c7ae01b3e01651da8a09c564e366ff6ba2ed20557fad0794f89617e7c6 +size 1111 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin new file mode 100644 index 000000000..436d643f8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc5728c2f4120da79b34554b4c08999485481dad9f67be2f2fb4cb072c1c8367 +size 1111 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Smoke.bin new file mode 100644 index 000000000..2a1f9d141 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1975b4673bdcd7d49336d478bbc2086346c938b4ad1f11790f73418f21ed88ba +size 1236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin index 22f00a9e0..9c64d4de4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c45f0d5f0b8f60679739d2cecad037407c9d7b1f0cd29dc6daed268ba57cf09f +oid sha256:ca31efeaf41e65eed23af11852b4cbaf1d05785b69f38faa40fe3a07de0ba8d5 size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin index 4a0eefa7e..158b437a9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7084eb7f0ec12ce9f2729410bedb2731208aaf70decded64c26321e582a01782 +oid sha256:1b35aa4f62b27b2c8ecc56089616d80eb404f7ff27a1238a3df2badff40242a6 size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin index 6adfb0ecc..b1047309c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c9afef12d8f577cbb68fcc55b589193ff4eaaabc6fc62f1ece038c58531ef551 +oid sha256:f01cda8b225aaeb963742461b8020845b354cfa94f855726aee73581d64775f1 size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Wand_Light.bin new file mode 100644 index 000000000..f57040a53 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Wand_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98b317b192cf09fbc75360aa394f9a99f865fceb1cc8f17c7b63c2411a057c48 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin index 867903a1c..7edd74e3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a53855eb8aca50722e420c0036a2e83bababc5e73e9c86c5062265c78a232b2f -size 1247 +oid sha256:58a884e377b191ef0d355a15006c1d8b2117b7c1cdfe18ebde58e44850793bdc +size 1249 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin index 42d73f8f6..cd2584bb0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8a9c812466b7c10bbf7b4fba98d34eb918ecba87e5390f176d261ee0494f9294 +oid sha256:23b18c353afee35d4db439e8078af06c09812786e5ce6b782a43ebceb25c9a3e size 1175 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin new file mode 100644 index 000000000..0693b7c22 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eaa5ee083d0e81617f3f0b8e0866ea34c8eb45cdd3c6320204e7fe75bdd4ad10 +size 1239 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin deleted file mode 100644 index e9a34808f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6ee4b8b35fa425653e6e70f228d9bdffb3988ff9f4d1edac1176d5a9bae821e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin deleted file mode 100644 index 39d8afaf6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1f2980c52690ed8519c6cbfdf399f6d00b9fa1ec45a68621a9f55ecc653107e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin new file mode 100644 index 000000000..63ce95576 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3abd55a1ceae62c6c9afe8063d9ced6796be2c250a5d1e4a566f5e153c857989 +size 1185 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin index aba1f8d09..5cd7f2af2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b4991be0d9220894a36fcada332cc7a34b24d927f772b025c26c3102fd8d9d32 +oid sha256:f1d764f094e11048ce8bfe3cb26eda1f44fb52e9e5c8ee44acbd3b4b1fed244b size 1177 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin index 8802f26a9..663a8339e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a6eab9501cc6388353ca7157bcf14d74f946a410376d11bd58b9efda9079d7d -size 1196 +oid sha256:2e193683c2e5717020523aab587f765f7ca93678aac0e57cab703d3fa227f40c +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail new file mode 100644 index 000000000..b920a9502 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin new file mode 100644 index 000000000..607ccc710 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ab86dbc400f33329663c7e2109727bf1f2c8e4753526d2613b48fd7c56e8165 +size 1153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin new file mode 100644 index 000000000..194c12dad --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34ba39522d3a69e3687333d492b23305e33c8e397207ce56e7b9064c061e7b7c +size 1225 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin index 87c925ef0..d86586d84 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:816b423153d5f8f7f920cc51d2d9ad207425ffe66b8318c81b552644d2477ba7 +oid sha256:b8744461c1310c73b8e1c7ef7007fd25bc23293e4a9372533834348cecf61e0e size 1214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Transformation_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Transformation_PJ_PT.bin new file mode 100644 index 000000000..4b04ead8a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Transformation_PJ_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5fbf0247cd5de10c64c7050172e285c48ec9f35f670157d83c3ad2f3a6b0932 +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail index 17458e0ca..43f85df93 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Balloon/Ballon_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Balloon/Ballon_Data.xml new file mode 100644 index 000000000..201f5b00a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Balloon/Ballon_Data.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml index 02b0c9025..26fb4c25c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml @@ -298,4 +298,18 @@ SRO + + + T_BRR_RouteBanner_D + T_BRR_RouteBanner_N + T_BRR_RouteBanner_MRO + MRO + + + T_BRR_RouteBanner_D + T_BRR_RouteBanner_N + T_BRR_RouteBanner_MRO + MRO + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/RouteMarker.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/RouteMarker.bin new file mode 100644 index 000000000..5d13f8063 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/RouteMarker.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f50f788682fdc8aeb4d855f605cefd3f602bd1d3f56e8cdbfeca16e1fde02df +size 1284 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml index 59eb99718..fa1f5a812 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml @@ -27,7 +27,7 @@ - + @@ -41,8 +41,8 @@ - - + + @@ -52,17 +52,17 @@ - + - + - - + + @@ -71,13 +71,13 @@ - + - - - + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml index 962f6a07f..987e7291a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml @@ -3,8 +3,8 @@ - - + + @@ -26,7 +26,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin new file mode 100644 index 000000000..ed980f51e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd2794ae2af894c0c15cb4e1efbf1e524ec90766abead97541e7c2a0a1ce742a +size 8541 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx new file mode 100644 index 000000000..30b47c737 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9de500a68c8f09d40c69a82cdf05db3f48eb871029de152317502b4646e5ff7 +size 18412 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin new file mode 100644 index 000000000..049b7ba12 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1935ed996b1be776da79656830bc55f7e11582335b9c7749f63b6305db30e00 +size 13069 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx new file mode 100644 index 000000000..a5c6ff70f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21b3ee737b9760cca123f50da204b6d746748ec0212cd13f8dd2b696cf0eec81 +size 19852 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin new file mode 100644 index 000000000..456a2a235 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9289f21697104ad19f1dc3195922483469183db2546c63b6555fe679cfa7d7f4 +size 13619 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx new file mode 100644 index 000000000..b5ececed3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce99e738936b5dbccf33e455df8a920f653a8c94f14b6776038ae75d8b8e6a84 +size 21388 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin new file mode 100644 index 000000000..353a4164c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7e85f795c8a6d23854cc08cedcf649fc4bd204e46fbcdca7e60ba32b048f954 +size 4563 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx new file mode 100644 index 000000000..6a7e37b87 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:913d95acf394b422a7d19f08bc65d9ebdcab9006cc167d618da76dd645339d06 +size 16748 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin new file mode 100644 index 000000000..65aae3ecd --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56089733703340e978eec534ed9f679dc0460593ff5563fe1230c7ff08bbec87 +size 13861 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx new file mode 100644 index 000000000..651e544e8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9ede2a2a8189c5d94ca853d709f02e2cc85cc6bbcfb1dad3bfbce5b1bae495c +size 17996 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin new file mode 100644 index 000000000..a5347de34 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16b144696f871b04200a9520b9f29561d786032389d51d04bc3764b1306def36 +size 228986 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx new file mode 100644 index 000000000..be0e5065d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8709c099f2c3928cc3c4b035a2a8430ba3fe2b6ea2e90b8abfbea2669fa4199e +size 101660 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin new file mode 100644 index 000000000..e3a6c1ca3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a03e5de50bd0767a2672ce94b5c8842a44366649cb023ade8ae6093de914026 +size 232850 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx new file mode 100644 index 000000000..c03a2cd0a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61060d71edfea8542887e63a8596b5c234b8248ae0f2d95138d69db20234e107 +size 101692 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin new file mode 100644 index 000000000..16d5e9ebe --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8438f64cfbd547747628d535104744089329b331d55847e43a1e1db0d8adcae5 +size 177750 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx new file mode 100644 index 000000000..20286a501 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b5ffda651a2618f5e76c6a68d7dc426aa70d6f5d8d5cb65b88540785c041b7c +size 111356 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin new file mode 100644 index 000000000..807626e8e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cdab8dac77590b30dfa0e8d4c6df0e9d83691bb327046128dca898d1a91bd67 +size 109338 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx new file mode 100644 index 000000000..e5e34879e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ab5abb22d1c57179d184d1524c79dfa58177fa63b175c02e60344fc4de0c288 +size 60588 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin new file mode 100644 index 000000000..831728739 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:526547f85e81657d8c67b5971ac4b2909be82fb37b2ee43b7e9864b77f5168fc +size 227040 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx new file mode 100644 index 000000000..1f642d24b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55055221c074a4d4fa8079db84e93534058b8fb2c998ac340bbe9cf3c9644d8c +size 65772 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin new file mode 100644 index 000000000..dd4513f57 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c48694d504b2bb83c5c2944a75451e28a7b4dfa679a2f10c4cbc65f94616335 +size 43019 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx new file mode 100644 index 000000000..97c0b9c68 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff456145123f54aea837fc1fafed7fe64000436331fb77338edc101191ac4953 +size 37756 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin new file mode 100644 index 000000000..88ba3ba81 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8c661ace4e2e2d18bd6c306b7740c11ff0304f4b47fe22716194edb551c3295 +size 466591 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx new file mode 100644 index 000000000..7bf1ce305 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:970139201d8a86cb0bd7351a95d6aa7c485c6b9f5b3f75a40552c03620f1f528 +size 160140 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin new file mode 100644 index 000000000..a5f524e6f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92c12199e43b1845295e58ddf4f7317b33589e243cb34d242fd29746fad886d1 +size 93343 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx new file mode 100644 index 000000000..17e0dbdbe --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12ba8b78abfa8a027487afa942edd5d9b3634975f4106051e159d9687a8a7a4a +size 39020 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml index 6fbd81606..ebf93bda8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml @@ -88,7 +88,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml index 2ed3d5faa..0867dd322 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml @@ -30,7 +30,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml index 5a984f2ad..f26ec6f27 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml @@ -30,7 +30,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml index b4820fafe..9818428f0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml @@ -61,7 +61,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml index f28cb4a5d..d4369e505 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml @@ -88,7 +88,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student_Cheer.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student_Cheer.bin new file mode 100644 index 000000000..19ef01103 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student_Cheer.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:944f4464e35460d0fbff51756100e10fcb123fc0ec2e5070a3f9455b3438e91e +size 20368598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student_Cheer.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student_Cheer.fbx new file mode 100644 index 000000000..c0917f7c2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student_Cheer.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19180b3452b4c31315754e7265709a2e3ccab4880727514a72fd85c8cac3ee38 +size 14676460 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml index 63c3bc8be..20b532718 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml @@ -32,7 +32,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric_Cheer.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric_Cheer.bin new file mode 100644 index 000000000..360a854b8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric_Cheer.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dab722b048a6cf2b3a234b656e942b687e34843ddc1c57526eca58269aed6b37 +size 17796446 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric_Cheer.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric_Cheer.fbx new file mode 100644 index 000000000..8dfd72dc3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric_Cheer.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7993487aed3bd5fef0be304b038f269882edb0f0f62f23c6247b06eac9de17a +size 12152828 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml index 9ba641dbd..7e0ac1d9e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml @@ -87,7 +87,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml index d7f49c880..6d3f40e55 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml @@ -155,7 +155,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_CutScene.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_CutScene.bin new file mode 100644 index 000000000..cc674fa3f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_CutScene.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6f9d9727ac5db16ff3c403284d56de45ab28013c57cf3fabd45f48d30b3dd39 +size 6057600 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_CutScene.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_CutScene.fbx new file mode 100644 index 000000000..b4d4ecb94 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_CutScene.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53576088eb8fae1f57be5347295004465a87e3fbfe015506e91ae65fbb9b1857 +size 3611884 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml index 9883e7257..f347eb6e8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml @@ -184,7 +184,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml index cb886a8e6..2a8ae173b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml @@ -30,7 +30,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai_Cheer.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai_Cheer.bin new file mode 100644 index 000000000..d37e7ef2b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai_Cheer.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86b8913f723b3adac71fadf774b4853f22db5d1448701668ceb81bc56a920bf4 +size 20996638 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai_Cheer.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai_Cheer.fbx new file mode 100644 index 000000000..44795e3d5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai_Cheer.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:893465eecb0e535f411b41c55332a6fbd99def9bcb0c30ff163ce013bce90dfd +size 14624892 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml index aa02c7caf..b605ef655 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml @@ -30,7 +30,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack_Cheer.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack_Cheer.bin new file mode 100644 index 000000000..303552c5e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack_Cheer.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cf38f28ce1684b092baed0751f9011bcd8bc0a0a64f037b4113e119228f5a67 +size 22433365 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack_Cheer.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack_Cheer.fbx new file mode 100644 index 000000000..3c09b981c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack_Cheer.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e450f01734845584d0331c36508818c28bf604aae1e113643d4bd892d172251 +size 14730860 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml index 59f0e3547..f17406835 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml @@ -1,5 +1,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml index 6134a7c8b..e84e860b1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml @@ -173,7 +173,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin new file mode 100644 index 000000000..ff61d9727 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09b595a51013f6246e4673e8e944728748cbdbf50b3eda87dd2d5eef2d2e5ba7 +size 577808 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx new file mode 100644 index 000000000..61a900666 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f2ff4c2214e02c8c9d2e3cb7d6752f605ac52de8b286d63f8339f6c0dc8a131 +size 280284 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_D.dds new file mode 100644 index 000000000..014cccbc6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_MRO.dds new file mode 100644 index 000000000..e1dedf98d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_N.dds new file mode 100644 index 000000000..04286fe55 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BRR_RouteBanner_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin new file mode 100644 index 000000000..ff180a747 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50c2c25a297be029e4d5fbe7eabd5ccad5c668c9ed5a71749b7db348ae1c1616 +size 341534 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl index 85b2e7e4f..0f1a89f23 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl @@ -64,6 +64,8 @@ cbuffer AnimCB : register(b0) float UpperBlend; int SecondAnimIndex; float SecondAnimTime; + + row_major float4x4 WorldMatrix; }; static const float EPS = 1e-6f; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl index d639ccac5..c24126813 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -43,6 +43,9 @@ cbuffer AnimCB : register(b0) float UpperBlend; int SecondAnimIndex; float SecondAnimTime; + + row_major float4x4 WorldMatrix; + }; [numthreads(256, 1, 1)] @@ -53,20 +56,23 @@ void CS_MAIN(uint3 DTid : SV_DispatchThreadID) return; uint global = g_BoneRemap[local]; - - float4x4 combined = g_LocalMatIn[global]; + + + float4x4 localMat = g_LocalMatIn[global]; + float4x4 modelCombined = localMat; int p = g_ParentBuffer[global]; while (p != -1) { - combined = mul(combined, g_LocalMatIn[p]); + modelCombined = mul(modelCombined, g_LocalMatIn[p]); p = g_ParentBuffer[p]; } - combined = mul(combined, PreTransformMatrix); - - g_LocalPosOutput[local].Local = g_LocalMatIn[global]; - g_LocalPosOutput[local].LocalCombined = combined; - g_LocalPosOutput[local].Combined = combined; + modelCombined = mul(modelCombined, PreTransformMatrix); + float4x4 worldCombined = mul(modelCombined, WorldMatrix); + + g_LocalPosOutput[local].Local = localMat; + g_LocalPosOutput[local].LocalCombined = modelCombined; + g_LocalPosOutput[local].Combined = worldCombined; } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl index fd31f29b0..227440d7d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl @@ -77,13 +77,13 @@ void CS_MAIN( uint3 DispatchThreadID : SV_DispatchThreadID) { float visibility = 1.f; + // Directional if (0.f < length(g_LightBuffer[i].vDirection)) { lightDir = normalize(g_LightBuffer[i].vDirection); visibility = ComputeShadowVisibility(vWorldPosition); - } - else + else // Point { lightDir = vWorldPosition - g_LightBuffer[i].vPosition.xyz; visibility = ComputePointLightVisible(lightDir, g_LightBuffer[i].fRange); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index b4f47f4c3..d76e4d6de 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -93,7 +93,7 @@ float g_fWinSizeY; /* 소프트 이펙트 */ bool g_isNonSoftEffect; - +bool g_isScreenFX; /* 디퓨즈 */ float4 g_vColor; float g_fDiffuseAlpha; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl index 58536a218..34ff9c9a9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl @@ -235,7 +235,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_BLOOM(); } - pass Shadow + pass Shadow // 3 { SetRasterizerState(RS_Shadow); SetDepthStencilState(DSS_ShadowWrite, 0); @@ -243,6 +243,16 @@ technique11 DefaultTechnique VertexShader = compile vs_5_0 VS_SHADOW(); PixelShader = compile ps_5_0 PS_SHADOW(); } + + pass NonCullModel // 4 + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + + PixelShader = compile ps_5_0 PS_MAIN(); + } } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_0.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_0.dds new file mode 100644 index 000000000..4513c1874 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_0.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_1.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_1.dds new file mode 100644 index 000000000..cd70f3b5f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_1.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_2.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_2.dds new file mode 100644 index 000000000..0fc50c2fd Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_2.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_3.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_3.dds new file mode 100644 index 000000000..f59421ead Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_3.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds new file mode 100644 index 000000000..0ccdae006 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds new file mode 100644 index 000000000..63472a38f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 2b4ed975e..531f2180e 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -185,6 +185,7 @@ call Update_Shaders.bat + @@ -200,6 +201,7 @@ call Update_Shaders.bat + @@ -271,6 +273,8 @@ call Update_Shaders.bat + + @@ -468,6 +472,7 @@ call Update_Shaders.bat + @@ -484,6 +489,7 @@ call Update_Shaders.bat + @@ -556,6 +562,8 @@ call Update_Shaders.bat + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index ca3a9b068..df0e69f18 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -784,6 +784,18 @@ {b8e8e46c-ec9f-4a89-a970-c9de2ac3f521} + + {6c70f152-f512-4622-b6ef-27931092deed} + + + {546b1677-5dbb-45dd-a152-5b216655e51f} + + + {d84324ea-6303-442d-8f00-ed6555e6b02b} + + + {bde6e952-c6ee-4136-8559-99392c01645e} + @@ -1587,6 +1599,18 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit + + 02.GameObjects\Env\03.MapElement\Balloon + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy + + + 50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + @@ -2398,6 +2422,18 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit + + 02.GameObjects\Env\03.MapElement\Balloon + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy + + + 50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + diff --git a/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp b/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp index ce72872dd..8caae2e68 100644 --- a/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp @@ -8,6 +8,7 @@ #include "Broom_Record.h" #include "Broom_Exit.h" #include "broom_Trophy.h" +#include "Broom_TargetGate2D.h" CBroom_Panel::CBroom_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -49,7 +50,7 @@ HRESULT CBroom_Panel::Initialize(void* pArg) return E_FAIL; } - Visible(false); + Visible(true); ElementAllVisible(true); return S_OK; } @@ -154,6 +155,12 @@ HRESULT CBroom_Panel::Ready_Element(void* pArg) return E_FAIL; } Add_Element(TEXT("Broom_Trophy"), m_pBroom_Trophy); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate2D)))) + { + return E_FAIL; + } + Add_Element(TEXT("Broom_TargetGate2D"), m_pBroom_TargetGate2D); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Broom_TargetGate2D.cpp b/Jusin154_Team3D/Editor/Private/Broom_TargetGate2D.cpp new file mode 100644 index 000000000..2bba4f634 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Broom_TargetGate2D.cpp @@ -0,0 +1,221 @@ +#include "pch.h" +#include "Broom_TargetGate2D.h" +#include "GameInstance.h" + +CBroom_TargetGate2D::CBroom_TargetGate2D(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CBroom_TargetGate2D::CBroom_TargetGate2D(const CBroom_TargetGate2D& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CBroom_TargetGate2D::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CBroom_TargetGate2D::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 0.f; + Desc.fY = -140.f; + Desc.fSizeX = 45.f; + Desc.fSizeY = 45.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 10.f; + return S_OK; +} + +void CBroom_TargetGate2D::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CBroom_TargetGate2D::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + m_fTime += fTimeDelta * m_fTimeMult; + + __super::Update(fTimeDelta); +} + +void CBroom_TargetGate2D::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CBroom_TargetGate2D::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CBroom_TargetGate2D::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CBroom_TargetGate2D::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + return S_OK; +} + +HRESULT CBroom_TargetGate2D::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Map_RaceGate"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + return S_OK; +} + +CBroom_TargetGate2D* CBroom_TargetGate2D::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBroom_TargetGate2D* pInstance = new CBroom_TargetGate2D(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBroom_TargetGate2D"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CBroom_TargetGate2D::Clone(void* pArg, CGameObject* pOwner) +{ + CBroom_TargetGate2D* pInstance = new CBroom_TargetGate2D(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBroom_TargetGate2D"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBroom_TargetGate2D::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CBroom_TargetGate2D::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp index 910a278d6..cc40ef351 100644 --- a/Jusin154_Team3D/Editor/Private/Decendo.cpp +++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp @@ -48,7 +48,7 @@ HRESULT CDecendo::Initialize(void* pArg) SAFE_ADDREF(m_pProjectile_Blur); SAFE_ADDREF(m_pProjectile); - + \ m_fDuration = 3.5f; return S_OK; @@ -75,7 +75,6 @@ void CDecendo::Update(_float fTimeDelta) // 선속도 m_pProjectile_Blur->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); m_pProjectile->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); - //Up벡터 방향으로 파이만큼 이동 if (m_fRotateAccTime > XM_2PI) @@ -86,7 +85,6 @@ void CDecendo::Update(_float fTimeDelta) m_pProjectile_Blur->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); - } void CDecendo::Late_Update(_float fTimeDelta) @@ -94,7 +92,7 @@ void CDecendo::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); + Get_PartObject()->Oneside_Rope_Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); @@ -124,12 +122,15 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) CPartObject* pCircle0 = Get_PartObject(); CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + CPartObject* pDecendo_Wand_Line = Get_PartObject("Decendo_Wand_Line"); pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pDecendo_Wand_Line->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pCircle0->Set_Visible(true); pWandLight->Set_Visible(true); + pDecendo_Wand_Line->Set_Visible(true); /* 초기 위치 저장 */ _vector vStartPos = m_pOwner->Get_WorldPostion(); @@ -143,6 +144,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 비지블 */ m_pProjectile->Set_Visible(true); m_pProjectile_Blur->Set_Visible(true); + //m_pProjectile_Fire->Set_Visible(true); /*트레일 초기화 */ Get_PartObject()->Set_Visible(true); @@ -250,39 +252,48 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); - _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component(); + _vector vFootPos = {}; + _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - for (auto& pPair : m_PartObjects) + if (pCCT != nullptr) { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + vFootPos = pCCT->Get_FootPosition(); } + + CPartObject* pDecendo_Rock_PT = Get_PartObject("Decendo_Rock_PT"); + CPartObject* pDecendo_Red_Blur = Get_PartObject("Decendo_Red_Blur"); + CPartObject* pDecendo_Down = Get_PartObject("Decendo_Down"); + CPartObject* pDecendo_Ring = Get_PartObject("Decendo_Ring"); + CPartObject* pDecendo_Smoke = Get_PartObject("Decendo_Smoke"); + + pDecendo_Rock_PT->Set_Visible(true); + pDecendo_Rock_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Red_Blur->Set_Visible(true); + pDecendo_Red_Blur->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + pDecendo_Down->Set_Visible(true); + pDecendo_Down->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + pDecendo_Ring->Set_Visible(true); + pDecendo_Ring->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Smoke->Set_Visible(true); + pDecendo_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + + + m_pProjectile_Blur->Set_Visible(false); m_pProjectile->Set_Visible(false); - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - CPartObject* pCircle0 = Get_PartObject(); - CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); - - - pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - - - Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject("Decendo_Smoke")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); @@ -296,7 +307,6 @@ void CDecendo::Free() SAFE_RELEASE(m_pProjectile_Blur); SAFE_RELEASE(m_pProjectile); - } #ifdef _DEBUG void CDecendo::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/DecendoSide.cpp b/Jusin154_Team3D/Editor/Private/DecendoSide.cpp index 790d32939..f2f1f9c4b 100644 --- a/Jusin154_Team3D/Editor/Private/DecendoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/DecendoSide.cpp @@ -40,22 +40,21 @@ HRESULT CDecendoSide::Initialize(void* pArg) m_wstrEffectName = L"DecendoSide"; m_pWandLight = Get_PartObject("Wand_Light_R"); + m_pWand_Fire = Get_PartObject("Wand_Fire"); + m_pWandTrail = Get_PartObject(); + SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWand_Fire); m_fDuration = 2.f; - m_Events.emplace(0.6f, [&]() { - CWand* pWand = static_cast(m_pOwner); + m_Events.emplace(0.8f, [&]() { - if (pWand == nullptr) - return; - - m_isTrailEnd = true; - - XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + m_pWandTrail->SetDissolve(true); + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); }); return S_OK; @@ -85,7 +84,7 @@ void CDecendoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); - m_pWandTrail->Trail_Update(TrailMat, fTimeDelta); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); } @@ -179,6 +178,7 @@ void CDecendoSide::Free() Safe_Release(m_pWandLight); Safe_Release(m_pWandTrail); + Safe_Release(m_pWand_Fire); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp b/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp index 919fc4d6a..ec37f469a 100644 --- a/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp +++ b/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp @@ -40,7 +40,7 @@ HRESULT CDialogue_Canvas::Initialize(void* pArg) { return E_FAIL; } - Visible(true); + Visible(false); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index b0a9093d7..717c10efb 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -32,6 +32,11 @@ HRESULT CEditEffect::Initialize(void* pArg) m_bVisible = false; + + XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity()); + XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f)); + + return S_OK; } @@ -524,7 +529,7 @@ void CEditEffect::Describe_Entity() GUI::Checkbox("NonSoftEffect", &m_EffectInfo.isNonSoftEffect); - + GUI::Checkbox("ScreenFX", &m_EffectInfo.isScreenFX); GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index d974af399..7bb4a11fe 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -867,19 +867,31 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; - } + if (m_EffectInfo.isScreenFX == false) + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { - return E_FAIL; - } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { - return E_FAIL; + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_OrthographicMatrix))) { + return E_FAIL; + } } _float4x4 WorldInv = {}; @@ -1205,9 +1217,11 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_isScreenFX", &m_EffectInfo.isScreenFX, sizeof(_bool)))) { + return E_FAIL; + } - if (m_pDiffuse_TextureCom != nullptr) { if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) { diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index a2de42e80..1b9428398 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -16,6 +16,8 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" +#include "Stupefy.h" +#include "StupefySide.h" #include "Troll_Rush_Hit.h" @@ -307,6 +309,24 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefy* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefySide* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp index c453da583..49eda1b0f 100644 --- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp +++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp @@ -48,7 +48,7 @@ HRESULT CGamePlay_Canvas::Initialize(void* pArg) { return E_FAIL; } - Visible(false); + Visible(true); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/InstancedProp.cpp b/Jusin154_Team3D/Editor/Private/InstancedProp.cpp index 54cc13b07..15eacef55 100644 --- a/Jusin154_Team3D/Editor/Private/InstancedProp.cpp +++ b/Jusin154_Team3D/Editor/Private/InstancedProp.cpp @@ -32,8 +32,8 @@ void CInstancedProp::Update(_float fTimeDelta) m_pVIBufferInstanceCom->Add_Instance(m_pTransformCom->Get_XMWorldMatrix()); m_pVIBufferInstanceCom->Update_Instance(); - m_vRotation.y = m_pGameInstance->Real_Random_Float(-360.f, 360.f); - m_vScale.y = m_pGameInstance->Random_Float(0.8f, 1.2f); + //m_vRotation.y = m_pGameInstance->Real_Random_Float(-360.f, 360.f); + //m_vScale.y = m_pGameInstance->Random_Float(0.8f, 1.2f); _float3 vPosition = {}; if (m_pGameInstance->isPicking(&vPosition)) @@ -70,7 +70,7 @@ HRESULT CInstancedProp::Render() if(FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i))) return E_FAIL; - if (FAILED(m_pShaderCom->Begin(0))) + if (FAILED(m_pShaderCom->Begin(m_iShaderPassIndex))) return E_FAIL; m_pVIBufferInstanceCom->Render(i); @@ -94,7 +94,7 @@ HRESULT CInstancedProp::Initialize(void* pArg) m_bEditMode = pDesc->bEditMode; m_isShake = pDesc->isShake; m_strPrototypeTag = pDesc->strPrototypeTag; - + m_iShaderPassIndex = pDesc->iShaderPassIndex; m_iInstanceIndex = 0; if (FAILED(Ready_Components(pArg))) diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 9c5261843..4105053ce 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -88,8 +88,8 @@ HRESULT CLevel_EffectViewer::Initialize() // return E_FAIL; //} - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) - // return E_FAIL; +/* if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + return E_FAIL;*/ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) // return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index cfb950353..ce750c002 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -64,13 +64,13 @@ HRESULT CLevel_MapViewer::Initialize() return E_FAIL; } - //if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) { - // return E_FAIL; - //} + if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) { + return E_FAIL; + } - //if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) { - // return E_FAIL; - //} + if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) { + return E_FAIL; + } //if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) { // return E_FAIL; @@ -92,8 +92,8 @@ HRESULT CLevel_MapViewer::Initialize() return E_FAIL; } - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); - //m_pGameInstance->Setting_Volumetirc(0.f, 0.003f, 0.56f, 1.f, 0.031f); + //m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + m_pGameInstance->Setting_Volumetirc(0.f, 0.003f, 0.56f, 1.f, 0.031f); return S_OK; } @@ -148,15 +148,15 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) CTerrain::TERRAIN_DESC Desc = {}; ///* Hogsmeade */ - //Desc.isEdit = false; - //Desc.iAlphaSizeX = 2048; - //Desc.iAlphaSizeY = 2048; - //Desc.vPosition = _float3(-194, 18.5f, -153.f); - //Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; - //Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; - //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) - // return E_FAIL; + Desc.isEdit = false; + Desc.iAlphaSizeX = 2048; + Desc.iAlphaSizeY = 2048; + Desc.vPosition = _float3(-194, 18.5f, -153.f); + Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; + Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; + Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) + return E_FAIL; /* Hogwart */ Desc.isEdit = false; @@ -374,6 +374,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag) /* Oak_Tree */ Desc.bEditMode = false; Desc.isShake = true; + Desc.iShaderPassIndex = 0; Desc.vRadius = _float2(0.015f, 0.03f); Desc.vSpeed = _float2(0.3f, 1.f); Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"; @@ -633,6 +634,16 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) return E_FAIL; + Desc.bEditMode = true; + Desc.isShake = false; + Desc.iShaderPassIndex = 4; + Desc.vRadius = _float2(0.f, 0.f); + Desc.vSpeed = _float2(0.f, 0.f); + Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"; + Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/RouteMarker.bin"; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) + return E_FAIL; + CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {}; /* LightPost */ diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp index e415244e8..a46f0840b 100644 --- a/Jusin154_Team3D/Editor/Private/Levioso.cpp +++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp @@ -41,24 +41,14 @@ HRESULT CLevioso::Initialize(void* pArg) if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso"))) return E_FAIL; - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -69,7 +59,7 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -82,19 +72,8 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -103,11 +82,12 @@ void CLevioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); @@ -131,19 +111,21 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEditEffect* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEditEffect* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEditEffect* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEditEffect* pWandLight = Get_PartObject("Wand_Light_P"); + CEditEffect* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); - + pSpread_Circle->Set_Visible(true); m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); @@ -170,15 +152,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -234,17 +207,19 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CEditEffect* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEditEffect* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); @@ -253,50 +228,38 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vFootPos = pHitCCT->Get_FootPosition(); CEditEffect* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEditEffect* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEditEffect* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEditEffect* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); + CEditEffect* pLevioso_Spline = Get_PartObject("Levioso_Spline"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); } - //Get_PartObject("Levioso_Tornado") - //CEditEffect* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CLevioso::Describe_Entity() { - GUI::Begin("LEVIOSO"); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp index aa618c7d4..c6f5a29f3 100644 --- a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp @@ -46,7 +46,12 @@ HRESULT CLeviosoSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); - m_fDuration = 1.f; + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); return S_OK; } @@ -74,7 +79,7 @@ void CLeviosoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_pWandTrail->Get_Component()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix()); + m_pWandTrail->Oneside_Rope_Trail_Update(pWand->Get_WorldMatrix() , fTimeDelta); } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index e03420d5d..5ca57d768 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -135,6 +135,7 @@ #include "Broom_Record.h" #include "Broom_Exit.h" #include "broom_Trophy.h" +#include "Broom_TargetGate2D.h" #include "Ride_Panel.h" #include "Ride_Info_Key.h" @@ -182,6 +183,7 @@ #include "MapElement_Chest_Lid.h" #include "LightSpawner.h" #include "RaceRing.h" +#include "MapElement_Balloon.h" #pragma endregion @@ -206,6 +208,8 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" +#include "Stupefy.h" +#include "StupefySide.h" #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" @@ -1240,6 +1244,10 @@ HRESULT CLoader::Loading_For_UI() { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_TargetGate2D::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRide_Panel::Create(m_pDevice, m_pContext)))) { @@ -1980,6 +1988,14 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefySide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_FireBall::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2577,6 +2593,8 @@ future*> CLoader::Deferred_ModelLoad(MODEL eType, const HRESULT CLoader::Loading_For_MapViewer() { +#pragma region EFFECTS + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::MAP), CEditEffect::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2796,6 +2814,7 @@ HRESULT CLoader::Loading_For_MapViewer() return S_OK; }); +#pragma endregion #pragma region PLAYER_AND_RANROK //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"), @@ -2890,6 +2909,23 @@ HRESULT CLoader::Loading_For_MapViewer() return E_FAIL; } + /* Balloon_Diffuse */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Diffuse"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_D_%d.dds"), 4)))) { + return E_FAIL; + } + + /* Balloon_Normal */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_Normal"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_N.dds"), 0)))) { + return E_FAIL; + } + + /* Balloon_MRO */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Balloon_MRO"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Balloon/T_FloatingBalloonTarget_MRO.dds"), 0)))) { + return E_FAIL; + } /* Terrain_Diffuse */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"), @@ -3079,7 +3115,10 @@ HRESULT CLoader::Loading_For_MapViewer() CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; - + /* For.Prototype_Component_FloatingBalloon */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_FloatingBalloon"), + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.fbx")))) + return E_FAIL; /* For.Prototype_Component_Hogwart_Lake */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"), @@ -3385,7 +3424,7 @@ _bool bLoadHogsmeade = true; } #pragma region HOGWART -_bool bHogwartLoad = { false }; +_bool bHogwartLoad = { true }; /* Hogwart LOD */ if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD", @@ -3610,7 +3649,7 @@ if(bHogwartLoad) #pragma region DUNGEON -_bool bDungeonLoad = { true }; +_bool bDungeonLoad = { false }; if (bDungeonLoad) { @@ -4097,7 +4136,7 @@ if(isLoad_Map) #pragma region INSTANCE_MODEL CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {}; - InstanceDesc.iNum = 20; + InstanceDesc.iNum = 50; ///* For.Prototype_Component_VIBuffer_Model_Instancel */ //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"), @@ -4255,6 +4294,12 @@ if(isLoad_Map) "../Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) return E_FAIL; + + /* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"), + CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, &InstanceDesc, + "../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) + return E_FAIL; #pragma endregion // INSTANCE_MODEL /* For.Prototype_Component_VIBuffer_Box */ @@ -4313,6 +4358,10 @@ if(isLoad_Map) if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Light::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_MapElement_Light */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Balloon::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_Terrain */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index f4fbfdb11..05a245564 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -69,11 +69,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() } vector*>> futures = {}; - /*futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "C:/MeshTable\\Game\\RiggedObjects\\Characters\\Creatures\\Goblins\\OneOff\\T4Goblin_Melee_INST_A\\SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") - ));*/ - #pragma region MONSTER futures.emplace_back(Deferred_ModelLoad( diff --git a/Jusin154_Team3D/Editor/Private/MainLight.cpp b/Jusin154_Team3D/Editor/Private/MainLight.cpp index 6917fe8fe..1974bf8ed 100644 --- a/Jusin154_Team3D/Editor/Private/MainLight.cpp +++ b/Jusin154_Team3D/Editor/Private/MainLight.cpp @@ -143,10 +143,13 @@ HRESULT CMainLight::Ready_Components() LightDesc.iLevel = NEXT_LEVEL; #ifdef gimch + //LightDesc.vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); + //LightDesc.vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); LightDesc.vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); - LightDesc.vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); + LightDesc.vAmbient = _float4(0.8f, 0.8f, 0.8f, 0.0f); #endif // gimch + /* Com_Light*/ if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &LightDesc))) { diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp new file mode 100644 index 000000000..8749a3521 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp @@ -0,0 +1,345 @@ +#include "pch.h" +#include "MapElement_Balloon.h" + +#include "GameInstance.h" + +CMapElement_Balloon::CMapElement_Balloon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMapElement{ pDevice, pContext } +{ +} + +CMapElement_Balloon::CMapElement_Balloon(const CMapElement_Balloon& rhs) + : CMapElement(rhs) + , m_fUsingSurfaceParams(rhs.m_fUsingSurfaceParams) +{ +} + +HRESULT CMapElement_Balloon::Initialize_Prototype() +{ + m_fUsingSurfaceParams = MRO_PARAMETER; + + return S_OK; +} + +HRESULT CMapElement_Balloon::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + m_isRotate = false; + m_fTimeAcc = 0.f; + +#ifdef _DEBUG + if (nullptr != pArg) + { + BALLOON_DESC* pDesc = static_cast(pArg); + m_isFloating = pDesc->isFloating; + m_iDiffuseIndex = pDesc->iDiffuseIndex; + m_vPosition = pDesc->vPosition; + m_vScale = pDesc->vScale; + m_vRotation = pDesc->vRotation; + } + else + { + m_isFloating = false; + m_iDiffuseIndex = 0; + m_vPosition = _float3(0.f, 0.f, 0.f); + m_vScale = _float3(0.f, 0.f, 0.f); + m_vRotation = _float3(1.f, 1.f, 1.f); + } + + memcpy(&m_vOriginPosition, &m_vPosition, sizeof(_float3)); + + m_bSelected = false; + + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + m_pTransformCom->Set_Rotation(m_vRotation); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + +#endif // _DEBUG + + return S_OK; +} + +void CMapElement_Balloon::Priority_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + m_bSelected = false; +#endif +} + +void CMapElement_Balloon::Update(_float fTimeDelta) +{ + m_fTimeAcc += fTimeDelta; + + if (m_isFloating) + Floating(); + + if (m_isRotate) + Rotation(); +} + +void CMapElement_Balloon::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +} + +HRESULT CMapElement_Balloon::Render() +{ + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + if (m_bSelected) + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + } + + if (FAILED(m_pModelComs[0]->Render(0))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CMapElement_Balloon::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + CModel* pModel = { nullptr }; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_FloatingBalloon"), + reinterpret_cast(&pModel)))) + return E_FAIL; + + m_pModelComs.push_back(pModel); + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_Diffuse"), + reinterpret_cast(&m_pDiffuseTextureCom)))) + return E_FAIL; + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_Normal"), + reinterpret_cast(&m_pNormalTextureCom)))) + return E_FAIL; + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Balloon_MRO"), + reinterpret_cast(&m_pMROTextureCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CMapElement_Balloon::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pDiffuseTextureCom->Get_SRV(m_iDiffuseIndex)))) + return E_FAIL; + if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) + return E_FAIL; + if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pMROTextureCom->Get_SRV(0)))) + return E_FAIL; + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +void CMapElement_Balloon::Rotation() +{ + +} + +void CMapElement_Balloon::Floating() +{ + _float3 vPosition = m_vOriginPosition; + + vPosition.y = m_vOriginPosition.y + sinf(m_fTimeAcc); + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f)); +} + +CMapElement_Balloon* CMapElement_Balloon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMapElement_Balloon* pInstance = new CMapElement_Balloon(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMapElement_Balloon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMapElement_Balloon::Clone(void* pArg, CGameObject* pOwner) +{ + CMapElement_Balloon* pInstance = new CMapElement_Balloon(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMapElement_Balloon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapElement_Balloon::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + for (auto& pModel : m_pModelComs) + SAFE_RELEASE(pModel); + + SAFE_RELEASE(m_pDiffuseTextureCom); + SAFE_RELEASE(m_pNormalTextureCom); + SAFE_RELEASE(m_pMROTextureCom); +} + +void CMapElement_Balloon::Describe_Entity() +{ + if (m_bDead) + return; + if (nullptr == m_pGameInstance) + return; + + GUI::Checkbox("isMove", &m_isFloating); + GUI::Checkbox("isRotate", &m_isRotate); + GUI::InputInt("School Index", (_int*)(&m_iDiffuseIndex)); + + m_iDiffuseIndex = max(m_iDiffuseIndex, 0); + m_iDiffuseIndex = min((_int)m_iDiffuseIndex, 3); + + if (GUI::Button("PosCopy")) + { + XMStoreFloat3(&m_vOriginPosition, m_pTransformCom->Get_State(STATE::POSITION)); + } + + m_iLodIndex = max(0, m_iLodIndex); + m_iLodIndex = min(m_iMaxLodLevel, m_iLodIndex); + + _float3 vMove = {}; + GUI::InputFloat("Right", &vMove.x, 0.05f, 0.1f); + GUI::InputFloat("Up", &vMove.y, 0.05f, 0.1f); + GUI::InputFloat("Look", &vMove.z, 0.05f, 0.1f); + + m_pTransformCom->Move_Right(vMove.x); + m_pTransformCom->Move_Up(vMove.y); + m_pTransformCom->Move_Look(vMove.z); + + XMStoreFloat3(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION)); + + GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f); + GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f); + GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + + + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + _float3 vPosition = {}; + if (m_pGameInstance->isPicking(&vPosition)) + { + memcpy(&m_vPosition, &vPosition, sizeof(_float3)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + } + } + + GUI::Text("----- Rotation ----"); + GUI::InputFloat("X##Rotation", &m_vRotation.x, 1.f, 15.f); + GUI::InputFloat("Y##Rotation", &m_vRotation.y, 1.f, 15.f); + GUI::InputFloat("Z##Rotation", &m_vRotation.z, 1.f, 15.f); + + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + + GUI::Text("----- Scale ----"); + GUI::InputFloat("X##Scale", &m_vScale.x, 0.05f, 0.1f); + GUI::InputFloat("Y##Scale", &m_vScale.y, 0.05f, 0.1f); + GUI::InputFloat("Z##Scale", &m_vScale.z, 0.05f, 0.1f); + + m_vScale.x = max(0.01f, m_vScale.x); + m_vScale.y = max(0.01f, m_vScale.y); + m_vScale.z = max(0.01f, m_vScale.z); + + m_pTransformCom->Set_Scale(m_vScale); + + if (GUI::Button("Delete")) + m_bDead = true; + + m_bSelected = true; +} + +HRESULT CMapElement_Balloon::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root) +{ + tinyxml2::XMLElement* object = doc.NewElement("Object"); + object->SetAttribute("Type", 0); + root->InsertEndChild(object); + + +#pragma region TRANSFORM + _float3 vPosition = {}; + XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION)); + _float3 vScale = m_pTransformCom->Get_Scale(); + _float3 vRotation = m_pTransformCom->Get_Rotation(); + + tinyxml2::XMLElement* Position = doc.NewElement("Position"); + Position->SetAttribute("x", vPosition.x); + Position->SetAttribute("y", vPosition.y); + Position->SetAttribute("z", vPosition.z); + object->InsertEndChild(Position); + + tinyxml2::XMLElement* Scale = doc.NewElement("Scale"); + Scale->SetAttribute("x", vScale.x); + Scale->SetAttribute("y", vScale.y); + Scale->SetAttribute("z", vScale.z); + object->InsertEndChild(Scale); + + tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation"); + Rotation->SetAttribute("x", vRotation.x); + Rotation->SetAttribute("y", vRotation.y); + Rotation->SetAttribute("z", vRotation.z); + object->InsertEndChild(Rotation); + + tinyxml2::XMLElement* Value = doc.NewElement("Value"); + Value->SetAttribute("isFloating", m_isFloating); + Value->SetAttribute("DiffuseIndex", m_iDiffuseIndex); + object->InsertEndChild(Value); +#pragma endregion + + return S_OK; +} diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index f28d44fcb..4632a649f 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -18,6 +18,7 @@ #include "RaceRing.h" #include "InstancedProp_Light.h" #include "EditEffect.h" +#include "MapElement_Balloon.h" CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext) : CGameObject(pDevice, pContext), m_pInfoInstance{CInfoInstance::GetInstance()} @@ -91,17 +92,17 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) #pragma endregion #pragma region DUNGEON - if (FAILED(Load_MapData("Dungeon_Map_Data", L"LAYER_BACKGOURN"))) + /*if (FAILED(Load_MapData("Dungeon_Map_Data", L"LAYER_BACKGOURN"))) return E_FAIL; m_pInfoInstance->Load_Decal("Duengon_Decal_Data"); - m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data"); + m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");*/ #pragma endregion #pragma region HOGWART - //if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) - // return E_FAIL; - //if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART))) - // return E_FAIL; + if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) + return E_FAIL; + if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART))) + return E_FAIL; #pragma endregion #pragma region Light @@ -124,37 +125,43 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) // ->Set_State(STATE::POSITION, XMVectorSet(1000.f, 0.f, 1000.f, 1.f)); #pragma endregion - +#pragma region BROOM_RACE + if (FAILED(Load_RaceRing("RaceRing_Data"))) + return E_FAIL; + + if (FAILED(Load_Balloons("Ballon_Data"))) + return E_FAIL; +#pragma endregion #pragma region EFFECT_PART - if (FAILED(Load_EffectParts("Goo0_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Goo1_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Ranrok_Goo2_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Ranrok_Goo3_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Ranrok_Goo4_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Ranrok_Decal_15_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Rotate_Rock_Small_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Small"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Ranrok_Particle_Black_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Ranrok_Particle_Red_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red"))) - return E_FAIL; - //if (FAILED(Load_EffectParts("Ranrok_Decal_35_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35"))) - //return E_FAIL; - if (FAILED(Load_EffectParts("Rotate_Rock_Large1_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large1"))) - return E_FAIL; - if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2"))) - return E_FAIL; + //if (FAILED(Load_EffectParts("Goo0_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Goo1_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Ranrok_Goo2_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Ranrok_Goo3_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Ranrok_Goo4_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Ranrok_Decal_15_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Rotate_Rock_Small_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Small"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Ranrok_Particle_Black_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Ranrok_Particle_Red_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red"))) + // return E_FAIL; + ////if (FAILED(Load_EffectParts("Ranrok_Decal_35_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35"))) + // //return E_FAIL; + //if (FAILED(Load_EffectParts("Rotate_Rock_Large1_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large1"))) + // return E_FAIL; + //if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2"))) + // return E_FAIL; - if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire"))) - return E_FAIL; + //if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire"))) + // return E_FAIL; #pragma endregion @@ -271,9 +278,11 @@ void CMapObject_Manager::Update(_float fTimeDelta) //Update_LightSpawer(); //Update_Decal(); //Update_RaceRing(); - Update_EffectParts(); + //Update_Balloon(); + //Update_EffectParts(); + //Update_Balloon(); - //Update_Unified(); + Update_Unified(); if (ADD_TYPE::CONTAINER == m_eType) { @@ -2052,6 +2061,144 @@ HRESULT CMapObject_Manager::Save_RaceRing(const _char* pFileName) return S_OK; } +HRESULT CMapObject_Manager::Load_RaceRing(const _char* pFileName) +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Ring"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + CRaceRing::RACERING_DESC Desc = {}; + + /* Transform */ + auto* Rotation = Object->FirstChildElement("Scale"); + Rotation->QueryFloatAttribute("x", &Desc.vScale.x); + Rotation->QueryFloatAttribute("y", &Desc.vScale.y); + Rotation->QueryFloatAttribute("z", &Desc.vScale.z); + + auto* Scale = Object->FirstChildElement("Rotation"); + Scale->QueryFloatAttribute("x", &Desc.vRotation.x); + Scale->QueryFloatAttribute("y", &Desc.vRotation.y); + Scale->QueryFloatAttribute("z", &Desc.vRotation.z); + + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_RaceRing"), &Desc))) + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CMapObject_Manager::Save_Balloons(const _char* pFileName) +{ + CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Balloon")); + + if (nullptr == pLayer) + return S_OK; + + tinyxml2::XMLDocument doc; + string strPath = "../Bin/Resources/Data/Map/Balloon/" + string(pFileName) + ".xml"; + + tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str()); + + doc.Clear(); + doc.InsertFirstChild(doc.NewDeclaration()); + + tinyxml2::XMLElement* root = doc.NewElement("Balloon"); + doc.InsertEndChild(root); + + if (nullptr != pLayer) + { + const list* pList = pLayer->Get_Objects(); + + for (auto pGamObject : *pList) + { + CMapElement_Balloon* pRaceRing = dynamic_cast(pGamObject); + + if (nullptr == pRaceRing) + return E_FAIL; + + if (FAILED(pRaceRing->Save_XML(doc, root))) + return E_FAIL; + } + } + + if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) { + MSG_BOX("Failed to Save File"); + } + else + { + MSG_BOX("Succeed to Save CMapElement_Balloon"); + } + + return S_OK; +} + +HRESULT CMapObject_Manager::Load_Balloons(const _char* pFileName) +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + CMapElement_Balloon::BALLOON_DESC Desc = {}; + + auto* Value = Object->FirstChildElement("Value"); + Value->QueryBoolAttribute("isFloating", &Desc.isFloating); + Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex); + + /* Transform */ + auto* Rotation = Object->FirstChildElement("Scale"); + Rotation->QueryFloatAttribute("x", &Desc.vScale.x); + Rotation->QueryFloatAttribute("y", &Desc.vScale.y); + Rotation->QueryFloatAttribute("z", &Desc.vScale.z); + + auto* Scale = Object->FirstChildElement("Rotation"); + Scale->QueryFloatAttribute("x", &Desc.vRotation.x); + Scale->QueryFloatAttribute("y", &Desc.vRotation.y); + Scale->QueryFloatAttribute("z", &Desc.vRotation.z); + + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Balloon"), &Desc))) + return E_FAIL; + } + + return S_OK; +} + HRESULT CMapObject_Manager::Load_DADA_INT() { if (FAILED(Load_MapData("DATA_INT_Data"))) @@ -2529,7 +2676,7 @@ void CMapObject_Manager::Update_RaceRing() } if (GUI::Button("Load Ring")) { - //m_pInfoInstance->Load_Decal("Duengon_Decal_Data"); + Load_RaceRing("RaceRing_Data"); } if (GUI::Button("Add Ring")) { @@ -2598,6 +2745,42 @@ void CMapObject_Manager::Update_EffectParts() GUI::End(); } +void CMapObject_Manager::Update_Balloon() +{ + GUI::Begin("Ballon Editor"); + if (GUI::Button("Save Ballon")) + { + Save_Balloons("Ballon_Data"); + } + if (GUI::Button("Load Ballon")) + { + Load_Balloons("Ballon_Data"); + } + if (GUI::Button("Add Ballon")) + { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Balloon")))) + { + } + } + + GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex); + CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Balloon")); + + if (nullptr != pLayer) + { + _uint iIndex = {}; + for (auto& pObject : *pLayer->Get_Objects()) + { + if (m_iSelectedIndex == iIndex) + pObject->Describe_Entity(); + + ++iIndex; + } + } + + GUI::End(); +} + void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag) { vector<_uint> LodModelIndices; diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp index c850f6412..edb06a43c 100644 --- a/Jusin154_Team3D/Editor/Private/Player_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp @@ -832,19 +832,25 @@ void CPlayer::Behavior_CombatEnter() Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, 0.0f); } else if (SUCCEEDED(InputSpell())) { + m_pFSM->Enable_State(FSMSTATE::SPELL); + _float fEventRatio = 0.2f; + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END)) { - pairAnimInfo = m_Animation[STATEANIM::SPELL]; switch (m_eSpell) { case ENUM_CLASS(SKILL_TYPE::BOMBARDA): Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, - 0.2f); + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, + 0.01f); + + Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, - 0.f); + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); }, + 0.2f); + break; case ENUM_CLASS(SKILL_TYPE::DESCENDO): Add_Event(pairAnimInfo.first, diff --git a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp index 0cc850a06..4e8e8c4c9 100644 --- a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp +++ b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp @@ -86,6 +86,8 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) CEditEffect* pProtego_HitPT = Get_PartObject("Protego_HitPT"); CEditEffect* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); CEditEffect* pProtegoHit = Get_PartObject("Protego_HitPT_Line"); + CEditEffect* pScreenFX_Hit = Get_PartObject("ScreenFX_Hit"); + m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -100,6 +102,8 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pProtego_HitPT_Line->Set_Visible(true); pProtegoHit->Set_Visible(true); + pScreenFX_Hit->Set_Visible(true); + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/RaceRing.cpp b/Jusin154_Team3D/Editor/Private/RaceRing.cpp index c84d9945d..41ffab78c 100644 --- a/Jusin154_Team3D/Editor/Private/RaceRing.cpp +++ b/Jusin154_Team3D/Editor/Private/RaceRing.cpp @@ -28,6 +28,15 @@ HRESULT CRaceRing::Initialize(void* pArg) return E_FAIL; } + if(nullptr != pArg) + { + RACERING_DESC* pDesc = static_cast(pArg); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + m_pTransformCom->Set_Scale(pDesc->vScale); + m_pTransformCom->Set_Rotation(pDesc->vRotation); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + } + m_iIndex = 0; return S_OK; diff --git a/Jusin154_Team3D/Editor/Private/Revelio.cpp b/Jusin154_Team3D/Editor/Private/Revelio.cpp index fa6f534e9..b2fe9f624 100644 --- a/Jusin154_Team3D/Editor/Private/Revelio.cpp +++ b/Jusin154_Team3D/Editor/Private/Revelio.cpp @@ -38,10 +38,12 @@ HRESULT CRevelio::Initialize(void* pArg) m_pRevelioPT_Y = Get_PartObject("WandPT_Y"); m_pRevelioPT_B = Get_PartObject("WandPT_B"); m_pRevelioPT_R = Get_PartObject("WandPT_R"); + m_pWand_Light = Get_PartObject("Wand_Light"); SAFE_ADDREF(m_pRevelioPT_Y); SAFE_ADDREF(m_pRevelioPT_B); SAFE_ADDREF(m_pRevelioPT_R); + SAFE_ADDREF(m_pWand_Light); m_wstrEffectName = L"Revelio"; @@ -79,6 +81,7 @@ void CRevelio::Update(_float fTimeDelta) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); } @@ -109,14 +112,43 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_Y->Set_Visible(true); m_pRevelioPT_R->Set_Visible(true); m_pRevelioPT_B->Set_Visible(true); + m_pWand_Light->Set_Visible(true); - Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - Get_PartObject("Revelio_Ring")->Set_Visible(true); + CEditEffect* pRevelio_ScreenFX = Get_PartObject("Revelio_ScreenFX"); + CEditEffect* pRevelio_ScreenFX_Reverse = Get_PartObject("Revelio_ScreenFX_Reverse"); + CEditEffect* pRevelio_Smoke = Get_PartObject("Revelio_Smoke"); + CEditEffect* pRevelio_Distortion = Get_PartObject("Revelio_Distortion"); + CEditEffect* pBottom_PT = Get_PartObject("Bottom_PT"); + + pRevelio_ScreenFX->Set_Visible(true); + pRevelio_ScreenFX_Reverse->Set_Visible(true); + pRevelio_Smoke->Set_Visible(true); + pRevelio_Distortion->Set_Visible(true); + pBottom_PT->Set_Visible(true); + + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vFootPos = {}; + _vector vPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + vPos = pCCT->Get_Position(); + + pRevelio_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pBottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pRevelio_Distortion->Get_Component()->Set_State(STATE::POSITION, vPos); + + + } return S_OK; } @@ -181,7 +213,7 @@ void CRevelio::Free() SAFE_RELEASE(m_pRevelioPT_Y); SAFE_RELEASE(m_pRevelioPT_B); SAFE_RELEASE(m_pRevelioPT_R); - + SAFE_RELEASE(m_pWand_Light); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/Stupefy.cpp b/Jusin154_Team3D/Editor/Private/Stupefy.cpp new file mode 100644 index 000000000..22e3dbf11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Stupefy.cpp @@ -0,0 +1,284 @@ +#include "pch.h" +#include "Stupefy.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CStupefy::CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefy::CStupefy(const CStupefy& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ +} + +HRESULT CStupefy::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CStupefy::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stupefy"))) + return E_FAIL; + m_iSkillType = ENUM_CLASS(SKILL_TYPE::STUPEFY); + + m_wstrEffectName = L"Stupefy"; + + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); + + m_pProjectile2 = Get_PartObject("Stupefy_PJ2"); + SAFE_ADDREF(m_pProjectile2); + + + m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); + SAFE_ADDREF(m_pStupefy_PJ_PT); + + m_fDuration = 4.5f; + + return S_OK; +} + +void CStupefy::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + XMStoreFloat4(&m_vStartPos, m_pStupefy_PJ_PT->Get_WorldPostion()); +} + +void CStupefy::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile2->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); +} + +void CStupefy::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion()); + + _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); + + + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); + + OnCollision(this, &CollisionInfo); + } + +} + +HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return E_FAIL; + + + + CEditEffect* pWand_Distortion = Get_PartObject("Wand_Distortion"); + + CEditEffect* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); + CEditEffect* pBodyFlare = Get_PartObject("BodyFlare"); + + CEditEffect* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); + + pWand_Distortion->Set_Visible(true); + pStupefy_Light_Long->Set_Visible(true); + pBodyFlare->Set_Visible(true); + pStupefy_Smoke->Set_Visible(true); + //m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); + m_pProjectile2->Set_Visible(true); + + _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + /*완드 포지션*/ + + _vector vWandPos = pWand->Get_WorldPostion(); + + + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile2->Get_Component()->Set_State(STATE::POSITION, vWandPos); + + pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); + pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); + // + /*몸통 포지션*/ + + _vector vPlayerPos = m_pOwner->Get_Component()->Get_Position() + vDirection * -0.1f; + + pWand_Distortion->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + /*발 포지션*/ + + _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition(); + + pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos); + + + + + XMStoreFloat3(&m_vCameraLook, vDirection); + + _vector vStartPos = vWandPos; + XMStoreFloat4(&m_vStartPos, vStartPos); + + { /* 대상 위치 지정 */ + // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + + m_pInfoInstance->Get_LockOnInfo(m_Info); + //if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { + + // //XMStoreFloat4(&m_vTargetPos,Get_LockOnPos(m_Info)); + + // //XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + //} + //else { + + //} + } + + + _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + _vector vPos = pWand->Get_WorldPostion(); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CStupefy::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefy::Ready_Child() +{ + return S_OK; +} + +CStupefy* CStupefy::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefy* pInstance = new CStupefy(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefy"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefy::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefy* pInstance = new CStupefy(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefy"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + CEditEffect* pStupefy_Hit_PT = Get_PartObject("Stupefy_Hit_PT"); + CEditEffect* pStupefy_Circle0 = Get_PartObject("Stupefy_Circle0"); + CEditEffect* pHitFlare = Get_PartObject("HitFlare"); + + + pStupefy_Hit_PT->Set_Visible(true); + pStupefy_Hit_PT->Get_Component()->Set_State(STATE::POSITION, vPos); + pStupefy_Circle0->Set_Visible(true); + pStupefy_Circle0->Get_Component()->Set_State(STATE::POSITION, vPos); + pHitFlare->Set_Visible(true); + pHitFlare->Get_Component()->Set_State(STATE::POSITION, vPos); + + + + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + + +} + +void CStupefy::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pProjectile); + SAFE_RELEASE(m_pProjectile2); + SAFE_RELEASE(m_pStupefy_PJ_PT); + +} + +#ifdef _DEBUG +void CStupefy::Describe_Entity() +{ + +} +#endif + +HRESULT CStupefy::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/StupefySide.cpp b/Jusin154_Team3D/Editor/Private/StupefySide.cpp new file mode 100644 index 000000000..dc821f5c6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/StupefySide.cpp @@ -0,0 +1,221 @@ +#include "pch.h" +#include "StupefySide.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CStupefySide::CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefySide::CStupefySide(const CStupefySide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStupefySide::Initialize_Prototype() +{ + + + + + return S_OK; + +} + +HRESULT CStupefySide::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/StupefySide"))) + return E_FAIL; + + m_wstrEffectName = L"BombardSide"; + + + m_pWandParticle = Get_PartObject("Wand_Particle_B"); + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + //m_isTrailEnd = true; + + XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + }); + + m_Events.emplace(1.3f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); + + + return S_OK; +} + +void CStupefySide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStupefySide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + if (m_isParticleEnd == false) + m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CStupefySide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pWandTrail->SetDissolve(false); + + return S_OK; +} + +HRESULT CStupefySide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefySide::Ready_Child() +{ + return S_OK; +} + +CStupefySide* CStupefySide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefySide* pInstance = new CStupefySide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefySide::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefySide* pInstance = new CStupefySide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefySide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CStupefySide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CStupefySide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CStupefySide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Unified.cpp b/Jusin154_Team3D/Editor/Private/Unified.cpp index 1da5e5a84..1bde40132 100644 --- a/Jusin154_Team3D/Editor/Private/Unified.cpp +++ b/Jusin154_Team3D/Editor/Private/Unified.cpp @@ -20,18 +20,18 @@ void CUnified::Priority_Update(_float fTimeDelta) void CUnified::Update(_float fTimeDelta) { - //m_fCamDistance = XMVector3Length(XMLoadFloat4(&m_vUnifiedCenterPos) - XMLoadFloat4(m_pGameInstance->Get_CamPosition())).m128_f32[0]; + m_fCamDistance = XMVector3Length(XMLoadFloat4(&m_vUnifiedCenterPos) - XMLoadFloat4(m_pGameInstance->Get_CamPosition())).m128_f32[0]; - //if (true == m_isLayerEnable && m_fLodSwitchDistnace <= m_fCamDistance) - //{ // LOD 전환 - // m_isLayerEnable = false; - // m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), m_srtLayerTag)->Set_LayerEnabled(false); - //} - //else if(false == m_isLayerEnable && m_fLodSwitchDistnace > m_fCamDistance) - //{ // LOD 해제 - // m_isLayerEnable = true; - // m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), m_srtLayerTag)->Set_LayerEnabled(true); - //} + if (true == m_isLayerEnable && m_fLodSwitchDistnace <= m_fCamDistance) + { // LOD 전환 + m_isLayerEnable = false; + m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), m_srtLayerTag)->Set_LayerEnabled(false); + } + else if(false == m_isLayerEnable && m_fLodSwitchDistnace > m_fCamDistance) + { // LOD 해제 + m_isLayerEnable = true; + m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), m_srtLayerTag)->Set_LayerEnabled(true); + } } void CUnified::Late_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Public/Broom_Panel.h b/Jusin154_Team3D/Editor/Public/Broom_Panel.h index fd861eaf0..1e8459e01 100644 --- a/Jusin154_Team3D/Editor/Public/Broom_Panel.h +++ b/Jusin154_Team3D/Editor/Public/Broom_Panel.h @@ -38,6 +38,7 @@ class CBroom_Panel final : public CPanelObject CGameObject* m_pBroom_Record = { nullptr }; CGameObject* m_pBroom_Exit = { nullptr }; CGameObject* m_pBroom_Trophy = { nullptr }; + CGameObject* m_pBroom_TargetGate2D = { nullptr }; public: static CBroom_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Broom_TargetGate2D.h b/Jusin154_Team3D/Editor/Public/Broom_TargetGate2D.h new file mode 100644 index 000000000..bfe07431b --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Broom_TargetGate2D.h @@ -0,0 +1,40 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CBroom_TargetGate2D final : public CElementObject +{ +private: + CBroom_TargetGate2D(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBroom_TargetGate2D(const CBroom_TargetGate2D& rhs); + virtual ~CBroom_TargetGate2D() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + +public: + static CBroom_TargetGate2D* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Decendo.h b/Jusin154_Team3D/Editor/Public/Decendo.h index f7873b3dd..914632809 100644 --- a/Jusin154_Team3D/Editor/Public/Decendo.h +++ b/Jusin154_Team3D/Editor/Public/Decendo.h @@ -37,7 +37,6 @@ class CDecendo final : public CEffect_Container class CPartObject* m_pProjectile = {}; class CPartObject* m_pProjectile_Blur = {}; - _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 _float m_fLinearSpeed = 22.f; diff --git a/Jusin154_Team3D/Editor/Public/DecendoSide.h b/Jusin154_Team3D/Editor/Public/DecendoSide.h index a02c85be4..f89278016 100644 --- a/Jusin154_Team3D/Editor/Public/DecendoSide.h +++ b/Jusin154_Team3D/Editor/Public/DecendoSide.h @@ -37,6 +37,7 @@ class CDecendoSide final : public CEffect_Container _float4x4 m_TrailStopMat = {}; class CEditEffect* m_pWandLight = { nullptr }; + class CEditEffect* m_pWand_Fire = { nullptr }; class CTrailObject* m_pWandTrail = { nullptr }; public: diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index ea428f278..98d0b965c 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -46,6 +46,8 @@ class CEditEffect final : public CEffectObject _bool m_isCamPos = {}; _float4 m_vCamOffset = {}; + + public: static CEditEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index ea107c526..ada767a10 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -64,7 +64,7 @@ namespace Editor BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색 JAP, REVELIO, PROTEGO, STUPEFY, PROTEGO_HIT, // 검은색 ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, STUPEFY_SIDE, STUN, TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM, diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h index b3dfbe6d3..0478ea88c 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h @@ -43,7 +43,7 @@ namespace Editor { #define LAYER_EDITOR_CAMERA TEXT("Layer_Editor_Camera") #define LAYER_BACKGROUND TEXT("Layer_BackGround") #define LAYER_MARKER TEXT("Layer_Marker") -#define LAYER_PLAYER TEXT("Layer_Player") +#define LAYER_PLAYER TEXT("Layer__Player") #define LAYER_CAMERA TEXT("Layer_Camera") #define LAYER_MONSTER TEXT("Layer_Monster") #define LAYER_UI TEXT("Layer_UI") diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 5e0a21900..25bb4d1d8 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -143,7 +143,13 @@ class CEffectObject abstract : public CPartObject _bool isNonSoftEffect = {}; _float2 vDissolveSmoothRange = {0.1f , 0.1f}; - _float2 vPadding0 = {}; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; _bool isRimLight = {}; _bool isMask_G = {}; @@ -339,6 +345,9 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; const _float4x4* m_pPerentMatrix = { nullptr }; + + _float4x4 m_ScreenViewMatrix = {}; + _float4x4 m_OrthographicMatrix = {}; protected: EFFECT_INFO m_EffectInfo = {}; _string m_strDiffuseName = {}; diff --git a/Jusin154_Team3D/Editor/Public/InstancedProp.h b/Jusin154_Team3D/Editor/Public/InstancedProp.h index 8b82f705a..5369e111f 100644 --- a/Jusin154_Team3D/Editor/Public/InstancedProp.h +++ b/Jusin154_Team3D/Editor/Public/InstancedProp.h @@ -19,6 +19,7 @@ class CInstancedProp final : public CGameObject _bool bEditMode{}; _bool isAddCollider{}; _bool isShake; + _uint iShaderPassIndex{}; _float2 vRadius; _float2 vSpeed; _wstring strPrototypeTag; @@ -41,6 +42,7 @@ class CInstancedProp final : public CGameObject _uint m_iInstanceIndex = {}; _uint m_iNumInstanceIndex = {}; + _uint m_iShaderPassIndex = {}; CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr }; CShader* m_pShaderCom = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Public/Levioso.h b/Jusin154_Team3D/Editor/Public/Levioso.h index fa2c831e9..f01ee45b9 100644 --- a/Jusin154_Team3D/Editor/Public/Levioso.h +++ b/Jusin154_Team3D/Editor/Public/Levioso.h @@ -35,25 +35,15 @@ class CLevioso final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + class CPlayer* m_pPlayer = {}; - class CEditEffect* m_pLeviosoPJ_0 = { nullptr }; - class CEditEffect* m_pLeviosoPJ_1 = { nullptr }; - class CEditEffect* m_pTrail_PT_0 = { nullptr }; - - class CEditEffect* m_pLevioso_Rotate0 = { nullptr }; - class CEditEffect* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; + class CEditEffect* m_pLeviosoPJ = { nullptr }; _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/MapElement_Balloon.h b/Jusin154_Team3D/Editor/Public/MapElement_Balloon.h new file mode 100644 index 000000000..3ad572a0a --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/MapElement_Balloon.h @@ -0,0 +1,61 @@ +#pragma once + +#include "Editor_Define.h" +#include "MapElement.h" + +NS_BEGIN(Editor) + +class CMapElement_Balloon : public CMapElement +{ +public: + typedef struct tagMapElemntBalloonDesc + { + _bool isFloating; + _uint iDiffuseIndex; + _float3 vPosition; + _float3 vRotation; + _float3 vScale; + }BALLOON_DESC; +private: + CMapElement_Balloon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapElement_Balloon(const CMapElement_Balloon& rhs); + virtual ~CMapElement_Balloon() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + + _bool m_isFloating = {}; + _bool m_isRotate = {}; + _uint m_iDiffuseIndex = {}; + + _float m_fTimeAcc = {}; + _float m_fUsingSurfaceParams = {}; + + _float3 m_vOriginPosition = {}; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + + void Rotation(); + void Floating(); + +public: + static CMapElement_Balloon* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; + HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root); +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h index 13c0fa695..72757078b 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h @@ -86,6 +86,11 @@ class CMapObject_Manager final : public CGameObject HRESULT Save_Decal(const _char* pFileName); HRESULT Save_RaceRing(const _char* pFileName); + HRESULT Load_RaceRing(const _char* pFileName); + + HRESULT Save_Balloons(const _char* pFileName); + HRESULT Load_Balloons(const _char* pFileName); + HRESULT Load_DADA_INT(); HRESULT Save_EffectParts(const _char* pFileName); @@ -101,6 +106,7 @@ class CMapObject_Manager final : public CGameObject void Update_Decal(); void Update_RaceRing(); void Update_EffectParts(); + void Update_Balloon(); void Create_PartObject(_wstring& strPrototypeTag); void Create_Elemnt(_wstring& strPrototypeTag); diff --git a/Jusin154_Team3D/Editor/Public/RaceRing.h b/Jusin154_Team3D/Editor/Public/RaceRing.h index 445b1a9ac..b8cc9a1d6 100644 --- a/Jusin154_Team3D/Editor/Public/RaceRing.h +++ b/Jusin154_Team3D/Editor/Public/RaceRing.h @@ -7,6 +7,14 @@ NS_BEGIN(Editor) class CRaceRing final : public CGameObject { +public: + typedef struct RaceRingDesc + { + _float3 vPosition{}; + _float3 vRotation{}; + _float3 vScale{}; + }RACERING_DESC; + private: CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CRaceRing(const CRaceRing& Prototype); diff --git a/Jusin154_Team3D/Editor/Public/Revelio.h b/Jusin154_Team3D/Editor/Public/Revelio.h index 1a9f47ee2..00739c6dd 100644 --- a/Jusin154_Team3D/Editor/Public/Revelio.h +++ b/Jusin154_Team3D/Editor/Public/Revelio.h @@ -33,9 +33,11 @@ class CRevelio final : public CEffect_Container private: _wstring m_wstrEffectName = {}; class CPlayer* m_pPlayer = {}; + class CEditEffect* m_pRevelioPT_Y = { nullptr }; class CEditEffect* m_pRevelioPT_B = { nullptr }; class CEditEffect* m_pRevelioPT_R = { nullptr }; + class CEditEffect* m_pWand_Light = { nullptr }; public: static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Stupefy.h b/Jusin154_Team3D/Editor/Public/Stupefy.h new file mode 100644 index 000000000..89127e603 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Stupefy.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStupefy final : public CEffect_Container +{ +private: + CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefy(const CStupefy& rhs); + virtual ~CStupefy() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; + +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +private: + _wstring m_wstrEffectName = {}; + class CEditEffect* m_pProjectile = {}; + class CEditEffect* m_pStupefy_PJ_PT = {}; + class CEditEffect* m_pProjectile2 = {}; + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 + _float m_fLinearSpeed = 1.f; + _float3 m_vCameraLook = {}; +public: + static CStupefy* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/StupefySide.h b/Jusin154_Team3D/Editor/Public/StupefySide.h new file mode 100644 index 000000000..5f4fefdc0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/StupefySide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStupefySide final : public CEffect_Container +{ +private: + CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefySide(const CStupefySide& rhs); + virtual ~CStupefySide() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEditEffect* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + class CEditEffect* m_pWandParticle = { nullptr }; + +public: + static CStupefySide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl index 85b2e7e4f..0f1a89f23 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl @@ -64,6 +64,8 @@ cbuffer AnimCB : register(b0) float UpperBlend; int SecondAnimIndex; float SecondAnimTime; + + row_major float4x4 WorldMatrix; }; static const float EPS = 1e-6f; diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl index d639ccac5..c24126813 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -43,6 +43,9 @@ cbuffer AnimCB : register(b0) float UpperBlend; int SecondAnimIndex; float SecondAnimTime; + + row_major float4x4 WorldMatrix; + }; [numthreads(256, 1, 1)] @@ -53,20 +56,23 @@ void CS_MAIN(uint3 DTid : SV_DispatchThreadID) return; uint global = g_BoneRemap[local]; - - float4x4 combined = g_LocalMatIn[global]; + + + float4x4 localMat = g_LocalMatIn[global]; + float4x4 modelCombined = localMat; int p = g_ParentBuffer[global]; while (p != -1) { - combined = mul(combined, g_LocalMatIn[p]); + modelCombined = mul(modelCombined, g_LocalMatIn[p]); p = g_ParentBuffer[p]; } - combined = mul(combined, PreTransformMatrix); - - g_LocalPosOutput[local].Local = g_LocalMatIn[global]; - g_LocalPosOutput[local].LocalCombined = combined; - g_LocalPosOutput[local].Combined = combined; + modelCombined = mul(modelCombined, PreTransformMatrix); + float4x4 worldCombined = mul(modelCombined, WorldMatrix); + + g_LocalPosOutput[local].Local = localMat; + g_LocalPosOutput[local].LocalCombined = modelCombined; + g_LocalPosOutput[local].Combined = worldCombined; } diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl index fd31f29b0..227440d7d 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Volumetric_Compute.hlsl @@ -77,13 +77,13 @@ void CS_MAIN( uint3 DispatchThreadID : SV_DispatchThreadID) { float visibility = 1.f; + // Directional if (0.f < length(g_LightBuffer[i].vDirection)) { lightDir = normalize(g_LightBuffer[i].vDirection); visibility = ComputeShadowVisibility(vWorldPosition); - } - else + else // Point { lightDir = vWorldPosition - g_LightBuffer[i].vPosition.xyz; visibility = ComputePointLightVisible(lightDir, g_LightBuffer[i].fRange); diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp index 960e3eb79..a77d863a2 100644 --- a/Jusin154_Team3D/Engine/Private/Animation.cpp +++ b/Jusin154_Team3D/Engine/Private/Animation.cpp @@ -342,6 +342,12 @@ void CAnimation::CreateGPUData(ID3D11Device* pDevice) CreateChannelBuffer(pDevice, channels); } +void CAnimation::Set_CurrentTrackProgressRatio(_float fRatio) +{ + fRatio = clamp(fRatio, 0.f, 1.f); + m_fTempTrack = fRatio * m_fDurationSeconds; +} + #ifdef EDITOR_PROJECT diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index d30f00bed..bcecf78b7 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -242,6 +242,8 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform) m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); m_iPreAnimIndex = m_iCurrentAnimIndex; + fRatio = 1.f; + m_fBlendTime = 0.f; } @@ -329,9 +331,11 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); + pCurAnim->InterpAnim(pPreAnim, m_Bones, fRatio); + m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); - m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio* 5.f); + m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio); if (fRatio >= 1.f) { @@ -363,7 +367,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); m_bIsSecondFinishedAnim = m_Animations[m_iCurrSecondAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); - m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio * 5.f); + m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio); m_iPreAnimIndex = m_iCurrentAnimIndex; if (m_bIsSecondFinishedAnim) @@ -445,7 +449,7 @@ _bool CModel::IsBlending() const } -void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _bool bRatio, _float fAnimSpeed,_bool bRootBone,_bool bQueuedAnim, _bool bInit) +void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _bool bRatio, _float fAnimSpeed,_bool bRootBone,_bool bQueuedAnim) { m_bQueuedAnim = bQueuedAnim; if (m_iCurrentAnimIndex == iIndex) @@ -472,10 +476,8 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _boo m_iPreAnimIndex = m_iCurrentAnimIndex; } - if (bInit) { - m_fBlendTime = 0.f; - m_fRatio = 0.f; - } + m_fBlendTime = 0.f; + fRatio = 0.f; m_bRootBone = bRootBone; m_iCurrentAnimIndex = iIndex; m_bIsLoop = isLoop; @@ -501,8 +503,8 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo m_bIsSecondLoop = isLoop; m_iBoneMask = m_BoneMask[BoneIndex]; - /*m_fSecondBlendTime = 0.f; - m_fSecondRatio = 0.f;*/ + m_fSecondBlendTime = 0.f; + m_fSecondRatio = 0.f; m_bIsSecondFinishedAnim = false; m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation(); @@ -596,10 +598,10 @@ void CModel::Update_RootBone(_float Amount) _float yaw = axis.y * angle; - if (m_bRootBone) - { + /* if (m_bRootBone) + {*/ m_pTransform->TurnAngle_Y(yaw); - } + //} } @@ -860,6 +862,11 @@ _float CModel::Get_CurrentTrackProgressRatio() return m_Animations[m_iCurrentAnimIndex]->Get_CurrentTrackProgressRatio(); } +void CModel::Set_CurrentTrackProgressRatio(_float fRatio) +{ + m_Animations[m_iCurrentAnimIndex]->Set_CurrentTrackProgressRatio(fRatio); +} + _float CModel::Get_TrackProgressRatio(_uint iIndex) { return m_Animations[iIndex]->Get_CurrentTrackProgressRatio(); @@ -2113,9 +2120,11 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) pDesc->RootInitRot = m_vInitialRootRot; pDesc->UseUpperBody = m_bSecondAnim; - pDesc->UpperBlend = 1.f; + pDesc->UpperBlend = m_fSecondRatio; pDesc->SecondAnimIndex = m_iCurrSecondAnimIndex; - pDesc->SecondAnimTime = m_Animations[m_iCurrSecondAnimIndex]->Get_CurrentTrackPosition();; + pDesc->SecondAnimTime = m_Animations[m_iCurrSecondAnimIndex]->Get_CurrentTrackPosition(); + + pDesc->WorldMatrix = *m_pTransform->Get_WorldMatrixPtr(); m_pContext->Unmap(m_pConstantBuffer, 0); } diff --git a/Jusin154_Team3D/Engine/Private/PanelObject.cpp b/Jusin154_Team3D/Engine/Private/PanelObject.cpp index 1cf136457..97d73d60a 100644 --- a/Jusin154_Team3D/Engine/Private/PanelObject.cpp +++ b/Jusin154_Team3D/Engine/Private/PanelObject.cpp @@ -261,6 +261,91 @@ _bool CPanelObject::Chack_Element(_float2 Position, _float2 Target, _float Scale return false; } +_bool CPanelObject::World_Screen(_float3 fWorld_Pos, _float2& fScreenPos, _float& fDepth) +{ + _matrix mView = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); + _matrix mProj = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); + _matrix mVP = mView * mProj; + + _vector Pos = XMVectorSet(fWorld_Pos.x, fWorld_Pos.y, fWorld_Pos.z, 1.f); + Pos = XMVector4Transform(Pos, mVP); + + _float w = XMVectorGetW(Pos); + + _bool bBehind = (w <= 0.f); + + if (bBehind) + { + fDepth = -1.f; + return false; + } + + _float NDCX = XMVectorGetX(Pos) / w; + _float NDCY = XMVectorGetY(Pos) / w; + _float NDCZ = XMVectorGetZ(Pos) / w; + + + + fDepth = NDCZ; + + fScreenPos.x = (NDCX + 1.f) * 0.5f * m_fWinSizeX; + fScreenPos.y = (1.f - NDCY) * 0.5f * m_fWinSizeY; + + return true; +} + +_bool CPanelObject::Screen(_float2& fWorld_Pos, _float Winx, _float Winy) +{ + return fWorld_Pos.x >= 0 && fWorld_Pos.x <= Winx && + fWorld_Pos.y >= 0 && fWorld_Pos.y <= Winy; +} + +_float2 CPanelObject::Get_EdgePosition(_float2 fWorld_Pos, _float Winx, _float Winy, _float OffSetY) +{ + _float2 center = _float2(Winx * 0.5f, Winy * 0.5f); + _float2 dir = _float2(fWorld_Pos.x - center.x, fWorld_Pos.y - center.y); + + _float tX = FLT_MAX; + _float tY = FLT_MAX; + + if (dir.x != 0.f) + tX = (dir.x > 0) ? (Winx - center.x) / dir.x : (0.f - center.x) / dir.x; + + if (dir.y != 0.f) + tY = (dir.y > 0) ? (Winy - center.y) / dir.y : (0.f - center.y) / dir.y; + + float t = min(tX, tY); + + return _float2(dir.x * t,- dir.y * t - OffSetY); +} + +_bool CPanelObject::World_to_ScreenUI(_float3 fWorld_Pos, _float2& fUIScreenPos, _float OffSetY) +{ + _float2 fScreenPos{}; + _float fDepth{}; + + if (!World_Screen(fWorld_Pos, fScreenPos, fDepth)) + { + fUIScreenPos.x = m_fWinSizeX * 0.5f; + fUIScreenPos.y = m_fWinSizeY - OffSetY; + return true; + } + + _float fWinSizeX = static_cast<_float>(m_fWinSizeX); + _float fWinSizeY = static_cast<_float>(m_fWinSizeY); + + if(Screen(fScreenPos, fWinSizeX, fWinSizeY)) + { + return false; + } + else + { + fUIScreenPos = Get_EdgePosition(fScreenPos, fWinSizeX, fWinSizeY, OffSetY); + return true; + } + +} + CGameObject* CPanelObject::Find_Element(const wstring& Name) { auto iter = m_Elements_map.find(Name); diff --git a/Jusin154_Team3D/Engine/Private/Quest.cpp b/Jusin154_Team3D/Engine/Private/Quest.cpp index c181f5443..7b4ccd93e 100644 --- a/Jusin154_Team3D/Engine/Private/Quest.cpp +++ b/Jusin154_Team3D/Engine/Private/Quest.cpp @@ -21,7 +21,6 @@ HRESULT CQuest::Initialize(void* pArg) QUESTINFO* Info = static_cast(pArg); m_iQuestID = Info->iQuestID; m_ObjectiveInfo = Info->ObjectiveInfo; - return S_OK; } @@ -38,7 +37,7 @@ _bool CQuest::Update_Objective(_int MonsterID) continue; ++it.iCurrentCount; - + m_iMonsterID = MonsterID; if (it.iCurrentCount >= it.iRequiredCount) it.bClear = true; @@ -59,6 +58,11 @@ _int CQuest::Get_QuestID() return m_iQuestID; } +_int CQuest::Get_MonsterID() +{ + return m_iMonsterID; +} + void CQuest::Free() { __super::Free(); diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp index a57ffec1f..a37199ed4 100644 --- a/Jusin154_Team3D/Engine/Private/UIObject.cpp +++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp @@ -35,6 +35,7 @@ HRESULT CUIObject::Initialize(void* pArg) // 이제 뷰포트의 개수랑 정보를 저장할 포인터를 넣어준다. m_pContext->RSGetViewports(&iNumViewports, &ViewportDesc); + // 이제 받아온 fX,fY,fSizeX,fSizeY를 다 저장 해 놓는다. UIOBJECT_DESC* pDesc = static_cast(pArg); diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 20d5b28c3..a3e252f7d 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -309,6 +309,10 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "SHIELD_BLOCK5", SHIELD_BLOCK5 }, { "SHIELD_BLOCK6", SHIELD_BLOCK6 }, { "SHIELD_BLOCK7", SHIELD_BLOCK7 }, + { "SHIELD_BLOCK_90_L1", SHIELD_BLOCK_90_L1 }, { "SHIELD_BLOCK_90_L2", SHIELD_BLOCK_90_L2 }, + { "SHIELD_BLOCK_90_R1", SHIELD_BLOCK_90_R1 }, { "SHIELD_BLOCK_90_R2", SHIELD_BLOCK_90_R2 }, + { "SHIELD_BLOCK_180_L", SHIELD_BLOCK_180_L }, { "SHIELD_BLOCK_180_R", SHIELD_BLOCK_180_R }, + // SPELL { "SPELL", SPELL }, { "SPELL_180_R", SPELL_180_R }, { "SPELL_90_R", SPELL_90_R }, { "SPELL_90_L", SPELL_90_L }, @@ -353,7 +357,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) // PARRY { "PARRY_180", PARRY_180 }, - { "PARRY2", PARRY2 }, { "PARRY3", PARRY3 }, { "PARRY4", PARRY4 }, + { "PARRY2", PARRY2 }, { "PARRY3", PARRY3 }, { "PARRY4", PARRY4 }, { "PARRY5", PARRY5 }, { "PARRY6", PARRY6 }, // BROOM (기존 세트) { "BROOM_IDLE", BROOM_IDLE }, @@ -490,6 +494,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "FIRESWEEP_WINDUP_A", FIRESWEEP_WINDUP_A }, { "FIREBREATH_G", FIREBREATH_G }, { "FIRESWEEP_G", FIRESWEEP_G }, + { "FIRESWEEP_G_L", FIRESWEEP_G_L }, { "FIRESWEEP_G_R", FIRESWEEP_G_R }, // ETC { "PULSE", PULSE }, @@ -524,6 +529,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "CUTSCENE_OPENINGINTRO2", CUTSCENE_OPENINGINTRO2 }, { "CUTSCENE_OPENINGINTRO3", CUTSCENE_OPENINGINTRO3 }, + // CUTSCENE_DUEL + { "CUTSCENE_DUEL", CUTSCENE_DUEL }, + // BROOM (B 세트) { "BROOM_MOUNT_B", BROOM_MOUNT_B }, { "BROOM_HOVER_IDLE_B", BROOM_HOVER_IDLE_B }, diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index 55fd5ff95..64df874d6 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -33,6 +33,7 @@ class ENGINE_DLL CAnimation : public CBase void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition = TrackPosition; } _float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; } _float Get_CurrentTrackProgressRatio() { return m_fTempTrack / m_fDurationSeconds;} + void Set_CurrentTrackProgressRatio(_float fRatio); void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; } _float Get_AnimSpeed() { return m_fAnimSpeed; } diff --git a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h index 31982bb57..6d3830af9 100644 --- a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h +++ b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h @@ -36,6 +36,9 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback case PXOBJECT::RANROK_PROP: return PSX::PxQueryHitType::eNONE; break; + case PXOBJECT::POTION: + return PSX::PxQueryHitType::eNONE; + break; case PXOBJECT::NPC: case PXOBJECT::OLLIVANDER: case PXOBJECT::ELEAZARFIG: diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index ccbdb7493..378f85d80 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -201,7 +201,7 @@ enum class PXOBJECT : _uint { ITEM = 600, DROPITEM = 630, TRAP = 660, - + POTION = 690, #pragma endregion #pragma region TRIGGERBOX TRIGGERBOX = 700, diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h index 7933e1aa1..bb94f853f 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h @@ -577,6 +577,7 @@ typedef struct tagOnCollsionInfo _float4 vHitDir = {}; // 시도한 move 방향 _float fLength = {}; // 작용된 힘 _int eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE); // 발사체/적당한 공격/강공격 + _int eCollisionType = {}; _float fDamage = {}; // 데미지 class CGameObject* pObject = { nullptr }; // 시전자 }ON_COLLISION_INFO; diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 3269564bc..4d223fb5b 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -39,6 +39,8 @@ class ENGINE_DLL CModel final : public CComponent _float UpperBlend; _int SecondAnimIndex; _float SecondAnimTime; + + _float4x4 WorldMatrix; }ANIMSTATE_DESC; typedef struct tagBoneInsertionDesc { @@ -78,7 +80,7 @@ class ENGINE_DLL CModel final : public CComponent _bool Play_Anim(_float fTimeDelta, CTransform* pTransform); _bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform); _bool IsBlending() const; - void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false, _float fAnimSpeed = 1.f, _bool bRootBone = true, _bool bQueuedAnim = false, _bool bInit = true); + void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false, _float fAnimSpeed = 1.f, _bool bRootBone = true, _bool bQueuedAnim = false); void Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLoop = false); _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } _bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; } @@ -87,6 +89,7 @@ class ENGINE_DLL CModel final : public CComponent const _char* Get_AnimList(_uint iIndex); _float Get_CurrentTrackPosition(); _float Get_CurrentTrackProgressRatio(); + void Set_CurrentTrackProgressRatio(_float fRatio); _float Get_TrackProgressRatio(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } diff --git a/Jusin154_Team3D/Engine/Public/PanelObject.h b/Jusin154_Team3D/Engine/Public/PanelObject.h index d49e14c04..533e124f5 100644 --- a/Jusin154_Team3D/Engine/Public/PanelObject.h +++ b/Jusin154_Team3D/Engine/Public/PanelObject.h @@ -42,6 +42,12 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject virtual _bool Chack_Visible() override; virtual _bool Chack_Element(_float2 Position, _float2 Target, _float Scale, _float TargetScale); + + _bool World_Screen(_float3 fWorld_Pos, _float2& fScreenPos, _float& fDepth); + _bool Screen(_float2& fWorld_Pos, _float Winx, _float Winy); + _float2 Get_EdgePosition(_float2 fWorld_Pos, _float Winx, _float Winy, _float OffSetY); + _bool World_to_ScreenUI(_float3 fWorld_Pos, _float2& fScreenPos, _float OffSetY); + protected: vector m_Elements; // 패널이 엘리먼츠를 관리하기 위해 만듬 vector m_ElementName; // 엘리멘트들의 이름을 전해주기 위해서 @@ -51,6 +57,7 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject _int m_iElements_Count{}; // 전체 엘리멘트의 갯수 + _bool m_bShowOffScreenUI = { false }; private: virtual class CGameObject* Find_Element(const wstring& Name); diff --git a/Jusin154_Team3D/Engine/Public/Quest.h b/Jusin154_Team3D/Engine/Public/Quest.h index 734c234ee..726659cdb 100644 --- a/Jusin154_Team3D/Engine/Public/Quest.h +++ b/Jusin154_Team3D/Engine/Public/Quest.h @@ -9,10 +9,11 @@ class ENGINE_DLL CQuest abstract : public CGameObject public: typedef struct tagObjectiveInfo { - _bool bClear{}; - _int iTargetID{}; - _int iRequiredCount{}; - _int iCurrentCount{}; + _bool bClear{}; + _int iTargetID{}; + _wstring pQuestInfo{}; + _int iRequiredCount{}; + _int iCurrentCount{}; }OBJECTIVEINFO; typedef struct tagRewardsInfo @@ -43,10 +44,11 @@ class ENGINE_DLL CQuest abstract : public CGameObject public: virtual _bool Update_Objective(_int MonsterID); virtual _int Get_QuestID(); - + virtual _int Get_MonsterID(); protected: vector m_ObjectiveInfo; _int m_iQuestID{}; + _int m_iMonsterID{}; public: virtual void Free() override; diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 392653125..b1640edb8 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -14,6 +14,7 @@ enum ESTATE LAND,LAND_TO_JOG,LAND_TO_SPRINT,LAND_HARD,LAND_MID,LAND_SOFT, DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK, COMBAT, SKILL, SKILL2, SHIELD_BLOCK1, SHIELD_BLOCK2, SHIELD_BLOCK3, SHIELD_BLOCK4, SHIELD_BLOCK5, SHIELD_BLOCK6, SHIELD_BLOCK7, + SHIELD_BLOCK_90_L1,SHIELD_BLOCK_90_L2,SHIELD_BLOCK_90_R1, SHIELD_BLOCK_90_R2,SHIELD_BLOCK_180_L, SHIELD_BLOCK_180_R, SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2, LIGHT_ATTACK, LIGHT_ATTACK2, LIGHT_ATTACK3, LIGHT_ATTACK4,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3, ATTACK_END, @@ -22,7 +23,7 @@ enum ESTATE ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW, AVADA_KEDAVRA,REPARO_START, REPARO_LOOP, REPARO_END, SPELL_FAIL, SPELL_CHARGE, ANCIENT_LIGHTNING, - PARRY_180,PARRY2, PARRY3, PARRY4, + PARRY_180,PARRY2, PARRY3, PARRY4, PARRY5, PARRY6, BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_REVELIO, BROOM_HOVER_IDLE, BROOM_HOVER_FWD, BROOM_HOVER_LEFT, BROOM_HOVER_RIGHT, BROOM_HOVER_START, BROOM_HOVER_REVELIO,BROOM_MOUNT, BROOM_MOUNT_END,BROOM_DISMOUNT,BROOM_TURBO_FWD, BROOM_TURBO_DOWN, BROOM_TURBO_UP, BROOM_TURBO_LEFT, BROOM_TURBO_RIGHT, RUSH_START,RUSH_LOOP,RUSH_END, THROW_ROCK_START,THROW_ROCK, @@ -41,7 +42,7 @@ enum ESTATE STUMBLE_BWD_L,STUMBLE_BWD_R,STUMBLE_FWD, HOVER_LOOP,HOVER_DASH_FWD, HOVER_DASH_BWD, HOVER_DASH_LEFT, HOVER_DASH_RIGHT, FIREBALL1_A,FIREBALL2_A, FIREBALL1_G, FIREBALL2_G, - FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G, + FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G,FIRESWEEP_G_L, FIRESWEEP_G_R, PULSE, GROUND_SWIPE_L,GROUND_SWIPE_R, TUCKED,FLY_TO_HOVER,FLY, @@ -54,7 +55,7 @@ enum ESTATE #pragma endregion #pragma region CUTSCENE - CUTSCENE_TROLLINTRO,CUTSCENE_OPENINGINTRO1, CUTSCENE_OPENINGINTRO2, CUTSCENE_OPENINGINTRO3, + CUTSCENE_TROLLINTRO,CUTSCENE_OPENINGINTRO1, CUTSCENE_OPENINGINTRO2, CUTSCENE_OPENINGINTRO3,CUTSCENE_DUEL, #pragma endregion END }; diff --git a/Jusin154_Team3D/Engine/Public/Transform.h b/Jusin154_Team3D/Engine/Public/Transform.h index bcb69fea0..de040efa4 100644 --- a/Jusin154_Team3D/Engine/Public/Transform.h +++ b/Jusin154_Team3D/Engine/Public/Transform.h @@ -91,7 +91,8 @@ class ENGINE_DLL CTransform final : void Add_SpeedPerSec(_float fSpeedPerSec); #ifdef _DEBUG - _float3& Get_Rotation() { return m_vRotation; } + _float3& Get_Rotation() { return m_vRotation; } + void Set_Rotation(_float3 vRotation) { m_vRotation = vRotation; } #endif // _DEBUG private: