commit
This commit is contained in:
@@ -182,6 +182,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Logo.h" />
|
||||
<ClInclude Include="..\Public\Logo_Glow.h" />
|
||||
<ClInclude Include="..\Public\Logo_Text.h" />
|
||||
<ClInclude Include="..\Public\WandEnd.h" />
|
||||
<ClInclude Include="..\Public\Magic_Icon.h" />
|
||||
<ClInclude Include="..\Public\Magic_Item.h" />
|
||||
<ClInclude Include="..\Public\Magic_Meter.h" />
|
||||
@@ -335,6 +336,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Logo.cpp" />
|
||||
<ClCompile Include="..\Private\Logo_Glow.cpp" />
|
||||
<ClCompile Include="..\Private\Logo_Text.cpp" />
|
||||
<ClCompile Include="..\Private\WandEnd.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Icon.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Item.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Meter.cpp" />
|
||||
|
||||
@@ -406,20 +406,16 @@
|
||||
<ClInclude Include="..\Public\Goblin_Mage.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage</Filter>
|
||||
</ClInclude>
|
||||
|
||||
<ClInclude Include="..\Public\Goblin.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_BattleAxe.h">
|
||||
<Filter>02.GameObjects\Item\Goblin_BattleAxe</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Playable_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
||||
</ClInclude>
|
||||
@@ -456,6 +452,10 @@
|
||||
<ClInclude Include="..\Public\TrollSwing.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\TrollSwing</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_BattleAxe.h" />
|
||||
<ClInclude Include="..\Public\WandEnd.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\WandEnd</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -948,7 +948,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\TrollSwing">
|
||||
<UniqueIdentifier>{7bd8bc85-e56c-40fc-b1a6-6e09da46897f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\Behavior\Player">
|
||||
<UniqueIdentifier>{3f4bde42-c5a0-4c7a-8dde-23e0725534c9}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -970,8 +970,11 @@
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll">
|
||||
<UniqueIdentifier>{e12337a6-7563-4615-a8d2-a2e2e1ba1ca8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\WandEnd">
|
||||
<UniqueIdentifier>{14ad0431-680b-4c8b-93d7-601aee5ce435}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClCompile>
|
||||
@@ -1395,17 +1398,18 @@
|
||||
<ClCompile Include="..\Private\TrollSwing.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\TrollSwing</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp" />
|
||||
<ClCompile Include="..\Private\WandEnd.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\WandEnd</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp">
|
||||
<Filter>02.GameObjects\Item\Goblin_BattleAxe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Playable_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
||||
</ClCompile>
|
||||
@@ -1427,11 +1431,10 @@
|
||||
<ClCompile Include="..\Private\CallBack_Troll_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
</Project>
|
||||
@@ -17,11 +17,12 @@
|
||||
|
||||
#include "NomalJapSide.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
#include "WandEnd.h"
|
||||
|
||||
#include "Troll_Rush_Hit.h"
|
||||
#include "Troll_Nomal_Smoke.h"
|
||||
#include "TrollSwing.h"
|
||||
#include "Goblin_Protego.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -248,6 +249,16 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::WAND_END, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CWandEnd* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CWandEnd>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
#endif // !기무리
|
||||
|
||||
return S_OK;
|
||||
@@ -284,6 +295,15 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Protego* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CGoblin_Protego>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ HRESULT CGoblin_Mage::Behavior_IdleExitCheck()
|
||||
if (m_fTargetDistance <= 20.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO, this);
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
}
|
||||
|
||||
|
||||
@@ -129,6 +129,8 @@
|
||||
#include "TrollSwing.h"
|
||||
#include "Troll_Nomal_Smoke.h"
|
||||
#include "Troll_Rush_Hit.h"
|
||||
|
||||
#include "WandEnd.h"
|
||||
#include "Goblin_Protego.h"
|
||||
|
||||
|
||||
@@ -1462,6 +1464,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWandEnd>(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1057,13 +1057,24 @@ void CPlayer::Behavior_SpellEnter()
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject<CWand>()); },
|
||||
0.3f);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject<CWand>()); },
|
||||
0.3f);
|
||||
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
#include "pch.h"
|
||||
#include "WandEnd.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
|
||||
CWandEnd::CWandEnd(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CWandEnd::CWandEnd(const CWandEnd& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CWandEnd::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CWandEnd::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/WandEnd")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
|
||||
m_pWandPt = Get_PartObject<CEffectParts>("WandParticle_R");
|
||||
|
||||
SAFE_ADDREF(m_pWandPt);
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
m_Events.emplace(0.4f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
|
||||
m_pWandPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CWandEnd::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CWandEnd::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
if (m_isParticleEnd == true)
|
||||
return;
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
void CWandEnd::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CWandEnd::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandPt->Set_Visible(true);
|
||||
m_pWandPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_isParticleEnd = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CWandEnd::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CWandEnd::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CWandEnd* CWandEnd::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CWandEnd* pInstance = new CWandEnd(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CWandEnd");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CWandEnd::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CWandEnd* pInstance = new CWandEnd(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CWandEnd");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CWandEnd::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CWandEnd::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
Safe_Release(m_pWandPt);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CWandEnd::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CWandEnd::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,9 @@ namespace Client
|
||||
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
|
||||
JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END,
|
||||
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CWandEnd final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CWandEnd(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CWandEnd(const CWandEnd& rhs);
|
||||
virtual ~CWandEnd() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pWandPt = { nullptr };
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
|
||||
public:
|
||||
static CWandEnd* 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.
Binary file not shown.
Binary file not shown.
@@ -44,8 +44,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
//if (FAILED(Ready_Effect()))
|
||||
// return E_FAIL;
|
||||
if (FAILED(Ready_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_MonsterEffect()))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -129,15 +129,15 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
CEditEffect* pWandSmoke = Get_PartObject<CEditEffect>("Levioso_Wand0");
|
||||
CEditEffect* pWandLight = Get_PartObject<CEditEffect>("Levioso_Wand_Light");
|
||||
|
||||
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
|
||||
pWandSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
|
||||
m_pLeviosoPJ_0->Set_Visible(true);
|
||||
m_pTrail_PT_0->Set_Visible(true);
|
||||
|
||||
pWandSmoke->Set_Visible(true);
|
||||
pWandLight->Set_Visible(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user