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 7df46f555..b31d18630 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
+
@@ -1878,6 +1887,15 @@
{f2ddb6fa-89b6-4322-912e-61e0ce79278c}
+
+ {c63abdad-13ae-43af-812a-25bcd5f7064b}
+
+
+ {696df72a-c0ad-483d-9fb3-b5e053696457}
+
+
+ {75632dfe-2808-4ce3-abc1-8020563d3a6e}
+
@@ -2736,6 +2754,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/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 725bf6f28..212b66d45 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 b5dc84a62..4ca71a6aa 100644
--- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
+++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
@@ -93,6 +93,9 @@ void CHuman_Duelist::Update(_float fTimeDelta)
Play_Event();
+
+
+
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
@@ -559,6 +562,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")) {
@@ -606,6 +611,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_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 7be62d2ef..0f78f9d18 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -1015,7 +1015,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
}
}
- for (_uint i = 0; i < 0; ++i)
+ for (_uint i = 0; i < 2; ++i)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 01de241cd..db859e2b5 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"
@@ -2570,6 +2574,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;
}
@@ -2614,6 +2628,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;
}
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 9a7cb6411..bb9c1a481 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -1768,7 +1768,7 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
[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;
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index 43ff56f0e..a5fa96805 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;
}
@@ -117,6 +118,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;
@@ -183,22 +186,12 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
dynamic_cast(m_pOwner)->Set_Shield(true);
- CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT");
- CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line");
- CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit");
- CEffectParts* pProtegoHit_Lay = Get_PartObject("ProtegoHit_Lay");
-
- pProtego_HitPT->Set_Visible(true);
- pProtego_HitPT_Line->Set_Visible(true);
- pProtegoHit->Set_Visible(true);
- pProtegoHit_Lay->Set_Visible(true);
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object()
+ ->Use_Skill(SKILL_TYPE::PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
- pProtegoHit_Lay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- pProtegoHit->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- pProtegoHit_Lay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ 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/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/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/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/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 310b1f2e3..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:9b4fea5989303dc882726cb8193d696ac8b0fa3ce69835f657eea7e5443e0c4b
-size 382
+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/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin
index 441906247..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:2af8e666e392c0458a60e8b65e2e2e351c54e0987aaf59e3a15ce5ce605266f8
-size 1243
+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 5aef0b07a..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:a968b159e4d2f31c08b25c4ec86be4baa6a4bbcefb88c7daf2ea1fea60d028a9
-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 0809d06f4..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:d16a78f3adcde55495aeeaa1aae3483acf7ddc17c5ac2812a9090d346077485d
-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..d504a44b5 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"
@@ -1932,6 +1933,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;
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/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