@@ -64,13 +64,21 @@ Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
|
||||
int g_iHover;
|
||||
int g_iBoosterOn;
|
||||
int g_iBoosterOff;
|
||||
int g_iClick;
|
||||
int g_iColor;
|
||||
int g_Count;
|
||||
int g_ChaseCount;
|
||||
|
||||
int g_iStep1 = 0;
|
||||
int g_iStep2 = 0;
|
||||
int g_iStep3 = 0;
|
||||
|
||||
float2 g_Trail[200];
|
||||
float2 g_ChaseTrail[200];
|
||||
|
||||
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -1795,32 +1803,105 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
|
||||
Color = tex;
|
||||
|
||||
Color.rgb *= tex1.rgb;
|
||||
|
||||
float2 rectPos = g_fPosition;
|
||||
|
||||
float2 rectPos = g_fPosition - float2(256.f, 259.f);
|
||||
float2 rectSize = g_fCurrent_Size;
|
||||
|
||||
float2 itemPos = g_fItemPosition1;
|
||||
float2 itemSize = g_fItemImageSizes1;
|
||||
|
||||
float x0 = max(rectPos.x, itemPos.x);
|
||||
float x1 = min(rectPos.x + rectSize.x, itemPos.x + itemSize.x);
|
||||
float y0 = max(rectPos.y, itemPos.y);
|
||||
float y1 = min(rectPos.y + rectSize.y, itemPos.y + itemSize.y);
|
||||
float2 pixelPos;
|
||||
pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
|
||||
pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
|
||||
|
||||
float uMin = (x0 - rectPos.x) / rectSize.x;
|
||||
float uMax = (x1 - rectPos.x) / rectSize.x;
|
||||
float vMin = (y0 - rectPos.y) / rectSize.y;
|
||||
float vMax = (y1 - rectPos.y) / rectSize.y;
|
||||
|
||||
vMin = 1.0f - vMin;
|
||||
vMax = 1.0f - vMax;
|
||||
|
||||
if (In.vTexcoord.x >= min(uMin, uMax) && In.vTexcoord.x <= max(uMin, uMax) &&
|
||||
In.vTexcoord.y >= min(vMin, vMax) && In.vTexcoord.y <= max(vMin, vMax))
|
||||
if (pixelPos.x >= itemPos.x &&
|
||||
pixelPos.x <= itemPos.x + itemSize.x &&
|
||||
pixelPos.y >= itemPos.y &&
|
||||
pixelPos.y <= itemPos.y + itemSize.y)
|
||||
{
|
||||
Color.rgb = float3(0.f, 0.f, 1.f);
|
||||
}
|
||||
|
||||
for (int i = 0; i < g_Count; ++i)
|
||||
{
|
||||
float2 trailTopLeft = g_Trail[i];
|
||||
float2 trailCenter = trailTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x / 2.0f + 6.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 6.f;
|
||||
|
||||
if (pixelPos.x >= trailCenter.x - halfWidth &&
|
||||
pixelPos.x <= trailCenter.x + halfWidth &&
|
||||
pixelPos.y >= trailCenter.y - halfHeight &&
|
||||
pixelPos.y <= trailCenter.y + halfHeight)
|
||||
{
|
||||
Color.rgb = float3(20.f, 100.f, 180.f) / 255.f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (int j = 0; j < g_ChaseCount; ++j)
|
||||
{
|
||||
float2 ChaseTopLeft = g_ChaseTrail[j];
|
||||
float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x * 0.7f;
|
||||
float halfHeight = itemSize.y * 0.7f;
|
||||
|
||||
if (pixelPos.x >= ChaseCenter.x - halfWidth &&
|
||||
pixelPos.x <= ChaseCenter.x + halfWidth &&
|
||||
pixelPos.y >= ChaseCenter.y - halfHeight &&
|
||||
pixelPos.y <= ChaseCenter.y + halfHeight)
|
||||
{
|
||||
Color.rgb = float3(110.f, 5.f, 5.f) / 255.f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_SpellLearnBooster(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 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
Color = tex;
|
||||
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
|
||||
|
||||
if (g_iBoosterOn == 0 && g_iBoosterOff == 0)
|
||||
{
|
||||
if (inside1)
|
||||
{
|
||||
float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal);
|
||||
Color = lerp(Color, tex1, tex1.a);
|
||||
}
|
||||
}
|
||||
else if (g_iBoosterOn != 0 && g_iBoosterOff == 0)
|
||||
{
|
||||
|
||||
float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
}
|
||||
else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
|
||||
{
|
||||
float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
tex2.rgb *= float3(1.f, 0.f, 0.f);
|
||||
Color = tex;
|
||||
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
@@ -2416,6 +2497,16 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_SpellLearnColor();
|
||||
}
|
||||
|
||||
pass SpellLearnBooster
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_SpellLearnBooster();
|
||||
}
|
||||
|
||||
pass Enemy_Detection
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
|
||||
@@ -161,17 +161,24 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
<ClInclude Include="..\Public\Transformation.h" />
|
||||
<ClInclude Include="..\Public\LightningSide.h" />
|
||||
<ClInclude Include="..\Public\Lightning.h" />
|
||||
<ClInclude Include="..\Public\Blink.h" />
|
||||
<ClInclude Include="..\Public\NPC_EleazarFig.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Booster.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Canvas.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_ChaserPointer.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Data.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_LookPointer.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_MovePointer.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Name.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Overlay.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Panel.h" />
|
||||
<ClInclude Include="..\Public\State_Skill2.h" />
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h" />
|
||||
<ClInclude Include="..\Public\Stupefy.h" />
|
||||
<ClInclude Include="..\Public\BroomRaceManager.h" />
|
||||
<ClInclude Include="..\Public\BroomRacerAI.h" />
|
||||
@@ -382,17 +389,24 @@ call Update_Resources.bat
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
<ClCompile Include="..\Private\LightningSide.cpp" />
|
||||
<ClCompile Include="..\Private\Lightning.cpp" />
|
||||
<ClCompile Include="..\Private\Blink.cpp" />
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Booster.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_ChaserPointer.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Data.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_LookPointer.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_MovePointer.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Name.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Overlay.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\State_Skill2.cpp" />
|
||||
<ClCompile Include="..\Private\SpellLearn_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Stupefy.cpp" />
|
||||
<ClCompile Include="..\Private\Boss_HpBar.cpp" />
|
||||
<ClCompile Include="..\Private\Barral_Splesh.cpp" />
|
||||
|
||||
@@ -680,9 +680,30 @@
|
||||
<ClInclude Include="..\Public\State_Skill2.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Skill2</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\NPC_EleazarFig.h">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Transformation.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\TransformationSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Overlay.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_LookPointer.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_ChaserPointer.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Booster.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1425,6 +1446,27 @@
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Transformation">
|
||||
<UniqueIdentifier>{87b1db75-938f-462f-a288-fe9c8d6c689e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Ally\GateKeeper">
|
||||
<UniqueIdentifier>{cef7b9f7-3bb3-4782-a1a8-09751fa538d8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Transformation\TransformationSide">
|
||||
<UniqueIdentifier>{064b5e2f-dcde-47fd-a43d-43e25800393d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer">
|
||||
<UniqueIdentifier>{d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer">
|
||||
<UniqueIdentifier>{61024044-17a9-45ed-a6f9-73385290846d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster">
|
||||
<UniqueIdentifier>{b512f128-fcec-4db4-8cd2-08abfc56e000}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay">
|
||||
<UniqueIdentifier>{2af08f38-aff0-4632-acb8-492111ff88f2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot">
|
||||
<UniqueIdentifier>{dd7d2910-1d3d-42c4-9390-ac60685357ee}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2055,6 +2097,27 @@
|
||||
<ClCompile Include="..\Private\Transformation.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Overlay.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_LookPointer.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_ChaserPointer.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\SpellLearn_Booster.cpp">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -197,7 +197,8 @@ HRESULT CBlink::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
m_pBlink_Swirl->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
|
||||
m_pBlink_Circle->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pBlink_Circle2->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
m_pBlink_Distortion->Set_Visible(true);
|
||||
|
||||
|
||||
@@ -305,8 +305,6 @@ _float CBroomRacerAI::ComputeTurnToRing()
|
||||
return clamp(turn, -1.f, 1.f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
_float CBroomRacerAI::ComputeHeightAdjust()
|
||||
{
|
||||
_float dy = (XMVectorGetY(m_pRaceRing->Get_WorldPostion()) + 15.f)
|
||||
|
||||
@@ -26,6 +26,7 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
}
|
||||
Transition(fTimeDelta);
|
||||
_float3 vCamPos = {};
|
||||
_float3 vSetPos = {};
|
||||
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("Cam Coord %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z);
|
||||
@@ -197,6 +198,7 @@ void CCamera_Debug::Describe_Entity()
|
||||
GUI::InputFloat3("Pos", (float*)&vPosition);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
|
||||
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
|
||||
m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
}
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
@@ -147,7 +147,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
|
||||
@@ -151,9 +151,9 @@ CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CDummy_PhysXWall::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
//if (nullptr != m_pRigidBody) {
|
||||
// m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
//}
|
||||
|
||||
__super::Free();
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "LightningSide.h"
|
||||
#include "Blink.h"
|
||||
#include "Transformation.h"
|
||||
#include "TransformationSide.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -421,6 +422,15 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTransformationSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CTransformationSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -83,6 +83,9 @@ void CGoblin::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
@@ -135,6 +138,9 @@ void CGoblin::Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
@@ -306,7 +312,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (pEffect_Container != nullptr)
|
||||
{
|
||||
_uint iSkillType = pEffect_Container->Get_SkillType();
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
//damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
@@ -321,9 +327,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
|
||||
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
|
||||
@@ -341,14 +349,14 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
}
|
||||
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
_int ID = m_pStat->Get_Stat().iObjectID;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
return;
|
||||
}
|
||||
//m_DamageInfo.fDamage = damagePair.first;
|
||||
//m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
//if (0 == damagePair.second) {
|
||||
// m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
// _int ID = m_pStat->Get_Stat().iObjectID;
|
||||
// m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
// return;
|
||||
//}
|
||||
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
@@ -410,7 +418,7 @@ HRESULT CGoblin::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
|
||||
|
||||
@@ -82,6 +82,9 @@ void CGoblin_Mage::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin_Mage::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
@@ -124,6 +127,9 @@ void CGoblin_Mage::Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin_Mage::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
@@ -314,9 +320,11 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
|
||||
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
|
||||
@@ -403,7 +411,7 @@ HRESULT CGoblin_Mage::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN_WIZARD"), (CComponent**)&m_pStat))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -371,17 +371,56 @@ void CGoblin_Mage::Behavior_BlinkExit()
|
||||
void CGoblin_Mage::Behavior_HitEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
m_pFSM->Enable_State(FSMSTATE::HIT);
|
||||
|
||||
m_bLookAt = false;
|
||||
|
||||
_float fAnimSpeed = 1.f;
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
|
||||
fAnimSpeed = 2.f;
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_bAir = true;
|
||||
},
|
||||
0.3f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
},
|
||||
0.27f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
|
||||
0.75f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bAir = false;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
},
|
||||
0.96f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
|
||||
[&]() {m_bLookAt = true; },
|
||||
0.7f);
|
||||
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R];
|
||||
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
{
|
||||
@@ -415,7 +454,7 @@ void CGoblin_Mage::Behavior_HitEnter()
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_R];
|
||||
}
|
||||
}
|
||||
else{
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_FWD];
|
||||
}
|
||||
}
|
||||
@@ -427,46 +466,11 @@ void CGoblin_Mage::Behavior_HitEnter()
|
||||
pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS];
|
||||
break;
|
||||
default:
|
||||
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
|
||||
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R];
|
||||
break;
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_bAir = true;
|
||||
},
|
||||
0.3f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
},
|
||||
0.27f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
|
||||
0.75f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bAir = false;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
},
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
|
||||
[&]() {m_bLookAt = true; },
|
||||
0.7f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed);
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
@@ -493,20 +497,47 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Set_Position(vPos + Force);
|
||||
}
|
||||
|
||||
if (!m_bAir && m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
|
||||
if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
|
||||
{
|
||||
m_fGravityAmount += fTimeDelta * fRatio * 15.f;
|
||||
m_fGravityAmount += fTimeDelta * fRatio * 20.f;
|
||||
m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount);
|
||||
}
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first)
|
||||
{
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
|
||||
0.17f);
|
||||
}
|
||||
|
||||
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
|
||||
{
|
||||
if (!m_bPos)
|
||||
{
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
|
||||
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
|
||||
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
|
||||
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
|
||||
|
||||
if (fLength >= 4.f)
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta
|
||||
);
|
||||
}
|
||||
else {
|
||||
m_bPos = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
|
||||
{
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
|
||||
@@ -523,51 +554,39 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
|
||||
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
|
||||
{
|
||||
m_fAirTime = 0.f;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
|
||||
HitState_Behavior(fTimeDelta);
|
||||
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first)
|
||||
{
|
||||
if (!m_bPos)
|
||||
m_fTumbleTimer += fTimeDelta;
|
||||
|
||||
if (m_fTumbleTimer >= 1.5f)
|
||||
{
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
|
||||
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
|
||||
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
|
||||
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
|
||||
|
||||
if (fLength >= 2.5f)
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta
|
||||
);
|
||||
}
|
||||
else {
|
||||
m_bPos = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
|
||||
{
|
||||
m_fAirTime = 0.f;
|
||||
m_fTumbleTimer = 0.f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
|
||||
0.21f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
m_fAirTime = 0.f; },
|
||||
0.95f);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
if (m_vStunTimer.y < m_vStunTimer.x) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
@@ -578,12 +597,12 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
void CGoblin_Mage::Behavior_HitExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||
m_bPos = false;
|
||||
m_bLookAt = true;
|
||||
m_eHitState = ENUM_CLASS(HIT_STATE::END);
|
||||
m_pCharacter_Controller->Reset_GravityAmount();
|
||||
m_fGravityAmount = 0.f;
|
||||
}
|
||||
@@ -648,6 +667,108 @@ void CGoblin_Mage::Behavior_DeadExit()
|
||||
m_bDead = true;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::HitState_Behavior(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
CTransform* pTransform = m_pTarget->Get_Component<CTransform>();
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
if (m_eHitState == ENUM_CLASS(HIT_STATE::AIR_LEVIOSO))
|
||||
{
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
{
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
m_pCharacter_Controller->Set_GravityAmount(1.5f);
|
||||
m_fAirTime = 0.f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_bAir = true;
|
||||
},
|
||||
0.3f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
},
|
||||
0.27f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
|
||||
0.75f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bAir = false;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
},
|
||||
0.96f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
|
||||
[&]() {m_bLookAt = true; },
|
||||
0.7f);
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
{
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
|
||||
_vector vCameraLook = m_pGameInstance->Get_CameraLook();
|
||||
vCameraLook = XMVector3Normalize(vCameraLook);
|
||||
m_pRigidBody->Add_Force(vCameraLook * 30.f, physx::PxForceMode::eIMPULSE);
|
||||
m_fAirTime = 0.f;
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
{
|
||||
m_fHitTimer += fTimeDelta;
|
||||
if (m_fHitTimer <= 0.25f)
|
||||
{
|
||||
_vector vPlayerLook = pTransform->Get_State(STATE::LOOK);
|
||||
vPlayerLook = XMVector4Normalize(vPlayerLook);
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_float t = clamp(m_fHitTimer, 0.f, 1.f);
|
||||
_float ease = 1.f - (t * t);
|
||||
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
|
||||
|
||||
m_pCharacter_Controller->Set_Position(vPos + Force);
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f);
|
||||
}
|
||||
else {
|
||||
m_fHitTimer = 0.f;
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
|
||||
{
|
||||
m_fAirTime = 0.f;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void CGoblin_Mage::Add_FSM()
|
||||
{
|
||||
#pragma region Behavior_Movement_NotFocus
|
||||
|
||||
@@ -453,6 +453,7 @@ void CGoblin::Behavior_ShuffleExit()
|
||||
void CGoblin::Behavior_HitEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
m_pFSM->Enable_State(FSMSTATE::HIT);
|
||||
|
||||
m_bLookAt = false;
|
||||
@@ -463,6 +464,40 @@ void CGoblin::Behavior_HitEnter()
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
|
||||
fAnimSpeed = 2.f;
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_bAir = true;
|
||||
},
|
||||
0.3f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
},
|
||||
0.27f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
|
||||
0.75f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bAir = false;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
},
|
||||
0.96f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
|
||||
[&]() {m_bLookAt = true; },
|
||||
0.7f);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
|
||||
@@ -517,40 +552,6 @@ void CGoblin::Behavior_HitEnter()
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_bAir = true;
|
||||
},
|
||||
0.3f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
},
|
||||
0.27f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
|
||||
0.75f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bAir = false;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
},
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
|
||||
[&]() {m_bLookAt = true; },
|
||||
0.7f);
|
||||
}
|
||||
|
||||
HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
@@ -577,20 +578,47 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Set_Position(vPos + Force);
|
||||
}
|
||||
|
||||
if (!m_bAir && m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
|
||||
if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
|
||||
{
|
||||
m_fGravityAmount += fTimeDelta * fRatio* 15.f;
|
||||
m_fGravityAmount += fTimeDelta * fRatio* 20.f;
|
||||
m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount);
|
||||
}
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first)
|
||||
{
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
|
||||
0.17f);
|
||||
}
|
||||
|
||||
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
|
||||
{
|
||||
if (!m_bPos)
|
||||
{
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
|
||||
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
|
||||
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
|
||||
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
|
||||
|
||||
if (fLength >= 4.f)
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta
|
||||
);
|
||||
}
|
||||
else {
|
||||
m_bPos = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
|
||||
{
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
|
||||
@@ -607,51 +635,39 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
|
||||
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
|
||||
{
|
||||
m_fAirTime = 0.f;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
|
||||
HitState_Behavior(fTimeDelta);
|
||||
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first)
|
||||
{
|
||||
if (!m_bPos)
|
||||
m_fTumbleTimer += fTimeDelta;
|
||||
|
||||
if (m_fTumbleTimer >= 1.5f)
|
||||
{
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
|
||||
vPlayerPos = XMVectorSetY(vPlayerPos,XMVectorGetY(vPlayerPos) + 2.5f);
|
||||
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
|
||||
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
|
||||
|
||||
if (fLength >= 2.5f)
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta
|
||||
);
|
||||
}
|
||||
else {
|
||||
m_bPos = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
|
||||
{
|
||||
m_fAirTime = 0.f;
|
||||
m_fTumbleTimer = 0.f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
|
||||
0.21f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
m_fAirTime = 0.f; },
|
||||
0.95f);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
if (m_vStunTimer.y < m_vStunTimer.x) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
@@ -667,6 +683,7 @@ void CGoblin::Behavior_HitExit()
|
||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||
m_bPos = false;
|
||||
m_bLookAt = true;
|
||||
m_eHitState = ENUM_CLASS(HIT_STATE::END);
|
||||
m_pCharacter_Controller->Reset_GravityAmount();
|
||||
m_fGravityAmount = 0.f;
|
||||
}
|
||||
@@ -728,6 +745,107 @@ void CGoblin::Behavior_DeadExit()
|
||||
m_bDead = true;
|
||||
}
|
||||
|
||||
void CGoblin::HitState_Behavior(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
CTransform* pTransform = m_pTarget->Get_Component<CTransform>();
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
if (m_eHitState == ENUM_CLASS(HIT_STATE::AIR_LEVIOSO))
|
||||
{
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
{
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
m_pCharacter_Controller->Set_GravityAmount(1.5f);
|
||||
m_fAirTime = 0.f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_bAir = true;
|
||||
},
|
||||
0.3f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
},
|
||||
0.27f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
|
||||
0.75f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bAir = false;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
},
|
||||
0.96f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
|
||||
[&]() {m_bLookAt = true; },
|
||||
0.7f);
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
{
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
|
||||
_vector vCameraLook = m_pGameInstance->Get_CameraLook();
|
||||
vCameraLook = XMVector3Normalize(vCameraLook);
|
||||
m_pRigidBody->Add_Force(vCameraLook*30.f, physx::PxForceMode::eIMPULSE);
|
||||
m_fAirTime = 0.f;
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
{
|
||||
m_fHitTimer += fTimeDelta;
|
||||
if (m_fHitTimer <= 0.4f)
|
||||
{
|
||||
_vector vPlayerLook = pTransform->Get_State(STATE::LOOK);
|
||||
vPlayerLook = XMVector4Normalize(vPlayerLook);
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_float t = clamp(m_fHitTimer, 0.f, 1.f);
|
||||
_float ease = 1.f - (t * t);
|
||||
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
|
||||
|
||||
m_pCharacter_Controller->Set_Position(vPos + Force);
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f);
|
||||
}
|
||||
else {
|
||||
m_fHitTimer = 0.f;
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
|
||||
{
|
||||
m_fAirTime = 0.f;
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void CGoblin::Add_FSM()
|
||||
{
|
||||
|
||||
@@ -266,8 +266,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isReady_Background = false;
|
||||
@@ -578,11 +578,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
|
||||
}
|
||||
|
||||
/*for (_uint i = 0; i < 1; ++i) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||
return E_FAIL;
|
||||
for (_uint i = 0; i < 1; ++i) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -118,6 +118,11 @@
|
||||
#include "SpellLearn_Name.h"
|
||||
#include "SpellLearn.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "SpellLearn_ChaserPointer.h"
|
||||
#include "SpellLearn_LookPointer.h"
|
||||
#include "SpellLearn_Booster.h"
|
||||
#include "SpellLearn_Slot.h"
|
||||
#include "SpellLearn_Overlay.h"
|
||||
|
||||
#include "Interaction_Key.h"
|
||||
|
||||
@@ -143,6 +148,7 @@
|
||||
#include "DecendoSide.h"
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "TransformationSide.h"
|
||||
|
||||
#include "TrailObject.h"
|
||||
#include "Instance_Model.h"
|
||||
@@ -351,7 +357,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isLoad_Background = false;
|
||||
@@ -1874,7 +1880,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1982,6 +1988,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTransformationSide>(NEXT_LEVEL, CTransformationSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTrollSwing>(NEXT_LEVEL, CTrollSwing::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -2118,6 +2128,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return S_OK;
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Spline", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region UI
|
||||
@@ -2399,6 +2419,31 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_ChaserPointer*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_ChaserPointer>(g_iStaticLevel, CSpellLearn_ChaserPointer::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_LookPointer*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_LookPointer>(g_iStaticLevel, CSpellLearn_LookPointer::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_Booster*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_Booster>(g_iStaticLevel, CSpellLearn_Booster::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_Slot*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_Slot>(g_iStaticLevel, CSpellLearn_Slot::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_SpellLearn_SpellLearn_Overlay*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpellLearn_Overlay>(g_iStaticLevel, CSpellLearn_Overlay::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Interaction_Key*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInteraction_Key>(g_iStaticLevel, CInteraction_Key::Create(m_pDevice, m_pContext))))
|
||||
|
||||
@@ -316,7 +316,7 @@ CGameObject* CMapElement_Chest::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CMapElement_Chest::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
|
||||
@@ -299,7 +299,7 @@ CGameObject* CMapElement_Door::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CMapElement_Door::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
|
||||
@@ -483,7 +483,7 @@ CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CMapElement_Interactable::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
|
||||
@@ -149,12 +149,12 @@ void CMapElement_Static::ReadyForPhysX()
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix()))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
@@ -98,7 +98,7 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
_bool bSkip = { false };
|
||||
for (_int i = 0; i < 4; ++i) {
|
||||
if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
bSkip = true;
|
||||
@@ -106,7 +106,7 @@ void CMapObject_Collision::ReadyForPhysX()
|
||||
}
|
||||
}
|
||||
if (false == bSkip) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix()))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
@@ -226,6 +226,7 @@ void CMapObject_Collision::Free()
|
||||
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
|
||||
SAFE_RELEASE(m_RigidBodies[i][j]);
|
||||
}
|
||||
m_RigidBodies[i].clear();
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
m_ModelPrototypeTags.clear();
|
||||
|
||||
@@ -156,11 +156,12 @@ void CMapObject_Render::ReadyForPhysX()
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,238 @@
|
||||
#include "pch.h"
|
||||
#include "NPC_EleazarFig.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
|
||||
CNPC_EleazarFig::CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CNPC_EleazarFig::CNPC_EleazarFig(const CNPC_EleazarFig& Prototype)
|
||||
: CUnit(Prototype),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
}
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNPC_EleazarFig::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GerboldOlivander_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CNPC_EleazarFig* CNPC_EleazarFig::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNPC_EleazarFig");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CNPC_EleazarFig::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNPC_EleazarFig");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CNPC_EleazarFig::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -40,8 +40,7 @@ void CNPC_Ollivander::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
|
||||
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
@@ -110,6 +109,7 @@ HRESULT CNPC_Ollivander::Render_Shadow(SHADOW eType)
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -194,7 +194,7 @@ void CPhysXEffectHitBox::Free()
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -483,7 +483,7 @@ HRESULT CPlayer::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
@@ -563,6 +563,11 @@ void CPlayer::ReLockOnTarget()
|
||||
m_LockOnInfo.pUnit = nullptr;
|
||||
}
|
||||
}
|
||||
if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
if (true == m_LockOnInfo.pInteractive->isDead()) {
|
||||
m_LockOnInfo.pInteractive = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
//m_pLockOnMonster->Get_State
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ HRESULT CPlayer::InputAction()
|
||||
|| m_pGameInstance->Key_Down(DIK_E)
|
||||
|| m_pGameInstance->Key_Down(DIK_R)
|
||||
|| m_pGameInstance->Key_Down(DIK_Q)
|
||||
|| m_pGameInstance->Mouse_Up(DIM_LBUTTON)
|
||||
|| m_pGameInstance->Mouse_Down(DIM_LBUTTON)
|
||||
|| m_pGameInstance->Key_Down(DIK_LSHIFT)
|
||||
|| m_pGameInstance->Key_Down(DIK_C)
|
||||
|| m_pGameInstance->Key_Down(DIK_V)
|
||||
@@ -187,18 +187,21 @@ void CPlayer::Behavior_IdleEnter() {
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE_AIM];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
else
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true,1.f,false);
|
||||
}
|
||||
else
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
}
|
||||
|
||||
m_bSprintToggle = false;
|
||||
m_bWalkToggle = false;
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
@@ -223,7 +226,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
|
||||
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
@@ -331,7 +334,6 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -443,7 +445,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
else if (m_pGameInstance->Key_Down(DIK_Q)) {
|
||||
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||
}
|
||||
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
|
||||
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
@@ -1020,7 +1022,7 @@ void CPlayer::Behavior_CombatEnter()
|
||||
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
|
||||
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
|
||||
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
|
||||
return;
|
||||
}
|
||||
@@ -1049,6 +1051,9 @@ void CPlayer::Behavior_CombatEnter()
|
||||
m_pGrapInteractive->Set_KinematicFlag(true);
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_bLookAt = true; },
|
||||
@@ -1232,7 +1237,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
_uint iCurr = m_pModelCom->Get_AnimIndex();
|
||||
_uint iStart = m_Animation[STATEANIM::LIGHT_ATTACK].first;
|
||||
@@ -1261,7 +1266,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
},
|
||||
0.01f);
|
||||
|
||||
if (fRatio >= 0.1f)
|
||||
if (fRatio >= 0.08f)
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
@@ -1292,9 +1297,17 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
|
||||
{
|
||||
if (fRatio >= 0.3f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
m_bLookAt = false;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1303,11 +1316,10 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
if (SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
m_bLookAt = false;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
@@ -1318,6 +1330,7 @@ void CPlayer::Behavior_LightAttackExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK);
|
||||
m_pModelCom->Set_BlendDuration(0.3f);
|
||||
m_bLookAt = false;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_SpellEnter()
|
||||
@@ -1343,25 +1356,17 @@ void CPlayer::Behavior_SpellEnter()
|
||||
_vector vCross = XMVector3Cross(vLook, vCameraLook);
|
||||
_float Cross = XMVectorGetY(vCross);
|
||||
|
||||
if (Degree <= 30.f)
|
||||
if (Degree <= 45.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
fRatio = 0.2f;
|
||||
}
|
||||
else if (Degree <= 80.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
fRatio = 0.2f;
|
||||
}
|
||||
else if (Degree <= 135.f)
|
||||
{
|
||||
if (Cross < 0.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_90_L];
|
||||
fRatio = 0.17f;
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
@@ -1369,12 +1374,13 @@ void CPlayer::Behavior_SpellEnter()
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
fRatio = 0.2f;
|
||||
}
|
||||
fRatio = 0.15f;
|
||||
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_180_R];
|
||||
fRatio = 0.18f;
|
||||
fRatio = 0.23f;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -1415,7 +1421,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
|
||||
if (iCurr >= iStart && iCurr < iStart + 3)
|
||||
{
|
||||
if (fRatio >= 0.2f)
|
||||
if (fRatio >= 0.15f)
|
||||
{
|
||||
_uint iNext = iCurr + 1;
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
@@ -1435,7 +1441,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
fAttackRatio = 0.17f;
|
||||
}
|
||||
else if (iNext - iStart == 3) {
|
||||
fAttackRatio = 0.14f;
|
||||
fAttackRatio = 0.145f;
|
||||
}
|
||||
else {
|
||||
fAttackRatio = 0.2f;
|
||||
@@ -1481,14 +1487,24 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
break;
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
|
||||
{
|
||||
if (fRatio >= 0.3f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (SUCCEEDED(InputMove())) {
|
||||
if (fRatio >= 0.3f) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
@@ -1598,61 +1614,67 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
if (m_LockOnInfo.pUnit)
|
||||
{
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
_vector vTargetLook = m_LockOnInfo.pUnit->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
_vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
|
||||
|
||||
vLook = XMVector3Normalize(vLook);
|
||||
vTargetLook = XMVector3Normalize(vTargetLook);
|
||||
vCameraLook = XMVector3Normalize(vCameraLook);
|
||||
|
||||
_float fDot = XMVectorGetX(XMVector3Dot(vLook, vTargetLook));
|
||||
_float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
|
||||
fDot = clamp(fDot, -1.0f, 1.0f);
|
||||
|
||||
_float fAngleRad = acosf(fDot);
|
||||
_float Degree = XMConvertToDegrees(fAngleRad);
|
||||
_vector vCross = XMVector3Cross(vLook, vTargetLook);
|
||||
_vector vCross = XMVector3Cross(vLook, vCameraLook);
|
||||
_float Cross = XMVectorGetY(vCross);
|
||||
|
||||
if (Degree <= 45.f)
|
||||
if (Degree <= 60.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
}
|
||||
else if (Degree <= 120.f)
|
||||
else if (Degree <= 135.f)
|
||||
{
|
||||
if (Cross > 0.f)
|
||||
if (Cross < 0.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY2];
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY3];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
|
||||
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
0.01f);
|
||||
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
|
||||
0.2f);
|
||||
|
||||
Start_CameraShake(0.3f, 2.f);
|
||||
m_pGameInstance->SlowMotion(0.8f, 0.3f);
|
||||
m_bShield = false;
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
Start_CameraShake(0.3f, 2.f);
|
||||
m_pGameInstance->SlowMotion(0.8f, 0.3f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
|
||||
0.2f);
|
||||
|
||||
m_bShield = false;
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
if (SUCCEEDED(InputMove()))
|
||||
@@ -2429,6 +2451,11 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); },
|
||||
fRatio);
|
||||
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
|
||||
@@ -2939,19 +2966,19 @@ void CPlayer::Set_Anim()
|
||||
|
||||
m_Animation[STATEANIM::SPELL_FAIL] = { 906,false };
|
||||
|
||||
m_Animation[STATEANIM::PARRY_180] = { 947,false };
|
||||
m_Animation[STATEANIM::PARRY_180] = { 953,false };// 946 953
|
||||
m_Animation[STATEANIM::PARRY2] = { 913,false };
|
||||
m_Animation[STATEANIM::PARRY3] = { 915,false };
|
||||
m_Animation[STATEANIM::PARRY4] = { 921,false };
|
||||
m_Animation[STATEANIM::PARRY4] = { 921,false }; // 922
|
||||
|
||||
|
||||
m_Animation[STATEANIM::HIT_L] = { 1201,false };
|
||||
m_Animation[STATEANIM::HIT_R] = { 1202,false };
|
||||
m_Animation[STATEANIM::FLINCH_BWD] = { 1061,false };
|
||||
m_Animation[STATEANIM::FLINCH_FWD] = { 1062,false };
|
||||
m_Animation[STATEANIM::FLINCH_LEFT] = { 1063,false };
|
||||
m_Animation[STATEANIM::FLINCH_RIGHT] = { 1064,false };
|
||||
m_Animation[STATEANIM::KNOCKBACK] = { 1079,false };
|
||||
m_Animation[STATEANIM::HIT_L] = { 1209,false };
|
||||
m_Animation[STATEANIM::HIT_R] = { 1210,false };
|
||||
m_Animation[STATEANIM::FLINCH_BWD] = { 1069,false };
|
||||
m_Animation[STATEANIM::FLINCH_FWD] = { 1070,false };
|
||||
m_Animation[STATEANIM::FLINCH_LEFT] = { 1071,false };
|
||||
m_Animation[STATEANIM::FLINCH_RIGHT] = { 1072,false };
|
||||
m_Animation[STATEANIM::KNOCKBACK] = { 1087,false };
|
||||
|
||||
m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
|
||||
m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
|
||||
@@ -2983,6 +3010,12 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::JOG_AIM_STOP_R] = { 456,false };
|
||||
m_Animation[STATEANIM::JOG_AIM_STOP_BWD] = { 444,false };
|
||||
|
||||
m_Animation[STATEANIM::SPELL_LEARNING_FAIL] = { 1285,false };
|
||||
m_Animation[STATEANIM::SPELL_LEARNING_LOOP] = { 1286,true };
|
||||
m_Animation[STATEANIM::SPELL_LEARNING_START] = { 1287,false };
|
||||
m_Animation[STATEANIM::SPELL_LEARNING_SUCCESS] = { 1288,false };
|
||||
m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE] = { 1289,false };
|
||||
|
||||
//루모스 스탑 912
|
||||
|
||||
//713 왼쪽 슬로우
|
||||
@@ -3016,6 +3049,7 @@ void CPlayer::Set_Anim()
|
||||
//568 566 564 슬라이드 스탑/스타트/루프
|
||||
|
||||
//874
|
||||
//1277 1281
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -141,6 +141,11 @@ void CRanrok::Update(_float fTimeDelta)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_vEtherealTimer.x += fTimeDelta * 0.2f;
|
||||
if (m_vEtherealTimer.x > m_vEtherealTimer.y) {
|
||||
m_vEtherealTimer.x -= m_vEtherealTimer.y;
|
||||
}
|
||||
}
|
||||
|
||||
void CRanrok::Late_Update(_float fTimeDelta)
|
||||
@@ -161,89 +166,27 @@ void CRanrok::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render()
|
||||
{
|
||||
if (!m_bVisible)
|
||||
if (!m_bVisible){
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
|
||||
if (true == m_bDrawOutLine) {
|
||||
iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
|
||||
RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
|
||||
HRESULT hr = E_FAIL;
|
||||
if (RENDER::NONBLEND == eCurrentPass) {
|
||||
hr = Render_Nonblend();
|
||||
}
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
return E_FAIL;
|
||||
else if (RENDER::BLEND == eCurrentPass) {
|
||||
hr = Render_Blend();
|
||||
}
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bDrawOutLine) {
|
||||
Render_OutLine();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
_bool bDisolve = false;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
_bool bDisolve = false;
|
||||
_float zero = 0.f;
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
return hr;
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render_Shadow(SHADOW eType)
|
||||
@@ -378,6 +321,12 @@ HRESULT CRanrok::Ready_Components()
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
__super::Ready_Components(&Desc);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrok_Model");
|
||||
|
||||
@@ -416,7 +365,7 @@ HRESULT CRanrok::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_RANROK"), (CComponent**)&m_pStat))) {
|
||||
@@ -457,6 +406,105 @@ HRESULT CRanrok::Bind_ShaderResources()
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CRanrok::Render_Nonblend()
|
||||
{
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices( "g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size() )))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bDrawOutLine) {
|
||||
Render_OutLine();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
_bool bDisolve = false;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
_bool bDisolve = false;
|
||||
_float zero = 0.f;
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CRanrok::Render_Blend()
|
||||
{
|
||||
_float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok::MoveTo(_float fTimeDelta)
|
||||
{
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::TUCKED))
|
||||
@@ -466,58 +514,75 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
if (m_iCurrentFlow >= m_Points.size())
|
||||
{
|
||||
m_iCurrentFlow = 0;
|
||||
}
|
||||
|
||||
_vector Target;
|
||||
if (m_iCurrentFlow == 1)
|
||||
{
|
||||
_float fRandom = m_pGameInstance->Real_Random_Float(-20.f, 20.f);
|
||||
Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
|
||||
Target += XMVectorSet(0.f, fRandom, 0.f, 0.f);
|
||||
}
|
||||
else
|
||||
{
|
||||
Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
|
||||
}
|
||||
|
||||
_vector Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
|
||||
_vector CurPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
GUI::Text("Dist %.2f", fDist);
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
if (fDist < 10.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
m_bTucked = true;
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
}
|
||||
|
||||
if (fDist < 10.f)
|
||||
m_iCurrentPoint = (m_iCurrentPoint + 1) % m_Points[m_iCurrentFlow].size();
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (fDist < 10.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
m_bTucked = true;
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
}
|
||||
|
||||
m_iCurrentPoint = (m_iCurrentPoint + 1) % m_Points[m_iCurrentFlow].size();
|
||||
return;
|
||||
}
|
||||
|
||||
/*if (m_iCurrentFlow == 1)
|
||||
{
|
||||
AroundPoint(fTimeDelta);
|
||||
return;
|
||||
}*/
|
||||
//_float4x4 CurMat, TargetMat, LerpMat;
|
||||
|
||||
_vector vDir = XMVector3Normalize(toTarget);
|
||||
//XMStoreFloat4x4(&CurMat,XMMatrixTranslationFromVector(CurPos));
|
||||
|
||||
m_vMoveDir = XMVectorLerp(m_vMoveDir, vDir,fTimeDelta * 4.f);
|
||||
//XMStoreFloat4x4(&TargetMat,XMMatrixTranslationFromVector(Target));
|
||||
|
||||
m_vMoveDir = XMVector3Normalize(m_vMoveDir);
|
||||
//_float fLerpRatio = fTimeDelta * 2.f;
|
||||
//fLerpRatio = min(fLerpRatio, 1.f);
|
||||
|
||||
m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + m_vMoveDir,fTimeDelta,4.f);
|
||||
//CMyTools::MatrixLerp(&CurMat, &TargetMat, LerpMat, fLerpRatio);
|
||||
|
||||
//_vector vNextPos = XMVectorSet(LerpMat._41, LerpMat._42, LerpMat._43, 1.f);
|
||||
|
||||
|
||||
//m_pTransformCom->Set_WorldMatrix(LerpMat);
|
||||
|
||||
//m_pCharacter_Controller->Set_Position(vNextPos);
|
||||
|
||||
static _vector vMoveDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
|
||||
_vector vDir = XMVector3Normalize(Target - CurPos);
|
||||
|
||||
vMoveDir = XMVectorLerp(vMoveDir, vDir, fTimeDelta * 2.f);
|
||||
vMoveDir = XMVector3Normalize(vMoveDir);
|
||||
|
||||
m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + vMoveDir, fTimeDelta, 1.f);
|
||||
|
||||
_float Speed = 35.f;
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
CurPos + vMoveDir * Speed * fTimeDelta
|
||||
);
|
||||
|
||||
_float speed = 50.f;
|
||||
m_pCharacter_Controller->Set_Position(CurPos + m_vMoveDir * speed * fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CRanrok::AroundPoint(_float fTimeDelta)
|
||||
{
|
||||
m_fAroundTime += fTimeDelta;
|
||||
@@ -655,6 +720,8 @@ void CRanrok::Describe_Entity()
|
||||
GUI::Text("Degree %.2f", m_fDegree);
|
||||
GUI::Text("CurrFlow %d", m_iCurrentFlow);
|
||||
|
||||
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
@@ -663,15 +730,50 @@ void CRanrok::Describe_Entity()
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3(&Pos), 1.f));
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Copy"))
|
||||
{
|
||||
char buf[64];
|
||||
sprintf_s(buf, "%.3ff, %.3ff, %.3ff", Pos.x, Pos.y, Pos.z);
|
||||
ImGui::SetClipboardText(buf);
|
||||
GUI::SetClipboardText(buf);
|
||||
m_Points[0].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Clear"))
|
||||
{
|
||||
m_Points[0].clear();
|
||||
}
|
||||
|
||||
GUI::Separator();
|
||||
GUI::Text("Points[0] Count : %d", (_int)m_Points[0].size());
|
||||
|
||||
for (_uint i = 0; i < m_Points[0].size();)
|
||||
{
|
||||
_vector v = m_Points[0][i];
|
||||
XMFLOAT3 p;
|
||||
XMStoreFloat3(&p, v);
|
||||
|
||||
GUI::PushID(i);
|
||||
|
||||
GUI::Text("[%d] (%.2f, %.2f, %.2f)", i, p.x, p.y, p.z);
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("X"))
|
||||
{
|
||||
m_Points[0].erase(m_Points[0].begin() + i);
|
||||
GUI::PopID();
|
||||
continue;
|
||||
}
|
||||
|
||||
GUI::PopID();
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
if (GUI::Button("MovePos"))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z,1.f));
|
||||
|
||||
@@ -616,7 +616,13 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::TUCKED);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUCKED];
|
||||
if (m_iCurrentFlow == 0)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUCKED];
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
@@ -627,12 +633,11 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
|
||||
MoveTo(fTimeDelta);
|
||||
|
||||
if (m_bTucked&& iCurrAnimIndex == m_Animation[STATEANIM::TUCKED].first)
|
||||
if (m_bTucked && iCurrAnimIndex !=m_Animation[STATEANIM::FLY_TO_HOVER].first)
|
||||
{
|
||||
m_iCurrentFlow++;
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex == m_Animation[STATEANIM::FLY_TO_HOVER].first)
|
||||
@@ -1011,7 +1016,7 @@ void CRanrok::Set_Anim()
|
||||
|
||||
m_Animation[STATEANIM::PULSE] = { 33,false };
|
||||
|
||||
m_Animation[STATEANIM::TUCKED] = { 21,true };
|
||||
m_Animation[STATEANIM::TUCKED] = { 21,true }; // 21
|
||||
m_Animation[STATEANIM::FLY_TO_HOVER] = { 22,false };
|
||||
|
||||
m_Animation[STATEANIM::LAND] = { 32,false };
|
||||
@@ -1030,6 +1035,8 @@ void CRanrok::Set_Anim()
|
||||
|
||||
m_Animation[STATEANIM::DEAD] = { 34,false };
|
||||
|
||||
m_Animation[STATEANIM::FLY] = { 18,true };
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn.h"
|
||||
#include "GameInstance.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "SpellLearn_ChaserPointer.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn::CSpellLearn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -39,8 +41,12 @@ HRESULT CSpellLearn::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_iTrailIndex = 0;
|
||||
m_fSortZ = 0.02f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("OverrlayClear"), [this](void* p) {this->Set_FadeOut(); });
|
||||
Change_Image(0);
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
@@ -87,7 +93,44 @@ void CSpellLearn::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
if (m_bReset == true)
|
||||
{
|
||||
m_Trail.clear();
|
||||
m_ChaseTrail.clear();
|
||||
m_bReset = false;
|
||||
}
|
||||
|
||||
if (m_bHover == false)
|
||||
{
|
||||
fill(m_Trail.begin(), m_Trail.end(), _float2(-9999.f, -9999.f));
|
||||
fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
|
||||
m_bReset = true;
|
||||
}
|
||||
|
||||
if (m_pPointer != nullptr)
|
||||
{
|
||||
if (m_pPointer->Get_MoveStart() == true)
|
||||
{
|
||||
m_bHover = true;
|
||||
m_vPointerPosition = m_pPointer->Get_Position();
|
||||
m_vPointerScale = m_pPointer->Get_Current_Size();
|
||||
|
||||
m_vChasePosition = m_pChasePointer->Get_Position();
|
||||
m_vChaseScale = m_pChasePointer->Get_Current_Size();
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
if (m_fTime >= 0.3f)
|
||||
{
|
||||
m_fTime = 0.f;
|
||||
m_Trail.push_back(m_vPointerPosition);
|
||||
m_iTrailIndex++;
|
||||
m_ChaseTrail.push_back(m_vChasePosition);
|
||||
m_iChaseiTrailIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -108,7 +151,7 @@ HRESULT CSpellLearn::Render()
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::COLOR)))) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNCOLOR)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
@@ -168,6 +211,34 @@ HRESULT CSpellLearn::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vPointerScale, 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_fPosition", &m_fCurrent_Position, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_Trail", m_Trail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_Count", &m_iTrailIndex, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseTrail", m_ChaseTrail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseCount", &m_iChaseiTrailIndex, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -195,9 +266,14 @@ HRESULT CSpellLearn::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CSpellLearn::Change_Image(_int SpellID)
|
||||
{
|
||||
m_bHover = false;
|
||||
m_ChaseTrail.push_back(_float2(-9999.f, -9999.f));
|
||||
m_Trail.push_back(_float2(-9999.f, -9999.f));
|
||||
m_iTrailIndex = 0;
|
||||
m_iChaseiTrailIndex = 0;
|
||||
_wstring pName = TEXT("Prototype_Texture_");
|
||||
_wstring pImageName = pName + m_pInfoInstance->Get_SpellLearn(SpellID).pImageName;
|
||||
|
||||
m_MoveLine = m_pInfoInstance->Get_SpellLearn(SpellID).Lines;
|
||||
if (m_pDiffuse_TextureCom)
|
||||
{
|
||||
Remove_Component<CTexture>();
|
||||
@@ -206,9 +282,21 @@ HRESULT CSpellLearn::Change_Image(_int SpellID)
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pImageName, reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
Set_FadeIn();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer, CSpellLearn_ChaserPointer* Chase)
|
||||
{
|
||||
m_pPointer = Pointer;
|
||||
m_pChasePointer = Chase;
|
||||
}
|
||||
|
||||
void CSpellLearn::Clear()
|
||||
{
|
||||
fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
|
||||
}
|
||||
|
||||
CSpellLearn* CSpellLearn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn* pInstance = new CSpellLearn(pDevice, pContext);
|
||||
|
||||
@@ -0,0 +1,321 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_Booster.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Booster::CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_Booster::CSpellLearn_Booster(const CSpellLearn_Booster& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 476.f;
|
||||
Desc.fY = -253.f;
|
||||
Desc.fSizeX = 64.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fAngle = XMConvertToRadians(0);
|
||||
m_bHover = true;
|
||||
m_fImagePosi = _float4(16.f, 16.f, 32.f, 32.f);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("BoosterOn"), [this](void* p) {this->BoosterOn(p); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("BoosterOff"), [this](void* p) {this->BoosterOff(p); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::BoosterOn(void* pArg)
|
||||
{
|
||||
Booster* State = static_cast<Booster*>(pArg);
|
||||
if (State->iBoosterIndex != m_iIndex)
|
||||
return;
|
||||
|
||||
m_bBoosterOn = true;
|
||||
m_bBoosterOff = false;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::BoosterOff(void* pArg)
|
||||
{
|
||||
Booster* State = static_cast<Booster*>(pArg);
|
||||
|
||||
if (m_bBoosterOn == true)
|
||||
return;
|
||||
|
||||
if (State->iBoosterIndex != m_iIndex)
|
||||
return;
|
||||
|
||||
m_bBoosterOff = true;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("ChaseBooster"));
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Set_Index(_int iIndex)
|
||||
{
|
||||
m_iIndex = iIndex;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Reset()
|
||||
{
|
||||
m_bBoosterOn = false;
|
||||
m_bBoosterOff = false;
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Clear()
|
||||
{
|
||||
Set_FadeOut();
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNBOOSTER)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_Booster::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_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_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOn", &m_bBoosterOn, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOff", &m_bBoosterOff, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Booster::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_SU_ButtonCalloutRing"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Mouse_LeftClick"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstFail"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_Speck_HighCoverage_D"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CSpellLearn_Booster* CSpellLearn_Booster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_Booster");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_Booster::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_Booster");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_Booster::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_Booster::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,294 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_ChaserPointer.h"
|
||||
#include "GameInstance.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 476.f;
|
||||
Desc.fY = -253.f;
|
||||
Desc.fSizeX = 32.f;
|
||||
Desc.fSizeY = 32.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 = 5.f;
|
||||
m_fMoveSpeed = 165.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("ChaseBooster"), [this](void* p) {this->SpeedUp(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
Set_SpellLearn(0);
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bMoveStart == true)
|
||||
{
|
||||
Line(fTimeDelta);
|
||||
}
|
||||
|
||||
if (m_fMoveSpeed >= 165.f)
|
||||
{
|
||||
m_fMoveSpeed -= fTimeDelta;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_ChaserPointer::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Set_SpellLearn(_int Index)
|
||||
{
|
||||
m_fAlpha = 0.f;
|
||||
m_bHover = false;
|
||||
m_bMoveStart = false;
|
||||
m_fTime = 0.f;
|
||||
m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
|
||||
m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
|
||||
m_iCurrentLine = 0;
|
||||
m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
|
||||
m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
|
||||
m_fMoveSpeed = 165.f;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Set_Move()
|
||||
{
|
||||
m_bHover = true;
|
||||
m_bMoveStart = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Line(_float fTime)
|
||||
{
|
||||
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
|
||||
|
||||
if (Start_Lerp(fTime) == true)
|
||||
{
|
||||
if (m_iCurrentLine < m_iLineIndex - 1)
|
||||
{
|
||||
++m_iCurrentLine;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::SpeedUp()
|
||||
{
|
||||
m_fMoveSpeed = 190.f;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Clear()
|
||||
{
|
||||
m_fMoveSpeed = 0.f;
|
||||
Set_FadeOut();
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_ChaserPointer::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 CSpellLearn_ChaserPointer::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_SpellMinigame_SpeedBurstDropBack"), 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;
|
||||
}
|
||||
|
||||
CSpellLearn_ChaserPointer* CSpellLearn_ChaserPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_ChaserPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_ChaserPointer::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_ChaserPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_ChaserPointer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_ChaserPointer::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -50,12 +50,34 @@ HRESULT CSpellLearn_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
// 속성 읽기
|
||||
Info.pSpellName = CMyTools::ToWstring(pName->Attribute("SpellName"));
|
||||
Info.pImageName = CMyTools::ToWstring(pName->Attribute("ImageName"));
|
||||
pName->QueryIntAttribute("SpellID", &Info.iSpellID);
|
||||
pName->QueryIntAttribute("SpellType", &Info.iSpellType);
|
||||
pName->QueryFloatAttribute("Size", &Info.fSpellSize);
|
||||
|
||||
_float fX{}, fY{};
|
||||
pName->QueryFloatAttribute("x", &fX);
|
||||
pName->QueryFloatAttribute("y", &fY);
|
||||
Info.fStartPosition = _float2(fX, fY);
|
||||
_float endx{}, endy{};
|
||||
pName->QueryFloatAttribute("endx", &endx);
|
||||
pName->QueryFloatAttribute("endy", &endy);
|
||||
Info.fEndPosition = _float2(endx, endy);
|
||||
|
||||
tinyxml2::XMLElement* pBooster = pName->FirstChildElement("Booster");
|
||||
while (pBooster)
|
||||
{
|
||||
tinyxml2::XMLElement* pPos = pBooster->FirstChildElement("Pos");
|
||||
if (pPos)
|
||||
{
|
||||
_float px{}, py{};
|
||||
pPos->QueryFloatAttribute("x", &px);
|
||||
pPos->QueryFloatAttribute("y", &py);
|
||||
Info.Booster.push_back(XMVectorSet(px, py, 0.f, 1.f));
|
||||
}
|
||||
|
||||
// 다음 Position으로 이동
|
||||
pBooster = pBooster->NextSiblingElement("Booster");
|
||||
}
|
||||
|
||||
// Position 요소 반복
|
||||
tinyxml2::XMLElement* pPosition = pName->FirstChildElement("Position");
|
||||
|
||||
@@ -0,0 +1,255 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_LookPointer.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CSpellLearn_LookPointer::CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_LookPointer::CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 100.f;
|
||||
Desc.fY = 100.f;
|
||||
Desc.fSizeX = 80.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) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fMoveSpeed = 130.f;
|
||||
Set_SpellLearn(0);
|
||||
m_fAngle = XMConvertToRadians(0);
|
||||
Visible(true);
|
||||
m_localX = 0.f;
|
||||
m_localY = 20.f;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fAngle = XMConvertToRadians(static_cast<CUIObject*>(m_pOwner)->Get_Angle());
|
||||
|
||||
float cosA = cos(m_fAngle);
|
||||
float sinA = sin(m_fAngle);
|
||||
|
||||
float rotatedX = m_localX * cosA - m_localY * sinA;
|
||||
float rotatedY = m_localX * sinA + m_localY * cosA;
|
||||
|
||||
MoveX(rotatedX);
|
||||
MoveY(rotatedY);
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_LookPointer::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::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;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_LookPointer::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_SU_CursorArrow"), 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 CSpellLearn_LookPointer::Set_SpellLearn(_int Index)
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
m_iLineIndex = _int(static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).Lines.size());
|
||||
m_MoveLine = static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).Lines;
|
||||
m_iCurrentLine = 0;
|
||||
m_fX = static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
|
||||
m_fY = static_cast<CUIObject*>(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
|
||||
}
|
||||
|
||||
CSpellLearn_LookPointer* CSpellLearn_LookPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_LookPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_LookPointer::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_LookPointer");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_LookPointer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_LookPointer::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "GameInstance.h"
|
||||
#include "SpellLearn_LookPointer.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_MovePointer::CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -38,41 +39,69 @@ HRESULT CSpellLearn_MovePointer::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fTimeMult = 10.f;
|
||||
m_fAlpha = 0.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fMoveSpeed = 15.f;
|
||||
m_fMoveSpeed = 105.f;
|
||||
Set_SpellLearn(0);
|
||||
m_fAngle = XMConvertToRadians(0);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Booster"), [this](void* p) {this->Set_Booster(p); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Set_SpellLearn(_int Index)
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
m_bHover = true;
|
||||
m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
|
||||
m_Boosters = m_pInfoInstance->Get_SpellLearn(Index).Booster;
|
||||
m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
|
||||
m_iCurrentLine = 0;
|
||||
m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
|
||||
m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
|
||||
m_iCurrentLine = 0;
|
||||
m_Booster.iBoosterIndex = -1;
|
||||
m_Booster.bBoosterOn = false;
|
||||
Set_FadeIn();
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Line(_float fTime)
|
||||
_int CSpellLearn_MovePointer::Get_SpellTrail()
|
||||
{
|
||||
return m_iCurrentLine;
|
||||
}
|
||||
|
||||
_bool CSpellLearn_MovePointer::Get_MoveStart()
|
||||
{
|
||||
return m_bMoveStart;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
|
||||
{
|
||||
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
|
||||
|
||||
if (Start_Lerp(m_fMoveSpeed * fTime) == true)
|
||||
if (Start_Lerp_Speed(fTime, fMouse) == true)
|
||||
{
|
||||
if (m_iCurrentLine < m_iLineIndex - 1)
|
||||
{
|
||||
++m_iCurrentLine;
|
||||
m_fPerPosition = _float2(m_MoveLine[m_iCurrentLine - 1].m128_f32[0], m_MoveLine[m_iCurrentLine - 1].m128_f32[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bMoveStart = false;
|
||||
Set_FadeOut();
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("LearnClear"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Set_Booster(void* pArg)
|
||||
{
|
||||
Booster* Info = static_cast<Booster*>(pArg);
|
||||
m_Booster.iBoosterIndex = Info->iBoosterIndex;
|
||||
m_Booster.bBoosterOn = Info->bBoosterOn;
|
||||
m_bBooster = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
|
||||
@@ -116,28 +145,45 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
|
||||
|
||||
_float2 fFinalMouse{};
|
||||
fFinalMouse.x = fMouse.x - m_fX;
|
||||
fFinalMouse.y = fMouse.y - m_fY;
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
{
|
||||
m_bMoveStart = true;
|
||||
m_bBooster = false;
|
||||
m_fMoveSpeed = 105.f;
|
||||
}
|
||||
|
||||
if (m_bMoveStart == true)
|
||||
{
|
||||
Line(fTimeDelta);
|
||||
Line(fTimeDelta, fMouse);
|
||||
}
|
||||
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse;
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
|
||||
m_fAngle = atan2(-fFinalMouse.x, fFinalMouse.y);
|
||||
|
||||
fMouse.x = fMouse.x - m_fX;
|
||||
fMouse.y = fMouse.y - m_fY;
|
||||
if (m_bBooster == true)
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
m_bBooster = false;
|
||||
m_fMoveSpeed = 160.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
m_fAngle = atan2(-fMouse.x, fMouse.y);
|
||||
if (m_fMoveSpeed >= 105.f)
|
||||
{
|
||||
m_fMoveSpeed -= fTimeDelta * m_fTimeMult;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -150,7 +196,8 @@ void CSpellLearn_MovePointer::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
if (m_bHover == true)
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
@@ -239,6 +286,10 @@ HRESULT CSpellLearn_MovePointer::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_LookPointer>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_LookPointer**>(&m_pSpellLeam_LookPointer))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,391 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_Overlay.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Overlay::CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_Overlay::CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = -30.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.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_iImageFrameX = 8;
|
||||
m_iImageFrameY = 8;
|
||||
m_fFrame = 0.2f;
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAngle = XMConvertToRadians(-135.f);
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_vUVScale.x = 1.f;
|
||||
m_vUVScale.y = 1.f;
|
||||
m_fCoolTime = 5.f;
|
||||
m_fSortZ = 0.01f;
|
||||
m_fMoveSpeed = 10.f;
|
||||
m_fLerpX = 600.f;
|
||||
m_fLerpY = 100.f;
|
||||
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
Compute_UI(5);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Set_SpellLearn(_int Index)
|
||||
{
|
||||
Compute_UI(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
|
||||
m_vUVScale.y = 0.f;
|
||||
m_fTrail = 0.f;
|
||||
m_iSpellType = m_pInfoInstance->Get_SpellLearn(Index).iSpellType;
|
||||
m_fSpellLearn = _float(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
|
||||
MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
|
||||
MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
|
||||
SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
|
||||
m_fSizeUp = false;
|
||||
m_bClear = false;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Set_Count(_int Index)
|
||||
{
|
||||
m_fTrail = _float(Index);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
Update_Trail(fTimeDelta);
|
||||
|
||||
if (m_bClear == true)
|
||||
{
|
||||
SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
if (m_fSizeUp == true)
|
||||
{
|
||||
if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
|
||||
{
|
||||
m_fSizeUp = false;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_Overlay::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_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_fFrame", &m_fFrame, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountX", &m_iImageFrameX, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Overlay::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_ActionItemBack_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Clear()
|
||||
{
|
||||
m_vUVScale.y = 1.2f;
|
||||
m_bClear = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 1792.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 6;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
|
||||
_uint iframeX = SpellID % iCountX;
|
||||
_uint iframeY = SpellID / iCountX;
|
||||
|
||||
_float2 UVStart;
|
||||
UVStart.x = iframeX * iImageX / fImage_Size.x;
|
||||
UVStart.y = iframeY * iImageY / fImage_Size.y;
|
||||
|
||||
_float2 UVEnd;
|
||||
UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
|
||||
UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
|
||||
|
||||
_float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
|
||||
m_vUV = UV;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
|
||||
{
|
||||
m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::SizeUp(_float fSizeX)
|
||||
{
|
||||
m_fSizeX += fSizeX;
|
||||
m_fSizeY += fSizeX;
|
||||
|
||||
if (160.f <= m_fSizeX + fSizeX)
|
||||
{
|
||||
m_fSizeX = 160.f;
|
||||
m_fSizeY = 160.f;
|
||||
m_bClear = false;
|
||||
m_fSizeUp = true;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("OverrlayClear"));
|
||||
}
|
||||
}
|
||||
|
||||
CSpellLearn_Overlay* CSpellLearn_Overlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_Overlay");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_Overlay::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Overlay");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_Overlay::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -4,7 +4,11 @@
|
||||
#include "SpellLearn_Name.h"
|
||||
#include "SpellLearn.h"
|
||||
#include "SpellLearn_MovePointer.h"
|
||||
#include "SPellLearn_ChaserPointer.h"
|
||||
#include "SpellLearn_Data.h"
|
||||
#include "SpellLearn_Booster.h"
|
||||
#include "SpellLearn_Slot.h"
|
||||
#include "SpellLearn_Overlay.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Panel::CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -47,11 +51,45 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.05f;
|
||||
m_fDelayTime = 1.f;
|
||||
static_cast<CSpellLearn*>(m_pSpellLearn)->Set_Pointer(
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer),
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer));
|
||||
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Move(m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
|
||||
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
|
||||
}
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
m_PointerStates.push_back(m_State);
|
||||
m_ChaseStates.push_back(m_State);
|
||||
}
|
||||
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_SpellLearn(0);
|
||||
static_cast<CSpellLearn_Slot*>(m_pSpellLearn_Slot)->Set_SpellLearn(0);
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Panel::Set_Learn(_int Index)
|
||||
{
|
||||
m_fTime = 0.f;
|
||||
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(Index);
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_Name*>(m_pSpellLearn_Name)->Set_Name(Index);
|
||||
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_Slot*>(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Move(
|
||||
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
|
||||
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
|
||||
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Reset();
|
||||
}
|
||||
}
|
||||
|
||||
void CSpellLearn_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
@@ -78,11 +116,90 @@ void CSpellLearn_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
Index++;
|
||||
}
|
||||
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(Index);
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
|
||||
static_cast<CSpellLearn_Name*>(m_pSpellLearn_Name)->Set_Name(Index);
|
||||
Set_Learn(Index);
|
||||
}
|
||||
|
||||
if (static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Get_MoveStart() == true)
|
||||
{
|
||||
m_fTime += fTimeDelta;
|
||||
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
m_PointerStates[i].bPerHit = m_PointerStates[i].bHit;
|
||||
|
||||
_bool bPointer = Chack_Element(static_cast<CUIObject*>(m_pBooster[i])->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Current_Size().x);
|
||||
|
||||
m_PointerStates[i].bHit = bPointer;
|
||||
|
||||
if (m_PointerStates[i].bHit == true && m_PointerStates[i].bPerHit == false)
|
||||
{
|
||||
m_Booster.iBoosterIndex = _int(i);
|
||||
m_Booster.bBoosterOn = true;
|
||||
Function_Callback(TEXT("Booster"), &m_Booster);
|
||||
}
|
||||
|
||||
if (m_PointerStates[i].bHit == false && m_PointerStates[i].bPerHit == true)
|
||||
{
|
||||
m_Booster.iBoosterIndex = _int(i);
|
||||
m_Booster.bBoosterOn = false;
|
||||
Function_Callback(TEXT("Booster"), &m_Booster);
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < m_pBooster.size(); ++i)
|
||||
{
|
||||
m_ChaseStates[i].bPerHit = m_ChaseStates[i].bHit;
|
||||
|
||||
_bool bPointer = Chack_Element(static_cast<CUIObject*>(m_pBooster[i])->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x,
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x);
|
||||
|
||||
m_ChaseStates[i].bHit = bPointer;
|
||||
|
||||
if (m_ChaseStates[i].bHit == true && m_ChaseStates[i].bPerHit == false)
|
||||
{
|
||||
m_Booster.iBoosterIndex = _int(i);
|
||||
m_Booster.bBoosterOn = true;
|
||||
Function_Callback(TEXT("BoosterOff"), &m_Booster);
|
||||
}
|
||||
|
||||
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_Count(
|
||||
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Get_SpellTrail());
|
||||
|
||||
}
|
||||
|
||||
if (m_fTime >= 1.f)
|
||||
{
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_FadeIn();
|
||||
}
|
||||
|
||||
if (m_fTime >= 2.f)
|
||||
{
|
||||
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_Move();
|
||||
|
||||
if (_bool bPointer = Chack_Element(static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Position(),
|
||||
static_cast<CUIObject*>(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
|
||||
static_cast<CUIObject*>(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x) == true)
|
||||
{
|
||||
Set_Learn(Index);
|
||||
|
||||
m_Booster.iBoosterIndex = _int(-1);
|
||||
m_Booster.bBoosterOn = false;
|
||||
Function_Callback(TEXT("Booster"), &m_Booster);
|
||||
for (size_t i = 0; i < m_PointerStates.size(); ++i)
|
||||
{
|
||||
m_PointerStates[i].bPerHit = false;
|
||||
m_PointerStates[i].bHit = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -204,6 +321,36 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_ChaserPointer>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_ChaserPointer**>(&m_pSpellLearn_ChaserPointer))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Slot>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Slot**>(&m_pSpellLearn_Slot))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Overlay**>(&m_pSpellLearn_Overlay))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SpellLearn_Overlay"), m_pSpellLearn_Overlay);
|
||||
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpellLearn_Booster>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpellLearn_Booster**>(&m_pSpellLearn_Booster))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
static_cast<CSpellLearn_Booster*>(m_pSpellLearn_Booster)->Set_Index(i);
|
||||
|
||||
m_pBooster.push_back(m_pSpellLearn_Booster);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,287 @@
|
||||
#include "pch.h"
|
||||
#include "SpellLearn_Slot.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpellLearn_Slot::CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpellLearn_Slot::CSpellLearn_Slot(const CSpellLearn_Slot& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = -30.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.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_fAngle = XMConvertToRadians(135.f);
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fMoveSpeed = 10.f;
|
||||
m_fLerpX = 600.f;
|
||||
m_fLerpY = 100.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bClear == true)
|
||||
{
|
||||
SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
if (m_fSizeUp == true)
|
||||
{
|
||||
if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
|
||||
{
|
||||
m_fSizeUp = false;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CSpellLearn_Slot::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::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_fAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpellLearn_Slot::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_ActionItemGoldleaf_4K"), 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 CSpellLearn_Slot::Set_SpellLearn(_int Index)
|
||||
{
|
||||
MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
|
||||
MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
|
||||
SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
|
||||
m_fSizeUp = false;
|
||||
m_bClear = false;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Clear()
|
||||
{
|
||||
m_bClear = true;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::SizeUp(_float fSizeX)
|
||||
{
|
||||
m_fSizeX += fSizeX;
|
||||
m_fSizeY += fSizeX;
|
||||
|
||||
if (160.f <= m_fSizeX + fSizeX)
|
||||
{
|
||||
m_fSizeX = 160.f;
|
||||
m_fSizeY = 160.f;
|
||||
m_bClear = false;
|
||||
m_fSizeUp = true;
|
||||
}
|
||||
}
|
||||
|
||||
CSpellLearn_Slot* CSpellLearn_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpellLearn_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpellLearn_Slot::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpellLearn_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpellLearn_Slot::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpellLearn_Slot::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -145,7 +145,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
|
||||
_vector vRight = XMVector3Normalize(vDirection);
|
||||
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook));
|
||||
_vector vPos = pWand->Get_WorldPostion();
|
||||
@@ -216,15 +216,13 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
XMStoreFloat4(&vCCTPos , pCCT->Get_Position());
|
||||
|
||||
//PSX::PxTransform pxTransform((_float)vCCTPos.x, (_float)vCCTPos.y + 100.f, (_float)vCCTPos.z);
|
||||
//pCCT->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
//m_pCharacter_Controller->Move(fTimeDelta);
|
||||
|
||||
m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos));
|
||||
|
||||
CollisionDesc.pObject->Set_Visible(false);
|
||||
//m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>()->Get_Actor()->getGlobalPose());
|
||||
|
||||
//pCCT->ConvertToDO(*CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>());
|
||||
|
||||
|
||||
CEffectParts* pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
|
||||
|
||||
@@ -0,0 +1,214 @@
|
||||
#include "pch.h"
|
||||
#include "TransformationSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CTransformationSide::CTransformationSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CTransformationSide::CTransformationSide(const CTransformationSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CTransformationSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/TransformationSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTransformationSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"TransformationSide";
|
||||
|
||||
|
||||
//m_pWandParticle = Get_PartObject<CEffectParts>("Wand_PT");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
//SAFE_ADDREF(m_pWandParticle);
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
m_Events.emplace(0.6f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
//m_pWandParticle->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_isTrailEnd = true;
|
||||
|
||||
XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTransformationSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CTransformationSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
// 파티클생성이 막히면 실행되지 않음
|
||||
//if (m_isParticleEnd == false)
|
||||
// m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
// 트레일이 종료되면 위치를 고정함
|
||||
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
|
||||
m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CTransformationSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTransformationSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
//m_pWandParticle->Set_Visible(true);
|
||||
m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_isTrailEnd = false;
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTransformationSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTransformationSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CTransformationSide* CTransformationSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CTransformationSide* pInstance = new CTransformationSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CTransformationSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CTransformationSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CTransformationSide* pInstance = new CTransformationSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CTransformationSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CTransformationSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CTransformationSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
//Safe_Release(m_pWandParticle);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CTransformationSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CTransformationSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -461,7 +461,7 @@ HRESULT CTroll::Ready_Components()
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
|
||||
|
||||
@@ -29,7 +29,6 @@ class CCamera_Debug final : public CCamera
|
||||
_float m_fMouseSensor = {};
|
||||
_float4x4 m_matInitial = {};
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -19,8 +19,8 @@ namespace Client
|
||||
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
|
||||
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
|
||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||
SPELL_LEARN,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, END };
|
||||
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, END};
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
|
||||
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||
@@ -57,7 +57,7 @@ namespace Client
|
||||
SCREEN_WIND,
|
||||
|
||||
/*사이드*/
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE,
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE,
|
||||
|
||||
/*트롤*/
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace Client
|
||||
typedef struct tagLockOnInfo {
|
||||
CUnit* pUnit = { nullptr };
|
||||
class CMapElement_Interactable* pInteractive = { nullptr };
|
||||
class CMapElement_Chest* pChest = { nullptr };
|
||||
}LOCKON_INFO;
|
||||
|
||||
typedef struct tagUnitInfo
|
||||
@@ -93,10 +94,14 @@ namespace Client
|
||||
|
||||
typedef struct tagSpellLearnInfo
|
||||
{
|
||||
_wstring pSpellName{};
|
||||
_wstring pImageName{};
|
||||
_float fSpellSize{};
|
||||
_float2 fStartPosition{};
|
||||
_wstring pSpellName{};
|
||||
_wstring pImageName{};
|
||||
_int iSpellID{};
|
||||
_int iSpellType{};
|
||||
_float fSpellSize{};
|
||||
_float2 fStartPosition{};
|
||||
_float2 fEndPosition{};
|
||||
vector<_vector> Booster;
|
||||
vector<_vector> Lines;
|
||||
}SPELLLEARNINFO;
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ class CGoblin final : public CMonster
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
void HitState_Behavior(_float fTimeDelta);
|
||||
|
||||
public:
|
||||
static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -89,6 +90,8 @@ class CGoblin final : public CMonster
|
||||
_float m_fSpeed = {};
|
||||
_bool m_bAir = {};
|
||||
_float m_fGravityAmount = {};
|
||||
_float m_fHitTimer = {};
|
||||
_float m_fTumbleTimer = {};
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
|
||||
@@ -60,6 +60,7 @@ class CGoblin_Mage final : public CMonster
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
void HitState_Behavior(_float fTimeDelta);
|
||||
|
||||
public:
|
||||
static CGoblin_Mage* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -93,6 +94,8 @@ class CGoblin_Mage final : public CMonster
|
||||
_float m_fSpeed = {};
|
||||
_bool m_bAir = {};
|
||||
_float m_fGravityAmount = {};
|
||||
_float m_fHitTimer = {};
|
||||
_float m_fTumbleTimer = {};
|
||||
|
||||
#ifdef _DEBUG
|
||||
_bool m_isDebugMode = {};
|
||||
|
||||
@@ -7,6 +7,15 @@ NS_BEGIN(Client)
|
||||
|
||||
class CMonster abstract : public CUnit
|
||||
{
|
||||
protected:
|
||||
enum class HIT_STATE
|
||||
{
|
||||
GROUND,
|
||||
AIR_LEVIOSO,
|
||||
AIR_KNOCKBACK,
|
||||
END
|
||||
};
|
||||
|
||||
protected:
|
||||
CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMonster(const CMonster& Prototype);
|
||||
@@ -43,6 +52,7 @@ class CMonster abstract : public CUnit
|
||||
_bool m_bDisolve = { false };
|
||||
_float m_fDegree = {};
|
||||
_float m_fCross = {};
|
||||
_int m_eHitState = { ENUM_CLASS(HIT_STATE::END) };
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Unit.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CNPC_EleazarFig final : public CUnit
|
||||
{
|
||||
protected:
|
||||
CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CNPC_EleazarFig(const CNPC_EleazarFig& Prototype);
|
||||
virtual ~CNPC_EleazarFig() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
protected:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components(void* pArg);
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CNPC_EleazarFig* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -19,6 +19,18 @@ class CRanrok final : public CMonster
|
||||
RUSH,
|
||||
END
|
||||
};
|
||||
enum class RANROK_MESH_ORDER {
|
||||
ETHEREAL_HOT_SPINE,
|
||||
ETHEREAL_HOT_WINGS,
|
||||
ETHEREAL_HOT_ARMS,
|
||||
ETHEREAL_HOT_SHELL,
|
||||
ETHEREAL_AURA,
|
||||
ETHEREAL_EYES,
|
||||
ETHEREAL_WINGS,
|
||||
WINGS,
|
||||
BODY,
|
||||
END
|
||||
};
|
||||
|
||||
enum class RANROK_PHASE
|
||||
{
|
||||
@@ -49,6 +61,8 @@ class CRanrok final : public CMonster
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CEffectPool* m_pEffectPool = nullptr;
|
||||
_float2 m_vStunTimer = { 0.f, 4.f };
|
||||
_float2 m_vAuraTimer = { 0.f, 0.16f };
|
||||
_float2 m_vEtherealTimer = { 0.f, 0.16f };
|
||||
_uint iIndex;
|
||||
DAMAGE_INFO m_DamageInfo;
|
||||
|
||||
@@ -58,6 +72,8 @@ class CRanrok final : public CMonster
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Render_Nonblend();
|
||||
HRESULT Render_Blend();
|
||||
void MoveTo(_float fTimeDelta);
|
||||
void AroundPoint(_float fTimeDelta);
|
||||
HRESULT Load_RanrokPos(const _char* pFilePath);
|
||||
|
||||
@@ -33,6 +33,10 @@ class CSpellLearn final : public CElementObject
|
||||
|
||||
public:
|
||||
HRESULT Change_Image(_int SpellID);
|
||||
void Set_Pointer(class CSpellLearn_MovePointer* Pointer, class CSpellLearn_ChaserPointer* Chase);
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -42,6 +46,25 @@ class CSpellLearn final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
class CSpellLearn_MovePointer* m_pPointer = { nullptr };
|
||||
class CSpellLearn_ChaserPointer* m_pChasePointer = { nullptr };
|
||||
|
||||
_float2 m_vPointerPosition{};
|
||||
_float3 m_vPointerScale{};
|
||||
|
||||
_float2 m_vChasePosition{};
|
||||
_float3 m_vChaseScale{};
|
||||
|
||||
_bool m_bReset{};
|
||||
|
||||
_int m_iIndex{};
|
||||
_int m_iTrailIndex{};
|
||||
vector<_float2> m_Trail;
|
||||
|
||||
_int m_iChaseiTrailIndex{};
|
||||
vector<_float2> m_ChaseTrail;
|
||||
vector<_vector> m_MoveLine;
|
||||
|
||||
public:
|
||||
static CSpellLearn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Booster final : public CElementObject
|
||||
{
|
||||
private:
|
||||
struct Booster
|
||||
{
|
||||
_bool bBoosterOn = { false };
|
||||
_int iBoosterIndex{};
|
||||
};
|
||||
private:
|
||||
CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Booster(const CSpellLearn_Booster& rhs);
|
||||
virtual ~CSpellLearn_Booster() = 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 BoosterOn(void* pArg);
|
||||
void BoosterOff(void* pArg);
|
||||
|
||||
void Set_Index(_int iIndex);
|
||||
void Reset();
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_bool m_bBoosterOn = { false };
|
||||
_bool m_bBoosterOff = { false };
|
||||
_float4 m_fImagePosi{};
|
||||
_int m_iIndex{};
|
||||
public:
|
||||
static CSpellLearn_Booster* 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,65 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_ChaserPointer final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs);
|
||||
virtual ~CSpellLearn_ChaserPointer() = 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_SpellLearn(_int Index);
|
||||
void Set_Move();
|
||||
private:
|
||||
void Line(_float fTime);
|
||||
void SpeedUp();
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
_bool m_bMoveStart = { false };
|
||||
|
||||
_int m_iLineIndex{};
|
||||
_int m_iCurrentLine{};
|
||||
vector<_vector> m_MoveLine;
|
||||
|
||||
public:
|
||||
static CSpellLearn_ChaserPointer* 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,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_LookPointer final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs);
|
||||
virtual ~CSpellLearn_LookPointer() = 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_SpellLearn(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
_bool m_bMoveStart = { false };
|
||||
|
||||
_int m_iLineIndex{};
|
||||
_int m_iCurrentLine{};
|
||||
vector<_vector> m_MoveLine;
|
||||
_float m_localX{};
|
||||
_float m_localY{};
|
||||
public:
|
||||
static CSpellLearn_LookPointer* 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
|
||||
@@ -13,6 +13,12 @@ NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_MovePointer final : public CElementObject
|
||||
{
|
||||
private:
|
||||
struct Booster
|
||||
{
|
||||
_bool bBoosterOn = { false };
|
||||
_int iBoosterIndex{};
|
||||
};
|
||||
private:
|
||||
CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_MovePointer(const CSpellLearn_MovePointer& rhs);
|
||||
@@ -33,8 +39,12 @@ class CSpellLearn_MovePointer final : public CElementObject
|
||||
|
||||
public:
|
||||
void Set_SpellLearn(_int Index);
|
||||
_int Get_SpellTrail();
|
||||
_bool Get_MoveStart();
|
||||
private:
|
||||
void Line(_float fTime);
|
||||
void Line(_float fTime, _float2 fMouse);
|
||||
|
||||
void Set_Booster(void* pArg);
|
||||
|
||||
|
||||
private:
|
||||
@@ -43,11 +53,17 @@ class CSpellLearn_MovePointer final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
class SpellLearm_LookPointer* m_pSpellLeam_LookPointer = { nullptr };
|
||||
|
||||
_bool m_bMoveStart = { false };
|
||||
_bool m_bBooster = { false };
|
||||
|
||||
Booster m_Booster;
|
||||
|
||||
_int m_iLineIndex{};
|
||||
_int m_iCurrentLine{};
|
||||
vector<_vector> m_MoveLine;
|
||||
vector<_vector> m_Boosters;
|
||||
|
||||
public:
|
||||
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Overlay final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs);
|
||||
virtual ~CSpellLearn_Overlay() = 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_SpellLearn(_int Index);
|
||||
void Set_Count(_int Index);
|
||||
|
||||
private:
|
||||
void Clear();
|
||||
void Compute_UI(_uint SpellID);
|
||||
void Update_Trail(_float fTimeaDalta);
|
||||
void SizeUp(_float fSizeX);
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iImageFrameX{};
|
||||
_int m_iImageFrameY{};
|
||||
_float m_fFrame{};
|
||||
_float4 m_vUV{};
|
||||
|
||||
_float m_fSpellLearn{};
|
||||
_float m_fTrail{};
|
||||
_float m_fTargetTrail{};
|
||||
_bool m_bClear = { false };
|
||||
_bool m_fSizeUp = { false };
|
||||
public:
|
||||
static CSpellLearn_Overlay* 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
|
||||
@@ -13,7 +13,17 @@ NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Panel final : public CPanelObject
|
||||
{
|
||||
|
||||
private:
|
||||
struct Booster
|
||||
{
|
||||
_bool bBoosterOn = { false };
|
||||
_int iBoosterIndex{};
|
||||
};
|
||||
struct State
|
||||
{
|
||||
_bool bHit = { false };
|
||||
_bool bPerHit = { false };
|
||||
};
|
||||
private:
|
||||
CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Panel(const CSpellLearn_Panel& rhs);
|
||||
@@ -33,6 +43,9 @@ class CSpellLearn_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Learn(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
@@ -46,10 +59,18 @@ class CSpellLearn_Panel final : public CPanelObject
|
||||
CGameObject* m_pSpellLearn_Name = { nullptr };
|
||||
CGameObject* m_pSpellLearn = { nullptr };
|
||||
CGameObject* m_pSpellLearn_MovePointer = { nullptr };
|
||||
CGameObject* m_pSpellLearn_ChaserPointer = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Data = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Booster = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Slot = { nullptr };
|
||||
CGameObject* m_pSpellLearn_Overlay = { nullptr };
|
||||
|
||||
_int Index{};
|
||||
|
||||
vector<CGameObject*> m_pBooster;
|
||||
Booster m_Booster;
|
||||
State m_State;
|
||||
vector<State> m_PointerStates;
|
||||
vector<State> m_ChaseStates;
|
||||
public:
|
||||
static CSpellLearn_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CSpellLearn_Slot final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpellLearn_Slot(const CSpellLearn_Slot& rhs);
|
||||
virtual ~CSpellLearn_Slot() = 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_SpellLearn(_int Index);
|
||||
void Clear();
|
||||
|
||||
private:
|
||||
void SizeUp(_float fSizeX);
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_bool m_bClear = { false };
|
||||
_bool m_fSizeUp = { false };
|
||||
public:
|
||||
static CSpellLearn_Slot* 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,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CTransformationSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CTransformationSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTransformationSide(const CTransformationSide& rhs);
|
||||
virtual ~CTransformationSide() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
_bool m_isTrailEnd = {};
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
//class CEffectParts* m_pWandParticle = { nullptr };
|
||||
|
||||
public:
|
||||
static CTransformationSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -65,65 +65,36 @@
|
||||
</Name>
|
||||
<Name Flow="0">
|
||||
<Position>
|
||||
<Pos x="-13.714" y="57.433" z="241.743"/>
|
||||
<Pos x="58.990" y="68.320" z="241.628"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-42.683" y="51.829" z="228.838"/>
|
||||
<Pos x="-108.540" y="-20.997" z="129.920"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-74.956" y="41.403" z="215.839"/>
|
||||
<Pos x="-78.388" y="-7.777" z="23.252"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-88.250" y="36.472" z="187.000"/>
|
||||
<Pos x="-17.085" y="18.315" z="34.801"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-103.679" y="35.008" z="160.582"/>
|
||||
<Pos x="38.669" y="17.004" z="4.037"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-94.757" y="25.640" z="131.275"/>
|
||||
<Pos x="86.242" y="23.649" z="4.595"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-100.794" y="19.290" z="90.624"/>
|
||||
<Pos x="128.830" y="7.499" z="79.664"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-72.688" y="23.021" z="56.054"/>
|
||||
<Pos x="147.229" y="7.463" z="171.466"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-36.936" y="22.230" z="40.324"/>
|
||||
<Pos x="123.945" y="4.664" z="189.885"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-6.871" y="24.247" z="27.440"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="25.863" y="17.908" z="6.537"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="54.920" y="17.365" z="12.338"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="78.844" y="19.070" z="23.801"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="100.895" y="17.813" z="41.385"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="116.327" y="19.300" z="65.012"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="124.877" y="21.285" z="88.990"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="127.525" y="19.664" z="115.099"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="117.939" y="16.548" z="133.479"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="100.079" y="12.406" z="139.899"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="20.226" y="6.460" z="142.800"/>
|
||||
<Pos x="32.682" y=" 7.561" z="131.725"/>
|
||||
</Position>
|
||||
|
||||
</Name>
|
||||
</RanrokPosData>
|
||||
</RanrokPosInfo>
|
||||
|
||||
@@ -1,28 +1,256 @@
|
||||
<SpellLearnInfo>
|
||||
<SpellLearnData>
|
||||
<Name SpellName="봄바르다" ImageName="Bombarda" Size="550" x="730" y="200">
|
||||
<Name SpellName="봄바르다" ImageName="Bombarda" SpellID="11" SpellType="2" Size="550" x="730" y="200" endx="522" endy="-42">
|
||||
<Booster>
|
||||
<Pos x="622" y="60"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="810" y="-187"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="390" y="-187"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="625" y="60"/>
|
||||
<Pos x="730" y="200"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="810" y="-185"/>
|
||||
<Pos x="707" y="170"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="395" y="-185"/>
|
||||
<Pos x="683.5" y="140"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="515" y="-45"/>
|
||||
<Pos x="668" y="120"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="652.5" y="100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="636" y="80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="622" y="60"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="636.5" y="40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="652" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="666.5" y="0"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="682.5" y="-20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="698" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="713.5" y="-60"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="728.5" y="-80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="744" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="759" y="-120"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="774.5" y="-140"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="790" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="805.5" y="-180"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="811.5" y="-189"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="790" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="760" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="730" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="700" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="670" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="640" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="610" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="580" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="550" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="520" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="490" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="460" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="430" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="400" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="390" y="-187"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="416" y="-157"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="441.5" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="468" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="496" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="516" y="-50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="522" y="-42"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="루모스" ImageName="Lumos" Size="520" x="410" y="-210">
|
||||
<Name SpellName="루모스" ImageName="Lumos" SpellID="14" SpellType="3" Size="520" x="408.5" y="-218" endx="791.5" endy="-235">
|
||||
<Booster>
|
||||
<Pos x="501.5" y="-10"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="598.5" y="205"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="693" y="-10"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="600" y="200"/>
|
||||
<Pos x="408.5" y="-218"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="790" y="-230"/>
|
||||
<Pos x="420" y="-192"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="434.5" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="448" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="461.5" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="475" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="488.5" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="501.5" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="515" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="529" y="50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="542" y="80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="556" y="110"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="565" y="130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="574" y="150"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="587" y="180"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="598.5" y="205"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="609.5" y="180"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="622.5" y="150"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="630.5" y="130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="640" y="110"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="653.5" y="80"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="666.5" y="50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="679.5" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="693" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="706" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="719.5" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="732.5" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="746" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="759" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="772.5" y="-190"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="785.5" y="-220"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="791.5" y="-235"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="아씨오" ImageName="Accio" Size="520" x="852" y="-120">
|
||||
<Name SpellName="아씨오" ImageName="Accio" SpellID="4" SpellType="1" Size="520" x="852" y="-120" endx="347" endy="-71">
|
||||
<Booster>
|
||||
<Pos x="794" y="18"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="623" y="109"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="431" y="56"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="848" y="-100"/>
|
||||
</Position>
|
||||
@@ -87,9 +315,60 @@
|
||||
<Pos x="347" y="-71"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="디센도" ImageName="Descendo" Size="520" x="453" y="-245">
|
||||
<Name SpellName="디센도" ImageName="Descendo" SpellID="6" SpellType="1" Size="520" x="453" y="-245" endx="580" endy="-68">
|
||||
<Booster>
|
||||
<Pos x="453" y="0"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="550" y="222"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="744" y="101"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="453" y="90"/>
|
||||
<Pos x="453" y="-222.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-200"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-177.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-155"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-132.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-110"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-87.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-65"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-42.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="-20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="2.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="25"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="47.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="453" y="92.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="458" y="122"/>
|
||||
@@ -158,7 +437,58 @@
|
||||
<Pos x="580" y="-68"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="레벨리오" ImageName="Revelio" Size="550" x="454" y="-240">
|
||||
<Name SpellName="레벨리오" ImageName="Revelio" SpellID="26" SpellType="3" Size="550" x="454" y="-240" endx="710" endy="-189">
|
||||
<Booster>
|
||||
<Pos x="454" y="0"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="550" y="222"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="738" y="36"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="454" y="-218"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-196"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-174"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-152"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-108"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-86"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-64"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-42"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="-20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="2"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="24"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="46"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="68"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="454" y="90"/>
|
||||
</Position>
|
||||
@@ -244,10 +574,58 @@
|
||||
<Pos x="710" y="-189"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="레비오소" ImageName="Levioso" Size="550" x="476" y="-253">
|
||||
<Name SpellName="레비오소" ImageName="Levioso" SpellID="2" SpellType="0" Size="550" x="476" y="-253" endx="528" endy="265">
|
||||
<Booster>
|
||||
<Pos x="735" y="-172"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="475" y="-45"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="475" y="120"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="502" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="528" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="554" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="580" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="606" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="632" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="658" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="684" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="710" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-253"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-237"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-221"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-205"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-189"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="735" y="-172"/>
|
||||
</Position>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user