Merge branch 'Develope' into 1209_EFFECT
This commit is contained in:
@@ -23,6 +23,7 @@ float g_fAlpha;
|
||||
float g_fOwnerAlpha;
|
||||
float g_fCanvasAlpha;
|
||||
float g_fAngle;
|
||||
float g_fMapAngle;
|
||||
float g_fCoolTime;
|
||||
float g_fHp;
|
||||
|
||||
@@ -506,21 +507,14 @@ PS_OUT PS_Rotation(PS_IN In)
|
||||
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 uv = In.vTexcoord - center;
|
||||
uv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
Rotation.x = uv.x * cos(g_fMapAngle) - uv.y * sin(g_fMapAngle);
|
||||
Rotation.y = uv.x * sin(g_fMapAngle) + uv.y * cos(g_fMapAngle);
|
||||
Rotation += center;
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
tex1.rgb *= 0.4f;
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler , Rotation);
|
||||
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
@@ -586,7 +580,7 @@ PS_OUT PS_SpellAnim(PS_IN In)
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
BGColor = float3(220.f, 165.f, 70.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
@@ -1132,7 +1126,7 @@ PS_OUT PS_Spell_Header(PS_IN In)
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
BGColor = float3(220.f, 165.f, 70.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
@@ -1155,11 +1149,12 @@ PS_OUT PS_Spell_Header(PS_IN In)
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = tex1;
|
||||
|
||||
Color.rgb = tex1.rgb * 0.8f;
|
||||
Color.a = tex1.a;
|
||||
|
||||
Color.rgb *= BGColor;
|
||||
|
||||
Color.a *= Alpha;
|
||||
Color.a *= Alpha * 0.5f;
|
||||
|
||||
Out.vColor = Color;
|
||||
|
||||
@@ -1330,6 +1325,92 @@ PS_OUT PS_Loding_Screen(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Enemy_HpBer(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float2 uv = In.vTexcoord;
|
||||
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
|
||||
float OriginLeft = g_fNine_Slice.x;
|
||||
float OriginRight = g_fNine_Slice.y;
|
||||
float OriginTop = g_fNine_Slice.z;
|
||||
float OriginBottom = g_fNine_Slice.w;
|
||||
|
||||
float CurrentLeft = OriginLeft;
|
||||
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
|
||||
float CurrentTop = OriginTop;
|
||||
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
|
||||
|
||||
float2 Finaluv = In.vTexcoord;
|
||||
|
||||
if (CurrentPixelPosition.x < CurrentLeft)
|
||||
{
|
||||
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
|
||||
}
|
||||
else if (CurrentPixelPosition.x > CurrentRight)
|
||||
{
|
||||
float dist = CurrentPixelPosition.x - CurrentRight;
|
||||
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
|
||||
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
|
||||
}
|
||||
|
||||
if (CurrentPixelPosition.y < CurrentTop)
|
||||
{
|
||||
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
|
||||
}
|
||||
else if (CurrentPixelPosition.y > CurrentBottom)
|
||||
{
|
||||
float dist = CurrentPixelPosition.y - CurrentBottom;
|
||||
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
|
||||
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
|
||||
|
||||
Color = tex1;
|
||||
|
||||
tex2.rgb *= float3(1.f, 0.f, 0.f);
|
||||
|
||||
if (In.vTexcoord.x >= g_fHp)
|
||||
{
|
||||
tex2.rgb = float3(0.f, 0.f, 0.f);
|
||||
}
|
||||
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
|
||||
if (Color.a <= 0.f)
|
||||
discard;
|
||||
|
||||
if(g_iHover != 0)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
tex3.rgb *= float3(1.f, 0.f, 0.f);
|
||||
|
||||
if (g_fTime >= tex3.r)
|
||||
{
|
||||
Color.a *= tex3.r;
|
||||
Color.rgb = float3(1.f, 0.f, 0.f);
|
||||
}
|
||||
}
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass Default
|
||||
@@ -1620,4 +1701,14 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Loding_Screen();
|
||||
}
|
||||
|
||||
pass Enemy_HpBer
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Enemy_HpBer();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -165,6 +165,9 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
|
||||
<ClInclude Include="..\Public\Eessential_Spell.h" />
|
||||
<ClInclude Include="..\Public\Eessential_Spell_Slot.h" />
|
||||
<ClInclude Include="..\Public\Enemy_HpBar.h" />
|
||||
<ClInclude Include="..\Public\Enemy_Info.h" />
|
||||
<ClInclude Include="..\Public\Enemy_Panel.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Dagger.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Mage.h" />
|
||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||
@@ -307,6 +310,9 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Eessential_Spell.cpp" />
|
||||
<ClCompile Include="..\Private\Eessential_Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Enemy_HpBar.cpp" />
|
||||
<ClCompile Include="..\Private\Enemy_Info.cpp" />
|
||||
<ClCompile Include="..\Private\Enemy_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Dagger.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Mage.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Mage_States.cpp" />
|
||||
|
||||
@@ -409,18 +409,25 @@
|
||||
<ClInclude Include="..\Public\State_Dead.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\Dead</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Enemy_Panel.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Enemy_HpBar.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_HpBar</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Enemy_Info.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_Info</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Shuffle.h">
|
||||
<Filter>04.Mechanic\State\Movement\Shuffle</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Mage.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -821,9 +828,6 @@
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Blink">
|
||||
<UniqueIdentifier>{27251db2-19f2-4492-a3a4-32c11526f413}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="01.Levels\01.Logo\02.GamePlay">
|
||||
<UniqueIdentifier>{7e641382-9dfa-4da7-a8c8-a3ee06360e7a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Mouse_Cursor">
|
||||
<UniqueIdentifier>{b8c7e12b-da04-4d49-bc61-104649975d0b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -890,6 +894,15 @@
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior">
|
||||
<UniqueIdentifier>{3e7156ab-9d1f-4b9b-b09d-5dd60638505e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel">
|
||||
<UniqueIdentifier>{2d99db17-8cc6-437a-84d6-dd21ee434c38}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_HpBar">
|
||||
<UniqueIdentifier>{f28022fe-79c4-4623-af96-916e8828fedc}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_Info">
|
||||
<UniqueIdentifier>{3246055a-734f-45e2-ab2f-437ec2ccf061}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1291,12 +1304,6 @@
|
||||
<ClCompile Include="..\Private\State_Shuffle.cpp">
|
||||
<Filter>04.Mechanic\State\Movement\Shuffle</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin.cpp">
|
||||
<Filter>02.GameObjects\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
<Filter>02.GameObjects\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Broom_States.cpp">
|
||||
<Filter>02.GameObjects\Item\Broom</Filter>
|
||||
</ClCompile>
|
||||
@@ -1315,6 +1322,17 @@
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Enemy_HpBar.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_HpBar</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Enemy_Info.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_Info</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Enemy_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -88,6 +88,12 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
OnCollision(this);
|
||||
}
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
SweepTarget(vStartPos, vEndPos, 0.125);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombard::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "pch.h"
|
||||
#include "Camera_Gaze.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CCamera_Gaze::CCamera_Gaze(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CCamera(pDevice, pContext)
|
||||
@@ -7,7 +8,8 @@ CCamera_Gaze::CCamera_Gaze(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CCamera_Gaze::CCamera_Gaze(const CCamera_Gaze& rhs)
|
||||
: CCamera(rhs)
|
||||
: CCamera(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -97,50 +97,6 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
_vector vStartPos = m_pProjectile->Get_WorldPostion();
|
||||
|
||||
_vector vEndPos = XMLoadFloat4(&m_vTargetPos);
|
||||
|
||||
_vector vDir2 = { vEndPos - vStartPos };
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
|
||||
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
|
||||
_bool bHit = m_pGameInstance->SphereCast(0.2f, vStartPos, vDir2, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
if (bHit) {
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::MONSTER:
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this);
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::TROLL:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
|
||||
@@ -151,6 +107,12 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
SweepTarget(vStartPos, vEndPos, 0.2f);
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(Ready_Effect())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(Ready_Effect())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -317,12 +317,11 @@ _int CEffect_Container::CollisionCheck()
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
case PXOBJECT::GOBLIN_MAGICIAN:
|
||||
case PXOBJECT::TROLL:
|
||||
case PXOBJECT::WALL:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this);
|
||||
return i;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::WALL:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -348,6 +347,66 @@ _int CEffect_Container::CollisionCheck()
|
||||
|
||||
}
|
||||
|
||||
void CEffect_Container::SweepTarget(_vector StartPos, _vector EndPos, _float fRadius)
|
||||
{
|
||||
_vector vStartPos = StartPos;
|
||||
_vector vEndPos = EndPos;
|
||||
_vector vDir = { vEndPos - vStartPos };
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
|
||||
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
if (bHit) {
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
ON_COLLISION_INFO tagCollInfo = {};
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::MONSTER:
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_MAGICIAN:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::TROLL:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
@@ -0,0 +1,352 @@
|
||||
#include "pch.h"
|
||||
#include "Enemy_HpBar.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CEnemy_HpBar::CEnemy_HpBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CEnemy_HpBar::CEnemy_HpBar(const CEnemy_HpBar& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 20.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 10.f;
|
||||
m_vNine_Slice = _float4(15.f, 100.f, 5.f, 15.f);
|
||||
m_fMaxHp = 200.f;
|
||||
m_fCurrentHp = m_fMaxHp;
|
||||
SizeUpX(360.f);
|
||||
m_fMoveSpeed = 5.f;
|
||||
m_bAnimation = false;
|
||||
m_fLerpY = m_fSizeY;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = true;
|
||||
}
|
||||
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_bHover = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_fCurrentHp < 0.f)
|
||||
m_fCurrentHp = 0.f;
|
||||
if (m_fDamage <= 0.f)
|
||||
m_fDamage = 0.f;
|
||||
m_fTargetHp = m_fMaxHp - m_fDamage;
|
||||
|
||||
if (m_fTargetHp < m_fCurrentHp)
|
||||
Hit(fTimeDelta);
|
||||
m_fHpBar = m_fCurrentHp / m_fMaxHp;
|
||||
|
||||
if (m_fHpBar <= 0.f)
|
||||
{
|
||||
m_bAnimation = true;
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_3))
|
||||
{
|
||||
Lerp_PosX(101.f);
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_K))
|
||||
{
|
||||
Set_FadeIn();
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
{
|
||||
Set_FadeOut();
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_J))
|
||||
{
|
||||
m_bAnimation = true;
|
||||
m_bHover = true;
|
||||
m_fTime = 0.f;
|
||||
SizeUpdate(m_fLerpX, m_fLerpY);
|
||||
}
|
||||
if (m_bAnimation == true)
|
||||
{
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
m_fSizeX += 3.f;
|
||||
m_fSizeY += 3.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Enemy_HpDie"));
|
||||
}
|
||||
if (m_fTime >= 0.9f)
|
||||
{
|
||||
m_bAnimation = false;
|
||||
m_bHover = false;
|
||||
m_fTime = 0.f;
|
||||
SizeUpdate(m_fLerpX, m_fLerpY);
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::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_HpBar::Render()
|
||||
{
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ENEMY_HPBAR)))) {
|
||||
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_HpBar::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Lerp_PosX(_float X)
|
||||
{
|
||||
m_fDamage += X;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Hit(_float fTimeDelta)
|
||||
{
|
||||
m_fCurrentHp = CMyTools::Lerp_f1D(m_fCurrentHp, m_fTargetHp, fTimeDelta * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::SizeUpX(_float SizeX)
|
||||
{
|
||||
m_fSizeX = SizeX;
|
||||
m_fLerpX = SizeX;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Set_Enemt_Info(void* pArg)
|
||||
{
|
||||
if(m_bAnimation == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
//m_fMaxHp
|
||||
//m_fCurrentHp
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::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_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fHp", &m_fHpBar, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bAnimation, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Monster_HpBar"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HUD_Monster_HealthMeterFill"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_FlameNoise_E"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CEnemy_HpBar* CEnemy_HpBar::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CEnemy_HpBar* pInstance = new CEnemy_HpBar(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CEnemy_HpBar");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CEnemy_HpBar::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CEnemy_HpBar* pInstance = new CEnemy_HpBar(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Image");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CEnemy_HpBar::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,263 @@
|
||||
#include "pch.h"
|
||||
#include "Enemy_Info.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CEnemy_Info::CEnemy_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CEnemy_Info::CEnemy_Info(const CEnemy_Info& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -180.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fSizeX = 50.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 1.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 10.f;
|
||||
m_fFontX = 952.f;
|
||||
m_fFontY = 39.f;
|
||||
m_fFontPos = _float2(1115.f, 0.f);
|
||||
m_fFont2OffSet = 0.f;
|
||||
m_pEnemy_Name = TEXT("나는 문어");
|
||||
m_pLevel = TEXT("99");
|
||||
m_bAnimation = false;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Enemy_HpDie"), [this](void* p) {this->Set_FadeOut(); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_Info::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Info::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = true;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_bHover = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_K))
|
||||
{
|
||||
Set_FadeIn();
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
{
|
||||
Set_FadeOut();
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Info::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_Info::Render()
|
||||
{
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pEnemy_Name.c_str()) - 29.f) * 0.5f;
|
||||
m_fFont2OffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_pLevel.c_str()) - 13.f) * 0.5f;
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pEnemy_Name.c_str(), _float2(m_fFontPos.x + m_fX - m_fFontOffSet, m_fFontPos.y + m_fY), XMVectorSet(1.f* m_fAlpha,1.f* m_fAlpha,1.f* m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_pLevel.c_str(), _float2(m_fFontX + m_fX - m_fFont2OffSet, m_fFontY + m_fY), XMVectorSet(0.f, (120.f / 255.f)* m_fAlpha, 0.f, m_fAlpha));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CEnemy_Info::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HealthMeter_LevelBox"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_Info::Set_Info(_int Level, _wstring Name)
|
||||
{
|
||||
if (m_bAnimation == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
m_pLevel = to_wstring(Level);
|
||||
m_pEnemy_Name = Name;
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
CEnemy_Info* CEnemy_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CEnemy_Info* pInstance = new CEnemy_Info(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CEnemy_Info");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CEnemy_Info::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CEnemy_Info* pInstance = new CEnemy_Info(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Image");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CEnemy_Info::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CEnemy_Info::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,163 @@
|
||||
#include "pch.h"
|
||||
#include "Enemy_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Enemy_HpBar.h"
|
||||
#include "Enemy_Info.h"
|
||||
|
||||
CEnemy_Panel::CEnemy_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CEnemy_Panel::CEnemy_Panel(const CEnemy_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 50.f;
|
||||
Desc.fSizeX = 960.f;
|
||||
Desc.fSizeY = 150.f;
|
||||
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fAlpha = 1.f;
|
||||
m_fCanvasAlpha = 1.f;
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Panel::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_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CEnemy_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_HpBar>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CEnemy_HpBar**>(&m_pEnemy_HpBar))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Enemy_HpBar"), m_pEnemy_HpBar);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CEnemy_Info**>(&m_pEnemy_Info))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Enemy_Info"), m_pEnemy_Info);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CEnemy_Panel* CEnemy_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CEnemy_Panel* pInstance = new CEnemy_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CEnemy_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CEnemy_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CEnemy_Panel* pInstance = new CEnemy_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CEnemy_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CEnemy_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "Loading_Panel.h"
|
||||
#include "Action_Panel.h"
|
||||
#include "Enemy_Panel.h"
|
||||
//#include "Mouse_Cursor.h"
|
||||
|
||||
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -111,6 +112,12 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
}
|
||||
Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CEnemy_Panel**>(&m_pEnemy_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Enemy_Panel"), m_pEnemy_Panel);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "State_Combat.h"
|
||||
#pragma endregion
|
||||
|
||||
#include "EffectParts.h"
|
||||
|
||||
|
||||
CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
@@ -296,6 +298,46 @@ HRESULT CGoblin::Ready_Parts()
|
||||
|
||||
Get_PartObject<CGoblin_Dagger>()->Set_Visible(false);
|
||||
|
||||
#pragma region EFFECT
|
||||
/* EFFECT */
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle",g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pGoblin_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle2", g_iStaticLevel, &m_pGoblin_Particle2, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pGoblin_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Smoke", g_iStaticLevel, &m_pSmoke, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pSmoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2"));
|
||||
|
||||
|
||||
#pragma endregion
|
||||
return S_OK;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -354,6 +396,9 @@ void CGoblin::Free()
|
||||
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pSmoke);
|
||||
SAFE_RELEASE(m_pGoblin_Particle);
|
||||
SAFE_RELEASE(m_pGoblin_Particle2);
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
|
||||
@@ -40,15 +40,17 @@ 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)
|
||||
m_bNextLevel = true;
|
||||
else
|
||||
{
|
||||
static_cast<CUIObject*>(m_pIntro_Image)->Set_Hover(true);
|
||||
m_bDelay = true;
|
||||
if (m_pGameInstance->Key_Down(DIK_F1))
|
||||
{
|
||||
static_cast<CUIObject*>(m_pIntro_Image)->Set_Hover(true);
|
||||
m_bDelay = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
#endif // 기무리
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_F1))
|
||||
if (m_pGameInstance->Key_Down(DIK_F1))
|
||||
{
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
}
|
||||
|
||||
@@ -101,6 +101,12 @@ void CLevioso::Late_Update(_float fTimeDelta)
|
||||
OnCollision(this);
|
||||
}
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
SweepTarget(vStartPos, vEndPos, 0.2f);
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
@@ -70,6 +70,10 @@
|
||||
#include "Spell_UI.h"
|
||||
#include "Magic_Item.h"
|
||||
|
||||
#include "Enemy_Panel.h"
|
||||
#include "Enemy_HpBar.h"
|
||||
#include "Enemy_Info.h"
|
||||
|
||||
#include "Spell_Canvas.h"
|
||||
#include "Spell_Panel.h"
|
||||
#include "Current_Spell_Slot.h"
|
||||
@@ -1033,7 +1037,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Terrain_AlphaMap */
|
||||
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HogsmeadeAlphaMap"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HogsmeadeAlphaMap"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1574,6 +1578,19 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNoMountIcon>(g_iStaticLevel, CNoMountIcon::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_NoMountIcon*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Panel>(g_iStaticLevel, CEnemy_Panel::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_NoMountIcon*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_HpBar>(g_iStaticLevel, CEnemy_HpBar::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_NoMountIcon*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Info>(g_iStaticLevel, CEnemy_Info::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Spell_Canvas*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Canvas>(g_iStaticLevel, CSpell_Canvas::Create(m_pDevice, m_pContext))))
|
||||
@@ -2044,7 +2061,7 @@ vector<FOLDER_LOAD*>* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, I
|
||||
if (strcmp(file.path().extension().string().c_str(), pFileExt)) { continue; }
|
||||
|
||||
FOLDER_LOAD* pContents = new FOLDER_LOAD;
|
||||
|
||||
|
||||
{ // FOLDER_LOAD
|
||||
_char szFilePath[MAX_PATH] = {};
|
||||
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
|
||||
@@ -2052,7 +2069,7 @@ vector<FOLDER_LOAD*>* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, I
|
||||
_wstring wstrFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
|
||||
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIROMENT, szFilePath);
|
||||
|
||||
|
||||
_uint iNumMesh = pModel->Get_NumMeshes();
|
||||
|
||||
{
|
||||
|
||||
@@ -41,7 +41,11 @@ HRESULT CLoding_Panel::Initialize(void* pArg)
|
||||
m_fSortZ = 0.f;
|
||||
m_iImageNum = 0;
|
||||
//m_vImageposSi = _float4(0.f, 0.f, 1792.f, 1024.f);
|
||||
|
||||
#ifdef _DEBUG
|
||||
INHYUK = true;
|
||||
human = 0;
|
||||
#endif // DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
void CLoding_Panel::Set_Image(_int Index)
|
||||
@@ -54,6 +58,58 @@ void CLoding_Panel::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CLoding_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (m_pGameInstance->Key_Down(DIK_M))
|
||||
{
|
||||
human++;
|
||||
if (human > 4) // 4보다 크면 0으로
|
||||
human = 0;
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_N))
|
||||
{
|
||||
human--;
|
||||
if (human < 0) // 0보다 작으면 4로
|
||||
human = 4;
|
||||
}
|
||||
switch (human)
|
||||
{
|
||||
case 0:
|
||||
INHYUK = true;
|
||||
JINHO = false;
|
||||
HYUNBIN = false;
|
||||
NURI = false;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 1:
|
||||
INHYUK = false;
|
||||
JINHO = true;
|
||||
HYUNBIN = false;
|
||||
NURI = false;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 2:
|
||||
INHYUK = false;
|
||||
JINHO = false;
|
||||
HYUNBIN = true;
|
||||
NURI = false;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 3:
|
||||
INHYUK = false;
|
||||
JINHO = false;
|
||||
HYUNBIN = false;
|
||||
NURI = true;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 4:
|
||||
INHYUK = false;
|
||||
JINHO = false;
|
||||
HYUNBIN = false;
|
||||
NURI = false;
|
||||
JINWOO = true;
|
||||
break;
|
||||
}
|
||||
#endif // DEBUG
|
||||
}
|
||||
|
||||
void CLoding_Panel::Late_Update(_float fTimeDelta)
|
||||
@@ -75,6 +131,20 @@ HRESULT CLoding_Panel::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M->."), _float2(100.f, 750.f));
|
||||
|
||||
if (INHYUK == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\nUI의 생일은 28일 이랍니다."), _float2(100.f, 800.f));
|
||||
if (JINHO == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n우리팀 맵툴은 최강 입니다."), _float2(100.f, 800.f));
|
||||
if (HYUNBIN == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n이제 막 범인에서 벗어 났습니다."), _float2(100.f, 800.f));
|
||||
if (NURI == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n이제 막 슬슬 범인 입니다."), _float2(100.f, 800.f));
|
||||
if (JINWOO == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n그는 그림자의 군주입니다."), _float2(100.f, 800.f));
|
||||
#endif // DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,10 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
m_iArratCount = 2;
|
||||
Compute_UV(0);
|
||||
Compute_Image();
|
||||
m_fFontX = 1171.f;
|
||||
m_fFontY = 870.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -132,6 +136,14 @@ void CMagic_Item::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
|
||||
if (m_vUVScale.y <= 1)
|
||||
{
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
@@ -172,6 +184,7 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -97,6 +97,26 @@ void CMainApp::Compute_FrameCount()
|
||||
|
||||
HRESULT CMainApp::Ready_Default_Setting()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size13"), TEXT("../Bin/Resources/Fonts/Font_size13.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size14"), TEXT("../Bin/Resources/Fonts/Font_size14.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size15"), TEXT("../Bin/Resources/Fonts/Font_size15.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size20"), TEXT("../Bin/Resources/Fonts/Font_size20.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size21"), TEXT("../Bin/Resources/Fonts/Font_size21.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size30"), TEXT("../Bin/Resources/Fonts/Font_size30.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size15"), TEXT("../Bin/Resources/Fonts/UI_size15.spritefont"))))
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CMiniMap_TrimBorder::CMiniMap_TrimBorder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CMiniMap_TrimBorder::CMiniMap_TrimBorder(ID3D11Device* pDevice, ID3D11DeviceCont
|
||||
}
|
||||
|
||||
CMiniMap_TrimBorder::CMiniMap_TrimBorder(const CMiniMap_TrimBorder& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -82,7 +84,7 @@ void CMiniMap_TrimBorder::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fAngle = -atan2(m_pInfoInstance->Get_CameraCoordinateSystem().first.x, m_pInfoInstance->Get_CameraCoordinateSystem().first.z);
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -104,7 +106,7 @@ HRESULT CMiniMap_TrimBorder::Render()
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
@@ -160,6 +162,10 @@ HRESULT CMiniMap_TrimBorder::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -123,67 +123,15 @@ void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
if (false == m_bHit) {
|
||||
SweepTarget();
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = m_pProjectile->Get_WorldPostion();
|
||||
SweepTarget(vStartPos,vEndPos, 0.002f);
|
||||
}
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CNomalJap::SweepTarget()
|
||||
{
|
||||
_vector vStartPos = m_pProjectile->Get_WorldPostion();
|
||||
_vector vEndPos = XMLoadFloat4(&m_vTargetPos);
|
||||
_vector vDir = { vEndPos - vStartPos };
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
|
||||
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
|
||||
_bool bHit = m_pGameInstance->SphereCast(0.002f, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
if (bHit) {
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
ON_COLLISION_INFO tagCollInfo = {};
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::MONSTER:
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::TROLL:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
|
||||
@@ -72,8 +72,6 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
|
||||
Set_Anim();
|
||||
|
||||
m_eSpell = STATEANIM::DESCENDO;
|
||||
|
||||
{
|
||||
CFSM::FSM_DESC FSMDesc{};
|
||||
FSMDesc.pStates = &m_States;
|
||||
|
||||
@@ -500,7 +500,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_AIM_LEFT];
|
||||
}
|
||||
else if (m_pFSM->IsEnable(FSMSTATE::JOG))
|
||||
else if (m_pFSM->IsEnable(FSMSTATE::JOG) && !m_pFSM->IsEnable(FSMSTATE::SPRINT))
|
||||
{
|
||||
if (degree > 35.f && degree < 55.f)
|
||||
{
|
||||
@@ -532,7 +532,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_AIM_RIGHT];
|
||||
}
|
||||
else if (m_pFSM->IsEnable(FSMSTATE::JOG))
|
||||
else if (m_pFSM->IsEnable(FSMSTATE::JOG) && !m_pFSM->IsEnable(FSMSTATE::SPRINT))
|
||||
{
|
||||
if (degree < -35.f && degree > -55.f)
|
||||
{
|
||||
@@ -565,7 +565,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_AIM_BWD];
|
||||
}
|
||||
else if (m_pFSM->IsEnable(FSMSTATE::JOG))
|
||||
else if (m_pFSM->IsEnable(FSMSTATE::JOG) && !m_pFSM->IsEnable(FSMSTATE::SPRINT))
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_BWD].first)
|
||||
{
|
||||
|
||||
@@ -42,6 +42,10 @@ HRESULT CPotion::Initialize(void* pArg)
|
||||
m_fAlphaTime = 1.f;
|
||||
m_vImageSlotPos = _float2(45.f, 45.f);
|
||||
m_vImageSize = _float2(32.f, 32.f);
|
||||
m_fFontX = 1163.f;
|
||||
m_fFontY = 860.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -91,6 +95,12 @@ void CPotion::Update(_float fTimeDelta)
|
||||
m_fTime = -1.f;
|
||||
}
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
@@ -123,6 +133,7 @@ HRESULT CPotion::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -96,31 +96,35 @@ HRESULT CSkill_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
int id = 0;
|
||||
pSpell->QueryIntAttribute("Spell_ID", &id);
|
||||
|
||||
if (id < 0 || id > 34)
|
||||
if (id >= 0 && id <= 34)
|
||||
{
|
||||
pSpell = pSpell->NextSiblingElement("Spell");
|
||||
continue;
|
||||
SpellInfo[id].iSpell_ID = id;
|
||||
SpellInfo[id].pSpell_Name = CMyTools::ToWstring(pSpell->Attribute("Spell_Name"));
|
||||
SpellInfo[id].pImage_Name = CMyTools::ToWstring(pSpell->Attribute("Image_Name"));
|
||||
pSpell->QueryIntAttribute("Spell_Type", &SpellInfo[id].iSpell_Type);
|
||||
SpellInfo[id].pType_Name = CMyTools::ToWstring(pSpell->Attribute("Type_Name"));
|
||||
pSpell->QueryIntAttribute("Skill_Type", &SpellInfo[id].iSkill_Type);
|
||||
pSpell->QueryFloatAttribute("Spell_Damage", &SpellInfo[id].fSpell_Damage);
|
||||
pSpell->QueryFloatAttribute("Spell_Cooltime", &SpellInfo[id].fSpell_CoolTime);
|
||||
pSpell->QueryFloatAttribute("Duration", &SpellInfo[id].fDuration);
|
||||
pSpell->QueryIntAttribute("AnimNum", &SpellInfo[id].iAnimNum);
|
||||
SpellInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
|
||||
_int lock = 0, equip = 0, use = 0;
|
||||
pSpell->QueryIntAttribute("Spell_Lock", &lock);
|
||||
pSpell->QueryIntAttribute("Equip_Spell", &equip);
|
||||
pSpell->QueryIntAttribute("Use_Skill", &use);
|
||||
SpellInfo[id].bSpell_Lock = lock != 0;
|
||||
SpellInfo[id].bEquip_Spell = equip != 0;
|
||||
SpellInfo[id].bUse_Skill = use != 0;
|
||||
pSpell->QueryFloatAttribute("Preview", &SpellInfo[id].fPreview);
|
||||
pSpell->QueryFloatAttribute("Vidio", &SpellInfo[id].fVidio);
|
||||
|
||||
m_iSpell_Count++;
|
||||
m_iSpell_CoolTime[id] = 1.2f;
|
||||
}
|
||||
|
||||
SpellInfo[id].iSpell_ID = id;
|
||||
SpellInfo[id].pSpell_Name = CMyTools::ToWstring(pSpell->Attribute("Spell_Name"));
|
||||
SpellInfo[id].pImage_Name = CMyTools::ToWstring(pSpell->Attribute("Image_Name"));
|
||||
pSpell->QueryIntAttribute("Spell_Type", &SpellInfo[id].iSpell_Type);
|
||||
pSpell->QueryIntAttribute("Skill_Type", &SpellInfo[id].iSkill_Type);
|
||||
pSpell->QueryFloatAttribute("Spell_Cooltime", &SpellInfo[id].fSpell_CoolTime);
|
||||
pSpell->QueryFloatAttribute("Duration", &SpellInfo[id].fDuration);
|
||||
pSpell->QueryIntAttribute("AnimNum", &SpellInfo[id].iAnimNum);
|
||||
SpellInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
|
||||
int lock = 0, equip = 0, use = 0;
|
||||
pSpell->QueryIntAttribute("Spell_Lock", &lock);
|
||||
pSpell->QueryIntAttribute("Equip_Spell", &equip);
|
||||
pSpell->QueryIntAttribute("Use_Skill", &use);
|
||||
SpellInfo[id].bSpell_Lock = lock != 0;
|
||||
SpellInfo[id].bEquip_Spell = equip != 0;
|
||||
SpellInfo[id].bUse_Skill = use != 0;
|
||||
// 항상 다음 Spell로 이동
|
||||
pSpell = pSpell->NextSiblingElement("Spell");
|
||||
m_iSpell_Count++;
|
||||
m_iSpell_CoolTime[id] = 1.2f;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -26,7 +26,7 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = -385.f;
|
||||
Desc.fSizeX = 512.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
Desc.fSizeY = 80.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) };
|
||||
|
||||
@@ -48,6 +48,11 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_fFontX = 920.f;
|
||||
m_fFontY = 510.f;
|
||||
m_fType = _float2(935.f, 550.f);
|
||||
m_iPerSpellIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -76,6 +81,7 @@ void CSpell_Header::Update(_float fTimeDelta)
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +89,10 @@ void CSpell_Header::Update(_float fTimeDelta)
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
@@ -92,9 +101,12 @@ void CSpell_Header::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iSpellType != -1)
|
||||
if (m_iSpellType != -1 && m_iPerSpellIndex != m_iSpellType)
|
||||
{
|
||||
m_iSkillType = m_pInfoInstance->Get_Spell_Info(m_iSpellType).iSpell_Type;
|
||||
m_iSkillType = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).iSpell_Type;
|
||||
m_pSpell_Name = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).pSpell_Name;
|
||||
m_fSpell_Type = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).pType_Name;
|
||||
m_iPerSpellIndex = m_iSpellType;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
@@ -128,6 +140,11 @@ HRESULT CSpell_Header::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pSpell_Name.c_str()) - 53.f) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pSpell_Name.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((215.f / 255.f) * m_fAlpha, (185.f / 255.f) * m_fAlpha, (95.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size13"), m_fSpell_Type.c_str(), _float2(m_fType.x + m_fX, m_fType.y + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CSpell_Header_Line::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = -345.f;
|
||||
Desc.fY = -340.f;
|
||||
Desc.fSizeX = 487.f;
|
||||
Desc.fSizeY = 18.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) };
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Spell_Preview.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
|
||||
CSpell_Preview::CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -9,7 +10,8 @@ CSpell_Preview::CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pCont
|
||||
}
|
||||
|
||||
CSpell_Preview::CSpell_Preview(const CSpell_Preview& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -43,12 +45,18 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
|
||||
m_fTopY = m_fY - m_vScale.y * 0.5f;
|
||||
m_fPreviewOffSet = 0.f;
|
||||
m_fOriginPerviewSize = 280.f;
|
||||
SizeUpX(512.f);
|
||||
SizeUpY(270.f);
|
||||
SizeUpY(m_fOriginPerviewSize);
|
||||
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
|
||||
m_fSortZ = 0.02f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_fFontX = 740.f;
|
||||
m_fFontY = 500.f;
|
||||
m_iPerSpellIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -76,6 +84,7 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +92,10 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
@@ -91,6 +103,15 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iSpellType != -1 && m_iPerSpellIndex != m_iSpellType)
|
||||
{
|
||||
m_pSpell_Info = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).pSpellInfo;
|
||||
m_fPreviewOffSet = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).fPreview;
|
||||
SizeUpY(m_fOriginPerviewSize + m_fPreviewOffSet);
|
||||
m_iPerSpellIndex = m_iSpellType;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -121,6 +142,10 @@ HRESULT CSpell_Preview::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
|
||||
m_fLerpX = m_fX;
|
||||
m_fLerpY = 45;
|
||||
m_bStart = false;
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
|
||||
@@ -316,7 +316,7 @@ HRESULT CTroll::Ready_Parts()
|
||||
|
||||
|
||||
|
||||
/*if (FAILED(Add_PartObject<CEffectParts>("Troll_Particle", g_iStaticLevel, &m_pTroll_Particle, &PartsDesc)))
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Troll_Particle", g_iStaticLevel, &m_pTroll_Particle, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -350,7 +350,7 @@ HRESULT CTroll::Ready_Parts()
|
||||
|
||||
m_pLeft_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pLeft_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("LeftArm"));
|
||||
*/
|
||||
|
||||
#pragma endregion
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ class CCamera_Debug final : public CCamera
|
||||
_float m_fMouseSensor = {};
|
||||
_float4x4 m_matInitial = {};
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -32,11 +32,16 @@ class CCamera_Gaze final : public CCamera
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
|
||||
public:
|
||||
static CCamera_Gaze* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
|
||||
|
||||
@@ -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, 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, 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 };
|
||||
|
||||
@@ -22,7 +22,9 @@ namespace Client
|
||||
_wstring pSpell_Name;
|
||||
_wstring pImage_Name;
|
||||
_int iSpell_Type{};
|
||||
_wstring pType_Name;
|
||||
_int iSkill_Type{};
|
||||
_float fSpell_Damage{};
|
||||
_float fSpell_CoolTime{};
|
||||
_float fDuration{};
|
||||
_int iAnimNum{};
|
||||
@@ -30,5 +32,7 @@ namespace Client
|
||||
_bool bSpell_Lock = false;
|
||||
_bool bEquip_Spell = false;
|
||||
_bool bUse_Skill = false;
|
||||
_float fPreview{};
|
||||
_float fVidio{};
|
||||
}SPELL_INFO;
|
||||
};
|
||||
|
||||
@@ -37,6 +37,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
void Update_Event(_float fTimeDelta);
|
||||
HRESULT Reset_EffectParts();
|
||||
_int CollisionCheck();
|
||||
void SweepTarget(_vector StartPos, _vector EndPos, _float fRadius);
|
||||
|
||||
protected:
|
||||
_float4 m_vStartPos = {};
|
||||
@@ -44,7 +45,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
PSX::PxSweepBufferN<12> m_Hitbuffer = {};
|
||||
protected:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_bHit = { false };
|
||||
_bool m_isLoop = {};
|
||||
|
||||
_float m_fAccTime = {};
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CEnemy_HpBar final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CEnemy_HpBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEnemy_HpBar(const CEnemy_HpBar& rhs);
|
||||
virtual ~CEnemy_HpBar() = 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;
|
||||
virtual void Lerp_PosX(_float X) override;
|
||||
|
||||
public:
|
||||
void Hit(_float fTimeDelta);
|
||||
virtual void SizeUpX(_float SizeX) override;
|
||||
|
||||
void Set_Enemt_Info(void* pArg);
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float m_fMaxHp{};
|
||||
_float m_fCurrentHp{};
|
||||
_float m_fHpBar{};
|
||||
_float m_fDamage{};
|
||||
_float m_fTargetHp{};
|
||||
|
||||
_bool m_bAnimation = { false };
|
||||
public:
|
||||
static CEnemy_HpBar* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
|
||||
class CEnemy_Info final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CEnemy_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEnemy_Info(const CEnemy_Info& rhs);
|
||||
virtual ~CEnemy_Info() = 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;
|
||||
|
||||
public:
|
||||
void Set_Info(_int Level, _wstring Name);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float2 m_fFontPos{};
|
||||
_float m_fFont2OffSet{};
|
||||
_wstring m_pEnemy_Name;
|
||||
_wstring m_pLevel;
|
||||
_bool m_bAnimation = {false};
|
||||
|
||||
public:
|
||||
static CEnemy_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
|
||||
class CEnemy_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CEnemy_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEnemy_Panel(const CEnemy_Panel& rhs);
|
||||
virtual ~CEnemy_Panel() = 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 Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pEnemy_HpBar = { nullptr };
|
||||
CGameObject* m_pEnemy_Info = { nullptr };
|
||||
|
||||
public:
|
||||
static CEnemy_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -39,6 +39,7 @@ class CGamePlay_Canvas final : public CCanvasObject
|
||||
CGameObject* m_pMinimap_Panel = { nullptr };
|
||||
CGameObject* m_pLoading_Panel = { nullptr };
|
||||
CGameObject* m_pAction_Panel = { nullptr };
|
||||
CGameObject* m_pEnemy_Panel = { nullptr };
|
||||
|
||||
public:
|
||||
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -40,6 +40,11 @@ class CGoblin final : public CMonster
|
||||
_float2 m_vStunTimer = { 0.f, 4.f };
|
||||
_uint iIndex;
|
||||
|
||||
|
||||
class CEffectParts* m_pSmoke = { nullptr };
|
||||
class CEffectParts* m_pGoblin_Particle = { nullptr };
|
||||
class CEffectParts* m_pGoblin_Particle2 = { nullptr };
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -20,7 +20,7 @@ class CLevel_Loading final : public CLevel
|
||||
private:
|
||||
SHADOW_LIGHT_DESC m_ShadowDesc = {};
|
||||
LEVEL m_eNextLevelID = { LEVEL::END };
|
||||
class CLoader* m_pLoader = { nullptr };
|
||||
class CLoader* m_pLoader = { nullptr };
|
||||
|
||||
_float m_fTimeDelta{};
|
||||
_bool m_bDelay = { false };
|
||||
|
||||
@@ -46,6 +46,16 @@ class CLoding_Panel final : public CUIObject
|
||||
|
||||
_int m_iImageNum{};
|
||||
_float4 m_vImageposSi{};
|
||||
|
||||
#ifdef _DEBUG
|
||||
_bool INHYUK = { false };
|
||||
_bool JINHO = { false };
|
||||
_bool HYUNBIN = { false };
|
||||
_bool NURI = { false };
|
||||
_bool JINWOO = { false };
|
||||
_int human{};
|
||||
#endif
|
||||
|
||||
public:
|
||||
static CLoding_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -51,6 +51,10 @@ class CMagic_Item final : public CElementObject
|
||||
_float2 m_vImagePos1 = {};
|
||||
_float2 m_vImageSize2 = {};
|
||||
_float2 m_vImagePos2 = {};
|
||||
|
||||
_int m_iPotionIndex{};
|
||||
_int m_iPerPotionIndex{};
|
||||
_wstring m_strPotion;
|
||||
public:
|
||||
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -37,7 +37,7 @@ class CMiniMap_TrimBorder final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CMiniMap_TrimBorder* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -30,7 +30,6 @@ class CNomalJap final : public CEffect_Container
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
void SweepTarget();
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_wstring m_wstrEffectName = {};
|
||||
@@ -57,7 +56,6 @@ class CNomalJap final : public CEffect_Container
|
||||
_float m_fAngularSpeed = {};
|
||||
_float m_fLinearSpeed = 35.f;
|
||||
_float m_fTimeRate = {};
|
||||
_bool m_bHit = { false };
|
||||
|
||||
/*좌우 무빙 관련 변수들*/
|
||||
_float3 m_vRotateRight = {};
|
||||
|
||||
@@ -42,6 +42,10 @@ class CPotion final : public CElementObject
|
||||
|
||||
_float2 m_vImageSlotPos{};
|
||||
_float2 m_vImageSize{};
|
||||
|
||||
_int m_iPotionIndex{};
|
||||
_int m_iPerPotionIndex{};
|
||||
_wstring m_strPotion;
|
||||
public:
|
||||
static CPotion* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -38,7 +38,12 @@ class CSpell_Header final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iSkillType{};
|
||||
_wstring m_pSpell_Name;
|
||||
_wstring m_fSpell_Type;
|
||||
|
||||
_float2 m_fType{};
|
||||
|
||||
_int m_iPerSpellIndex{};
|
||||
public:
|
||||
static CSpell_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -35,6 +35,8 @@ class CSpell_Preview final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
@@ -42,10 +44,13 @@ class CSpell_Preview final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_wstring m_pSpell_Info;
|
||||
|
||||
|
||||
_float m_fOriginPerviewSize{};
|
||||
_float m_fPreviewOffSet{};
|
||||
_float4 m_vHeaderBack{};
|
||||
|
||||
_int m_iPerSpellIndex{};
|
||||
public:
|
||||
static CSpell_Preview* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -39,6 +39,7 @@ class CSpell_Vidio_Border final : public CElementObject
|
||||
|
||||
_float m_fStertTimer{};
|
||||
_int m_iPerIndex{};
|
||||
|
||||
_bool m_bStart = { false };
|
||||
|
||||
public:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<StatInfo>
|
||||
<STAT_PLAYER HP="100" MAXHP="100" MELEE="10" MAGIC="10" DEFENSE="10" SPEED="10" AGILITY="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000"/>
|
||||
<STAT_GOBLIN HP="100" MAXHP="100" MELEE="10" MAGIC="10" DEFENSE="10" SPEED="10" AGILITY="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000"/>
|
||||
<STAT_TROLL HP="100" MAXHP="100" MELEE="10" MAGIC="10" DEFENSE="10" SPEED="10" AGILITY="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000"/>
|
||||
<STAT_PLAYER HP="100" MAXHP="100" TARGETHP="0" MELEE="10" MAGIC="10" DEFENSE="10" SPEED="10" AGILITY="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000"/>
|
||||
<STAT_GOBLIN HP="100" MAXHP="100" TARGETHP="0" MELEE="10" MAGIC="10" DEFENSE="10" SPEED="10" AGILITY="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000"/>
|
||||
<STAT_TROLL HP="100" MAXHP="100" TARGETHP="0" MELEE="10" MAGIC="10" DEFENSE="10" SPEED="10" AGILITY="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000"/>
|
||||
</StatInfo>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<Emart>
|
||||
<Floor ID="0" level="1">마트, 푸드코트, 의류매장</Floor>
|
||||
</Emart>
|
||||
@@ -1,36 +1,191 @@
|
||||
<SpellInfo>
|
||||
<Spell Spell_ID="0" Spell_Name="아레스토 모멘텀" Image_Name="Arresto_Momentum" Spell_Type="0" Skill_Type="0" Spell_Cooltime="15" Duration="15" AnimNum="120" SpellInfo="적과 대상의 속도를 모두 늦춰, 다음 행동을 생각할 시간을 벌 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="1" Spell_Name="글래시우스" Image_Name="Glacius" Spell_Type="0" Skill_Type="1" Spell_Cooltime="10" Duration="10" AnimNum="156" SpellInfo="적을 얼려서 후속 공격 시 대미지를 증가시킵니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="2" Spell_Name="레비오소" Image_Name="Levioso" Spell_Type="0" Skill_Type="2" Spell_Cooltime="8" Duration="8" AnimNum="180" SpellInfo="물건과 적을 공중에 띄웁니다. 퍼즐을 풀거나 적을 놀라게 할 때 유용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="3" Spell_Name="변신" Image_Name="Transformation" Spell_Type="0" Skill_Type="3" Spell_Cooltime="20" Duration="15" AnimNum="146" SpellInfo="물건과 적의 형태를 바꿉니다. 퍼즐을 풀 때도 사용할 수 있고 무해한 장식품에도 사용할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="4" Spell_Name="아씨오" Image_Name="Accio" Spell_Type="1" Skill_Type="4" Spell_Cooltime="8" Duration="0" AnimNum="151" SpellInfo="다양한 물체나 적을 근처로 당기는 소환 마법입니다 특정 무거운 마법 물체를 가까이 당기려면 지속적인 노력이 더 요구되기도 합니다. 일단 물체를 소환하면 버튼을 입력하지 않고도 자동으로 윙가디움 레비오사가 시전되어 계속 공중에 띄울 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="5" Spell_Name="디펄소" Image_Name="Depulso" Spell_Type="1" Skill_Type="5" Spell_Cooltime="10" Duration="0" AnimNum="152" SpellInfo="여러 가지 물건과 적을 상당히 강력한 힘으로 밀어냅니다. 적에게 직접 대미지를 주지는 않지만, 적과 물체를 서로 부딪치게 해서 큰 대미지를 줄 수 있습니다. 또한 물건을 밀거나 회전시켜서 다양한 목적을 달성할 때 유리합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="6" Spell_Name="디센도" Image_Name="Descendo" Spell_Type="1" Skill_Type="6" Spell_Cooltime="10" Duration="0" AnimNum="155" SpellInfo="직접 대미지를 주지는 않지만 , 물건과 적을 바닥에 세게 떨어뜨리면 매우 겅력한 대미지를 줄 수 있습니다. 공중에 뜬 적을 떨어뜨리면 훨씬 더 강력한 대미지를 줍니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="7" Spell_Name="플리펜도" Image_Name="Flipendo" Spell_Type="1" Skill_Type="7" Spell_Cooltime="5" Duration="0" AnimNum="188" SpellInfo="물건과 적을 들어올려 거꾸로 뒤집을 수 있습니다. 쿨다운 시간이 짧아서, 공중 콤보를 시작하거나 계속 이어 나갈 때 유용한 주문입니다. 물건을 즉시 뒤집어서 퍼즐을 풀거나 특정한 적의 약점을 이용할 때도 유용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="8" Spell_Name="콘프링고" Image_Name="Confringo" Spell_Type="2" Skill_Type="8" Spell_Cooltime="10" Duration="0" AnimNum="157" SpellInfo="장거리 볼트로 적중 시 대미지를 줍니다. 불 기반 공격을 받는 적은 몇 초 동안 계속 대미지를 입습니다. 그리고 대미지를 입는 동안 적과 충돌하면 화염이 폭발합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="9" Spell_Name="디핀도" Image_Name="Diffindo" Spell_Type="2" Skill_Type="9" Spell_Cooltime="15" Duration="0" AnimNum="150" SpellInfo="멀리 떨어진 물건과 적을 베어 강력한 대미지를 줍니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="10" Spell_Name="엑스펠리아르무스" Image_Name="Expelliarmus" Spell_Type="2" Skill_Type="10" Spell_Cooltime="10" Duration="0" AnimNum="146" SpellInfo="지팡이와 무기를 휘두르는 적을 무장해제시킵니다. 그리고 모든 적에게 대미지를 입힙니다. 무기가 없는 적에게도 대미지를 줄 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="11" Spell_Name="봄바르다" Image_Name="Bombarda" Spell_Type="2" Skill_Type="11" Spell_Cooltime="15" Duration="0" AnimNum="262" SpellInfo="적중 시 큰 대미지를 주며, 동시에 폭발하여 대형 장애물을 부수고 주변 적에 대미지르 줍니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="12" Spell_Name="인센디오" Image_Name="Incendio" Spell_Type="2" Skill_Type="12" Spell_Cooltime="8" Duration="0" AnimNum="213" SpellInfo="단거리 공격으로 목표물과 거리가 가까울 때만 사용할 수 있습니다. 이 주문을 외우면 대상은 매우 강력한 대미지를 입고, 특정 물체에 사용하면 불을 붙일 수 있습니다. 불을 이용한 공격으로 공격을 받은 적은 몇 초 동안 계속 대미지를 받습니다. 그리고 대미지를 입는 공안 적과 충돌하면 화염이 폭발합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="13" Spell_Name="투영" Image_Name="Disillusionment" Spell_Type="3" Skill_Type="13" Spell_Cooltime="0.5" Duration="0" AnimNum="260" SpellInfo="주변 환경에 녹아들어 남들이 알봐보기 어렵게 만듭니다. 적들에게 들키지 않고 몰래 접근해, 페트리피쿠스 토탈루스를 시전하려고 할 때 아주 유용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="14" Spell_Name="루모스" Image_Name="Lumos" Spell_Type="3" Skill_Type="14" Spell_Cooltime="0.5" Duration="0" AnimNum="365" SpellInfo="어두운 곳을 환하게 밝히거나, 퍼즐에서 추가 조명이 필요할 때 사용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="15" Spell_Name="레파로" Image_Name="Reparo" Spell_Type="3" Skill_Type="15" Spell_Cooltime="0.5" Duration="0" AnimNum="385" SpellInfo="손상된 특정 물체를 이전 상태로 신속하게 되돌릴 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="16" Spell_Name="윙가디움 레비오사" Image_Name="Wingardium_Leviosa" Spell_Type="3" Skill_Type="16" Spell_Cooltime="0.5" Duration="5" AnimNum="273" SpellInfo="이동 가능한 물체를 공중에 띄워 움직입니다. 움직임으로 물체의 위치를 조절하고, F V Q E로 물체의 거리를 조절하거나 회전시킬 수 있습니다. 윙가디움 레비오사는 아씨오로 소환된 물체에 자동으로 시전됩니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="17" Spell_Name="구현 마법" Image_Name="Conjuring_Spell" Spell_Type="4" Skill_Type="17" Spell_Cooltime="0" Duration="0" AnimNum="115" SpellInfo="필요의 방에서 시전하면 물체를 나타나게 할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="18" Spell_Name="개조 마법" Image_Name="Altering_Spell" Spell_Type="4" Skill_Type="18" Spell_Cooltime="0" Duration="0" AnimNum="349" SpellInfo="필요의 방에서 시전하면 물체의 물리적 형태와 특성을 바꿉니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="19" Spell_Name="에바네스코" Image_Name="Evanesco" Spell_Type="4" Skill_Type="19" Spell_Cooltime="0" Duration="0" AnimNum="136" SpellInfo="필요한 방에서 시전하면 물체를 사라지게 하고 월장석이 반환됩니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="20" Spell_Name="아바다 케다브라" Image_Name="Avada_Kedavra" Spell_Type="5" Skill_Type="20" Spell_Cooltime="90" Duration="0" AnimNum="208" SpellInfo="적을 즉시 처치합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="21" Spell_Name="크루시오" Image_Name="Crucio" Spell_Type="5" Skill_Type="21" Spell_Cooltime="20" Duration="20" AnimNum="216" SpellInfo="시간이 소요되는 대미지를 주기에 대부분의 적이 고통에 몸서리칩니다. 또한 저주를 받은 적은 추가 대미지를 받습니다.." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="22" Spell_Name="임페리오" Image_Name="Imperio" Spell_Type="5" Skill_Type="22" Spell_Cooltime="30" Duration="20" AnimNum="462" SpellInfo="일시적으로 적을 동료처럼 변화시켜 싸우게 합니다. 주문이 걸리 ㄴ동안 동료로 바뀐 적은 다른 적들의 공격을 받았을 때 방어력이 높아지며 당신에게 충성합니다. 한편 적을 저주하면 그 적은 추가로 대미지를 받습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="23" Spell_Name="마법 동물 쓰담기용 빗" Image_Name="Beast_Petting_Brush" Spell_Type="3" Skill_Type="23" Spell_Cooltime="0" Duration="0" AnimNum="327" SpellInfo="적마법 동물들을 빗질할 때 쓰는 빗입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="24" Spell_Name="마법 동물 먹이" Image_Name="Beast_Feed" Spell_Type="3" Skill_Type="24" Spell_Cooltime="0" Duration="0" AnimNum="378" SpellInfo="마법 동물에게 줄 수 있는 먹이입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="25" Spell_Name="포획 자루" Image_Name="Nab_Sack" Spell_Type="3" Skill_Type="25" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="26" Spell_Name="기본 주문" Image_Name="Basic_cast" Spell_Type="6" Skill_Type="26" Spell_Cooltime="0" Duration="0" AnimNum="308" SpellInfo="적과 사물에게 가벼운 대미지를 줍니다. 시전하려면 을 탭하세요." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="27" Spell_Name="레벨리오" Image_Name="Revelio" Spell_Type="6" Skill_Type="27" Spell_Cooltime="0" Duration="0" AnimNum="227" SpellInfo="숨겨진 물건, 퍼즐 아이템, 전리품, 적 등을 모두 포함해 유용하거나 상호작용할 수 있는 다양한 대상을 강조 표시합니다. 로 시전합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="28" Spell_Name="프로테고" Image_Name="Protego" Spell_Type="6" Skill_Type="28" Spell_Cooltime="0" Duration="0" AnimNum="285" SpellInfo="주문, 무기 등 여러 가지 공격으로부터 보호합니다. 공격이 닿기 직전까지 기다렸다가 로 시전하면 프로테고를 완벽하게 시전할 수 있습니다. 근접 공격자에게는 대미지를 주고, 공격을 반사시켜 적의 방어력을 부술 수도 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="29" Spell_Name="스투페파이" Image_Name="Stupefy" Spell_Type="6" Skill_Type="29" Spell_Cooltime="0" Duration="0" AnimNum="222" SpellInfo="적을 기절시키고 다음 주문을 걸기 쉬운 상태로 만듭니다. 큰 대미지는 아니지만 기절한 적을 추가 대미지를 받고, 이는 금속 숫자로 표시됩니다. 또한 방어벽 마법도 부술 수 있습니다.(난이도 '어려움' 제외) 다가오는 공격에 프로테고로 성공적인 공격을 방어할 , 을 계속 길게 눌러 원하는 적에게 스투페파이 카운터 공격을 사용하세요" Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="30" Spell_Name="고대 마법 던지기" Image_Name="Ancient_Magic_Throw" Spell_Type="6" Skill_Type="30" Spell_Cooltime="0" Duration="0" AnimNum="89" SpellInfo="목표하는 적에게 주변에 있는 물체를 소환하여 던집니다. 적의 방어벽 마법을 무너뜨리는 데 특히 유용합니다. 물체 위에 표시가 떳을 때 로 시전할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="31" Spell_Name="고대 마법" Image_Name="Ancient_magic" Spell_Type="6" Skill_Type="31" Spell_Cooltime="0" Duration="0" AnimNum="152" SpellInfo="고대 마법 MP가 한 부분이라도 가득 차 있으면, 엄청난 대미지를 주고 방어벽 마버을 부수는 강력한 고대 마법을 시전할 수 있게 됩니다. 적의 머리 위에 표시가 나타나면 로 시전하세요" Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="32" Spell_Name="알로호모라" Image_Name="Alohomora" Spell_Type="6" Skill_Type="32" Spell_Cooltime="0" Duration="0" AnimNum="394" SpellInfo="마법 세계 전역에 잠겨 있는 다양한 방이나 장소를 열 수 있지만 제대로 시전하기 위해선 마법 실력이 바탕이 되어야 합니다, 자물쇠 근처에서 로 시전할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="33" Spell_Name="페트리피쿠스 토탈루스" Image_Name="Petrificus_Totalus" Spell_Type="6" Skill_Type="33" Spell_Cooltime="0" Duration="0" AnimNum="275" SpellInfo="대부분의 적을 쓰러뜨릴 만큼 강력한 주문이지만 더 위험한 적들은 약간의 대미지를 입힐 뿐, 빠르게 그 영향에서 벗어날 수 있습니다. 이 주문을들키지 않게 적에게 몰래 접근한 후 를 누르면 시전됩니다.." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
</SpellInfo>
|
||||
<Spell Spell_ID="0" Spell_Name="아레스토 모멘텀" Image_Name="Arresto_Momentum" Spell_Type="0" Type_Name="제어" Skill_Type="0"
|
||||
Spell_Damage="10" Spell_Cooltime="15" Duration="15" AnimNum="120" SpellInfo="적과 대상의 속도를 모두 늦춰, 다음 행동을 생각할
|
||||
시간을 벌 수 있습니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="1" Spell_Name="글래시우스" Image_Name="Glacius" Spell_Type="0" Type_Name="제어" Skill_Type="1"
|
||||
Spell_Damage="10" Spell_Cooltime="10" Duration="10" AnimNum="156" SpellInfo="적을 얼려서 후속 공격 시 대미지를 증가시킵니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="2" Spell_Name="레비오소" Image_Name="Levioso" Spell_Type="0" Type_Name="제어" Skill_Type="2"
|
||||
Spell_Damage="10" Spell_Cooltime="8" Duration="8" AnimNum="180" SpellInfo="물건과 적을 공중에 띄웁니다. 퍼즐을 풀거나 적을
|
||||
놀라게 할 때 유용합니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="3" Spell_Name="변신" Image_Name="Transformation" Spell_Type="0" Type_Name="제어" Skill_Type="3"
|
||||
Spell_Damage="10" Spell_Cooltime="20" Duration="15" AnimNum="146"
|
||||
SpellInfo="물건과 적의 형태를 바꿉니다. 퍼즐을 풀 때도 사용할 수
|
||||
있고 무해한 장식품에도 사용할 수 있습니다." Spell_Lock="0" Equip_Spell="0"
|
||||
Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="4" Spell_Name="아씨오" Image_Name="Accio" Spell_Type="1" Type_Name="위력" Skill_Type="4"
|
||||
Spell_Damage="10" Spell_Cooltime="8" Duration="0" AnimNum="151"
|
||||
SpellInfo="다양한 물체나 적을 근처로 당기는 소환 마법입니다.
|
||||
특정 무거운 마법 물체를 가까이 당기려면 지속적인
|
||||
노력이 더 요구되기도 합니다. 일단 물체를 소환하면
|
||||
버튼을 입력하지 않고도 자동으로 윙가디움 레비오사가
|
||||
시전되어 계속 공중에 띄울 수 있습니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="5" Spell_Name="디펄소" Image_Name="Depulso" Spell_Type="1" Type_Name="위력" Skill_Type="5"
|
||||
Spell_Damage="10" Spell_Cooltime="10" Duration="0" AnimNum="152"
|
||||
SpellInfo="여러 가지 물건과 적을 상당히 강력한 힘으로
|
||||
밀어냅니다. 적에게 직접 대미지를 주지는 않지만, 적과
|
||||
물체를 서로 부딪치게 해서 큰 대미지를 줄 수 있습니다.
|
||||
또한 물건을 밀거나 회전시켜서 다양한 목적을 달성할 때
|
||||
유리합니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="6" Spell_Name="디센도" Image_Name="Descendo" Spell_Type="1" Type_Name="위력" Skill_Type="6"
|
||||
Spell_Damage="10" Spell_Cooltime="10" Duration="0" AnimNum="155"
|
||||
SpellInfo="직접 대미지를 주지는 않지만, 물건과 적을 바닥에 세게
|
||||
떨어뜨리면 매우 겅력한 대미지를 줄 수 있습니다.
|
||||
공중에 뜬 적을 떨어뜨리면 훨씬 더 강력한 대미지를
|
||||
줍니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="7" Spell_Name="플리펜도" Image_Name="Flipendo" Spell_Type="1" Type_Name="위력" Skill_Type="7"
|
||||
Spell_Damage="10" Spell_Cooltime="5" Duration="0" AnimNum="188"
|
||||
SpellInfo="물건과 적을 들어올려 거꾸로 뒤집을 수 있습니다.
|
||||
쿨다운 시간이 짧아서, 공중 콤보를 시작하거나 계속
|
||||
이어 나갈 때 유용한 주문입니다. 물건을 즉시 뒤집어서
|
||||
퍼즐을 풀거나 특정한 적의 약점을 이용할 때도
|
||||
유용합니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="8" Spell_Name="콘프링고" Image_Name="Confringo" Spell_Type="2" Type_Name="피해" Skill_Type="8"
|
||||
Spell_Damage="10" Spell_Cooltime="10" Duration="0" AnimNum="157"
|
||||
SpellInfo="장거리 볼트로 적중 시 대미지를 줍니다. 불 기반 공격을
|
||||
받은 적은 몇 초 동안 계속 대미지를 입습니다. 그리고
|
||||
대미지를 입는 동안 적과 충돌하면 화염이 폭발합니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="9" Spell_Name="디핀도" Image_Name="Diffindo" Spell_Type="2" Type_Name="피해" Skill_Type="9"
|
||||
Spell_Damage="10" Spell_Cooltime="15" Duration="0" AnimNum="150" SpellInfo="멀리 떨어진 물건과 적을 베어 강력한 대미지를 줍니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="10" Spell_Name="엑스펠리아르무스" Image_Name="Expelliarmus" Spell_Type="2" Type_Name="피해" Skill_Type="10"
|
||||
Spell_Damage="10" Spell_Cooltime="10" Duration="0" AnimNum="146"
|
||||
SpellInfo="지팡이와 무기를 휘두르는 적을 무장해제시킵니다.
|
||||
그리고 모든 적에게 대미지를 입힙니다. 무기가 없는
|
||||
적에게도 대미지를 줄 수 있습니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="11" Spell_Name="봄바르다" Image_Name="Bombarda" Spell_Type="2" Type_Name="피해" Skill_Type="11"
|
||||
Spell_Damage="10" Spell_Cooltime="15" Duration="0" AnimNum="262" SpellInfo="적중 시 큰 대미지를 주며, 동시에 폭발하여 대형
|
||||
장애물을 부수고 주변 적에 대미지르 줍니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="12" Spell_Name="인센디오" Image_Name="Incendio" Spell_Type="2" Type_Name="피해" Skill_Type="12"
|
||||
Spell_Damage="10" Spell_Cooltime="8" Duration="0" AnimNum="213"
|
||||
SpellInfo="단거리 공격으로 목표물과 거리가 가까울 때만 사용할 수
|
||||
있습니다. 이 주문을 외우면 대상은 매우 강력한
|
||||
대미지를 입고, 특정 물체에 사용하면 불을 붙일 수
|
||||
있습니다. 불을 이용한 공격으로 공격을 받은 적은 몇 초
|
||||
동안 계속 대미지를 받습니다. 그리고 대미지를 입는
|
||||
동안 적과 충돌하면 화염이 폭발합니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="140" Vidio="100" />
|
||||
<Spell Spell_ID="13" Spell_Name="투영" Image_Name="Disillusionment" Spell_Type="3" Type_Name="유용" Skill_Type="13"
|
||||
Spell_Damage="10" Spell_Cooltime="0.5" Duration="0" AnimNum="260"
|
||||
SpellInfo="주변 환경에 녹아들어 남들이 알봐보기 어렵게 만듭니다.
|
||||
적들에게 들키지 않고 몰래 접근해, 페트리피쿠스
|
||||
토탈루스를 시전하려고 할 때 아주 유용합니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="14" Spell_Name="루모스" Image_Name="Lumos" Spell_Type="3" Type_Name="유용" Skill_Type="14"
|
||||
Spell_Damage="10" Spell_Cooltime="0.5" Duration="0" AnimNum="365" SpellInfo="어두운 곳을 환하게 밝히거나, 퍼즐에서 추가 조명이
|
||||
필요할 때 사용합니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="15" Spell_Name="레파로" Image_Name="Reparo" Spell_Type="3" Type_Name="유용" Skill_Type="15"
|
||||
Spell_Damage="10" Spell_Cooltime="0.5" Duration="0" AnimNum="385" SpellInfo="손상된 특정 물체를 이전 상태로 신속하게 되돌릴 수
|
||||
있습니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="16" Spell_Name="윙가디움 레비오사" Image_Name="Wingardium_Leviosa" Spell_Type="3" Type_Name="유용"
|
||||
Skill_Type="16" Spell_Damage="10" Spell_Cooltime="0.5" Duration="5" AnimNum="273"
|
||||
SpellInfo="이동 가능한 물체를 공중에 띄워 움직입니다. 움직임으로
|
||||
물체의 위치를 조절하고, F V Q E로 물체의
|
||||
거리를 조절하거나 회전시킬 수 있습니다. 윙가디움
|
||||
레비오사는 아씨오로 소환된 물체에 자동으로
|
||||
시전됩니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="100" />
|
||||
<Spell Spell_ID="17" Spell_Name="구현 마법" Image_Name="Conjuring_Spell" Spell_Type="4" Type_Name="변환" Skill_Type="17"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="115" SpellInfo="필요의 방에서 시전하면 물체를 나타나게 할 수
|
||||
있습니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="18" Spell_Name="개조 마법" Image_Name="Altering_Spell" Spell_Type="4" Type_Name="변환" Skill_Type="18"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="349" SpellInfo="필요의 방에서 시전하면 물체의 물리적 형태와 특성을
|
||||
바꿉니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="19" Spell_Name="에바네스코" Image_Name="Evanesco" Spell_Type="4" Type_Name="변환" Skill_Type="19"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="136" SpellInfo="필요한 방에서 시전하면 물체를 사라지게 하고 월장석이
|
||||
반환됩니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="20" Spell_Name="아바다 케다브라" Image_Name="Avada_Kedavra" Spell_Type="5" Type_Name="저주" Skill_Type="20"
|
||||
Spell_Damage="10" Spell_Cooltime="90" Duration="0" AnimNum="208" SpellInfo="적을 즉시 처치합니다." Spell_Lock="0" Equip_Spell="0"
|
||||
Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="21" Spell_Name="크루시오" Image_Name="Crucio" Spell_Type="5" Type_Name="저주" Skill_Type="21"
|
||||
Spell_Damage="10" Spell_Cooltime="20" Duration="20" AnimNum="216"
|
||||
SpellInfo="시간이 소요되는 대미지를 주기에 대부분의 적이 고통에
|
||||
몸서리칩니다. 또한 저주를 받은 적은 추가 대미지를
|
||||
받습니다." Spell_Lock="0" Equip_Spell="0"
|
||||
Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="22" Spell_Name="임페리오" Image_Name="Imperio" Spell_Type="5" Type_Name="저주" Skill_Type="22"
|
||||
Spell_Damage="10" Spell_Cooltime="30" Duration="20" AnimNum="462"
|
||||
SpellInfo="일시적으로 적을 동료처럼 변화시켜 싸우게 합니다.
|
||||
주문이 걸린 동안 동료로 바뀐 적은 다른 적들의 공격을
|
||||
받았을 때 방어력이 높아지며 당신에게 충성합니다. 한편
|
||||
적을 저주하면 그 적은 추가로 대미지를 받습니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="23" Spell_Name="마법 동물 쓰담기용 빗" Image_Name="Beast_Petting_Brush" Spell_Type="3" Type_Name="유용"
|
||||
Skill_Type="23" Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="327" SpellInfo="적마법 동물들을 빗질할 때 쓰는 빗입니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="24" Spell_Name="마법 동물 먹이" Image_Name="Beast_Feed" Spell_Type="3" Type_Name="유용" Skill_Type="24"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="378" SpellInfo="마법 동물에게 줄 수 있는 먹이입니다." Spell_Lock="0" Equip_Spell="0"
|
||||
Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="25" Spell_Name="포획 자루" Image_Name="Nab_Sack" Spell_Type="3" Type_Name="유용" Skill_Type="25"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="26" Spell_Name="기본 주문" Image_Name="Basic_Cast" Spell_Type="6" Type_Name="필수" Skill_Type="26"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="308" SpellInfo="적과 사물에게 가벼운 대미지를 줍니다. 시전하려면
|
||||
을 탭하세요." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="27" Spell_Name="레벨리오" Image_Name="Revelio" Spell_Type="6" Type_Name="필수" Skill_Type="27"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="227"
|
||||
SpellInfo="숨겨진 물건, 퍼즐 아이템, 전리품, 적 등을 모두 포함해
|
||||
유용하거나 상호작용할 수 있는 다양한 대상을 강조
|
||||
표시합니다. R 로 시전합니다." Spell_Lock="0"
|
||||
Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="28" Spell_Name="프로테고" Image_Name="Protego" Spell_Type="6" Type_Name="필수" Skill_Type="28"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="285"
|
||||
SpellInfo="주문, 무기 등 여러 가지 공격으로부터 보호합니다.
|
||||
공격이 닿기 직전까지 기다렸다가 Q로 시전하면
|
||||
프로테고를 완벽하게 시전할 수 있습니다. 근접
|
||||
공격자에게는 대미지를 주고, 공격을 반사시켜 적의
|
||||
방어력을 부술 수도 있습니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="29" Spell_Name="스투페파이" Image_Name="Stupefy" Spell_Type="6" Type_Name="필수" Skill_Type="29"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="222"
|
||||
SpellInfo="적을 기절시키고 다음 주문을 걸기 쉬운 상태로
|
||||
만듭니다. 큰 대미지는 아니지만 기절한 적을 추가
|
||||
대미지를 받고, 이는 금속 숫자로 표시됩니다. 또한
|
||||
방어벽 마법도 부술 수 있습니다.(난이도 '어려움' 제외)
|
||||
다가오는 공격에 프로테고로 성공적인 공격을 방어할
|
||||
때, Q를 계속 길게 눌러 원하는 적에게 스투페파이
|
||||
카운터 공격을 사용하세요"
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="140" Vidio="100" />
|
||||
<Spell Spell_ID="30" Spell_Name="고대 마법 던지기" Image_Name="Ancient_Magic_Throw" Spell_Type="6" Type_Name="필수"
|
||||
Skill_Type="30" Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="89"
|
||||
SpellInfo="목표하는 적에게 주변에 있는 물체를 소환하여 던집니다.
|
||||
적의 방어벽 마법을 무너뜨리는 데 특히 유용합니다.
|
||||
물체 위에 표시가 떳을 때 Z로 시전할 수 있습니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" />
|
||||
<Spell Spell_ID="31" Spell_Name="고대 마법" Image_Name="Ancient_Magic" Spell_Type="6" Type_Name="필수" Skill_Type="31"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="152"
|
||||
SpellInfo="고대 마법 MP가 한 부분이라도 가득 차 있으면, 엄청난
|
||||
대미지를 주고 방어벽 마버을 부수는 강력한 고대 마법을
|
||||
시전할 수 있게 됩니다. 적의 머리 위에 표시가
|
||||
나타나면 X로 시전하세요"
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="32" Spell_Name="알로호모라" Image_Name="Alohomora" Spell_Type="6" Type_Name="필수" Skill_Type="32"
|
||||
Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="394"
|
||||
SpellInfo="마법 세계 전역에 잠겨 있는 다양한 방이나 장소를 열 수
|
||||
있지만 제대로 시전하기 위해선 마법 실력이 바탕이
|
||||
되어야 합니다, 자물쇠 근처에서 F로 시전할 수
|
||||
있습니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
<Spell Spell_ID="33" Spell_Name="페트리피쿠스 토탈루스" Image_Name="Petrificus_Totalus" Spell_Type="6" Type_Name="필수"
|
||||
Skill_Type="33" Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="275"
|
||||
SpellInfo="대부분의 적을 쓰러뜨릴 만큼 강력한 주문이지만 더
|
||||
위험한 적들은 약간의 대미지를 입힐 뿐, 빠르게 그
|
||||
영향에서 벗어날 수 있습니다. 이 주문을들키지 않
|
||||
적에게 몰래 접근한 후 F를 누르면 시전됩니다."
|
||||
Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="90" Vidio="50" />
|
||||
</SpellInfo>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -23,6 +23,7 @@ float g_fAlpha;
|
||||
float g_fOwnerAlpha;
|
||||
float g_fCanvasAlpha;
|
||||
float g_fAngle;
|
||||
float g_fMapAngle;
|
||||
float g_fCoolTime;
|
||||
float g_fHp;
|
||||
|
||||
@@ -506,21 +507,14 @@ PS_OUT PS_Rotation(PS_IN In)
|
||||
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 uv = In.vTexcoord - center;
|
||||
uv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
Rotation.x = uv.x * cos(g_fMapAngle) - uv.y * sin(g_fMapAngle);
|
||||
Rotation.y = uv.x * sin(g_fMapAngle) + uv.y * cos(g_fMapAngle);
|
||||
Rotation += center;
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
tex1.rgb *= 0.4f;
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler , Rotation);
|
||||
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
@@ -586,7 +580,7 @@ PS_OUT PS_SpellAnim(PS_IN In)
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
BGColor = float3(220.f, 165.f, 70.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
@@ -1132,7 +1126,7 @@ PS_OUT PS_Spell_Header(PS_IN In)
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
BGColor = float3(220.f, 165.f, 70.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
@@ -1155,11 +1149,12 @@ PS_OUT PS_Spell_Header(PS_IN In)
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = tex1;
|
||||
|
||||
Color.rgb = tex1.rgb * 0.8f;
|
||||
Color.a = tex1.a;
|
||||
|
||||
Color.rgb *= BGColor;
|
||||
|
||||
Color.a *= Alpha;
|
||||
Color.a *= Alpha * 0.5f;
|
||||
|
||||
Out.vColor = Color;
|
||||
|
||||
@@ -1330,6 +1325,92 @@ PS_OUT PS_Loding_Screen(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Enemy_HpBer(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float2 uv = In.vTexcoord;
|
||||
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
|
||||
float OriginLeft = g_fNine_Slice.x;
|
||||
float OriginRight = g_fNine_Slice.y;
|
||||
float OriginTop = g_fNine_Slice.z;
|
||||
float OriginBottom = g_fNine_Slice.w;
|
||||
|
||||
float CurrentLeft = OriginLeft;
|
||||
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
|
||||
float CurrentTop = OriginTop;
|
||||
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
|
||||
|
||||
float2 Finaluv = In.vTexcoord;
|
||||
|
||||
if (CurrentPixelPosition.x < CurrentLeft)
|
||||
{
|
||||
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
|
||||
}
|
||||
else if (CurrentPixelPosition.x > CurrentRight)
|
||||
{
|
||||
float dist = CurrentPixelPosition.x - CurrentRight;
|
||||
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
|
||||
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
|
||||
}
|
||||
|
||||
if (CurrentPixelPosition.y < CurrentTop)
|
||||
{
|
||||
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
|
||||
}
|
||||
else if (CurrentPixelPosition.y > CurrentBottom)
|
||||
{
|
||||
float dist = CurrentPixelPosition.y - CurrentBottom;
|
||||
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
|
||||
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
|
||||
|
||||
Color = tex1;
|
||||
|
||||
tex2.rgb *= float3(1.f, 0.f, 0.f);
|
||||
|
||||
if (In.vTexcoord.x >= g_fHp)
|
||||
{
|
||||
tex2.rgb = float3(0.f, 0.f, 0.f);
|
||||
}
|
||||
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
|
||||
if (Color.a <= 0.f)
|
||||
discard;
|
||||
|
||||
if(g_iHover != 0)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
tex3.rgb *= float3(1.f, 0.f, 0.f);
|
||||
|
||||
if (g_fTime >= tex3.r)
|
||||
{
|
||||
Color.a *= tex3.r;
|
||||
Color.rgb = float3(1.f, 0.f, 0.f);
|
||||
}
|
||||
}
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass Default
|
||||
@@ -1620,4 +1701,14 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Loding_Screen();
|
||||
}
|
||||
|
||||
pass Enemy_HpBer
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Enemy_HpBer();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ PS_OUT PS_Color_Image(PS_IN In)
|
||||
switch (In.vBaseColor)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
BGColor = float3(220.f, 165.f, 70.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -232,6 +232,9 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\Public\Dummy_PhysXWall.h" />
|
||||
<ClInclude Include="..\Public\Dummy_Plane.h" />
|
||||
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h" />
|
||||
<ClInclude Include="..\public\Enemy_HpBar.h" />
|
||||
<ClInclude Include="..\public\Enemy_Info.h" />
|
||||
<ClInclude Include="..\public\Enemy_Panel.h" />
|
||||
<ClInclude Include="..\public\GameTime.h" />
|
||||
<ClInclude Include="..\public\Eessential_Spell.h" />
|
||||
<ClInclude Include="..\public\Eessential_Spell_Slot.h" />
|
||||
@@ -423,6 +426,9 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\Private\Dummy_PhysXWall.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_Plane.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp" />
|
||||
<ClCompile Include="..\private\Enemy_HpBar.cpp" />
|
||||
<ClCompile Include="..\private\Enemy_Info.cpp" />
|
||||
<ClCompile Include="..\private\Enemy_Panel.cpp" />
|
||||
<ClCompile Include="..\private\GameTime.cpp" />
|
||||
<ClCompile Include="..\private\Eessential_Spell.cpp" />
|
||||
<ClCompile Include="..\private\Eessential_Spell_Slot.cpp" />
|
||||
|
||||
@@ -508,6 +508,15 @@
|
||||
<Filter Include="50.UI\Logo\Logo_Glow">
|
||||
<UniqueIdentifier>{d8a5038f-4f2c-4226-85ba-9202f11f822d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Enemy_Panel">
|
||||
<UniqueIdentifier>{ea790bf9-9ca6-4c51-820b-ed2c70f86104}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_HpBar">
|
||||
<UniqueIdentifier>{33ba73e0-b4a1-4ebf-9b99-8856c7e1078c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Info">
|
||||
<UniqueIdentifier>{e30ca8e3-8c89-4a08-b413-169ff1d5ff22}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Env\07.Unified">
|
||||
<UniqueIdentifier>{4b6ac1df-5642-42f1-a492-5c2ca2433559}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1064,6 +1073,15 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Protego.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Goblin_Protego</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Enemy_Panel.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Enemy_HpBar.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_HpBar</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Enemy_Info.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Info</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -1546,6 +1564,15 @@
|
||||
<ClCompile Include="..\private\Logo_Glow.cpp">
|
||||
<Filter>50.UI\Logo\Logo_Glow</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Enemy_Panel.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Enemy_HpBar.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_HpBar</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Enemy_Info.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Info</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Unified.cpp">
|
||||
<Filter>02.GameObjects\Env\07.Unified</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<Emart>
|
||||
<Floor ID="0" level="1">마트, 푸드코트, 의류매장</Floor>
|
||||
</Emart>
|
||||
@@ -0,0 +1,350 @@
|
||||
#include "pch.h"
|
||||
#include "Enemy_HpBar.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CEnemy_HpBar::CEnemy_HpBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CEnemy_HpBar::CEnemy_HpBar(const CEnemy_HpBar& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 20.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 10.f;
|
||||
m_vNine_Slice = _float4(15.f, 100.f, 5.f, 15.f);
|
||||
m_fMaxHp = 200.f;
|
||||
m_fCurrentHp = m_fMaxHp;
|
||||
SizeUpX(360.f);
|
||||
m_fMoveSpeed = 5.f;
|
||||
m_bAnimation = false;
|
||||
m_fLerpY = m_fSizeY;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = true;
|
||||
}
|
||||
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_bHover = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_3))
|
||||
{
|
||||
Lerp_PosX(101.f);
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_K))
|
||||
{
|
||||
Set_FadeIn();
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
{
|
||||
Set_FadeOut();
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_J))
|
||||
{
|
||||
m_bAnimation = true;
|
||||
m_bHover = true;
|
||||
m_fTime = 0.f;
|
||||
SizeUpdate(m_fLerpX, m_fLerpY);
|
||||
}
|
||||
|
||||
if (m_fCurrentHp < 0.f)
|
||||
m_fCurrentHp = 0.f;
|
||||
if (m_fDamage <= 0.f)
|
||||
m_fDamage = 0.f;
|
||||
m_fTargetHp = m_fMaxHp - m_fDamage;
|
||||
|
||||
if (m_fTargetHp < m_fCurrentHp)
|
||||
Hit(fTimeDelta);
|
||||
m_fHpBar = m_fCurrentHp / m_fMaxHp;
|
||||
|
||||
if (m_fHpBar <= 0.f)
|
||||
{
|
||||
m_bAnimation = true;
|
||||
}
|
||||
if (m_bAnimation == true)
|
||||
{
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
m_fSizeX += 3.f;
|
||||
m_fSizeY += 3.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Enemy_HpDie"));
|
||||
}
|
||||
if (m_fTime >= 0.9f)
|
||||
{
|
||||
m_bAnimation = false;
|
||||
m_bHover = false;
|
||||
m_fTime = 0.f;
|
||||
SizeUpdate(m_fLerpX, m_fLerpY);
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::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_HpBar::Render()
|
||||
{
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ENEMY_HPBAR)))) {
|
||||
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_HpBar::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Lerp_PosX(_float X)
|
||||
{
|
||||
m_fDamage += X;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Hit(_float fTimeDelta)
|
||||
{
|
||||
m_fCurrentHp = CMyTools::Lerp_f1D(m_fCurrentHp, m_fTargetHp, fTimeDelta * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::SizeUpX(_float SizeX)
|
||||
{
|
||||
m_fSizeX = SizeX;
|
||||
m_fLerpX = SizeX;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Set_Enemt_Info(void* pArg)
|
||||
{
|
||||
if(m_bAnimation == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
//m_fMaxHp
|
||||
//m_fCurrentHp
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::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_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fHp", &m_fHpBar, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bAnimation, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_HpBar::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Monster_HpBar"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_Monster_HealthMeterFill"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_VFX_T_FlameNoise_E"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CEnemy_HpBar* CEnemy_HpBar::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CEnemy_HpBar* pInstance = new CEnemy_HpBar(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CEnemy_HpBar");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CEnemy_HpBar::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CEnemy_HpBar* pInstance = new CEnemy_HpBar(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Image");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CEnemy_HpBar::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
#include "pch.h"
|
||||
#include "Enemy_Info.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CEnemy_Info::CEnemy_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CEnemy_Info::CEnemy_Info(const CEnemy_Info& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -180.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fSizeX = 50.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 1.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 10.f;
|
||||
m_fFontX = 952.f;
|
||||
m_fFontY = 39.f;
|
||||
m_fFontPos = _float2(1115.f, 0.f);
|
||||
m_fFont2OffSet = 0.f;
|
||||
m_pEnemy_Name = TEXT("나는 문어");
|
||||
m_pLevel = TEXT("99");
|
||||
m_bAnimation = false;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Enemy_HpDie"), [this](void* p) {this->Set_FadeOut(); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_Info::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Info::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = true;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_bHover = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_K))
|
||||
{
|
||||
Set_FadeIn();
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
{
|
||||
Set_FadeOut();
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Info::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_Info::Render()
|
||||
{
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pEnemy_Name.c_str()) - 29.f) * 0.5f;
|
||||
m_fFont2OffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_pLevel.c_str()) - 13.f) * 0.5f;
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pEnemy_Name.c_str(), _float2(m_fFontPos.x + m_fX - m_fFontOffSet, m_fFontPos.y + m_fY), XMVectorSet(1.f* m_fAlpha,1.f* m_fAlpha,1.f* m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_pLevel.c_str(), _float2(m_fFontX + m_fX - m_fFont2OffSet, m_fFontY + m_fY), XMVectorSet(0.f, (120.f / 255.f)* m_fAlpha, 0.f, m_fAlpha));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CEnemy_Info::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Info::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HealthMeter_LevelBox"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_Info::Set_Info(_int Level, _wstring Name)
|
||||
{
|
||||
if (m_bAnimation == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
m_pLevel = to_wstring(Level);
|
||||
m_pEnemy_Name = Name;
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
CEnemy_Info* CEnemy_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CEnemy_Info* pInstance = new CEnemy_Info(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CEnemy_Info");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CEnemy_Info::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CEnemy_Info* pInstance = new CEnemy_Info(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Image");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CEnemy_Info::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CEnemy_Info::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
#include "pch.h"
|
||||
#include "Enemy_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Enemy_HpBar.h"
|
||||
#include "Enemy_Info.h"
|
||||
|
||||
CEnemy_Panel::CEnemy_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CEnemy_Panel::CEnemy_Panel(const CEnemy_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 50.f;
|
||||
Desc.fSizeX = 960.f;
|
||||
Desc.fSizeY = 150.f;
|
||||
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fAlpha = 1.f;
|
||||
m_fCanvasAlpha = 1.f;
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CEnemy_Panel::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_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CEnemy_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEnemy_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_HpBar>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CEnemy_HpBar**>(&m_pEnemy_HpBar))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Enemy_HpBar"), m_pEnemy_HpBar);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CEnemy_Info**>(&m_pEnemy_Info))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Enemy_Info"), m_pEnemy_Info);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CEnemy_Panel* CEnemy_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CEnemy_Panel* pInstance = new CEnemy_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CEnemy_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CEnemy_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CEnemy_Panel* pInstance = new CEnemy_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CEnemy_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CEnemy_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "Loading_Panel.h"
|
||||
#include "Action_Panel.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "Enemy_Panel.h"
|
||||
|
||||
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
@@ -116,6 +117,11 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
}
|
||||
Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CEnemy_Panel**>(&m_pEnemy_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Enemy_Panel"), m_pEnemy_Panel);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -187,6 +187,7 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
m_iSpellType = static_cast<CElementObject*>(m_pElementObject)->Get_SkillType();
|
||||
m_iSkillType = static_cast<CElementObject*>(m_pElementObject)->Get_SpellType();
|
||||
m_fCoolTime = static_cast<CElementObject*>(m_pElementObject)->Get_CoolTime();
|
||||
m_fFontPos = static_cast<CElementObject*>(m_pElementObject)->Get_Font();
|
||||
}
|
||||
GUI::Begin("Current_CanvasObject_Info");
|
||||
if (m_pUI_Manager != nullptr)
|
||||
@@ -482,6 +483,17 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_CoolTime(m_fCoolTime);
|
||||
}
|
||||
|
||||
GUI::Text("FontPosX %.1f", m_fFontPos.x);
|
||||
GUI::Text("FontPosY %.1f", m_fFontPos.y);
|
||||
if (GUI::SliderFloat("FontX", &m_fFontX, -1920.f, 1920.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_FontX(m_fFontX);
|
||||
}
|
||||
if (GUI::SliderFloat("FontY", &m_fFontY, -1080.f, 1080.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_FontY(m_fFontY);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -51,6 +51,10 @@
|
||||
|
||||
#include "GamePlay_Canvas.h"
|
||||
|
||||
#include "Enemy_Panel.h"
|
||||
#include "Enemy_HpBar.h"
|
||||
#include "Enemy_Info.h"
|
||||
|
||||
#include "Mission_Panel.h"
|
||||
#include "MissionBanner_Border.h"
|
||||
#include "MissionBanner_Key.h"
|
||||
@@ -895,6 +899,19 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Panel>(g_iStaticLevel, CEnemy_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_HpBar>(g_iStaticLevel, CEnemy_HpBar::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Info>(g_iStaticLevel, CEnemy_Info::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLoading_Panel>(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
@@ -72,6 +72,7 @@ HRESULT CLogo::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size13"), TEXT("Font_Test"), _float2(0.f, 0.f));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,10 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
m_iArratCount = 2;
|
||||
Compute_UV(0);
|
||||
Compute_Image();
|
||||
m_fFontX = 1171.f;
|
||||
m_fFontY = 870.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -137,6 +141,13 @@ void CMagic_Item::Update(_float fTimeDelta)
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -173,6 +184,9 @@ HRESULT CMagic_Item::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f)* m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,27 @@ void CMainApp::Compute_FrameCount()
|
||||
|
||||
HRESULT CMainApp::Ready_Default_Setting()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size13"), TEXT("../Bin/Resources/Fonts/Font_size13.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size14"), TEXT("../Bin/Resources/Fonts/Font_size14.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size15"), TEXT("../Bin/Resources/Fonts/Font_size15.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size20"), TEXT("../Bin/Resources/Fonts/Font_size20.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size21"), TEXT("../Bin/Resources/Fonts/Font_size21.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size30"), TEXT("../Bin/Resources/Fonts/Font_size30.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size15"), TEXT("../Bin/Resources/Fonts/UI_size15.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,12 @@ HRESULT CPotion::Initialize(void* pArg)
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_vImageSlotPos = _float2(45.f,45.f);
|
||||
m_vImageSize = _float2(32.f,32.f);
|
||||
m_vImageSlotPos = _float2(45.f, 45.f);
|
||||
m_vImageSize = _float2(32.f, 32.f);
|
||||
m_fFontX = 1163.f;
|
||||
m_fFontY = 860.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -92,6 +96,13 @@ void CPotion::Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -124,6 +135,8 @@ HRESULT CPotion::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f)* m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +104,11 @@ void CSpell_Anim::Update(_float fTimeDelta)
|
||||
m_iCurrentFrame = 0;
|
||||
}
|
||||
|
||||
if (m_iPerSpell != -1)
|
||||
{
|
||||
m_fY = m_fOrigin_Position.y + static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iPerSpell).fVidio;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,16 +51,22 @@ HRESULT CSpell_Data::Initialize(void* pArg)
|
||||
pInfo[id].pSpell_Name = CMyTools::ToWstring(pSpell->Attribute("Spell_Name"));
|
||||
pInfo[id].pImage_Name = CMyTools::ToWstring(pSpell->Attribute("Image_Name"));
|
||||
pSpell->QueryIntAttribute("Spell_Type", &pInfo[id].iSpell_Type);
|
||||
pInfo[id].pType_Name = CMyTools::ToWstring(pSpell->Attribute("Type_Name"));
|
||||
pSpell->QueryIntAttribute("Skill_Type", &pInfo[id].iSkill_Type);
|
||||
pSpell->QueryFloatAttribute("Spell_Damage", &pInfo[id].fSpell_Damage);
|
||||
pSpell->QueryFloatAttribute("Spell_Cooltime", &pInfo[id].fSpell_CoolTime);
|
||||
pSpell->QueryFloatAttribute("Duration", &pInfo[id].fDuration);
|
||||
pSpell->QueryIntAttribute("AnimNum", &pInfo[id].iAnimNum);
|
||||
pInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
|
||||
int lock = 0, equip = 0;
|
||||
_int lock = 0, equip = 0, use = 0;
|
||||
pSpell->QueryIntAttribute("Spell_Lock", &lock);
|
||||
pSpell->QueryIntAttribute("Equip_Spell", &equip);
|
||||
pSpell->QueryIntAttribute("Use_Skill", &use);
|
||||
pInfo[id].bSpell_Lock = lock != 0;
|
||||
pInfo[id].bEquip_Spell = equip != 0;
|
||||
pInfo[id].bUse_Skill = use != 0;
|
||||
pSpell->QueryFloatAttribute("Preview", &pInfo[id].fPreview);
|
||||
pSpell->QueryFloatAttribute("Vidio", &pInfo[id].fVidio);
|
||||
|
||||
pSpell = pSpell->NextSiblingElement("Spell");
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = -385.f;
|
||||
Desc.fSizeX = 512.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
Desc.fSizeY = 80.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) };
|
||||
|
||||
@@ -46,6 +46,10 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_fFontX = 920.f;
|
||||
m_fFontY = 510.f;
|
||||
m_fType = _float2(935.f, 550.f);
|
||||
m_iPerSpellIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -69,6 +73,7 @@ void CSpell_Header::Update(_float fTimeDelta)
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = true;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
@@ -81,18 +86,24 @@ void CSpell_Header::Update(_float fTimeDelta)
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
m_bHover = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iSpellType != -1)
|
||||
if (m_iSpellType != -1 && m_iPerSpellIndex != m_iSpellType)
|
||||
{
|
||||
m_iSkillType = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).iSpell_Type;
|
||||
m_pSpell_Name = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).pSpell_Name;
|
||||
m_fSpell_Type = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).pType_Name;
|
||||
m_iPerSpellIndex = m_iSpellType;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
@@ -126,6 +137,11 @@ HRESULT CSpell_Header::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pSpell_Name.c_str()) - 53.f) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pSpell_Name.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((215.f / 255.f) * m_fAlpha, (185.f / 255.f) * m_fAlpha, (95.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size13"), m_fSpell_Type.c_str(), _float2(m_fType.x + m_fX, m_fType.y + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CSpell_Header_Line::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = -345.f;
|
||||
Desc.fY = -340.f;
|
||||
Desc.fSizeX = 487.f;
|
||||
Desc.fSizeY = 18.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) };
|
||||
|
||||
@@ -43,12 +43,18 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
|
||||
m_fTopY = m_fY - m_vScale.y * 0.5f;
|
||||
m_fPreviewOffSet = 0.f;
|
||||
m_fOriginPerviewSize = 280.f;
|
||||
SizeUpX(512.f);
|
||||
SizeUpY(270.f);
|
||||
SizeUpY(m_fOriginPerviewSize);
|
||||
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
|
||||
m_fSortZ = 0.02f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_fFontX = 740.f;
|
||||
m_fFontY = 500.f;
|
||||
m_iPerSpellIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -76,6 +82,7 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +90,10 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
@@ -92,6 +102,15 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
if (m_iSpellType != -1 && m_iPerSpellIndex != m_iSpellType)
|
||||
{
|
||||
m_pSpell_Info = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).pSpellInfo;
|
||||
m_fPreviewOffSet = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).fPreview;
|
||||
SizeUpY(m_fOriginPerviewSize + m_fPreviewOffSet);
|
||||
m_iPerSpellIndex = m_iSpellType;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -121,6 +140,8 @@ HRESULT CSpell_Preview::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
|
||||
m_fLerpX = m_fX;
|
||||
m_fLerpY = 45;
|
||||
m_bStart = false;
|
||||
m_fPreviewOffSet = 0;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
@@ -96,6 +97,11 @@ void CSpell_Vidio_Border::Update(_float fTimeDelta)
|
||||
if (m_fAlpha >= 0.3f)
|
||||
m_bStart = true;
|
||||
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
m_fY = m_fOrigin_Position.y + static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).fVidio;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "CameraLockOn.h"
|
||||
#include "Loding_Canvas.h"
|
||||
#include "tinyxml2.h"
|
||||
|
||||
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
@@ -102,6 +103,11 @@ void CUI_Manager::Update(_float fTimeDelta)
|
||||
Canvas_Change(Canvases::GAMEPLAYER_CANVAS);
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_SLASH))
|
||||
{
|
||||
SaveXML("../Bin/Resources/Data/UI/Data.xml");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CUI_Manager::Late_Update(_float fTimeDelta)
|
||||
@@ -142,16 +148,39 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMouse_Cursor>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CMouse_Cursor**>(&m_pMouse_Cursor)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Canvas(TEXT("Mouse_Cursor"), m_pMouse_Cursor);
|
||||
//Add_Canvas(TEXT("Mouse_Cursor"), m_pMouse_Cursor);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCameraLockOn>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CCameraLockOn**>(&m_pCamera_LockOn)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Canvas(TEXT("Camera_LockOn"), m_pCamera_LockOn);
|
||||
//Add_Canvas(TEXT("Camera_LockOn"), m_pCamera_LockOn);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
bool CUI_Manager::SaveXML(const _string& filePath)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
|
||||
// 루트 생성
|
||||
tinyxml2::XMLElement* root = doc.NewElement("Emart");
|
||||
doc.InsertEndChild(root);
|
||||
|
||||
// 1층 요소 생성, ID만 먼저 넣음
|
||||
tinyxml2::XMLElement* floor1 = doc.NewElement("Floor");
|
||||
floor1->SetAttribute("ID", 0); // 나중에 사용할 수 있는 ID
|
||||
root->InsertEndChild(floor1);
|
||||
|
||||
// 나중에 다른 속성이나 텍스트 추가 가능
|
||||
floor1->SetAttribute("level", 1); // 층 정보 추가
|
||||
floor1->SetText("마트, 푸드코트, 의류매장"); // 텍스트 정보 추가
|
||||
|
||||
// 저장
|
||||
doc.SaveFile("Emart.xml");
|
||||
|
||||
return doc.SaveFile(filePath.c_str()) == tinyxml2::XML_SUCCESS;
|
||||
}
|
||||
|
||||
void CUI_Manager::Add_Canvas(_wstring Name, CGameObject* pCanvas)
|
||||
{
|
||||
if (pCanvas == nullptr)
|
||||
|
||||
@@ -25,8 +25,8 @@ 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, 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_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, 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 };
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CEnemy_HpBar final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CEnemy_HpBar(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEnemy_HpBar(const CEnemy_HpBar& rhs);
|
||||
virtual ~CEnemy_HpBar() = 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;
|
||||
virtual void Lerp_PosX(_float X) override;
|
||||
|
||||
public:
|
||||
void Hit(_float fTimeDelta);
|
||||
virtual void SizeUpX(_float SizeX) override;
|
||||
|
||||
void Set_Enemt_Info(void* pArg);
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float m_fMaxHp{};
|
||||
_float m_fCurrentHp{};
|
||||
_float m_fHpBar{};
|
||||
_float m_fDamage{};
|
||||
_float m_fTargetHp{};
|
||||
|
||||
_bool m_bAnimation = { false };
|
||||
public:
|
||||
static CEnemy_HpBar* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CEnemy_Info final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CEnemy_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEnemy_Info(const CEnemy_Info& rhs);
|
||||
virtual ~CEnemy_Info() = 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;
|
||||
|
||||
public:
|
||||
void Set_Info(_int Level, _wstring Name);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float2 m_fFontPos{};
|
||||
_float m_fFont2OffSet{};
|
||||
_wstring m_pEnemy_Name;
|
||||
_wstring m_pLevel;
|
||||
_bool m_bAnimation = {false};
|
||||
|
||||
public:
|
||||
static CEnemy_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CEnemy_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CEnemy_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEnemy_Panel(const CEnemy_Panel& rhs);
|
||||
virtual ~CEnemy_Panel() = 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 Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pEnemy_HpBar = { nullptr };
|
||||
CGameObject* m_pEnemy_Info = { nullptr };
|
||||
|
||||
public:
|
||||
static CEnemy_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -39,6 +39,7 @@ class CGamePlay_Canvas final : public CCanvasObject
|
||||
CGameObject* m_pMinimap_Panel = { nullptr };
|
||||
CGameObject* m_pLoading_Panel = { nullptr };
|
||||
CGameObject* m_pAction_Panel = { nullptr };
|
||||
CGameObject* m_pEnemy_Panel = { nullptr };
|
||||
|
||||
public:
|
||||
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -97,6 +97,10 @@ class CIMGUIUI final : public CGameObject
|
||||
_bool m_bElementAllVisible = { false };
|
||||
_bool m_bElementVisible = { false };
|
||||
|
||||
|
||||
_float2 m_fFontPos {};
|
||||
_float m_fFontX {};
|
||||
_float m_fFontY {};
|
||||
public:
|
||||
static CIMGUIUI* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -46,6 +46,10 @@ class CMagic_Item final : public CElementObject
|
||||
_float2 m_vImagePos1 = {};
|
||||
_float2 m_vImageSize2 = {};
|
||||
_float2 m_vImagePos2 = {};
|
||||
|
||||
_int m_iPotionIndex{};
|
||||
_int m_iPerPotionIndex{};
|
||||
_wstring m_strPotion;
|
||||
public:
|
||||
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -36,6 +36,10 @@ class CPotion final : public CElementObject
|
||||
|
||||
_float2 m_vImageSlotPos{};
|
||||
_float2 m_vImageSize{};
|
||||
|
||||
_int m_iPotionIndex{};
|
||||
_int m_iPerPotionIndex{};
|
||||
_wstring m_strPotion;
|
||||
public:
|
||||
static CPotion* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -18,13 +18,16 @@ class CSpell_Data final : public CGameObject
|
||||
_string pSpell_Name;
|
||||
_string pImage_Name;
|
||||
_int iSpell_Type{};
|
||||
_string pType_Name{};
|
||||
_int iSkill_Type{};
|
||||
_float fSpell_Damage{};
|
||||
_float fSpell_CoolTime{};
|
||||
_float fDuration{};
|
||||
_int iAnimNum{};
|
||||
_string pSpellInfo;
|
||||
_bool bSpell_Lock = false;
|
||||
_bool bEquip_Spell = false;
|
||||
_float fPreview{};
|
||||
}SPELLINFO;
|
||||
private:
|
||||
CSpell_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -25,12 +25,18 @@ class CSpell_Header final : public CElementObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iSkillType{};
|
||||
_wstring m_pSpell_Name;
|
||||
_wstring m_fSpell_Type;
|
||||
|
||||
_float2 m_fType{};
|
||||
|
||||
_int m_iPerSpellIndex{};
|
||||
public:
|
||||
static CSpell_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -49,6 +49,7 @@ class CSpell_Hover final : public CElementObject
|
||||
_float m_fOffSetX{};
|
||||
_float m_fOffSetY{};
|
||||
_uint m_iCols{};
|
||||
|
||||
public:
|
||||
static CSpell_Hover* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -36,10 +36,13 @@ class CSpell_Preview final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_wstring m_pSpell_Info;
|
||||
|
||||
|
||||
_float m_fOriginPerviewSize{};
|
||||
_float m_fPreviewOffSet{};
|
||||
_float4 m_vHeaderBack{};
|
||||
|
||||
_int m_iPerSpellIndex{};
|
||||
public:
|
||||
static CSpell_Preview* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -35,6 +35,8 @@ class CSpell_Vidio_Border final : public CElementObject
|
||||
_int m_iPerIndex{};
|
||||
_bool m_bStart = { false };
|
||||
|
||||
_float m_fPreviewOffSet{};
|
||||
|
||||
public:
|
||||
static CSpell_Vidio_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -42,6 +42,7 @@ class CUI_Manager final : public CUIObject
|
||||
void Add_Manager_Event(_wstring Name, function<void(void*)> Event);
|
||||
void Event_Callback(_wstring Name, void* pArg = nullptr);
|
||||
private:
|
||||
bool SaveXML(const _string& filePath);
|
||||
void Add_Canvas(_wstring Name, class CGameObject* pCanvas);
|
||||
CGameObject* Find_Canvas(const _wstring& Name);
|
||||
|
||||
|
||||
@@ -208,6 +208,8 @@ call Update_Lib.bat
|
||||
<ClCompile Include="..\Private\ContainerObject.cpp" />
|
||||
<ClCompile Include="..\Private\DebugDraw.cpp" />
|
||||
<ClCompile Include="..\private\Fog.cpp" />
|
||||
<ClCompile Include="..\private\Font.cpp" />
|
||||
<ClCompile Include="..\private\Font_Manager.cpp" />
|
||||
<ClCompile Include="..\private\QuadTree.cpp" />
|
||||
<ClCompile Include="..\private\OcclusionQuery.cpp" />
|
||||
<ClCompile Include="..\Private\Renderer_Declare.cpp" />
|
||||
@@ -428,6 +430,8 @@ call Update_Lib.bat
|
||||
<ClInclude Include="..\Public\Bounding_OBB.h" />
|
||||
<ClInclude Include="..\Public\Bounding_Sphere.h" />
|
||||
<ClInclude Include="..\public\Fog.h" />
|
||||
<ClInclude Include="..\public\Font.h" />
|
||||
<ClInclude Include="..\public\Font_Manager.h" />
|
||||
<ClInclude Include="..\public\FSM.h" />
|
||||
<ClInclude Include="..\public\QuadTree.h" />
|
||||
<ClInclude Include="..\public\OcclusionQuery.h" />
|
||||
|
||||
@@ -295,6 +295,12 @@
|
||||
<Filter Include="02.Element\02.Component\09.Light">
|
||||
<UniqueIdentifier>{7c82051e-19af-4284-8156-16f504db30b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="03.Management\04. Font_Manager">
|
||||
<UniqueIdentifier>{bba1e91b-87a8-4a7b-8e4e-b42d2041d8eb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.Element\01.GameObject\01. Font">
|
||||
<UniqueIdentifier>{7eab7292-025e-40d7-aa71-73e7a3c71ea7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.Element\02.Component\12.Stat">
|
||||
<UniqueIdentifier>{ea9648d8-6a9a-41d2-8b8f-ea6937017372}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -570,6 +576,12 @@
|
||||
<ClCompile Include="..\private\Resource_Manager.cpp">
|
||||
<Filter>03.Management\02.Resource_Manager</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Font_Manager.cpp">
|
||||
<Filter>03.Management\04. Font_Manager</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Font.cpp">
|
||||
<Filter>02.Element\01.GameObject\01. Font</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Stat.cpp">
|
||||
<Filter>02.Element\02.Component\12.Stat</Filter>
|
||||
</ClCompile>
|
||||
@@ -1211,6 +1223,12 @@
|
||||
<ClInclude Include="..\public\Resource_Manager.h">
|
||||
<Filter>03.Management\02.Resource_Manager</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Font_Manager.h">
|
||||
<Filter>03.Management\04. Font_Manager</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Font.h">
|
||||
<Filter>02.Element\01.GameObject\01. Font</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Stat.h">
|
||||
<Filter>02.Element\02.Component\12.Stat</Filter>
|
||||
</ClInclude>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user