diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 5465e90a7..fec7287d9 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -4,6 +4,8 @@
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_DepthTexture;
+float4 g_CamaraPosition;
+
int g_iImageCountX;
int g_iImageCountY;
@@ -56,11 +58,16 @@ Texture2D g_Texture2;
Texture2D g_Texture3;
Texture2D g_Texture4;
Texture2D g_Texture5;
+Texture2D g_Texture6;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iStep1 = 0;
+int g_iStep2 = 0;
+int g_iStep3 = 0;
+
struct VS_IN
{
float3 vPosition : POSITION;
@@ -1483,6 +1490,158 @@ PS_OUT PS_Boss_HpBer(PS_IN In)
return Out;
}
+struct VS_IN3D
+{
+ float3 vPosition : POSITION;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+struct VS_OUT3D
+{
+ float4 vPosition : SV_Position;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+VS_OUT3D VS_MAIN3D(VS_IN3D In)
+{
+ VS_OUT3D Out;
+
+ float3 CamaeraPos = float3(g_CamaraPosition.x, 1.f, g_CamaraPosition.z);
+ float3 UIPos = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43);
+
+ float3 CameraDir = normalize(CamaeraPos - UIPos);
+
+ float angle = atan2(CameraDir.x, CameraDir.z);
+ float cosA = cos(angle);
+ float sinA = sin(angle);
+
+
+ float3 rotation = float3(0.f, 0.f, 0.f);
+
+ rotation.x = In.vPosition.x * cosA - In.vPosition.z * sinA;
+ rotation.y = In.vPosition.y;
+ rotation.z = In.vPosition.x * sinA + In.vPosition.z * cosA;
+
+ float3 worldPos = rotation + UIPos;
+
+ matrix matWVP = mul(g_ViewMatrix, g_ProjMatrix);
+ float4 clipPos = mul(float4(worldPos, 1.0f), matWVP);
+
+ Out.vPosition = clipPos;
+ Out.vTexcoord = In.vTexcoord;
+
+ return Out;
+}
+
+
+PS_OUT PS_Enemy_Detection(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
+
+ if (g_iStep1 != 0)
+ {
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ if (inside1)
+ {
+ float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal);
+
+ float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
+
+ Color = lerp(Color, tex3, tex3.a);
+
+ float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2);
+ float4 tex5 = g_Texture3.Sample(ClampSampler, Imagelocal2);
+
+ float4 Color1 = tex4;
+
+ Color1 = lerp(tex4, tex5, tex5.a);
+
+ Imagelocal2.y = 1.f - Imagelocal2.y;
+
+ if (Imagelocal2.y >= g_fTime)
+ {
+ Color1.a = 0.f;
+ }
+
+ Color = lerp(Color, Color1, Color1.a);
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+ }
+ }
+ if (g_iStep2 != 0)
+ {
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ if (inside1)
+ {
+ float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal);
+
+ float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
+
+ float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2);
+ float4 tex6 = g_Texture4.Sample(ClampSampler, Imagelocal2);
+ Color = lerp(Color, tex3, tex3.a);
+ float4 Color1 = tex4;
+ Color1 = lerp(tex4, tex6, tex6);
+ Color1.rgb *= float3(1.f, 1.f, 0.f);
+ Imagelocal2.y = 1.f - Imagelocal2.y;
+ if (Imagelocal2.y >= g_fTime)
+ {
+ Color1.a = 0.f;
+ }
+ Color = lerp(Color, Color1, Color1.a);
+
+ Color.a *= g_fAlpha;
+
+ Out.vColor = Color;
+
+ return Out;
+ }
+ }
+ if (g_iStep3 != 0)
+ {
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+ Color.rgb *= float3(1.f, 0.f, 0.f);
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ if (inside1)
+ {
+ float4 tex7 = g_Texture5.Sample(ClampSampler, Imagelocal);
+
+ Color = lerp(Color, tex7, tex7.a);
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+ }
+
+ }
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -1793,4 +1952,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Boss_HpBer();
}
+ pass PS_Enemy_Detection
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN3D();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Enemy_Detection();
+ }
+
}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 354436090..429af2e83 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -170,6 +170,7 @@ call Update_Resources.bat
+
@@ -194,9 +195,10 @@ call Update_Resources.bat
-
+
+
@@ -342,6 +344,7 @@ call Update_Resources.bat
+
@@ -365,6 +368,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index afdfd1f95..7437ad89f 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -529,6 +529,12 @@
04.Mechanic\State\Broom_Player\State_Broom_Fly
+
+
+ 02.GameObjects\Cameras\MiniMap_Camera
+
+
+ 02.GameObjects\UI\Enemy_Detection
@@ -1118,6 +1124,12 @@
{f24321bb-6750-4baa-b19a-bf5a3c2a8909}
+
+
+ {dbf4ff12-e5eb-439a-aa02-e5a424453b08}
+
+
+ {34a4beb9-ccb9-4847-ae45-af4e7dc25d94}
@@ -1592,6 +1604,12 @@
04.Mechanic\State\Broom_Player\State_Broom_Fly
+
+
+ 02.GameObjects\Cameras\MiniMap_Camera
+
+
+ 02.GameObjects\UI\Enemy_Detection
diff --git a/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp b/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp
new file mode 100644
index 000000000..09c59bcfb
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp
@@ -0,0 +1,342 @@
+#include "pch.h"
+#include "Enemy_Detection.h"
+#include "GameInstance.h"
+#include "Monster.h"
+
+CEnemy_Detection::CEnemy_Detection(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CPartObject(pDevice, pContext)
+{
+}
+
+CEnemy_Detection::CEnemy_Detection(const CEnemy_Detection& Prototype)
+ : CPartObject(Prototype)
+{
+}
+
+HRESULT CEnemy_Detection::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEnemy_Detection::Initialize(void* pArg)
+{
+ ENEMY_DETECTION_DESC* pDesc = static_cast (pArg);
+ m_pSocketMatrices = pDesc->pSocketMatrices;
+
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(Ready_Components())) {
+ return E_FAIL;
+ }
+
+ m_fOrigin_Size = _float3(150.f, 150.f, 1.f);
+ m_fSize.x = m_fOrigin_Size.x;
+ m_fSize.y = m_fOrigin_Size.y;
+ m_pTransformCom->Set_Scale(m_fOrigin_Size);
+
+ m_fAlpha = 1.f;
+ m_bStep1 = true;
+ m_vImageposi = _float4(37.5f, 37.5f, 75.f, 75.f);
+
+ return S_OK;
+}
+
+void CEnemy_Detection::Priority_Update(_float fTimeDelta)
+{
+
+ XMFLOAT4X4 Head = *static_cast(m_pOwner)->Get_HeadMatrix();
+
+ XMVECTOR HeadPos = XMVectorSet(static_cast(m_pOwner)->Get_WorldPostion().m128_f32[0], static_cast(m_pOwner)->Get_WorldPostion().m128_f32[1], static_cast(m_pOwner)->Get_WorldPostion().m128_f32[2], 1.f);
+
+ m_vPosition = HeadPos;
+ m_pTransformCom->Set_State(STATE::POSITION, m_vPosition);
+}
+
+void CEnemy_Detection::Update(_float fTimeDelta)
+{
+ if (m_fActive == true)
+ {
+ m_fTime += fTimeDelta;
+
+ if (m_fTime >= 2.f)
+ {
+ if (m_bStep1 == true)
+ {
+ m_bStep1 = false;
+ m_bStep2 = true;
+ m_bStep3 = false;
+ m_fTime = 0.f;
+ }
+ else if (m_bStep2 == true)
+ {
+ m_bStep1 = false;
+ m_bStep2 = false;
+ m_bStep3 = true;
+ m_fTime = 0.f;
+ }
+ else if (m_bStep3 == true)
+ {
+ m_bStep1 = false;
+ m_bStep2 = false;
+ m_bStep3 = true;
+ m_fAlpha -= fTimeDelta;
+ }
+ }
+ }
+ else if (m_fActive == false)
+ {
+ m_fTime = 0.f;
+ m_bStep1 = true;
+ m_bStep2 = false;
+ m_bStep3 = false;
+ m_fSizeUp = false;
+ m_fAlpha = 1.f;
+ SizeUpX(m_fOrigin_Size.x);
+ SizeUpY(m_fOrigin_Size.y);
+ m_vImageposi.z = 75.f;
+ m_vImageposi.w = 75.f;
+ }
+
+ if (m_bStep3 == true)
+ {
+ if (m_fSizeUp == false)
+ {
+ SizeUpX(m_fSize.x + 10.f);
+ SizeUpY(m_fSize.y + 10.f);
+ m_vImageposi.z += 10.f;
+ m_vImageposi.w += 10.f;
+ m_fSizeUp = true;
+ }
+ }
+
+ if (m_fSize.x != m_fOrigin_Size.x)
+ {
+ SizeUpdate(-fTimeDelta * 10.f);
+ m_vImageposi.z -= fTimeDelta;
+ m_vImageposi.w -= fTimeDelta;
+ }
+
+ if (m_fAlpha <= 0.f)
+ m_fAlpha = 0.f;
+
+ _float3 Size = _float3(100.f,100.f, 1.f);
+ m_pTransformCom->Set_Scale(Size);
+}
+
+void CEnemy_Detection::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CEnemy_Detection::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ENEMY_DETECTION)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CEnemy_Detection::Render_Disolve()
+{
+ return S_OK;
+}
+
+void CEnemy_Detection::SizeUpX(_float fX)
+{
+ m_fSize.x = fX;
+}
+
+void CEnemy_Detection::SizeUpY(_float fY)
+{
+ m_fSize.y = fY;
+}
+
+void CEnemy_Detection::SizeUpdate(_float fSizeX)
+{
+ m_fSize.x += fSizeX;
+ m_fSize.y += fSizeX;
+ m_vImageposi.z += fSizeX;
+ m_vImageposi.w += fSizeX;
+ if (m_fSize.x - m_fOrigin_Size.x <= fSizeX)
+ {
+ m_fSize.x = m_fOrigin_Size.x;
+ m_fSize.y = m_fOrigin_Size.y;
+ m_vImageposi.z = 75.f;
+ m_vImageposi.w = 75.f;
+ }
+}
+
+HRESULT CEnemy_Detection::Ready_Components()
+{
+ __super::Ready_Components(nullptr);
+
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_Ring_Aggroed_Burst"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_NPC_WhiteFrameBlip"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_NPC_Alert"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_Ring_Alert_Fill"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_Ring_Alert_Yellow"), reinterpret_cast(&m_pDiffuse_TextureCom4), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_Ring_Aggro_Blip"), reinterpret_cast(&m_pDiffuse_TextureCom5), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CEnemy_Detection::Bind_ShaderResources()
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_CamaraPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iStep1", &m_bStep1, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iStep2", &m_bStep2, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iStep3", &m_bStep3, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_fSize, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+ return S_OK;
+}
+
+CEnemy_Detection* CEnemy_Detection::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEnemy_Detection* pInstance = new CEnemy_Detection(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEnemy_Detection");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEnemy_Detection::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEnemy_Detection* pInstance = new CEnemy_Detection(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEnemy_Detection");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEnemy_Detection::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pDiffuse_TextureCom4);
+ SAFE_RELEASE(m_pDiffuse_TextureCom5);
+ SAFE_RELEASE(m_pVIBufferCom);
+
+}
+
+#ifdef _DEBUG
+void CEnemy_Detection::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Enemy_HpBar.cpp b/Jusin154_Team3D/Client/Private/Enemy_HpBar.cpp
index b830165c1..d58a517fc 100644
--- a/Jusin154_Team3D/Client/Private/Enemy_HpBar.cpp
+++ b/Jusin154_Team3D/Client/Private/Enemy_HpBar.cpp
@@ -44,9 +44,9 @@ HRESULT CEnemy_HpBar::Initialize(void* pArg)
m_fAlpha = 0.f;
m_fAlphaTime = 10.f;
m_vNine_Slice = _float4(15.f, 100.f, 5.f, 15.f);
- m_fMaxHp = 0.f;
- m_fCurrentHp = 0.f;
- m_fTargetHp = 0.f;
+ m_fMaxHp = -1.f;
+ m_fCurrentHp = -1.f;
+ m_fTargetHp = -1.f;
SizeUpX(360.f);
m_fMoveSpeed = 5.f;
m_bAnimation = false;
diff --git a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp
index f04ecc88b..35147ac54 100644
--- a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp
@@ -65,7 +65,7 @@ void CEnemy_Panel::Update_Target()
if (m_pInfoInstance->Get_TargetMonster()->Get_Stat()->Get_Stat().bBoss == true)
{
static_cast(m_pBoss_HpBar)->Update_Target();
- static_cast(m_pEnemy_Info)->Set_FadeOut();
+ static_cast(m_pEnemy_HpBar)->Set_FadeOut();
static_cast(m_pEnemy_Info)->Update_Target();
static_cast(m_pEnemy_Info)->Set_Font_Move(true);
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index d68058979..5a5395478 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -50,26 +50,26 @@ HRESULT CGoblin::Initialize(void* pArg)
Add_FSM();
-Set_Anim();
+ Set_Anim();
-{
- CFSM::FSM_DESC FSMDesc{};
- FSMDesc.pStates = &m_States;
- FSMDesc.pStateMask = &m_iStateMask;
+ {
+ CFSM::FSM_DESC FSMDesc{};
+ FSMDesc.pStates = &m_States;
+ FSMDesc.pStateMask = &m_iStateMask;
- m_pFSM->Bind_States(FSMDesc);
- m_pFSM->Change_State(FSMSTATE::IDLE);
-}
+ m_pFSM->Bind_States(FSMDesc);
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
-m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
-m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
+ m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
+ m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
-m_pCharacter_Controller->Set_Position(XMVectorSet(-40.f, 5.f, -20.f, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-40.f, 5.f, -20.f, 1.f));
-m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
-SAFE_ADDREF(m_pEffectPool);
+ m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
+ SAFE_ADDREF(m_pEffectPool);
-return S_OK;
+ return S_OK;
}
void CGoblin::Priority_Update(_float fTimeDelta)
@@ -185,7 +185,7 @@ HRESULT CGoblin::Render()
return E_FAIL;
}
}
- else if (true == m_pRigidBody->IsActive()){
+ else if (true == m_pRigidBody->IsActive()) {
if (FAILED(m_pRigidBody->Render())) {
return E_FAIL;
}
@@ -280,7 +280,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
}
}
- break;
+ break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
break;
@@ -288,7 +288,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
break;
}
- if (!m_pFSM->IsEnable(FSMSTATE::BLINK)){
+ if (!m_pFSM->IsEnable(FSMSTATE::BLINK)) {
m_pFSM->Change_State(FSMSTATE::HIT);
}
@@ -312,7 +312,7 @@ HRESULT CGoblin::Ready_Components()
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
- reinterpret_cast(&m_pModelCom)))){
+ reinterpret_cast(&m_pModelCom)))) {
return E_FAIL;
}
@@ -370,7 +370,7 @@ HRESULT CGoblin::Ready_Parts()
Goblin_SpectorDesc.pParentTransform = m_pTransformCom;
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &Goblin_SpectorDesc,this, &m_pGoblinSpector))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &Goblin_SpectorDesc, this, &m_pGoblinSpector))) {
return E_FAIL;
}
@@ -381,7 +381,7 @@ HRESULT CGoblin::Ready_Parts()
PartsDesc.pParentTransform = m_pTransformCom;
- if (FAILED(Add_PartObject("Goblin_Particle",g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc)))
+ if (FAILED(Add_PartObject("Goblin_Particle", g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc)))
{
return E_FAIL;
}
@@ -411,6 +411,10 @@ HRESULT CGoblin::Ready_Parts()
#pragma endregion
+ if (FAILED(Add_PartObject("Enemy_Detection", g_iStaticLevel, &m_pDetection, &PartsDesc)))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -448,7 +452,7 @@ CGoblin* CGoblin::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
CGameObject* CGoblin::Clone(void* pArg, CGameObject* pOwner)
{
CGoblin* pInstance = new CGoblin(*this);
-
+
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CGoblin");
@@ -473,6 +477,7 @@ void CGoblin::Free()
SAFE_RELEASE(m_pSmoke);
SAFE_RELEASE(m_pGoblin_Particle);
SAFE_RELEASE(m_pGoblin_Particle2);
+ SAFE_RELEASE(m_pDetection);
SAFE_RELEASE(m_pEffectPool);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
diff --git a/Jusin154_Team3D/Client/Private/HpBarBG.cpp b/Jusin154_Team3D/Client/Private/HpBarBG.cpp
index 81c4232a8..ff79636ab 100644
--- a/Jusin154_Team3D/Client/Private/HpBarBG.cpp
+++ b/Jusin154_Team3D/Client/Private/HpBarBG.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "HpBarBG.h"
#include "GameInstance.h"
+#include "InfoInstance.h"
CHpBarBG::CHpBarBG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
@@ -8,7 +9,8 @@ CHpBarBG::CHpBarBG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
}
CHpBarBG::CHpBarBG(const CHpBarBG& rhs)
- :CElementObject(rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -41,13 +43,14 @@ HRESULT CHpBarBG::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fAlphaTime = 1.f;
m_vNine_Slice = _float4(27.f, 125.f, m_fSizeY * 0.5f, m_fSizeY * 0.5f);
- m_fMaxHp = 1000.f;
+ m_fMaxHp = 0.f;
m_fCurrentHp = m_fMaxHp;
m_fMoveSpeed = 5.f;
m_fHpBGSize = _float2(144.f, 24.f);
m_fHpBGPos = _float2(0.f, 13.f);
m_fHpBG = _float2(0, m_fSizeX);
SizeUpX(240.f);
+ //m_pInfoInstance->Add_Event(TEXT("PlayerHit"), [this](void* p) {this->Set_Damage(*reinterpret_cast<_float*>(p)); });
return S_OK;
}
@@ -91,11 +94,18 @@ void CHpBarBG::Update(_float fTimeDelta)
}
}
+ if (m_fMaxHp != m_pInfoInstance->Get_PlayerStatPtr()->Get_Stat().fMaxHp)
+ {
+ m_fMaxHp = m_pInfoInstance->Get_PlayerStatPtr()->Get_Stat().fMaxHp;
+ m_fCurrentHp = m_fMaxHp;
+ }
+
if (m_fCurrentHp < 0.f)
m_fCurrentHp = 0.f;
if (m_fDamage <= 0.f)
m_fDamage = 0.f;
- m_fTargetHp = m_fMaxHp - m_fDamage;
+ m_fTargetHp = m_pInfoInstance->Get_PlayerStatPtr()->Get_Stat().fCurrentHp;
+
if (m_fTargetHp > m_fCurrentHp)
Heal(fTimeDelta);
@@ -103,15 +113,6 @@ void CHpBarBG::Update(_float fTimeDelta)
Hit(fTimeDelta);
m_fHpBar = m_fCurrentHp / m_fMaxHp;
- if (m_pGameInstance->Key_Down(DIK_3))
- {
- Lerp_PosX(100.f);
- }
-
- if (m_pGameInstance->Key_Down(DIK_4))
- {
- Lerp_PosX(-101.f);
- }
if (m_fHpBar <= 0.3f)
{
m_fBlinkTime += fTimeDelta * m_fTimeMult;
@@ -125,6 +126,7 @@ void CHpBarBG::Update(_float fTimeDelta)
m_fBlinkTime = 0.f;
m_fTime = 0.f;
}
+
__super::Update(fTimeDelta);
}
@@ -184,6 +186,11 @@ void CHpBarBG::SizeUpX(_float fSizeX)
m_fX -= (fSizeX - m_vScale.x) * 0.5f;
}
+void CHpBarBG::Set_Damage(_float fDamage)
+{
+ m_fDamage += fDamage;
+}
+
HRESULT CHpBarBG::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index d2c3c694f..c62d49a82 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -34,6 +34,11 @@ void CInfoInstance::Change_Level()
m_pInteractiveInfo->Change_Level();
}
+CStat* CInfoInstance::Get_PlayerStatPtr()
+{
+ return m_pPlayerInfo->Get_PlayerStatPtr();
+}
+
void CInfoInstance::Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight)
{
m_pPlayerInfo->Update_CameraCoordinateSystem(vLook, vRight);
@@ -56,6 +61,13 @@ void CInfoInstance::Set_Damage(_float fDamage)
m_pSkillInfo->Update_Damage(fDamage);
}
+CPlater* CInfoInstance::Get_PlayerInfo()
+{
+ //return m_pPlayerInfo->Get_CameraCoordinateSystem();
+ return nullptr;
+}
+
+
#pragma region MONSTER_INFO
HRESULT CInfoInstance::Regist_PlayerAlly(CUnit* pUnit)
@@ -274,9 +286,17 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
if (nullptr == m_pMapInfo) {
return E_FAIL;
}
- m_pPlayerInfo = CPlayerInfo::Create(pDevice, pContext);
- if (nullptr == m_pPlayerInfo) {
- return E_FAIL;
+
+ { // 순서 고정
+#pragma region STAT PROTOTYPE
+ if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/Stat.xml"))) {
+ return E_FAIL;
+ }
+#pragma endregion
+ m_pPlayerInfo = CPlayerInfo::Create(pDevice, pContext);
+ if (nullptr == m_pPlayerInfo) {
+ return E_FAIL;
+ }
}
m_pMonsterInfo = CMonsterInfo::Create(pDevice, pContext);
if (nullptr == m_pMonsterInfo) {
@@ -294,6 +314,33 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
return S_OK;
}
+HRESULT CInfoInstance::Stat_FileLoad(const _char* pDirectoryPath)
+{
+ filesystem::path pathStatFile = pDirectoryPath;
+
+ tinyxml2::XMLDocument doc;
+ tinyxml2::XMLError Error = doc.LoadFile(pathStatFile.string().c_str());
+ if (Error != tinyxml2::XML_SUCCESS) {
+ return E_FAIL;
+ }
+
+ tinyxml2::XMLElement* pStatInfo = doc.FirstChildElement("StatInfo");
+ if (!pStatInfo) {
+ return E_FAIL;
+ }
+
+ _uint iNumChild = pStatInfo->ChildElementCount();
+ tinyxml2::XMLNode* pChild = pStatInfo->FirstChildElement();
+ for (_uint i = 0; i < iNumChild; ++i) {
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(pChild->Value()),
+ CStat::Create(m_pDevice, m_pContext, pChild)))) {
+ return E_FAIL;
+ }
+ pChild = pChild->NextSiblingElement();
+ }
+
+ return S_OK;
+}
void CInfoInstance::Release_Information()
{
UI_Event.clear();
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 2a9afd12f..f834d357a 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -228,7 +228,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
// >> M A P Configuration <<
// 맵 로드할지 안할지 bool 설정
// ---------------------------------
- _bool isReady_Background = { false };
+ _bool isReady_Background = { true };
#ifdef gimch
isReady_Background = true;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 564df4915..e910e2351 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -76,6 +76,7 @@
#include "Enemy_HpBar.h"
#include "Enemy_Info.h"
#include "Boss_HpBar.h"
+#include "Enemy_Detection.h"
#include "Spell_Canvas.h"
#include "Spell_Panel.h"
@@ -300,7 +301,7 @@ HRESULT CLoader::Loading_For_GamePlay()
{
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
- _bool isLoad_Background = { false };
+ _bool isLoad_Background = { true };
#ifdef gimch
isLoad_Background = true;
@@ -670,6 +671,22 @@ HRESULT CLoader::Loading_For_GamePlay()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Enemy", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
@@ -1709,6 +1726,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBoss_HpBar::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
+ /* For.Prototype_GameObject_Enemy_Detection*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEnemy_Detection::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
/* For.Prototype_GameObject_Spell_Canvas*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Canvas::Create(m_pDevice, m_pContext))))
@@ -2084,11 +2105,6 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
return E_FAIL;
-#pragma endregion
-#pragma region STAT PROTOTYPE
- if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/Stat.xml"))) {
- return E_FAIL;
- }
#pragma endregion
@@ -2255,33 +2271,6 @@ HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreN
return S_OK;
}
-HRESULT CLoader::Stat_FileLoad(const _char* pDirectoryPath)
-{
- filesystem::path pathStatFile = pDirectoryPath;
-
- tinyxml2::XMLDocument doc;
- tinyxml2::XMLError Error = doc.LoadFile(pathStatFile.string().c_str());
- if (Error != tinyxml2::XML_SUCCESS) {
- return E_FAIL;
- }
-
- tinyxml2::XMLElement* pStatInfo = doc.FirstChildElement("StatInfo");
- if (!pStatInfo) {
- return E_FAIL;
- }
-
- _uint iNumChild = pStatInfo->ChildElementCount();
- tinyxml2::XMLNode* pChild = pStatInfo->FirstChildElement();
- for (_uint i = 0; i < iNumChild; ++i) {
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, CMyTools::ToWstring(pChild->Value()),
- CStat::Create(m_pDevice, m_pContext, pChild)))) {
- return E_FAIL;
- }
- pChild = pChild->NextSiblingElement();
- }
-
- return S_OK;
-}
vector* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag)
{
diff --git a/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp b/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp
new file mode 100644
index 000000000..071f397ac
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/MiniMap_Camera.cpp
@@ -0,0 +1,99 @@
+#include "pch.h"
+#include "MiniMap_Camera.h"
+#include "InfoInstance.h"
+
+CMiniMap_Camera::CMiniMap_Camera(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CCamera(pDevice, pContext)
+{
+}
+
+CMiniMap_Camera::CMiniMap_Camera(const CMiniMap_Camera& rhs)
+ : CCamera(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+void CMiniMap_Camera::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CMiniMap_Camera::Update(_float fTimeDelta)
+{
+}
+
+void CMiniMap_Camera::Update_LerpTimer(Engine::_float fTimeDelta)
+{
+}
+
+void CMiniMap_Camera::Enable_FollowLerp()
+{
+}
+
+void CMiniMap_Camera::Enable_LookLerp()
+{
+}
+
+void CMiniMap_Camera::Toggle_Priority()
+{
+}
+
+void CMiniMap_Camera::Late_Update(_float fTimeDelta)
+{
+}
+
+HRESULT CMiniMap_Camera::Render()
+{
+ return S_OK;
+}
+
+HRESULT CMiniMap_Camera::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CMiniMap_Camera::Initialize(void* pArg)
+{
+ return S_OK;
+}
+
+HRESULT CMiniMap_Camera::Ready_Components(void* pArg)
+{
+ return S_OK;
+}
+
+HRESULT CMiniMap_Camera::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+CMiniMap_Camera* CMiniMap_Camera::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CMiniMap_Camera* pInstance = new CMiniMap_Camera(pDevice, pContext);
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CMiniMap_Camera");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+CGameObject* CMiniMap_Camera::Clone(void* pArg, CGameObject* pOwner)
+{
+ CMiniMap_Camera* pInstance = new CMiniMap_Camera(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CMiniMap_Camera");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+void CMiniMap_Camera::Free()
+{
+ __super::Free();
+}
+
+void CMiniMap_Camera::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index d7a8c90e6..578553abd 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -387,11 +387,10 @@ HRESULT CPlayer::Ready_Components()
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_PLAYER"), (CComponent**)&m_pStat))) {
- return E_FAIL;
-
- }
-
+ m_pStat = m_pInfoInstance->Get_PlayerStatPtr();
+ m_Components.push_back(m_pStat);
+ SAFE_ADDREF(m_pStat);
+ SAFE_ADDREF(m_pStat);
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
diff --git a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp
index f01a773e6..e7cc16ab6 100644
--- a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp
@@ -8,6 +8,11 @@ CPlayerInfo::CPlayerInfo()
{
}
+CStat* CPlayerInfo::Get_PlayerStatPtr()
+{
+ return m_pStat;
+}
+
void CPlayerInfo::Update(_float fTimeDelta)
{
}
@@ -33,13 +38,16 @@ HRESULT CPlayerInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
m_pInfoInstance = CInfoInstance::GetInstance();
m_pDevice = pDevice;
m_pContext = pContex;
-
+
SAFE_ADDREF(m_pGameInstance);
SAFE_ADDREF(m_pInfoInstance);
SAFE_ADDREF(m_pDevice);
SAFE_ADDREF(m_pContext);
-
+ m_pStat = (CStat*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, TEXT("STAT_PLAYER"), nullptr, nullptr);
+ if (nullptr == m_pStat) {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -62,5 +70,5 @@ void CPlayerInfo::Free()
SAFE_RELEASE(m_pInfoInstance);
SAFE_RELEASE(m_pDevice);
SAFE_RELEASE(m_pContext);
-
+ SAFE_RELEASE(m_pStat);
}
diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp
index 7b923040a..9652b509d 100644
--- a/Jusin154_Team3D/Client/Private/Troll_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp
@@ -451,6 +451,7 @@ void CTroll::SwingHit(_bool& bPlayerHit)
{
vector pxHits;
_uint iHitCount = 0;
+ _float Damage = 0.f;
CheckHammerHits(iHitCount, pxHits);
{
for (_uint i = 0; i < pxHits.size(); ++i) {
@@ -465,7 +466,8 @@ void CTroll::SwingHit(_bool& bPlayerHit)
continue;
}
CStat* pStat = pUserData->pCharacter->Get_Owner()->Get_Component();
- pStat->Get_Damage(7.f);
+ pStat->Get_Damage(20.f);
+ Damage = 7.f;
bPlayerHit = true;
} break;
case PXOBJECT::ALLY_HITBOX:
@@ -830,7 +832,7 @@ void CTroll::SlamHit(_bool& bPlayerHit)
continue;
}
CStat* pStat = pUserData->pCharacter->Get_Owner()->Get_Component();
- pStat->Get_Damage(10.f);
+ pStat->Get_Damage(20.f);
bPlayerHit = true;
} break;
case PXOBJECT::ALLY_HITBOX:
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 13743ee66..201976bb7 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -12,7 +12,7 @@ namespace Client
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, ENEMY_DETECTION, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, END };
enum class UI_STATE { GAMEPLAYER, SPELL, POTION, INVENTORY, END };
diff --git a/Jusin154_Team3D/Client/Public/Enemy_Detection.h b/Jusin154_Team3D/Client/Public/Enemy_Detection.h
new file mode 100644
index 000000000..22dfdc79f
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Enemy_Detection.h
@@ -0,0 +1,76 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "PartObject.h"
+
+NS_BEGIN(Client)
+
+class CEnemy_Detection final : public CPartObject
+{
+public:
+ typedef struct tagEnemyDetection : public CPartObject::PARTOBJECT_DESC
+ {
+ const _float4x4* pSocketMatrices = {};
+ }ENEMY_DETECTION_DESC;
+private:
+ CEnemy_Detection(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEnemy_Detection(const CEnemy_Detection& Prototype);
+ virtual ~CEnemy_Detection() = default;
+
+public:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+ HRESULT Render_Disolve();
+
+private:
+ void SizeUpX(_float fX);
+ void SizeUpY(_float fY);
+ void SizeUpdate(_float fSize);
+
+private:
+ const _float4x4* m_pSocketMatrices = { };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom4 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom5 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _vector m_vPosition{};
+
+ _float4 m_vImageposi{};
+
+ _bool m_bStep1 = { false };
+ _bool m_bStep2 = { false };
+ _bool m_bStep3 = { false };
+
+ _bool m_fActive = { false };
+ _bool m_fSizeUp = { false };
+
+ _float3 m_fOrigin_Size{};
+
+ _float2 m_fSize;
+
+ _float m_fAlpha{};
+ _float m_fTime{};
+private:
+ HRESULT Ready_Components();
+ HRESULT Bind_ShaderResources();
+
+public:
+ static CEnemy_Detection* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
+ virtual void Free() override;
+
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h
index d91dd4d87..53a62d583 100644
--- a/Jusin154_Team3D/Client/Public/Goblin.h
+++ b/Jusin154_Team3D/Client/Public/Goblin.h
@@ -4,6 +4,7 @@
#include "Monster.h"
#include "CallBack_Monster_Behavior.h"
#include "CallBack_Monster_HitReport.h"
+#include "Enemy_Detection.h"
NS_BEGIN(Client)
@@ -34,6 +35,7 @@ class CGoblin final : public CMonster
private:
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
+ CEnemy_Detection* m_pDetection = { nullptr };
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/HpBarBG.h b/Jusin154_Team3D/Client/Public/HpBarBG.h
index f38f8c751..2ca6f2ee4 100644
--- a/Jusin154_Team3D/Client/Public/HpBarBG.h
+++ b/Jusin154_Team3D/Client/Public/HpBarBG.h
@@ -30,6 +30,8 @@ class CHpBarBG final : public CElementObject
void Heal(_float fTimeDelta);
void Hit(_float fTimeDelta);
virtual void SizeUpX(_float SizeX) override;
+ void Set_Damage(_float fDamage);
+
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
@@ -43,6 +45,8 @@ class CHpBarBG final : public CElementObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
_float m_fBlinkTime{};
_float m_fMaxHp{};
_float m_fCurrentHp{};
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 2d602bb58..085323e09 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -8,6 +8,7 @@ class CGameInstance;
class CTransform;
class CUnit;
class CState;
+class CStat;
NS_END
NS_BEGIN(Client)
@@ -27,10 +28,12 @@ DECLARE_SINGLETON(CInfoInstance)
void Change_Level();
#pragma region PLAYER_INFO
+ CStat* Get_PlayerStatPtr();
void Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight);
pair<_float3, _float3> Get_CameraCoordinateSystem();
_float Player_Damage();
void Set_Damage(_float fDamage);
+ class CPlater* Get_PlayerInfo();
#pragma endregion
#pragma region MONSTER_INFO
HRESULT Regist_PlayerAlly(CUnit* pUnit);
@@ -89,6 +92,9 @@ DECLARE_SINGLETON(CInfoInstance)
_string m_strLog = {};
#endif // _DEBUG
+private:
+ HRESULT Stat_FileLoad(const _char* pDirectoryPath);
+
public:
virtual void Free() override;
};
diff --git a/Jusin154_Team3D/Client/Public/Loader.h b/Jusin154_Team3D/Client/Public/Loader.h
index c75611a58..cb0ecf432 100644
--- a/Jusin154_Team3D/Client/Public/Loader.h
+++ b/Jusin154_Team3D/Client/Public/Loader.h
@@ -40,7 +40,6 @@ class CLoader final : public CBase
private:
HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent);
- HRESULT Stat_FileLoad(const _char* pDirectoryPath);
future*> Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag);
future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag);
void Ready_MapModels(vector*>>& jobMapModels);
diff --git a/Jusin154_Team3D/Client/Public/MiniMap_Camera.h b/Jusin154_Team3D/Client/Public/MiniMap_Camera.h
new file mode 100644
index 000000000..53d2b6e2d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/MiniMap_Camera.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Camera.h"
+
+NS_BEGIN(Client)
+
+class CMiniMap_Camera final : public CCamera
+{
+public:
+ typedef struct tagCamera_Gaze : public CCamera::CAMERA_DESC
+ {
+ }CAMERA_GAZE_DESC;
+private:
+ CMiniMap_Camera(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CMiniMap_Camera(const CMiniMap_Camera& rhs);
+ virtual ~CMiniMap_Camera() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ void Update_LerpTimer(Engine::_float fTimeDelta);
+ void Enable_FollowLerp();
+ void Enable_LookLerp();
+ void Toggle_Priority();
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Bind_ShaderResources() override;
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
+
+public:
+ static CMiniMap_Camera* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+ virtual void Free() override;
+
+
+#ifdef _DEBUG
+ void Describe_Entity() override;
+
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/PlayerInfo.h b/Jusin154_Team3D/Client/Public/PlayerInfo.h
index 3a4fa0654..d48e44c0a 100644
--- a/Jusin154_Team3D/Client/Public/PlayerInfo.h
+++ b/Jusin154_Team3D/Client/Public/PlayerInfo.h
@@ -6,6 +6,7 @@
NS_BEGIN(Engine)
class CGameInstance;
class CTransform;
+class CStat;
NS_END
NS_BEGIN(Client)
@@ -16,6 +17,7 @@ class CPlayerInfo final : public CBase
CPlayerInfo();
~CPlayerInfo() = default;
public:
+ CStat* Get_PlayerStatPtr();
void Update(_float fTimeDelta);
void Change_Level();
@@ -28,7 +30,8 @@ class CPlayerInfo final : public CBase
ID3D11DeviceContext* m_pContext = { nullptr };
private:
- CTransform* m_pTransform = { nullptr };
+ CTransform* m_pTransform = { nullptr };
+ CStat* m_pStat = { nullptr };
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
_float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 5465e90a7..fec7287d9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -4,6 +4,8 @@
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_DepthTexture;
+float4 g_CamaraPosition;
+
int g_iImageCountX;
int g_iImageCountY;
@@ -56,11 +58,16 @@ Texture2D g_Texture2;
Texture2D g_Texture3;
Texture2D g_Texture4;
Texture2D g_Texture5;
+Texture2D g_Texture6;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iStep1 = 0;
+int g_iStep2 = 0;
+int g_iStep3 = 0;
+
struct VS_IN
{
float3 vPosition : POSITION;
@@ -1483,6 +1490,158 @@ PS_OUT PS_Boss_HpBer(PS_IN In)
return Out;
}
+struct VS_IN3D
+{
+ float3 vPosition : POSITION;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+struct VS_OUT3D
+{
+ float4 vPosition : SV_Position;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+VS_OUT3D VS_MAIN3D(VS_IN3D In)
+{
+ VS_OUT3D Out;
+
+ float3 CamaeraPos = float3(g_CamaraPosition.x, 1.f, g_CamaraPosition.z);
+ float3 UIPos = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43);
+
+ float3 CameraDir = normalize(CamaeraPos - UIPos);
+
+ float angle = atan2(CameraDir.x, CameraDir.z);
+ float cosA = cos(angle);
+ float sinA = sin(angle);
+
+
+ float3 rotation = float3(0.f, 0.f, 0.f);
+
+ rotation.x = In.vPosition.x * cosA - In.vPosition.z * sinA;
+ rotation.y = In.vPosition.y;
+ rotation.z = In.vPosition.x * sinA + In.vPosition.z * cosA;
+
+ float3 worldPos = rotation + UIPos;
+
+ matrix matWVP = mul(g_ViewMatrix, g_ProjMatrix);
+ float4 clipPos = mul(float4(worldPos, 1.0f), matWVP);
+
+ Out.vPosition = clipPos;
+ Out.vTexcoord = In.vTexcoord;
+
+ return Out;
+}
+
+
+PS_OUT PS_Enemy_Detection(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
+
+ if (g_iStep1 != 0)
+ {
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ if (inside1)
+ {
+ float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal);
+
+ float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
+
+ Color = lerp(Color, tex3, tex3.a);
+
+ float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2);
+ float4 tex5 = g_Texture3.Sample(ClampSampler, Imagelocal2);
+
+ float4 Color1 = tex4;
+
+ Color1 = lerp(tex4, tex5, tex5.a);
+
+ Imagelocal2.y = 1.f - Imagelocal2.y;
+
+ if (Imagelocal2.y >= g_fTime)
+ {
+ Color1.a = 0.f;
+ }
+
+ Color = lerp(Color, Color1, Color1.a);
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+ }
+ }
+ if (g_iStep2 != 0)
+ {
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ if (inside1)
+ {
+ float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal);
+
+ float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
+
+ float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2);
+ float4 tex6 = g_Texture4.Sample(ClampSampler, Imagelocal2);
+ Color = lerp(Color, tex3, tex3.a);
+ float4 Color1 = tex4;
+ Color1 = lerp(tex4, tex6, tex6);
+ Color1.rgb *= float3(1.f, 1.f, 0.f);
+ Imagelocal2.y = 1.f - Imagelocal2.y;
+ if (Imagelocal2.y >= g_fTime)
+ {
+ Color1.a = 0.f;
+ }
+ Color = lerp(Color, Color1, Color1.a);
+
+ Color.a *= g_fAlpha;
+
+ Out.vColor = Color;
+
+ return Out;
+ }
+ }
+ if (g_iStep3 != 0)
+ {
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+ Color.rgb *= float3(1.f, 0.f, 0.f);
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ if (inside1)
+ {
+ float4 tex7 = g_Texture5.Sample(ClampSampler, Imagelocal);
+
+ Color = lerp(Color, tex7, tex7.a);
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+ }
+
+ }
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -1793,4 +1952,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Boss_HpBer();
}
+ pass PS_Enemy_Detection
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN3D();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Enemy_Detection();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Enemy/UI_T_HUD_Ring_Aggroed_Burst.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Enemy/UI_T_HUD_Ring_Aggroed_Burst.png
new file mode 100644
index 000000000..196c1f0d8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Enemy/UI_T_HUD_Ring_Aggroed_Burst.png differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 8071fbad5..8981c3340 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -177,6 +177,7 @@ call Update_Shaders.bat
+
@@ -379,6 +380,7 @@ call Update_Shaders.bat
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 66bcff3a8..b35a3774d 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -562,6 +562,9 @@
{49575102-9b08-494e-bf3f-bdc98774913e}
+
+ {81c6b163-6c8b-47ac-a4b6-e86088ce709f}
+
@@ -1122,6 +1125,9 @@
50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar
+
+ 50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection
+
@@ -1684,6 +1690,9 @@
50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar
+
+ 50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection
+
diff --git a/Jusin154_Team3D/Editor/Private/Enemy_Detection.cpp b/Jusin154_Team3D/Editor/Private/Enemy_Detection.cpp
new file mode 100644
index 000000000..3d4cd7419
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Enemy_Detection.cpp
@@ -0,0 +1,377 @@
+#include "pch.h"
+#include "Enemy_Detection.h"
+#include "GameInstance.h"
+
+CEnemy_Detection::CEnemy_Detection(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CElementObject(pDevice, pContext)
+{
+}
+
+CEnemy_Detection::CEnemy_Detection(const CEnemy_Detection& Prototype)
+ : CElementObject(Prototype)
+{
+}
+
+HRESULT CEnemy_Detection::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEnemy_Detection::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 500.f;
+ Desc.fSizeX = 150.f;
+ Desc.fSizeY = 150.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_bStep1 = true;
+ m_vImageposi = _float4(37.5f, 37.5f, 75.f, 75.f);
+ return S_OK;
+}
+
+void CEnemy_Detection::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CEnemy_Detection::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_pGameInstance->Key_Pressing(DIK_Q))
+ {
+ m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_fTime >= 2.f)
+ {
+ if (m_bStep1 == true)
+ {
+ m_bStep1 = false;
+ m_bStep2 = true;
+ m_bStep3 = false;
+ m_fTime = 0.f;
+ }
+ else if (m_bStep2 == true)
+ {
+ m_bStep1 = false;
+ m_bStep2 = false;
+ m_bStep3 = true;
+ m_fTime = 0.f;
+ }
+ else if (m_bStep3 == true)
+ {
+ m_bStep1 = false;
+ m_bStep2 = false;
+ m_bStep3 = true;
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ }
+ }
+ }
+
+ else if (m_pGameInstance->Key_Up(DIK_Q))
+ {
+ m_fTime = 0.f;
+ m_bStep1 = true;
+ m_bStep2 = false;
+ m_bStep3 = false;
+ m_bHover = false;
+ m_fAlpha = 1.f;
+ SizeUpX(m_fOrigin_Size.x);
+ SizeUpY(m_fOrigin_Size.y);
+ m_vImageposi.z = 75.f;
+ m_vImageposi.w = 75.f;
+ }
+
+ if (m_bStep3 == true)
+ {
+ if (m_bHover == false)
+ {
+ SizeUpX(m_fSizeX + 10.f);
+ SizeUpY(m_fSizeY + 10.f);
+ m_vImageposi.z += 10.f;
+ m_vImageposi.w += 10.f;
+ m_bHover = true;
+ }
+ }
+
+ if (m_fSizeX != m_fOrigin_Size.x)
+ {
+ SizeUpdate(-fTimeDelta * 10.f);
+ m_vImageposi.z -= fTimeDelta;
+ m_vImageposi.w -= fTimeDelta;
+ }
+
+ if (m_fAlpha <= 0.f)
+ m_fAlpha = 0.f;
+
+ __super::Update(fTimeDelta);
+
+}
+
+void CEnemy_Detection::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CEnemy_Detection::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ENEMY_DETECTION))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CEnemy_Detection::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CEnemy_Detection::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iStep1", &m_bStep1, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iStep2", &m_bStep2, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iStep3", &m_bStep3, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CEnemy_Detection::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_Ring_Aggroed_Burst"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_NPC_WhiteFrameBlip"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_NPC_Alert"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_Ring_Alert_Fill"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_Ring_Alert_Yellow"), reinterpret_cast(&m_pDiffuse_TextureCom4), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_Ring_Aggro_Blip"), reinterpret_cast(&m_pDiffuse_TextureCom5), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CEnemy_Detection::SizeUpdate(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+ m_vImageposi.z += fSizeX;
+ m_vImageposi.w += fSizeX;
+ if (m_fSizeX - m_fOrigin_Size.x <= fSizeX)
+ {
+ m_fSizeX = m_fOrigin_Size.x;
+ m_fSizeY = m_fOrigin_Size.y;
+ m_vImageposi.z = 75.f;
+ m_vImageposi.w = 75.f;
+ }
+}
+
+CEnemy_Detection* CEnemy_Detection::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEnemy_Detection* pInstance = new CEnemy_Detection(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEnemy_Detection");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEnemy_Detection::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEnemy_Detection* pInstance = new CEnemy_Detection(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEnemy_Detection");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEnemy_Detection::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pDiffuse_TextureCom4);
+ SAFE_RELEASE(m_pDiffuse_TextureCom5);
+ SAFE_RELEASE(m_pVIBufferCom);
+
+}
+
+#ifdef _DEBUG
+void CEnemy_Detection::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Enemy_Panel.cpp b/Jusin154_Team3D/Editor/Private/Enemy_Panel.cpp
index 1691ae22c..dbb499243 100644
--- a/Jusin154_Team3D/Editor/Private/Enemy_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Enemy_Panel.cpp
@@ -4,6 +4,7 @@
#include "Enemy_HpBar.h"
#include "Enemy_Info.h"
#include "Boss_HpBer.h"
+#include "Enemy_Detection.h"
CEnemy_Panel::CEnemy_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -127,6 +128,12 @@ HRESULT CEnemy_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("Boss_HpBer"), m_pBoss_HpBar);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEnemy_Detection))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Enemy_Detection"), m_pEnemy_Detection);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
index 90ac75136..e3a80969f 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
@@ -41,16 +41,22 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
void CLevel_Loading::Update(_float fTimeDelta)
{
- if (true == m_pLoader->isFinished() &&
- m_pGameInstance->Key_Down(DIK_F1))
+ if (true == m_pLoader->isFinished())
{
- if (m_eNextLevelID != LEVEL::LOGO)
+ if(m_eNextLevelID == LEVEL::UI)
m_bNextLevel = true;
- else
+
+ if (m_pGameInstance->Key_Down(DIK_F1))
{
- static_cast(m_pIntro_Image)->Set_Hover(true);
- m_bDelay = true;
+ if (m_eNextLevelID != LEVEL::LOGO)
+ m_bNextLevel = true;
+ else
+ {
+ static_cast(m_pIntro_Image)->Set_Hover(true);
+ m_bDelay = true;
+ }
}
+
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 795da22f1..c56149802 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -55,6 +55,7 @@
#include "Enemy_HpBar.h"
#include "Enemy_Info.h"
#include "Boss_HpBer.h"
+#include "Enemy_Detection.h"
#include "Mission_Panel.h"
#include "MissionBanner_Border.h"
@@ -557,6 +558,22 @@ HRESULT CLoader::Loading_For_UI()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Enemy", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
@@ -920,6 +937,10 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEnemy_Detection::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext))))
{
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 9cc9e1481..d374e1cac 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -25,7 +25,7 @@ namespace Editor
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, ENEMY_DETECTION, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, END };
diff --git a/Jusin154_Team3D/Editor/Public/Enemy_Detection.h b/Jusin154_Team3D/Editor/Public/Enemy_Detection.h
new file mode 100644
index 000000000..7c41587fa
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Enemy_Detection.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CEnemy_Detection final : public CElementObject
+{
+private:
+ CEnemy_Detection(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEnemy_Detection(const CEnemy_Detection& rhs);
+ virtual ~CEnemy_Detection() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void SizeUpdate(_float fSizeX);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom4 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom5 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float4 m_vImageposi{};
+
+ _bool m_bStep1 = { false };
+ _bool m_bStep2 = { false };
+ _bool m_bStep3 = { false };
+public:
+ static CEnemy_Detection* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Enemy_Panel.h b/Jusin154_Team3D/Editor/Public/Enemy_Panel.h
index 7bf62d370..f3177b758 100644
--- a/Jusin154_Team3D/Editor/Public/Enemy_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/Enemy_Panel.h
@@ -35,7 +35,8 @@ class CEnemy_Panel final : public CPanelObject
CGameObject* m_pEnemy_HpBar = { nullptr };
CGameObject* m_pEnemy_Info = { nullptr };
- CGameObject* m_pBoss_HpBar= { nullptr };
+ CGameObject* m_pBoss_HpBar = { nullptr };
+ CGameObject* m_pEnemy_Detection = { nullptr };
public:
static CEnemy_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);