diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index c63e31d27..466fc38e8 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -191,6 +191,9 @@ call Update_Resources.bat + + + @@ -489,6 +492,9 @@ call Update_Resources.bat + + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index f65ccdc30..32250eb56 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -905,6 +905,15 @@ 02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide + + 02.GameObjects\Effect\Effects\Protego\ProtegoHit + + + 02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit + + + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop @@ -1881,6 +1890,15 @@ {f2ddb6fa-89b6-4322-912e-61e0ce79278c} + + {c63abdad-13ae-43af-812a-25bcd5f7064b} + + + {696df72a-c0ad-483d-9fb3-b5e053696457} + + + {75632dfe-2808-4ce3-abc1-8020563d3a6e} + @@ -2739,6 +2757,15 @@ 02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide + + 02.GameObjects\Effect\Effects\Protego\ProtegoHit + + + 02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit + + + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit + diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp index bf5b7331b..f577c9168 100644 --- a/Jusin154_Team3D/Client/Private/Broom.cpp +++ b/Jusin154_Team3D/Client/Private/Broom.cpp @@ -143,6 +143,9 @@ void CBroom::Update(_float fTimeDelta) void CBroom::Late_Update(_float fTimeDelta) { + if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) { + return; + } __super::Late_Update(fTimeDelta); if (m_bRide == true && m_pWindEffect != nullptr) diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index 2de92b491..970fd4077 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -53,6 +53,24 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta) break; case ENUM_CLASS(RACE_STATE::FINISH): 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 (racer.pRacer) + { + if (m_pGameInstance->Key_Up(DIK_ESCAPE)) + { + m_bRaceEnd = true; + } + } + } + } + break; } } @@ -89,10 +107,33 @@ void CBroomRaceManager::Update(_float fTimeDelta) m_pInfoInstance->Event_CallBack(TEXT("RaceEnd")); m_iCount = 3; m_bRaceStart = false; + m_eRaceState = ENUM_CLASS(RACE_STATE::END); } } } + 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); + + 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)); + m_bRaceEnd = false; + m_fDelay = 0.f; + } + } + } + } + + + #ifdef _DEBUG //Describe_Entity(); #endif // _DEBUG @@ -172,6 +213,72 @@ 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); @@ -191,6 +298,17 @@ void CBroomRaceManager::Describe_Entity() //} //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 = @@ -418,15 +536,16 @@ void CBroomRaceManager::RaceReady() } else if (racer.pRacer) { - /*CTransform* pTransform = - racer.pRacer->Get_Component();*/ CTransform* pTransform = - racer.pRacer->Get_Broom()->Get_Component(); + racer.pRacer->Get_Component(); CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); + XMStoreFloat4(&m_OriginPos, racer.pRacer->Get_WorldPostion()); 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_Move(false); + } } diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp index 3431d8e7b..319bd3cab 100644 --- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp @@ -138,7 +138,9 @@ void CBroomRacerAI::Update(_float fTimeDelta) void CBroomRacerAI::Late_Update(_float fTimeDelta) { - + if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) { + return; + } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index b1da4dd04..bad6a1245 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -424,7 +424,7 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts() CameraDesc.bEnableTransitionLerp = true; CameraDesc.bEnableFollowLerp = false; CameraDesc.bEnableLookLerp = false; - CameraDesc.vTransitionTime = { 0.f, 1.f }; + CameraDesc.vTransitionTime = { 0.f, 3.f }; CameraDesc.vFollowLerpTime = { 0.f, TIMER_SHORT_LERP }; CameraDesc.vLookLerpTime = { 0.f, TIMER_SHORT_LERP }; diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp index 66fae4a22..e9b51049a 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp @@ -13,6 +13,9 @@ CCamPosition_Target::CCamPosition_Target(const CCamPosition_Target& rhs) void CCamPosition_Target::Priority_Update(_float fTimeDelta) { + if (nullptr != m_pStalkingTarget) { + Set_WorldPostion(m_pStalkingTarget->Get_WorldPostion()); + } } void CCamPosition_Target::Update(_float fTimeDelta) @@ -28,6 +31,23 @@ _vector CCamPosition_Target::Get_WorldPostion() return m_pTransformCom->Get_State(STATE::POSITION); } +void CCamPosition_Target::Set_WorldPostion(_vector vPos) +{ + m_pTransformCom->Set_State(STATE::POSITION, vPos); +} + +void CCamPosition_Target::Stalking_Target(CGameObject* pStalkingTarget) +{ + SAFE_RELEASE(m_pStalkingTarget); + m_pStalkingTarget = pStalkingTarget; + SAFE_ADDREF(m_pStalkingTarget); +} + +void CCamPosition_Target::Stop_Stalking() +{ + SAFE_RELEASE(m_pStalkingTarget); +} + HRESULT CCamPosition_Target::Initialize_Prototype() { return S_OK; @@ -88,6 +108,7 @@ CCamPosition_Target* CCamPosition_Target::Clone(void* pArg, class CGameObject* p void CCamPosition_Target::Free() { __super::Free(); + SAFE_RELEASE(m_pStalkingTarget); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp index bda5fccbe..b17f87407 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp @@ -2,19 +2,12 @@ #include "Camera_Cinematic.h" #include "InfoInstance.h" #include "TimeSocket.h" +#include "CamPosition_Target.h" #include "Layer.h" -CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CCamera(pDevice, pContext) -{ -} - -CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) - : CCamera(rhs), - m_pInfoInstance(CInfoInstance::GetInstance()) -{ -} +CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CCamera(pDevice, pContext) {} +CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs), m_pInfoInstance(CInfoInstance::GetInstance()) { } void CCamera_Cinematic::Priority_Update(_float fTimeDelta) { @@ -29,7 +22,17 @@ void CCamera_Cinematic::Priority_Update(_float fTimeDelta) if (false == m_bActive) { return; } + if (false == m_bIsCurrentTransition) { + m_pLookTargetPart->Priority_Update(fTimeDelta); + m_pFollowTargetPart->Priority_Update(fTimeDelta); + m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTargetPart->Get_WorldPostion()); + m_pTransformCom->LookAt(m_pLookTargetPart->Get_WorldPostion()); + } + else { + Transition(fTimeDelta); + } m_bActive = true; + Update_LerpTimer(fTimeDelta); __super::Bind_Matrices(); } @@ -41,9 +44,6 @@ void CCamera_Cinematic::Update(_float fTimeDelta) if (false == m_bActive) { return; } - Transition(fTimeDelta); - Update_LerpTimer(fTimeDelta); - } void CCamera_Cinematic::Late_Update(_float fTimeDelta) { @@ -51,9 +51,20 @@ void CCamera_Cinematic::Late_Update(_float fTimeDelta) return; } } -HRESULT CCamera_Cinematic::Render() +HRESULT CCamera_Cinematic::Render() { return S_OK; } +void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo) { - return S_OK; + if (true == m_bEnable_TransitionLerp) { + _vector vNewPos = XMVectorSetW(XMLoadFloat3(&pairTransitionInfo.second), 1.f); + m_pTransformCom->Set_WorldMatrix(XMMatrixAffineTransformation(XMVectorSplatOne(), XMVectorZero(), + XMLoadFloat4(&pairTransitionInfo.first), vNewPos)); + m_vTransitionTime.x = 0.f; + m_bIsCurrentTransition = true; + + m_pFollowTargetPart->Set_WorldPostion(vNewPos); + m_pLookTargetPart->Set_WorldPostion(vNewPos + m_pTransformCom->Get_State(STATE::LOOK) * 10.f); + } + m_bActive = true; } void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta) @@ -62,25 +73,8 @@ void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta) return; } Lerp_Translation(fTimeDelta); + Lerp_Rotation(fTimeDelta); Lerp_FovY(fTimeDelta); - if (true == m_bEnable_LookLerp) { - m_vLookLerpTime.x += fTimeDelta; - if (m_vLookLerpTime.y <= m_vLookLerpTime.x) { - m_vLookLerpTime.x = 0.f; - XMStoreFloat3(&m_vLookPos_Src, XMLoadFloat3(&m_vLookPos_Dest)); - XMStoreFloat3(&m_vLookPos_Dest, m_pLookTarget->Get_WorldPostion()); - } - } - - if (true == m_bEnable_FollowLerp) { - m_vFollowLerpTime.x += fTimeDelta; - if (m_vFollowLerpTime.y <= m_vFollowLerpTime.x) { - m_vFollowLerpTime.x = 0.f; - XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION)); - XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion()); - } - } - } void CCamera_Cinematic::Set_Priority(_uint iPriority) @@ -90,16 +84,12 @@ void CCamera_Cinematic::Set_Priority(_uint iPriority) void CCamera_Cinematic::Set_LookTarget(CGameObject* pTarget) { - SAFE_RELEASE(m_pLookTarget); - m_pLookTarget = pTarget; - SAFE_ADDREF(m_pLookTarget); + m_pLookTargetPart->Stalking_Target(pTarget); } void CCamera_Cinematic::Set_FollowTarget(CGameObject* pTarget) { - SAFE_RELEASE(m_pFollowTarget); - m_pFollowTarget = pTarget; - SAFE_ADDREF(m_pFollowTarget); + m_pFollowTargetPart->Stalking_Target(pTarget); } void CCamera_Cinematic::Trigger(CTimeSocket& Socket) @@ -111,15 +101,25 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket) m_pGameInstance->Bind_Camera(NEXT_LEVEL, pContents->wstrKeyName, true); break; case TIMESOCKET_FUNC::TRANSLATION: - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f)); - m_pTransformCom->RotationQ(pContents->pxTransform.q); + { + m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f)); Clear_Lerp_Translation(); - break; + } break; case TIMESOCKET_FUNC::TRANSLATION_LERP: { Clear_Lerp_Translation(); Start_Lerp_Translation(pContents->vParam_11.x, pContents->pxTransform); } break; + case TIMESOCKET_FUNC::ROTATION: { + m_pTransformCom->RotationQ(pContents->pxTransform.q); + m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK) * 10.f); + Clear_Lerp_Rotation(); + } break; + case TIMESOCKET_FUNC::ROTATION_LERP: + { + Clear_Lerp_Rotation(); + Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform); + } break; case TIMESOCKET_FUNC::LOOK_AT: { Set_LookTarget(pContents->pOtherTarget); @@ -165,6 +165,10 @@ HRESULT CCamera_Cinematic::Initialize(void* pArg) return E_FAIL; } + if (FAILED(Ready_SubPart())) { + return E_FAIL; + } + return S_OK; } HRESULT CCamera_Cinematic::Ready_Components(void* pArg) @@ -175,6 +179,20 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg) return S_OK; } + +HRESULT CCamera_Cinematic::Ready_SubPart() +{ + { + CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{}; + Desc.pParentTransform = m_pTransformCom; + m_pFollowTarget = m_pFollowTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + m_pFollowTargetPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f)); + m_pLookTarget = m_pLookTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + m_pLookTargetPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f)); + } + return S_OK; +} + HRESULT CCamera_Cinematic::Bind_ShaderResources() { return S_OK; @@ -187,25 +205,22 @@ void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta) m_vLerpTranslationTimer.x = m_vLerpTranslationTimer.y; m_bLerpTranslation = false; } - _float4x4 ResultMatrix = {}; - CMyTools::MatrixLerp(&m_vLerpTranslationStart, &m_vLerpTranslationEnd, &m_vLerpRotQStart, &m_vLerpRotQEnd, - ResultMatrix, m_vLerpTranslationTimer.x / m_vLerpTranslationTimer.y); - m_pTransformCom->Set_WorldMatrix(ResultMatrix); + + _vector vPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLerpTranslationStart), XMLoadFloat3(&m_vLerpTranslationEnd), m_vLerpTranslationTimer.x / m_vLerpTranslationTimer.y), 1.f); + m_pFollowTargetPart->Set_WorldPostion(vPos); } } void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform) { _float3 vTrans = { pxTransform.p.x , pxTransform.p.y, pxTransform.p.z }; - _float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w }; - Start_Lerp_Translation(fTimeMaximum, vTrans, vRotQ); + Start_Lerp_Translation(fTimeMaximum, vTrans); } -void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans, _float4& vRotQ) +void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans) { m_bLerpTranslation = { fTimeMaximum != 0 }; m_vLerpTranslationTimer = { 0.f, fTimeMaximum }; - m_pTransformCom->Compress_WorldMatrix(m_vLerpTranslationStart, m_vLerpRotQStart); + XMStoreFloat3(&m_vLerpTranslationStart, m_pTransformCom->Get_State(STATE::POSITION)); m_vLerpTranslationEnd = vTrans; - m_vLerpRotQEnd = vRotQ; } void CCamera_Cinematic::Clear_Lerp_Translation() { @@ -213,6 +228,36 @@ void CCamera_Cinematic::Clear_Lerp_Translation() m_vLerpTranslationTimer = {}; m_vLerpTranslationStart = {}; m_vLerpTranslationEnd = {}; +} +void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta) +{ + if (true == m_bLerpRotiation) { + m_vLerpRotiationTimer.x += fTimeDelta; + if (m_vLerpRotiationTimer.y < m_vLerpRotiationTimer.x) { + m_vLerpRotiationTimer.x = m_vLerpRotiationTimer.y; + m_bLerpRotiation = false; + } + _vector vRotQ = XMQuaternionSlerp(XMLoadFloat4(&m_vLerpRotQStart), XMLoadFloat4(&m_vLerpRotQEnd), m_vLerpRotiationTimer.x / m_vLerpRotiationTimer.y); + _vector vPos = m_pTransformCom->Get_State(STATE::POSITION); + m_pLookTargetPart->Get_Component()->RotationQ(vRotQ); + } +} +void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform) +{ + _float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w }; + Start_Lerp_Rotation(fTimeMaximum, vRotQ); +} +void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ) +{ + m_bLerpRotiation = { fTimeMaximum != 0 }; + m_vLerpRotiationTimer = { 0.f, fTimeMaximum }; + XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector()); + m_vLerpRotQEnd = vRotQ; +} +void CCamera_Cinematic::Clear_Lerp_Rotation() +{ + m_bLerpRotiation = { false }; + m_vLerpRotiationTimer = {}; m_vLerpRotQStart = {}; m_vLerpRotQEnd = {}; } @@ -239,6 +284,31 @@ void CCamera_Cinematic::Clear_Lerp_FovY() m_vFovYLerp = { 60.f, 60.f }; m_vLerpFovYTimer = { 0.f, 0.f }; } +void CCamera_Cinematic::Transition(_float fTimeDelta) +{ + if (false == m_bIsCurrentTransition) { + return; + } + m_vTransitionTime.x += fTimeDelta; + _float fRatio = m_vTransitionTime.x / m_vTransitionTime.y; + if (fRatio > 1.f) { + fRatio = 1.f; + m_bIsCurrentTransition = false; + } + + _vector vFollowTarget = m_pFollowTargetPart->Get_WorldPostion(); + _vector vLookTarget = m_pLookTargetPart->Get_WorldPostion(); + + _matrix xmMatTarget = XMMatrixInverse(nullptr, XMMatrixLookAtLH(vFollowTarget, vLookTarget, XMVectorSet(0.f, 1.f, 0.f, 0.f))); + + _float4x4 matOrigin = *m_pTransformCom->Get_WorldMatrixPtr(); + _float4x4 matTarget = {}; XMStoreFloat4x4(&matTarget, xmMatTarget); + _float4x4 matResult = {}; + + CMyTools::MatrixLerp(&matOrigin, &matTarget, matResult, fRatio); + + m_pTransformCom->Set_WorldMatrix(matResult); +} CCamera_Cinematic* CCamera_Cinematic::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CCamera_Cinematic* pInstance = new CCamera_Cinematic(pDevice, pContext); @@ -265,6 +335,9 @@ CGameObject* CCamera_Cinematic::Clone(void* pArg, CGameObject* pOwner) void CCamera_Cinematic::Free() { __super::Free(); + + SAFE_RELEASE(m_pLookTargetPart); + SAFE_RELEASE(m_pFollowTargetPart); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp index 4dd9f2729..a36b464d9 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -32,12 +32,12 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta) _vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), CMyTools::Saturate(m_vLookLerpTime.x / fTimeDenom)), 1.f); m_pTransformCom->LookAt(vNewLook); } + else if (m_bSyncFollow) { + m_pTransformCom->Set_WorldMatrix(m_pFollowTarget->Get_Component()->Get_XMWorldMatrix()); + } else { m_pTransformCom->LookAt(m_pLookTarget->Get_Component()->Get_State(STATE::POSITION)); } - if (m_bSyncFollow) { - m_pTransformCom->Set_WorldMatrix(m_pFollowTarget->Get_Component()->Get_XMWorldMatrix()); - } } else { diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp index 6d02fde21..d128fd096 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp @@ -4,7 +4,8 @@ #include "GameInstance.h" #include "EffectParts.h" #include "Player.h" - +#include "EffectPool.h" +#include "Layer.h" CDuelist_Protego::CDuelist_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } @@ -18,6 +19,8 @@ CDuelist_Protego::CDuelist_Protego(const CDuelist_Protego& rhs) HRESULT CDuelist_Protego::Initialize_Prototype() { + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCProtego"))) + return E_FAIL; return S_OK; @@ -31,8 +34,6 @@ HRESULT CDuelist_Protego::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego"))) - return E_FAIL; if (FAILED(Create_Effect())) return E_FAIL; @@ -49,7 +50,7 @@ HRESULT CDuelist_Protego::Initialize(void* pArg) m_fAmountSize = 0.1f; m_fSpeed = 5.f; - m_fDuration = 3.f; + m_fDuration = 6.f; return S_OK; } @@ -94,6 +95,7 @@ void CDuelist_Protego::Late_Update(_float fTimeDelta) if (m_bVisible == false) { return; } + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component()->Get_Position()); __super::Late_Update(fTimeDelta); @@ -116,6 +118,8 @@ HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg) m_pSphere->Get_Component()->Set_Scale(vSize); m_pSphereLay->Get_Component()->Set_Scale(vSize); + + m_fSizeAccTime = 0.f; return S_OK; @@ -134,6 +138,7 @@ HRESULT CDuelist_Protego::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) { return E_FAIL; } + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } @@ -197,6 +202,9 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc) break; } } + + m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object() + ->Use_Skill(SKILL_TYPE::DUELIST_PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos); } diff --git a/Jusin154_Team3D/Client/Private/Duelist_ProtegoHit.cpp b/Jusin154_Team3D/Client/Private/Duelist_ProtegoHit.cpp new file mode 100644 index 000000000..8037ebab3 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Duelist_ProtegoHit.cpp @@ -0,0 +1,188 @@ +#include "pch.h" +#include "Duelist_ProtegoHit.h" + +#include "GameInstance.h" +#include "EffectParts.h" + + +CDuelist_ProtegoHit::CDuelist_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CDuelist_ProtegoHit::CDuelist_ProtegoHit(const CDuelist_ProtegoHit& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CDuelist_ProtegoHit::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCProtegoHit"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CDuelist_ProtegoHit::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"NPCProtegoHit"; + + m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay"); + m_pHit_Light = Get_PartObject("Hit_Light"); + + SAFE_ADDREF(m_pHit_SphereLay); + SAFE_ADDREF(m_pHit_Light); + + + m_fDuration = 3.f; + + _float3 vScale = _float3(1.1f, 1.1f, 1.1f); + + m_pHit_SphereLay->Get_Component()->Set_Scale(vScale); + m_pHit_Light->Get_Component()->Set_Scale(vScale); + + return S_OK; +} + +void CDuelist_ProtegoHit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CDuelist_ProtegoHit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + 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()); +} + +void CDuelist_ProtegoHit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CDuelist_ProtegoHit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + + CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT"); + CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); + CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit"); + + 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()); + + pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + + m_pHit_SphereLay->Set_Visible(true); + m_pHit_Light->Set_Visible(true); + + pProtego_HitPT->Set_Visible(true); + pProtego_HitPT_Line->Set_Visible(true); + pProtegoHit->Set_Visible(true); + + + + + return S_OK; +} + +HRESULT CDuelist_ProtegoHit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CDuelist_ProtegoHit::Ready_Child() +{ + return S_OK; +} + +CDuelist_ProtegoHit* CDuelist_ProtegoHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDuelist_ProtegoHit* pInstance = new CDuelist_ProtegoHit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDuelist_ProtegoHit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CDuelist_ProtegoHit::Clone(void* pArg, CGameObject* pOwner) +{ + CDuelist_ProtegoHit* pInstance = new CDuelist_ProtegoHit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDuelist_ProtegoHit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDuelist_ProtegoHit::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CDuelist_ProtegoHit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pHit_SphereLay); + SAFE_RELEASE(m_pHit_Light); +} +#ifdef _DEBUG + +void CDuelist_ProtegoHit::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CDuelist_ProtegoHit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index d5961acf4..62ae635e2 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -24,6 +24,8 @@ #include "Lumos.h" #include "WandEnd.h" +#include "Protego_Hit.h" + #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" @@ -45,6 +47,10 @@ #include "Blink.h" #include "Transformation.h" #include "Avadakedavra.h" + +#include "Goblin_ProtegoHit.h" +#include "Duelist_ProtegoHit.h" + #include "Ranrok_FireBall.h" #include "Ranrok_Breath.h" #include "Ranrok_Point.h" @@ -496,6 +502,17 @@ HRESULT CEffectPool::Ready_Effect() ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CProtego_Hit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + return S_OK; } @@ -738,6 +755,24 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CGoblin_ProtegoHit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::DUELIST_PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CDuelist_ProtegoHit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp index c909d3b24..21234be26 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp @@ -3,9 +3,11 @@ #include "GameInstance.h" #include "EffectParts.h" +#include "Player.h" +#include "EffectPool.h" +#include "Layer.h" #include "MapElement_Interactable.h" - CGoblin_Protego::CGoblin_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } { @@ -33,24 +35,23 @@ HRESULT CGoblin_Protego::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + if (FAILED(Create_Effect())) return E_FAIL; m_pSphere = Get_PartObject("ProtegoSphere"); - m_pBottom = Get_PartObject("ProtegoBottom"); - m_pCircle = Get_PartObject("ProtegoCircle"); + m_pSphereLay = Get_PartObject("ProtegoLay"); SAFE_ADDREF(m_pSphere); - SAFE_ADDREF(m_pBottom); - SAFE_ADDREF(m_pCircle); + SAFE_ADDREF(m_pSphereLay); - m_wstrEffectName = L"Goblin_Protego"; + m_wstrEffectName = L"Protego"; m_fAmountSize = 0.1f; m_fSpeed = 5.f; - m_fDuration = 3.f; + m_fDuration = 6.f; return S_OK; } @@ -58,7 +59,6 @@ HRESULT CGoblin_Protego::Initialize(void* pArg) void CGoblin_Protego::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - } void CGoblin_Protego::Update(_float fTimeDelta) @@ -67,8 +67,7 @@ void CGoblin_Protego::Update(_float fTimeDelta) return; m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - m_pCircle-> Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); __super::Update(fTimeDelta); @@ -89,15 +88,18 @@ void CGoblin_Protego::Update(_float fTimeDelta) _float3 vSize = _float3(fSize, fSize, fSize); m_pSphere->Get_Component()->Set_Scale(vSize); - m_pCircle->Get_Component()->Set_Scale(vSize); + m_pSphereLay->Get_Component()->Set_Scale(vSize); } void CGoblin_Protego::Late_Update(_float fTimeDelta) { - if (m_bVisible == false) + if (m_bVisible == false) { return; + } + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component()->Get_Position()); __super::Late_Update(fTimeDelta); + } HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg) @@ -106,17 +108,18 @@ HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg) return E_FAIL; m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - m_pCircle->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pSphere->Set_Visible(true); - m_pCircle->Set_Visible(true); - m_pBottom->Set_Visible(true); + m_pSphereLay->Set_Visible(true); + _float3 vSize = _float3(1.f, 1.f, 1.f); m_pSphere->Get_Component()->Set_Scale(vSize); - m_pCircle->Get_Component()->Set_Scale(vSize); + m_pSphereLay->Get_Component()->Set_Scale(vSize); + + m_fSizeAccTime = 0.f; @@ -129,12 +132,14 @@ HRESULT CGoblin_Protego::Ready_Components(void* pArg) return E_FAIL; } + { // DO CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_PROTEGO); if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) { return E_FAIL; } + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } @@ -175,8 +180,6 @@ 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); @@ -212,6 +215,9 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) } } + m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object() + ->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos); + } void CGoblin_Protego::Free() @@ -221,21 +227,19 @@ void CGoblin_Protego::Free() //if(m_pPhysHitBox != nullptr) // if (m_pPhysHitBox->Get_Depth() == false) // SAFE_RELEASE(m_pPhysHitBox); - - SAFE_RELEASE(m_pSphere); - SAFE_RELEASE(m_pBottom); - SAFE_RELEASE(m_pCircle); SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pSphere); + SAFE_RELEASE(m_pSphereLay); } #ifdef _DEBUG void CGoblin_Protego::Describe_Entity() { - GUI::Begin("PROTEGO", 0, IMGUI_GLOBAL_BEGIN_FLAG); + GUI::Begin("PROTEGO"); - GUI::DragFloat("fAmountSize" ,&m_fAmountSize); - GUI::DragFloat("fSpeed" , &m_fSpeed); + GUI::DragFloat("fAmountSize", &m_fAmountSize); + GUI::DragFloat("fSpeed", &m_fSpeed); GUI::End(); } diff --git a/Jusin154_Team3D/Client/Private/Goblin_ProtegoHit.cpp b/Jusin154_Team3D/Client/Private/Goblin_ProtegoHit.cpp new file mode 100644 index 000000000..7debf4496 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Goblin_ProtegoHit.cpp @@ -0,0 +1,188 @@ +#include "pch.h" +#include "Goblin_ProtegoHit.h" + +#include "GameInstance.h" +#include "EffectParts.h" + + +CGoblin_ProtegoHit::CGoblin_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CGoblin_ProtegoHit::CGoblin_ProtegoHit(const CGoblin_ProtegoHit& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CGoblin_ProtegoHit::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CGoblin_ProtegoHit::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"GoblinProtegoHit"; + + m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay"); + m_pHit_Light = Get_PartObject("Hit_Light"); + + SAFE_ADDREF(m_pHit_SphereLay); + SAFE_ADDREF(m_pHit_Light); + + + m_fDuration = 3.f; + + _float3 vScale = _float3(1.1f, 1.1f, 1.1f); + + m_pHit_SphereLay->Get_Component()->Set_Scale(vScale); + m_pHit_Light->Get_Component()->Set_Scale(vScale); + + return S_OK; +} + +void CGoblin_ProtegoHit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CGoblin_ProtegoHit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + 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()); +} + +void CGoblin_ProtegoHit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CGoblin_ProtegoHit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + + CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT"); + CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); + CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit"); + + 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()); + + pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + + m_pHit_SphereLay->Set_Visible(true); + m_pHit_Light->Set_Visible(true); + + pProtego_HitPT->Set_Visible(true); + pProtego_HitPT_Line->Set_Visible(true); + pProtegoHit->Set_Visible(true); + + + + + return S_OK; +} + +HRESULT CGoblin_ProtegoHit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CGoblin_ProtegoHit::Ready_Child() +{ + return S_OK; +} + +CGoblin_ProtegoHit* CGoblin_ProtegoHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CGoblin_ProtegoHit* pInstance = new CGoblin_ProtegoHit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CGoblin_ProtegoHit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CGoblin_ProtegoHit::Clone(void* pArg, CGameObject* pOwner) +{ + CGoblin_ProtegoHit* pInstance = new CGoblin_ProtegoHit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CGoblin_ProtegoHit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CGoblin_ProtegoHit::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CGoblin_ProtegoHit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pHit_SphereLay); + SAFE_RELEASE(m_pHit_Light); +} +#ifdef _DEBUG + +void CGoblin_ProtegoHit::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CGoblin_ProtegoHit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 0a664bcae..407af3a78 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -97,6 +97,9 @@ void CHuman_Duelist::Update(_float fTimeDelta) Play_Event(); + + + __super::Update(fTimeDelta); #ifdef _DEBUG Describe_Entity(); @@ -563,6 +566,8 @@ void CHuman_Duelist::Free() void CHuman_Duelist::Describe_Entity() { + + GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); if (GUI::CollapsingHeader("HUMAN_DUELIST_DESC")) { @@ -610,6 +615,12 @@ void CHuman_Duelist::Describe_Entity() GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp); GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); } + + if(GUI::Button("Reset Pos")) + { + m_pCharacter_Controller->Set_Position(XMVectorSet(1007.f, 6.f, 1016.f, 1.f)); + } + m_pLightCom->Describe_Entity(); } GUI::End(); diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp index 3c61e99f5..ccfc89dd1 100644 --- a/Jusin154_Team3D/Client/Private/Level_Field.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -243,9 +243,9 @@ HRESULT CLevel_Field::Ready_Camera() Camera_Desc.fFar = 500.f; Camera_Desc.pCameraKey = CAMERA_CINEMATIC; Camera_Desc.iPriority = 65; - Camera_Desc.bEnableTransitionLerp = true; - Camera_Desc.bEnableLookLerp = true; - Camera_Desc.bEnableFollowLerp = true; + Camera_Desc.bEnableTransitionLerp = false; + Camera_Desc.bEnableLookLerp = false; + Camera_Desc.bEnableFollowLerp = false; Camera_Desc.vTransitionTime.y = 1.f; Camera_Desc.pFollowTarget = { nullptr }; Camera_Desc.pLookTarget = { nullptr }; @@ -520,8 +520,8 @@ void CLevel_Field::Load_CutSceneXML(const string& path, CCamera* pCamera, CMonst SOCKETCONTENTS SocketContents = {}; SocketContents .fRatio = 0.f; - _int fStartPosition = 0; - pSocketNode->QueryIntAttribute("fStartPosition", &fStartPosition); + _float fStartPosition = 0; + pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition); SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y); // Info tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info"); @@ -531,21 +531,23 @@ void CLevel_Field::Load_CutSceneXML(const string& path, CCamera* pCamera, CMonst SocketContents.strEventName = pEventNameText ? pEventNameText : ""; SocketContents.eTypeParam = TIMESOCKET_PARAM::END; - if (const _char* pTypeText = pInfoNode->Attribute("eTypeParam")) + const _char* pTypeText = pInfoNode->Attribute("eTypeParam"); + if (nullptr != pTypeText) { CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam); } SocketContents.eTypeFunc = TIMESOCKET_FUNC::END; - if (const _char* pFuncText = pInfoNode->Attribute("eTypeFunc")) + const _char* pFuncText = pInfoNode->Attribute("eTypeFunc"); + if (nullptr != pFuncText) { CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc); } SocketContents.pEventTarget = nullptr; SocketContents.funcEvent = nullptr; - - if (const _char* pTargetText = pInfoNode->Attribute("pTarget")) + const _char* pTargetText = pInfoNode->Attribute("pTarget"); + if (nullptr != pTargetText) { if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0) { @@ -565,6 +567,12 @@ void CLevel_Field::Load_CutSceneXML(const string& path, CCamera* pCamera, CMonst SocketContents.pEventTarget = pEventTarget; SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); }; } + else if (strcmp(pTargetText, "ACTOR_RANROK") == 0) + { + CMonster* pEventTarget = pMonster; + SocketContents.pEventTarget = pEventTarget; + SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); }; + } } } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index d49f367f2..50c871951 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -310,9 +310,9 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Hogwart = false; #endif // #ifdef 기무리 - isReady_Background = true; - isReady_Hogsmeade = true; - isReady_Hogwart = true; + isReady_Background = false; + isReady_Hogsmeade = false; + isReady_Hogwart = false; #endif // #ifdef 나 isReady_Background = false; @@ -899,8 +899,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) isLoad_NPC = true; #endif // #ifdef 기무리 - isLoad_NPC = true; - isLoad_RandomNPC = true; + isLoad_NPC = false; + isLoad_RandomNPC = false; #endif // #ifdef 나 isLoad_RandomNPC = true; @@ -998,7 +998,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster() isLoad_Monster = true; #endif // #ifdef 기무리 - isLoad_Monster = true; + isLoad_Monster = false; #endif // #ifdef 나 @@ -1063,7 +1063,6 @@ HRESULT CLevel_GamePlay::Ready_Layer_Manager(const _wstring& strLayerTag) HRESULT CLevel_GamePlay::Reday_Layer_EffectPool() { - //플레이어보다 먼저 생성해야함! if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECTPOOL))) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index e90f409aa..80d7cb02d 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -193,6 +193,10 @@ #include "TransformationSide.h" #include "AvadakedavraSide.h" +#include "Protego_Hit.h" +#include "Goblin_ProtegoHit.h" +#include "Duelist_ProtegoHit.h" + #include "TrailObject.h" #include "Instance_Model.h" #include "Trail.h" @@ -424,10 +428,10 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_UI_SEQUANTIAL = false; #endif // #ifdef 기무리 - isLoad_Background = true; - isLoad_Hogwart = true; - isLoad_UI_SEQUANTIAL = true; - isLoad_NPC = true; + isLoad_Background = false; + isLoad_Hogwart = false; + isLoad_UI_SEQUANTIAL = false; + isLoad_NPC = false; isLoad_Monster = true; #endif // #ifdef 나 @@ -445,6 +449,7 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region MAP_MODELS vector*>> jobMapModels; + vector*>> jobMapShaders; { { /* Terrain */ jobMapModels.emplace_back(Deferred_FolderLoad( @@ -1077,6 +1082,43 @@ HRESULT CLoader::Loading_For_GamePlay() )); } } + +#pragma region SHADER + + { + 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)); + } + +#pragma endregion /* LAND_MODEL */ { /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ @@ -1892,70 +1934,6 @@ HRESULT CLoader::Loading_For_GamePlay() -#pragma endregion -#pragma region SHADER - - m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), - VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), - VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), - VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), - VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), - VTXPOS::Elements, VTXPOS::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), - VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), - VTXMESH::Elements, VTXMESH::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), - VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), - VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), - VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) { - return E_FAIL; - } - #pragma endregion m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); @@ -2571,6 +2549,16 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_ProtegoHit::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDuelist_ProtegoHit::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Attack::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2615,6 +2603,10 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CProtego_Hit::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightningSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -3738,11 +3730,28 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region RECEIVE_THREAD - { // MapModels + { + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); _uint iIndex = 0; - for (auto& JobMapModels : jobMapModels) + for (auto& JobMapShader : jobMapShaders) { - vector* pOut = JobMapModels.get(); + 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); + } + } + +/* 쉐이더 로딩 종료 이후 로딩*/ + + + { // MapModels + m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); + _uint iIndex = 0; + for (auto& JobMapModel : jobMapModels) + { + vector* pOut = JobMapModel.get(); for (_uint i = 0; i < pOut->size(); ++i) { FOLDER_LOAD* pContents = (*pOut)[i]; if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, pContents->pModelTag, pContents->pLoadedModel))) { @@ -4101,10 +4110,28 @@ pair<_wstring, CModel*>* APIENTRY Deferred_ModelLoad_Main(ID3D11Device* pDevice, return Out; } +pair<_wstring, CShader*>* APIENTRY Deferred_ShaderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) +{ + if (FAILED(CoInitializeEx(nullptr, 0))) { + assert(false); + return nullptr; + } + + CShader* pShader = CShader::Create(pDevice, pContext, pShaderFilePath, pElements, iNumElements); + + CoUninitialize(); + pair<_wstring, CShader*>* Out = new pair<_wstring, CShader*>(strPrototypeTag, pShader); + return Out; +} + future*> CLoader::Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag) { return m_pGameInstance->EnqueueJob(&Deferred_ModelLoad_Main, m_pDevice, m_pContext, eType, pDirectoryPath, pPrototypeTag, PreTransform); } +future*> CLoader::Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) { + return m_pGameInstance->EnqueueJob(&Deferred_ShaderLoad_Main, pDevice, pContext, strPrototypeTag, pShaderFilePath, pElements, iNumElements); +} + void CLoader::Ready_MapModels(vector*>>& jobMapModels) { diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index 342f4142b..524009623 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -296,12 +296,14 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) _vector vDir = m_pTransformCom->Get_State(STATE::LOOK); vDir = XMVector3Normalize(vDir); - _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 0.f)); + _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f)); _matrix rotX = XMMatrixRotationX(fRandAngle); _vector vRandDir = XMVector3TransformNormal(vDir, rotX); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir)); + + m_fLinearSpeed = 15.f; } else { Get_PartObject("JapPT0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 337c66d6c..aad1467af 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -430,14 +430,28 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType) } void CPlayer::OnCollision(CGameObject* pOther, void* pDesc) { + pair<_uint, _bool> pairAnimInfo; _int iCurrAnim = m_pModelCom->Get_AnimIndex(); + if (m_pFSM->IsEnable(FSMSTATE::DODGE | FSMSTATE::BLINK) || - m_bShield || iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first || iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first || iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first) return; + if (m_bShield) + { + if (iCurrAnim != m_Animation[STATEANIM::SHIELD_BLOCK].first) { + Start_CameraShake(0.3f, 3.f); + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false); + return; + } + else { + m_bShield = false; + } + } + #ifdef _DEBUG if (m_isDebugMode == true) return; @@ -855,7 +869,8 @@ void CPlayer::Player_PixRot() { _int iCurrAnim = m_pModelCom->Get_AnimIndex(); if (iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first || - iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first) + iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first|| + iCurrAnim == m_Animation[STATEANIM::IDLE].first) { _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 9a7cb6411..4c4f5265c 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -192,7 +192,6 @@ void CPlayer::Behavior_IdleEnter() { pairAnimInfo = m_Animation[STATEANIM::IDLE]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - } HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) @@ -370,16 +369,16 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta) { if (m_bOpeningCutScene) { - _vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f); - m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component()->Get_XMWorldMatrix()); - m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() + Offset); + //_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f); + //m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component()->Get_XMWorldMatrix()); + m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() /*+ Offset*/); } - if (m_pCarriage->Get_Component()->IsFinishedAnim()) + /*if (m_pCarriage->Get_Component()->IsFinishedAnim()) { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; - } + }*/ return S_OK; } @@ -1694,87 +1693,89 @@ void CPlayer::Behavior_ShieldEnter() 0.1f); } -HRESULT CPlayer::Behavior_ShieldExitCheck() +HRESULT CPlayer::Behavior_ShieldExitCheck(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo; _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); _float fEventRatio = 0.2f; - if (m_bShield) + if (iCurrAnimIndex == m_Animation[STATEANIM::SHIELD_BLOCK].first) { - pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + if (fRatio >= 0.1f && fRatio <= 0.2f) + m_bCanParry = true; + else + m_bCanParry = false; + } - if (m_pGameInstance->Key_Pressing(DIK_Q)) + if (m_bShield && m_bCanParry && m_pGameInstance->Key_Pressing(DIK_Q)) + { + m_pFSM->Enable_State(FSMSTATE::PARRY); + if (m_LockOnInfo.pUnit) { - 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) { - _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); + } + 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::PARRY4]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.f,true, false, false); - } - 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; - } + 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::PARRY_180]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true,false, false); + 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::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); - - Start_CameraShake(0.3f, 2.f); - //m_pGameInstance->SlowMotion(0.8f, 0.3f); - m_bShield = false; - return S_OK; - + pairAnimInfo = m_Animation[STATEANIM::PARRY_180]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true, false, false); } } + 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 (SUCCEEDED(InputMove())) @@ -2430,16 +2431,16 @@ 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 look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)); - _vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + //_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); - _vector right = XMVector3Normalize(XMVector3Cross(worldUp, look)); - _vector up = XMVector3Normalize(XMVector3Cross(look, right)); + //_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_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); } @@ -3183,7 +3184,7 @@ void CPlayer::Add_FSM() CState_Shield::STATE_SHIELD_DESC Desc{}; Desc.pOwner = this; Desc.funcEnterEvent = [this]() { Behavior_ShieldEnter(); }; - Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(fTimedelta); }; Desc.funcExitEvent = [this]() { Behavior_ShieldExit(); }; Desc.funcPriorityUpdate = nullptr; Desc.funcLateUpdate = nullptr; diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp index 7170a628c..139194743 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -4,7 +4,8 @@ #include "GameInstance.h" #include "EffectParts.h" #include "Player.h" - +#include "EffectPool.h" +#include "Layer.h" CProtego::CProtego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } @@ -18,6 +19,8 @@ CProtego::CProtego(const CProtego& rhs) HRESULT CProtego::Initialize_Prototype() { + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego"))) + return E_FAIL; return S_OK; @@ -31,8 +34,6 @@ HRESULT CProtego::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego"))) - return E_FAIL; if (FAILED(Create_Effect())) return E_FAIL; @@ -49,7 +50,7 @@ HRESULT CProtego::Initialize(void* pArg) m_fAmountSize = 0.1f; m_fSpeed = 5.f; - m_fDuration = 3.f; + m_fDuration = 6.f; return S_OK; } @@ -62,7 +63,11 @@ void CProtego::Priority_Update(_float fTimeDelta) void CProtego::Update(_float fTimeDelta) { if (m_bVisible == false) + { + dynamic_cast(m_pOwner)->Set_Shield(false); return; + } + m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -117,6 +122,8 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg) m_pSphere->Get_Component()->Set_Scale(vSize); m_pSphereLay->Get_Component()->Set_Scale(vSize); + + m_fSizeAccTime = 0.f; return S_OK; @@ -182,6 +189,12 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); dynamic_cast(m_pOwner)->Set_Shield(true); + + m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object() + ->Use_Skill(SKILL_TYPE::PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos); + + + static_cast(m_pOwner)->Start_CameraShake(0.3f, 2.f); } void CProtego::Free() diff --git a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp new file mode 100644 index 000000000..6edfd4e37 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp @@ -0,0 +1,188 @@ +#include "pch.h" +#include "Protego_Hit.h" + +#include "GameInstance.h" +#include "EffectParts.h" + + +CProtego_Hit::CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CProtego_Hit::CProtego_Hit(const CProtego_Hit& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CProtego_Hit::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/ProtegoHit"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CProtego_Hit::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"ProtegoHit"; + + m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay"); + m_pHit_Light = Get_PartObject("Hit_Light"); + + SAFE_ADDREF(m_pHit_SphereLay); + SAFE_ADDREF(m_pHit_Light); + + + m_fDuration = 3.f; + + _float3 vScale = _float3(1.1f, 1.1f, 1.1f); + + m_pHit_SphereLay->Get_Component()->Set_Scale(vScale); + m_pHit_Light->Get_Component()->Set_Scale(vScale); + + return S_OK; +} + +void CProtego_Hit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CProtego_Hit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + 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()); +} + +void CProtego_Hit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + + CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT"); + CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); + CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit"); + + 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()); + + pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + + m_pHit_SphereLay->Set_Visible(true); + m_pHit_Light->Set_Visible(true); + + pProtego_HitPT->Set_Visible(true); + pProtego_HitPT_Line->Set_Visible(true); + pProtegoHit->Set_Visible(true); + + + + + return S_OK; +} + +HRESULT CProtego_Hit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CProtego_Hit::Ready_Child() +{ + return S_OK; +} + +CProtego_Hit* CProtego_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CProtego_Hit* pInstance = new CProtego_Hit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CProtego_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CProtego_Hit::Clone(void* pArg, CGameObject* pOwner) +{ + CProtego_Hit* pInstance = new CProtego_Hit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CProtego_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CProtego_Hit::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CProtego_Hit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pHit_SphereLay); + SAFE_RELEASE(m_pHit_Light); +} +#ifdef _DEBUG + +void CProtego_Hit::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CProtego_Hit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index ce5c51fb8..a16d5119b 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -79,6 +79,9 @@ HRESULT CRanrok::Initialize(void* pArg) m_pModelCom->Set_DisableRootMotionScale(true); +#ifdef _DEBUG + m_pTransformCom->Compress_WorldMatrix(m_vInitialTrans, m_vInitialRotQ); +#endif // _DEBUG return S_OK; } @@ -193,38 +196,42 @@ void CRanrok::Update(_float fTimeDelta) #pragma region CREATE PROP + + if (!m_pFSM->IsEnable(FSMSTATE::IDLE | FSMSTATE::PULSE | FSMSTATE::TUCKED | FSMSTATE::DEAD)) + { m_vCreatePropTime.x += fTimeDelta; if (m_vCreatePropTime.x >= m_vCreatePropTime.y) { CEffect_Container* pEffect = nullptr; - m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this,nullptr,&pEffect); + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this, nullptr, &pEffect); m_vCreatePropTime.x = 0.f; m_pRanrok_Props.push_back(pEffect); } - - _bool bAllHidden = true; - for (auto& Props : m_pRanrok_Props) - { - if (Props->Get_Visible()) + _bool bAllHidden = true; + + for (auto& Props : m_pRanrok_Props) { - bAllHidden = false; - break; + if (Props->Get_Visible()) + { + bAllHidden = false; + break; + } + } + if (m_pRanrok_Props.size() == 0) { + bAllHidden = false; } - } - if (m_pRanrok_Props.size() == 0) { - bAllHidden = false; - } - if (bAllHidden) - { - m_bFireBurst = false; - } - else { - m_bFireBurst = true; + if (bAllHidden) + { + m_bFireBurst = false; + } + else { + m_bFireBurst = true; + } } #pragma endregion @@ -332,11 +339,13 @@ void CRanrok::Trigger(CTimeSocket& Socket) }break; case TIMESOCKET_FUNC::SET_ANIMSTATE: { - //m_pFSM->Set_State(FSMSTATE::CUTSCENE); + //m_pModelCom->Set_AnimationIndex(); }break; case TIMESOCKET_FUNC::SET_FSMSTATE: { - //m_pModelCom->Set_AnimationIndex(); + if (Socket.m_Contents.vFlags.b[0]) { + m_pFSM->Change_State(FSMSTATE::TUCKED); + } }break; default: break; @@ -990,7 +999,13 @@ void CRanrok::Describe_Entity() GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); if (GUI::CollapsingHeader("Ranrak")) { __super::Describe_Entity(); - + if (GUI::SmallButton("ResetPos")) { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vInitialTrans), 1.f)); + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + m_pTransformCom->RotationQ(XMLoadFloat4(&m_vInitialRotQ)); + m_iCurrentFlow = 0; + m_iCurrentPoint = 0; + } string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); GUI::Text(AnimList.c_str()); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index 7096a4c3d..d14e6ffe0 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -131,7 +131,15 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPos = pObject->Get_WorldPostion(); - _vector vRandomPos = XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 0.f), m_pGameInstance->Real_Random_Float(5.f, 15.f), m_pGameInstance->Real_Random_Float(-20.f, 0.f), 0.f); + + _vector vForward = pObject->Get_Component()->Get_State(STATE::LOOK); + _vector vRight = pObject->Get_Component()->Get_State(STATE::RIGHT); + _vector vUp = pObject->Get_Component()->Get_State(STATE::UP); + + _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); + _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 dda513b3b..48d3dc591 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp @@ -248,7 +248,8 @@ void CRanrok::Behavior_HoverEnter() pair<_uint, _bool> pairAnimInfo = {}; m_pFSM->Enable_State(FSMSTATE::HOVER); _int iRand = m_pGameInstance->Real_Random_Int(0, 1); - switch (iRand) + m_iHoverDash = iRand; + switch (m_iHoverDash) { case 0: pairAnimInfo = m_Animation[STATEANIM::HOVER_DASH_LEFT]; @@ -834,9 +835,15 @@ void CRanrok::Behavior_PulseEnter() pair<_uint, _bool> pairAnimInfo = {}; m_pFSM->Enable_State(FSMSTATE::PULSE); m_bLookAt = false; + m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)]; + + if (m_iCurrentFlow == 2) { + m_pFSM->Change_State(FSMSTATE::HOVER); + return; + } pairAnimInfo = m_Animation[STATEANIM::PULSE]; - m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, @@ -969,7 +976,7 @@ void CRanrok::Behavior_LandEnter() _float fAnimSpeed = 1.f; m_pCharacter_Controller->SetGravity(true); if (m_pFSM->IsEnable_Previous(FSMSTATE::TUCKED)) { - fAnimSpeed = 2.f; + fAnimSpeed = 3.f; } pairAnimInfo = m_Animation[STATEANIM::LAND]; diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 046aa94d9..e74b0e6d4 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -65,7 +65,7 @@ HRESULT CTroll::Initialize(void* pArg) - m_pCharacter_Controller->Set_Position(XMVectorSet(126.464f, 30.f, 117.585f, 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(110.f, 24.f, 135.f, 1.f)); m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp index f36593714..dcb28ea4a 100644 --- a/Jusin154_Team3D/Client/Private/Wand.cpp +++ b/Jusin154_Team3D/Client/Private/Wand.cpp @@ -59,13 +59,11 @@ void CWand::Update(_float fTimeDelta) void CWand::Late_Update(_float fTimeDelta) { - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } HRESULT CWand::Render() { - _matrix socketMatrix = {}; socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h index df850ab42..7d2a46194 100644 --- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h +++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h @@ -61,6 +61,9 @@ class CBroomRaceManager final : public CGameObject _float m_fRedayTime{}; _bool m_bRaceStart = { false }; _bool m_bRaceReady = { false }; + _float4 m_OriginPos = {}; + _float m_fDelay = {}; + _bool m_bRaceEnd = {}; private: virtual HRESULT Initialize_Prototype() override; diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h index 2f939317d..d5c77bac7 100644 --- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h +++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h @@ -20,6 +20,9 @@ class CCamPosition_Target final : public CCamPosition virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual _vector Get_WorldPostion() override; + virtual void Set_WorldPostion(_vector vPos); + virtual void Stalking_Target(CGameObject* pStalkingTarget); + virtual void Stop_Stalking(); private: virtual HRESULT Initialize_Prototype() override; @@ -27,6 +30,7 @@ class CCamPosition_Target final : public CCamPosition HRESULT Ready_Components(void* pArg); HRESULT Bind_ShaderResources() override; + CGameObject* m_pStalkingTarget = { nullptr }; public: static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override; diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h index 15d4153ca..e2d20ae29 100644 --- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h +++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h @@ -4,6 +4,7 @@ #include "Camera.h" NS_BEGIN(Client) +class CCamPosition_Target; class CCamera_Cinematic final : public CCamera { @@ -24,6 +25,7 @@ class CCamera_Cinematic final : public CCamera virtual void Trigger(CTimeSocket& Socket)override; public: + virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override; void Update_LerpTimer(_float fTimeDelta); void Set_Priority(_uint iPriority); void Set_LookTarget(CGameObject* pTarget); @@ -34,24 +36,35 @@ class CCamera_Cinematic final : public CCamera virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Ready_SubPart(); HRESULT Bind_ShaderResources() override; void Lerp_Translation(_float fTimeDelta); void Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform); - void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans, _float4& vRotQ); + void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans); void Clear_Lerp_Translation(); + void Lerp_Rotation(_float fTimeDelta); + void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform); + void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ); + void Clear_Lerp_Rotation(); void Lerp_FovY(_float fTimeDelta); void Start_Lerp_FovY(_float fTimeMaximum, _float2 vRange); void Clear_Lerp_FovY(); + virtual void Transition(_float fTimeDelta) override; private: CInfoInstance* m_pInfoInstance = { nullptr }; + CCamPosition_Target* m_pLookTargetPart = { nullptr }; + CCamPosition_Target* m_pFollowTargetPart = { nullptr }; _bool m_bLerpTranslation = { false }; _float2 m_vLerpTranslationTimer = {}; + _bool m_bLerpRotiation = { false }; + _float2 m_vLerpRotiationTimer = {}; + _float3 m_vLerpTranslationStart = {}; _float3 m_vLerpTranslationEnd = {}; _float4 m_vLerpRotQStart = {}; diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index a17d5ea5b..8d4265ceb 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -68,6 +68,9 @@ namespace Client /*스크린 이펙트*/ SCREEN_WIND, + /* 히트 이펙트 */ + PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, + /*사이드*/ JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index d3fde4fa2..b9d5838d9 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -14,7 +14,6 @@ namespace Client { #define FX_MESH TEXT("FX_MESH") #define FX_POSTEX TEXT("FX_POSTEX") #define FX_NORTEX TEXT("FX_NORTEX") -#define FX_CELL TEXT("FX_CELL") #define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL") #define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL") #define FX_UIEDITOR TEXT("FX_UIEDITOR") diff --git a/Jusin154_Team3D/Client/Public/Duelist_ProtegoHit.h b/Jusin154_Team3D/Client/Public/Duelist_ProtegoHit.h new file mode 100644 index 000000000..8841fa1b4 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Duelist_ProtegoHit.h @@ -0,0 +1,47 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CDuelist_ProtegoHit final : public CEffect_Container +{ +private: + CDuelist_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDuelist_ProtegoHit(const CDuelist_ProtegoHit& rhs); + virtual ~CDuelist_ProtegoHit() = 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 = {}; + + class CEffectParts* m_pHit_SphereLay = { nullptr }; + class CEffectParts* m_pHit_Light = { nullptr }; +public: + static CDuelist_ProtegoHit* 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/Goblin_Protego.h b/Jusin154_Team3D/Client/Public/Goblin_Protego.h index 9de274855..516b45285 100644 --- a/Jusin154_Team3D/Client/Public/Goblin_Protego.h +++ b/Jusin154_Team3D/Client/Public/Goblin_Protego.h @@ -32,11 +32,10 @@ class CGoblin_Protego final : public CEffect_Container virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; private: _wstring m_wstrEffectName = {}; - CRigidBody_Dynamic* m_pRigidBody = { nullptr }; - class CEffectParts* m_pSphere = { nullptr }; - class CEffectParts* m_pBottom = { nullptr }; - class CEffectParts* m_pCircle = { nullptr }; + class CEffectParts* m_pSphere = { nullptr }; + class CEffectParts* m_pSphereLay = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; _float m_fSizeAccTime = {}; _float m_fAmountSize = {}; _float m_fSpeed = {}; diff --git a/Jusin154_Team3D/Client/Public/Goblin_ProtegoHit.h b/Jusin154_Team3D/Client/Public/Goblin_ProtegoHit.h new file mode 100644 index 000000000..315f42cbf --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Goblin_ProtegoHit.h @@ -0,0 +1,47 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CGoblin_ProtegoHit final : public CEffect_Container +{ +private: + CGoblin_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CGoblin_ProtegoHit(const CGoblin_ProtegoHit& rhs); + virtual ~CGoblin_ProtegoHit() = 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 = {}; + + class CEffectParts* m_pHit_SphereLay = { nullptr }; + class CEffectParts* m_pHit_Light = { nullptr }; +public: + static CGoblin_ProtegoHit* 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/Loader.h b/Jusin154_Team3D/Client/Public/Loader.h index c6c51748f..e258d6697 100644 --- a/Jusin154_Team3D/Client/Public/Loader.h +++ b/Jusin154_Team3D/Client/Public/Loader.h @@ -6,6 +6,7 @@ NS_BEGIN(Engine) class CGameInstance; class CModel; +class CShader; class CVIBuffer_Model_Instance; NS_END @@ -43,6 +44,7 @@ class CLoader final : public CBase HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent); future*> Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag); future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag); + future*> Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements); void Ready_MapModels(vector*>>& jobMapModels); HRESULT Ready_RigidBody_Static(CVIBuffer_Model_Instance* pModel_Instance); diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 328c73c80..87bace2b9 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -167,6 +167,7 @@ class CPlayer final : public CUnit _bool m_bOpenDoor = { false }; _bool m_bOpeningCutScene = { false }; _float m_fAirTime = {}; + _bool m_bCanParry = {}; /* 무적 불 변수*/ #ifdef _DEBUG @@ -233,7 +234,7 @@ class CPlayer final : public CUnit void Behavior_AncientSpellExit(); void Behavior_ShieldEnter(); - HRESULT Behavior_ShieldExitCheck(); + HRESULT Behavior_ShieldExitCheck(_float fTimeDelta); void Behavior_ShieldExit(); void Behavior_HitEnter(); diff --git a/Jusin154_Team3D/Client/Public/Protego_Hit.h b/Jusin154_Team3D/Client/Public/Protego_Hit.h new file mode 100644 index 000000000..181d98bf7 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Protego_Hit.h @@ -0,0 +1,47 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CProtego_Hit final : public CEffect_Container +{ +private: + CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CProtego_Hit(const CProtego_Hit& rhs); + virtual ~CProtego_Hit() = 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 = {}; + + class CEffectParts* m_pHit_SphereLay = { nullptr }; + class CEffectParts* m_pHit_Light = { nullptr }; +public: + static CProtego_Hit* 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/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index 691515ae9..1b0a943f0 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -93,6 +93,8 @@ class CRanrok final : public CMonster #ifdef _DEBUG virtual void Describe_Entity() override; + _float4 m_vInitialRotQ = {}; + _float3 m_vInitialTrans = {}; #endif // _DEBUG private: @@ -122,12 +124,13 @@ class CRanrok final : public CMonster _bool m_bMotionTrail = {}; _bool m_bFireBurst = {true}; _int m_iPropSize = {}; + _int m_iHoverDash = { }; _float2 m_vCaptureTimer = { 0.f, 0.1f }; class CEffect_Container* m_pRanrok_Point = { nullptr }; vector m_pRanrok_Props; - _float m_fTuckedSpeed = { 90.f }; + _float m_fTuckedSpeed = { 80.f }; class CEffectParts* m_pLeftSmoke = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml index 15253a742..1d85ada58 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml @@ -1,4 +1,4 @@ - + @@ -38,8 +38,42 @@ - - + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + @@ -101,40 +135,6 @@ - @@ -166,44 +166,10 @@ - + - - - - - - - - - - - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - false - - - - - - - - - + @@ -234,7 +200,109 @@ - + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + @@ -302,7 +370,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoBottom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoBottom.bin deleted file mode 100644 index c1c6665e8..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoBottom.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89aaf8075dcec1bb5ef633573266bb299c72e417434d9d47fe9399c6069941af -size 1193 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoCircle.bin deleted file mode 100644 index dfcacc05a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoCircle.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2306abc678e4c8af066e3d2a6d4b0ff44d765d34db3524b78dbb90dd1211cf79 -size 1233 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 new file mode 100644 index 000000000..c93c69a1a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d35e96ef4cec61733caa7b90101eed6fa320f144d5b8f4141521658e6c401c9f +size 1238 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 5a1258cb3..3d55bfec7 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:823f85611fd0c4f63f62e23034a5e92177f35f447f85afe5074cc962a03ea0f7 -size 1213 +oid sha256:51b9af9d2826a82ab2784cd6b72221ddc3f9a196fbc36962dc4729478c7557d5 +size 1160 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Hit_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Hit_Light.bin new file mode 100644 index 000000000..6d3c79be5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Hit_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:013074b17c836044a5879b4f6fd329f9829be39bcfb27c604fb9a4be954f8575 +size 1155 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit.bin new file mode 100644 index 000000000..4f8af233c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df648e3aafa70f8d8c5678651b6eeef0ebd9aa8a4e3f5e0777d1217b23147a9d +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit_Lay.bin new file mode 100644 index 000000000..b605495b3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit_Lay.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93ac77cea8142c766c05ebbf770e79a32e4d5fb859e34f63c4f5d982cafd180a +size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT.bin new file mode 100644 index 000000000..ebf0f8920 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b84021dc3b3384f6c765de81dd6596a5d87bb05d20695a178b918765f15bde6 +size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT_Line.bin new file mode 100644 index 000000000..c0093bfe2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT_Line.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:734b67615cb359adcf3e16349e52e0167c828b6f7f1e18643ecf16e249ae8b7b +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin index 85dbfaf1a..09d8610ba 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:61d710662d0b5a36853d8c07a94deb5fb707601ffa2f2a4bfe17f31e9207720c -size 232 +oid sha256:9f8507d124642ee4c8873f269ead25d3f211a0263e7a6ee4b383bad447899658 +size 153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit.bin new file mode 100644 index 000000000..f8aee000c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea27491db97f01998eadcc252cbab57c6f2fdf2c160a705d4424fe9529fdf3bd +size 398 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin new file mode 100644 index 000000000..869955ca3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:834f86a71e3e16529a70114b7fafd4b891502f550a091bfc230f72a47d4256f7 +size 1238 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin new file mode 100644 index 000000000..e0e81d640 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:473ce1eeaa239aef55be2dfb73aaaeff61c6c3b566c152bed0c3e2b0a6a8588c +size 1160 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Hit_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Hit_Light.bin new file mode 100644 index 000000000..caddca5b9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Hit_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f375232fd5c5401f0628b21d3d64f3a21a8cb6a984517f9a0e67ef056e78ca8 +size 1155 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit.bin new file mode 100644 index 000000000..573129a59 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e383c4063a08fc8648944d9a4a003e0a832244b208a4c7c64e455c3ec90aea4b +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit_Lay.bin new file mode 100644 index 000000000..a78214f05 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit_Lay.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3125d16e2364f4bc154dbb5b4551276144898e2ce062f5bb57ace3fbfa275374 +size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT.bin new file mode 100644 index 000000000..3d00caca3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:090468ab64491f3195759287fde80e79665cde2d4bf4fdf78294c703266c088a +size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT_Line.bin new file mode 100644 index 000000000..324fdf2a7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT_Line.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b92ebfc8aabdef248b53aa5d44327c65c5b924743b2d4677c2a44ea00397088 +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtego.bin new file mode 100644 index 000000000..5d8c666e6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtego.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:956a5d4e8e32a1a006cdd758961b51252118dfee4fd39c9335a2bd22602a6b7f +size 133 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtegoHit.bin new file mode 100644 index 000000000..ed1242404 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtegoHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc5dbae5ef763c6dfbbbf666121613760046b4c28e41b9ea1720cb8b6677c238 +size 348 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin index 19e1145e6..ad898e6e0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a06ccfeb2395f901a63613b1be95f4bc383be13cfc3ba41132766953ffc10eaa -size 449 +oid sha256:2e550b44443711f164ed395f5d783bd4a56053d9afa81c8c16c373fc8d730ff4 +size 127 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin new file mode 100644 index 000000000..02021ee18 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9d05e13a9fff7a12d10a9c4237cca60f82d7ecc50167aa7b3ac1851e1429b46 +size 333 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin deleted file mode 100644 index de7be2115..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b112b7c99a97571d75fc58420712b30be988d592b73f8bb28bb8afd1e78719c -size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin deleted file mode 100644 index be085e55c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56492fe12d281f12b53d65d445393a1ff7cdf93a6804cd4c1e5204f1d3c1c2cf -size 1251 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Spread.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Spread.bin deleted file mode 100644 index 95eb08fb0..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Spread.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:698fea016d7e79716c72e4541c8f4696c86ba089f50bb66a8f6a95abd8be1ba8 -size 1151 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin index b9813cc3a..1655b1317 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:607fc3399d690ce5490a77de27a536f20662de4b13050cae8e8a0c7e1360e6f8 -size 1244 +oid sha256:5b89db139a3c97eb4399a7a2fe9deb29c511ed480514a08cc7d9720d54870060 +size 1238 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin index 33cf72168..59bf73bbc 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bb2879a15ba5a04f8d08ef6d1536dbc4afa878c531dfa666f5ce42bdcf77726d +oid sha256:75534b90bc0a2454d71276a03f9d442da2f073fe7d00a4c70eb900faba717af2 size 1160 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin deleted file mode 100644 index 81e9cf820..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e0704640e436dc4d0ed7130c5fab411d4584cf260bd5245c8dc13364c18b619 -size 1149 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin deleted file mode 100644 index da35ab19a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8e5e11170bd32a27b173cb73a9ad8ceb509c6caee24f22687f5668ee7773eec -size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Hit_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Hit_Light.bin new file mode 100644 index 000000000..8ee1850bd --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Hit_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a1903566d99c003601ab26bb8505c0cacfac742a880ef83aabae8a865965f3e +size 1155 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit.bin new file mode 100644 index 000000000..d8f7e325f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0503936e377b8b84d1fd8c02da96c5a9efe0e12e59933595fa194f7d0e6e28d +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit_Lay.bin new file mode 100644 index 000000000..da4d5d0fa --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit_Lay.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b0f486fd96d913297364a7d455c38a0648de0f5c829232cc1fc0275ea8dd240 +size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT.bin new file mode 100644 index 000000000..93a08c28d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:688fc2eba2989b8b1f0a05fb5bf143c2c9010e3af6be18a2d55c5745755bf5e1 +size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT_Line.bin new file mode 100644 index 000000000..40984d3bb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT_Line.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5293e4792b5e59f7e2364fbe9a9a0f162d83b1784aaa3714aac9a9ad90ea3bd +size 1186 diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 29bec9784..2b4ed975e 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -204,6 +204,7 @@ call Update_Shaders.bat + @@ -487,6 +488,7 @@ call Update_Shaders.bat + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index d2cd7dfb9..ca3a9b068 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -771,7 +771,7 @@ {8bc9a6f2-aea3-4631-83b0-1c897cc9f98c} - + {a5413132-f824-4e59-b3bb-1e6ad539b274} @@ -781,6 +781,9 @@ {0201d2a8-9187-468c-aa2f-491bd3ae6ae1} + + {b8e8e46c-ec9f-4a89-a970-c9de2ac3f521} + @@ -1571,7 +1574,7 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Prop - + 50.UI\Dialogue_Canvas\Dialogue_Panel @@ -1581,6 +1584,9 @@ 50.UI\Dialogue_Canvas\Dialogue_Panel\Dialogue_Choice + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit + @@ -2379,7 +2385,7 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Prop - + 50.UI\Dialogue_Canvas\Dialogue_Panel @@ -2389,6 +2395,9 @@ 50.UI\Dialogue_Canvas\Dialogue_Panel\Dialogue_Choice + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit + diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 05b3c0598..a2de42e80 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -10,12 +10,14 @@ #include "Protego.h" #include "Revelio.h" #include "Levioso.h" +#include "Protego_Hit.h" #include "BombardSide.h" #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" + #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" @@ -229,6 +231,16 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO_HIT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* { + + CProtego_Hit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* { CRevelio* pEffect = nullptr; diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 63a45d6c7..7d9670f4d 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -197,6 +197,7 @@ #include "Bombard.h" #include "Decendo.h" #include "Protego.h" +#include "Protego_Hit.h" #include "EffectPool.h" #include "Revelio.h" #include "Levioso.h" @@ -348,15 +349,42 @@ void CLoader::Output() HRESULT CLoader::Loading_For_Logo() { + 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)); + } m_strMessage = TEXT("Texture Loading.."); - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dororong"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))) { - return E_FAIL; - } - /* Terrain_Diffuse */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_D_%d.dds"), 4, L"", ENUM_CLASS(LEVEL::LOGO))))) { @@ -384,37 +412,6 @@ HRESULT CLoader::Loading_For_Logo() m_strMessage = TEXT("Shader Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), - VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), - VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), - VTXMESH::Elements, VTXMESH::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), - VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { - return E_FAIL; - } - - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_CELL, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_Cell.hlsl"), - VTXPOS::Elements, VTXPOS::iNumElements)))) { - return E_FAIL; - } - m_strMessage = TEXT("Prototype Loading.."); if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummyRect::Create(m_pDevice, m_pContext)))) { @@ -441,6 +438,19 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } + { + 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); + } + } + m_strMessage = TEXT("Loading Success!"); m_isFinished = true; @@ -902,11 +912,6 @@ HRESULT CLoader::Loading_For_UI() m_strMessage = TEXT("Shader Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), - VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) { - return E_FAIL; - } m_strMessage = TEXT("Prototype Loading.."); @@ -1310,11 +1315,6 @@ HRESULT CLoader::Loading_For_UI() HRESULT CLoader::Loading_For_Effect() { m_strMessage = TEXT("Shader Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), - VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { - return E_FAIL; - } m_strMessage = TEXT("PhysX Meshes Loading.."); { @@ -1761,11 +1761,6 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), - VTXPOS::Elements, VTXPOS::iNumElements)))) { - return E_FAIL; - } /* For.Prototype_Component_VIBuffer_Box */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"), @@ -1851,12 +1846,6 @@ HRESULT CLoader::Loading_For_Effect() m_strMessage = TEXT("Shader Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), - VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) { - return E_FAIL; - } - m_strMessage = TEXT("Prototype Loading.."); @@ -1932,6 +1921,10 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CProtego::Create(m_pDevice, m_pContext)))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CProtego_Hit::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CRevelio::Create(m_pDevice, m_pContext)))) return E_FAIL; @@ -2585,12 +2578,6 @@ future*> CLoader::Deferred_ModelLoad(MODEL eType, const HRESULT CLoader::Loading_For_MapViewer() { #pragma region PLAYER_AND_RANROK - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), - VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { - return E_FAIL; - } - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"), // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { // return E_FAIL; @@ -3821,17 +3808,6 @@ if(isLoad_Map) #pragma region SHADER m_strMessage = TEXT("쉐이더를(을) 로딩 중 입니다."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), - VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), - VTXPOS::Elements, VTXPOS::iNumElements)))) { - return E_FAIL; - } #pragma endregion @@ -4161,6 +4137,23 @@ if(isLoad_Map) return S_OK; } +pair<_wstring, CShader*>* APIENTRY Deferred_ShaderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) +{ + if (FAILED(CoInitializeEx(nullptr, 0))) { + assert(false); + return nullptr; + } + + CShader* pShader = CShader::Create(pDevice, pContext, pShaderFilePath, pElements, iNumElements); + + CoUninitialize(); + pair<_wstring, CShader*>* Out = new pair<_wstring, CShader*>(strPrototypeTag, pShader); + return Out; +} + +future*> CLoader::Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) { + return m_pGameInstance->EnqueueJob(&Deferred_ShaderLoad_Main, pDevice, pContext, strPrototypeTag, pShaderFilePath, pElements, iNumElements); +} CLoader* CLoader::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID) { CLoader* pInstance = new CLoader(pDevice, pContext); diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index a42e7c10b..d1faf5677 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -32,11 +32,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() { m_strMessage = TEXT("Texture Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM, - CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), - VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { - return E_FAIL; - } if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("TerrainTest"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) { return E_FAIL; @@ -189,11 +184,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_ThestralCarriage_Model") )); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct2.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_ThestralCarriage_Model") - //)); - #pragma endregion @@ -254,10 +244,15 @@ HRESULT CLoader::Loading_For_ObjectViewer() - futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Playable_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Test.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") + //)); if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) @@ -425,15 +420,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma endregion - for (auto& job : futures) { - pair<_wstring, CModel*>* pResult = job.get(); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) { - assert(false); - return E_FAIL; - } - Safe_Delete(pResult); - } - m_strMessage = TEXT("Shader Loading.."); @@ -527,6 +513,14 @@ HRESULT CLoader::Loading_For_ObjectViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) return E_FAIL; + for (auto& job : futures) { + pair<_wstring, CModel*>* pResult = job.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) { + assert(false); + return E_FAIL; + } + Safe_Delete(pResult); + } m_strMessage = TEXT("Loading Success!"); m_isFinished = true; diff --git a/Jusin154_Team3D/Editor/Private/Protego.cpp b/Jusin154_Team3D/Editor/Private/Protego.cpp index b74a5b0bb..f8f762797 100644 --- a/Jusin154_Team3D/Editor/Private/Protego.cpp +++ b/Jusin154_Team3D/Editor/Private/Protego.cpp @@ -45,7 +45,7 @@ HRESULT CProtego::Initialize(void* pArg) m_fAmountSize = 0.1f; m_fSpeed = 5.f; - m_fDuration = 3.f; + m_fDuration = 6.f; return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp new file mode 100644 index 000000000..0cc850a06 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp @@ -0,0 +1,176 @@ +#include "pch.h" +#include "Protego_Hit.h" + +#include "GameInstance.h" +#include "EditEffect.h" + + +CProtego_Hit::CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CProtego_Hit::CProtego_Hit(const CProtego_Hit& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CProtego_Hit::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CProtego_Hit::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/ProtegoHit"))) + return E_FAIL; + + m_wstrEffectName = L"ProtegoHit"; + + m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay"); + m_pHit_Light = Get_PartObject("Hit_Light"); + + SAFE_ADDREF(m_pHit_SphereLay); + SAFE_ADDREF(m_pHit_Light); + + m_fDuration = 3.f; + + return S_OK; +} + +void CProtego_Hit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CProtego_Hit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + 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()); +} + +void CProtego_Hit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + + CEditEffect* pProtego_HitPT = Get_PartObject("Protego_HitPT"); + CEditEffect* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); + CEditEffect* pProtegoHit = Get_PartObject("Protego_HitPT_Line"); + + 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()); + + pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + m_pHit_SphereLay->Set_Visible(true); + m_pHit_Light->Set_Visible(true); + pProtego_HitPT->Set_Visible(true); + pProtego_HitPT_Line->Set_Visible(true); + pProtegoHit->Set_Visible(true); + + + return S_OK; +} + +HRESULT CProtego_Hit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CProtego_Hit::Ready_Child() +{ + return S_OK; +} + +CProtego_Hit* CProtego_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CProtego_Hit* pInstance = new CProtego_Hit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CProtego_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CProtego_Hit::Clone(void* pArg, CGameObject* pOwner) +{ + CProtego_Hit* pInstance = new CProtego_Hit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CProtego_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CProtego_Hit::OnCollision(CGameObject* pOther, void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CProtego_Hit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pHit_SphereLay); + SAFE_RELEASE(m_pHit_Light); +} +#ifdef _DEBUG + +void CProtego_Hit::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CProtego_Hit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index 2a14d3e3f..ea107c526 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -62,7 +62,7 @@ namespace Editor CONJURING_SPELL, ALTERING_SPELL, EVANESCO, // 연녹색 AVADAKEDAVRA, CRUCIO, IMPERIO, // 진녹색 BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색 - JAP, REVELIO, PROTEGO, STUPEFY, // 검은색 + JAP, REVELIO, PROTEGO, STUPEFY, PROTEGO_HIT, // 검은색 ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h index dd844afd0..b3dfbe6d3 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h @@ -14,7 +14,6 @@ namespace Editor { #define FX_MESH TEXT("FX_MESH") #define FX_POSTEX TEXT("FX_POSTEX") #define FX_NORTEX TEXT("FX_NORTEX") -#define FX_CELL TEXT("FX_CELL") #define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL") #define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL") #define FX_UIEDITOR TEXT("FX_UIEDITOR") diff --git a/Jusin154_Team3D/Editor/Public/Loader.h b/Jusin154_Team3D/Editor/Public/Loader.h index ee1e1ba89..b58fb4bf5 100644 --- a/Jusin154_Team3D/Editor/Public/Loader.h +++ b/Jusin154_Team3D/Editor/Public/Loader.h @@ -5,6 +5,8 @@ NS_BEGIN(Engine) class CGameInstance; +class CShader; +class CModel; NS_END NS_BEGIN(Editor) @@ -51,6 +53,7 @@ class CLoader final : public CBase HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent); HRESULT MapFolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector<_wstring>& ModelPrototypeTags, vector& ModelPrototypePath); future Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector** OutContents); + future*> Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements); future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag); public: diff --git a/Jusin154_Team3D/Editor/Public/Protego_Hit.h b/Jusin154_Team3D/Editor/Public/Protego_Hit.h new file mode 100644 index 000000000..be1b21237 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Protego_Hit.h @@ -0,0 +1,47 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CProtego_Hit final : public CEffect_Container +{ +private: + CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CProtego_Hit(const CProtego_Hit& rhs); + virtual ~CProtego_Hit() = 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 = {}; + + class CEditEffect* m_pHit_SphereLay = { nullptr }; + class CEditEffect* m_pHit_Light = { nullptr }; +public: + static CProtego_Hit* 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/Private/Camera.cpp b/Jusin154_Team3D/Engine/Private/Camera.cpp index 664d55f04..c6bad32ac 100644 --- a/Jusin154_Team3D/Engine/Private/Camera.cpp +++ b/Jusin154_Team3D/Engine/Private/Camera.cpp @@ -69,7 +69,7 @@ void CCamera::Transition(_float fTimeDelta) fRatio = 1.f; m_bIsCurrentTransition = false; } - + _vector vFollowTarget = m_pFollowTarget->Get_Component()->Get_State(STATE::POSITION); _vector vLookTarget = m_pLookTarget->Get_Component()->Get_State(STATE::POSITION); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 7b217543b..c3d72836a 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -256,9 +256,9 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform) m_bLoopRestarted = true; m_vPrevRootPos = { 0,0,0 }; } - else { + /*else { m_vPrevRootPos = { m_OutTranslation.x,m_OutTranslation.y,m_OutTranslation.z }; - } + }*/ } @@ -331,7 +331,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) 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* 5.f); if (fRatio >= 1.f) { @@ -363,7 +363,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 * 5.f); m_iPreAnimIndex = m_iCurrentAnimIndex; if (m_bIsSecondFinishedAnim) @@ -501,8 +501,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(); diff --git a/Jusin154_Team3D/Engine/Private/Shader.cpp b/Jusin154_Team3D/Engine/Private/Shader.cpp index 77d742124..c74a61bc0 100644 --- a/Jusin154_Team3D/Engine/Private/Shader.cpp +++ b/Jusin154_Team3D/Engine/Private/Shader.cpp @@ -169,7 +169,8 @@ HRESULT CShader::CreateShader(const _tchar* pShaderFilePath, const D3D11_INPUT_E iHlslFlag = D3DCOMPILE_OPTIMIZATION_LEVEL1 | D3DCOMPILE_PACK_MATRIX_ROW_MAJOR ; #endif - ID3DBlob* pBlob; + ID3DBlob* pBlob = nullptr; + if (FAILED(D3DX11CompileEffectFromFile(pShaderFilePath, nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, iHlslFlag, 0, m_pDevice, &m_pEffect, &pBlob))) { if (pBlob) { diff --git a/Jusin154_Team3D/Engine/Public/Camera.h b/Jusin154_Team3D/Engine/Public/Camera.h index a6acf7155..27cc8c4a5 100644 --- a/Jusin154_Team3D/Engine/Public/Camera.h +++ b/Jusin154_Team3D/Engine/Public/Camera.h @@ -91,7 +91,7 @@ class ENGINE_DLL CCamera abstract : public CGameObject virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; HRESULT Bind_Matrices(); - void Transition(_float fTimeDelta); + virtual void Transition(_float fTimeDelta); public: virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner)PURE; diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h index bf66c54ee..ed1c29947 100644 --- a/Jusin154_Team3D/Engine/Public/TimeSocket.h +++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h @@ -24,6 +24,8 @@ typedef enum class typeTimeSocket_Func { // COMMON TRANSLATION, TRANSLATION_LERP, + ROTATION, + ROTATION_LERP, TOGGLE_FLAGS, // CAMERA @@ -57,6 +59,8 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C { {"TRANSLATION", TIMESOCKET_FUNC::TRANSLATION}, {"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP}, + {"ROTATION", TIMESOCKET_FUNC::ROTATION}, + {"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP}, {"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS}, {"BIND_CAMERA", TIMESOCKET_FUNC::BIND_CAMERA},