This commit is contained in:
GiJungSUk
2025-12-02 15:55:54 +09:00
parent 909c2c44be
commit f413943d66
71 changed files with 1089 additions and 204 deletions
@@ -165,6 +165,9 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Magic_Icon.h" />
<ClInclude Include="..\Public\Magic_Item.h" />
<ClInclude Include="..\Public\Magic_Meter.h" />
<ClInclude Include="..\Public\DecendoSide.h" />
<ClInclude Include="..\Public\BombardSide.h" />
<ClInclude Include="..\Public\LeviosoSide.h" />
<ClInclude Include="..\Public\Potion.h" />
<ClInclude Include="..\Public\NomalJapSide.h" />
<ClInclude Include="..\Public\Lumos.h" />
@@ -259,6 +262,9 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Magic_Icon.cpp" />
<ClCompile Include="..\Private\Magic_Item.cpp" />
<ClCompile Include="..\Private\Magic_Meter.cpp" />
<ClCompile Include="..\Private\DecendoSide.cpp" />
<ClCompile Include="..\Private\BombardSide.cpp" />
<ClCompile Include="..\Private\LeviosoSide.cpp" />
<ClCompile Include="..\Private\Potion.cpp" />
<ClCompile Include="..\Private\NomalJapSide.cpp" />
<ClCompile Include="..\Private\Lumos.cpp" />
@@ -263,7 +263,7 @@
<Filter>02.GameObjects\Effect\Effects\Revelio</Filter>
</ClInclude>
<ClInclude Include="..\Public\NomalJapSide.h">
<Filter>02.GameObjects\Effect\Effects\NomalJapSide</Filter>
<Filter>02.GameObjects\Effect\Effects\NomalJap\NomalJapSide</Filter>
</ClInclude>
<ClInclude Include="..\Public\Levioso.h">
<Filter>02.GameObjects\Effect\Effects\Levioso</Filter>
@@ -277,6 +277,15 @@
<ClInclude Include="..\Public\Troll_Weapon.h">
<Filter>02.GameObjects\Item\Troll_Weapon</Filter>
</ClInclude>
<ClInclude Include="..\Public\LeviosoSide.h">
<Filter>02.GameObjects\Effect\Effects\Levioso\LeviosoSide</Filter>
</ClInclude>
<ClInclude Include="..\Public\DecendoSide.h">
<Filter>02.GameObjects\Effect\Effects\Decendo\DecendoSide</Filter>
</ClInclude>
<ClInclude Include="..\Public\BombardSide.h">
<Filter>02.GameObjects\Effect\Effects\Bombard\BombardSide</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -581,10 +590,6 @@
<Filter Include="02.GameObjects\Effect\Effects\Revelio">
<UniqueIdentifier>{19a2325e-1184-4ee0-92e1-657bf184418c}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\NomalJapSide">
<UniqueIdentifier>{d260ec7e-150c-4a25-8e25-83eb141652bc}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\Levioso">
<UniqueIdentifier>{b982d9d6-7561-43d4-b542-88483119047b}</UniqueIdentifier>
</Filter>
@@ -603,6 +608,18 @@
<Filter Include="02.GameObjects\Item\Troll_Weapon">
<UniqueIdentifier>{1d6c078d-dddd-493d-a6f0-f2cac2e4107e}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\NomalJap\NomalJapSide">
<UniqueIdentifier>{d260ec7e-150c-4a25-8e25-83eb141652bc}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\Levioso\LeviosoSide">
<UniqueIdentifier>{dc00cfd8-105f-419f-a4e4-109096258347}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\Decendo\DecendoSide">
<UniqueIdentifier>{1cb823f5-a6fe-4bef-9292-b49480a42524}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\Bombard\BombardSide">
<UniqueIdentifier>{b6076bdb-df15-498f-b951-6b2d0b777a0b}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -855,7 +872,7 @@
<Filter>02.GameObjects\Effect\Effects\Revelio</Filter>
</ClCompile>
<ClCompile Include="..\Private\NomalJapSide.cpp">
<Filter>02.GameObjects\Effect\Effects\NomalJapSide</Filter>
<Filter>02.GameObjects\Effect\Effects\NomalJap\NomalJapSide</Filter>
</ClCompile>
<ClCompile Include="..\Private\Levioso.cpp">
<Filter>02.GameObjects\Effect\Effects\Levioso</Filter>
@@ -875,6 +892,15 @@
<ClCompile Include="..\Private\Troll_Weapon.cpp">
<Filter>02.GameObjects\Item\Troll_Weapon</Filter>
</ClCompile>
<ClCompile Include="..\Private\LeviosoSide.cpp">
<Filter>02.GameObjects\Effect\Effects\Levioso\LeviosoSide</Filter>
</ClCompile>
<ClCompile Include="..\Private\DecendoSide.cpp">
<Filter>02.GameObjects\Effect\Effects\Decendo\DecendoSide</Filter>
</ClCompile>
<ClCompile Include="..\Private\BombardSide.cpp">
<Filter>02.GameObjects\Effect\Effects\Bombard\BombardSide</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Client.rc">
+28 -40
View File
@@ -4,7 +4,8 @@
#include "GameInstance.h"
#include "EffectParts.h"
#include "PhysXEffectHitBox.h"
#include "Wand.h"
#include "Player.h"
CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -50,6 +51,7 @@ void CBombard::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
XMStoreFloat4(&m_vStartPos, m_pLight_Projectile->Get_WorldPostion());
}
void CBombard::Update(_float fTimeDelta)
@@ -61,7 +63,18 @@ void CBombard::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
m_pLight_Projectile->Get_Component<CTransform>()->Translation(m_vCameraLook * 2.f);
CTransform* pPJTransform = m_pLight_Projectile->Get_Component<CTransform>();
pPJTransform->Translation(m_vCameraLook * 2.f);
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 2.f))
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
{
OnCollision();
}
}
void CBombard::Late_Update(_float fTimeDelta)
@@ -70,6 +83,8 @@ void CBombard::Late_Update(_float fTimeDelta)
return;
__super::Late_Update(fTimeDelta);
XMStoreFloat4(&m_vEndPos, m_pLight_Projectile->Get_WorldPostion());
}
@@ -89,6 +104,10 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
__super::m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
if (pWand == nullptr)
return E_FAIL;
CPartObject* pShootPt = Get_PartObject<CEffectParts>("Bombard_Shoot_Pt");
@@ -96,9 +115,9 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
m_vCameraLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
pCircle0->Set_Visible(true);
pShootPt->Set_Visible(true);
@@ -123,32 +142,6 @@ HRESULT CBombard::Ready_Components(void* pArg)
HRESULT CBombard::Ready_Child()
{
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
_float3 vDir = {};
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
XMStoreFloat3(&vDir, vOwnerLook * 2.f);
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = 70;
Desc.vDeltaPos = vDir;
Desc.vLifeTime = { 0.f, 2.f };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
assert(false);
return E_FAIL;
}
SAFE_ADDREF(m_pPhysHitBox);
return S_OK;
}
@@ -182,15 +175,16 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
{
//CTransform* pOtherTransform = p
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
for (auto& pPair : m_PartObjects)
{
pPair.second->Set_Visible(true);
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
}
m_pLight_Projectile->Set_Visible(false);
Get_PartObject<CEffectParts>("Bombard_Shoot_Pt")->Set_Visible(false);
@@ -199,18 +193,12 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
Get_PartObject<CEffectParts>("Bombard_Circle0")->Set_Visible(false);
m_pPhysHitBox->Set_Dead();
SAFE_RELEASE(m_pPhysHitBox);
}
void CBombard::Free()
{
__super::Free();
if (m_pPhysHitBox != nullptr)
SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pLight_Projectile);
}
@@ -0,0 +1,205 @@
#include "pch.h"
#include "BombardSide.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Player.h"
#include "Wand.h"
#include "TrailObject.h"
CBombardSide::CBombardSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CBombardSide::CBombardSide(const CBombardSide& rhs)
: CEffect_Container(rhs)
{
}
HRESULT CBombardSide::Initialize_Prototype()
{
return S_OK;
}
HRESULT CBombardSide::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/BombardaSide")))
return E_FAIL;
m_wstrEffectName = L"BombardSide";
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle_B_100");
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 = 1.f;
m_Events.emplace(0.4f, [&](){
m_pWandTrail->Set_Visible(false);
});
return S_OK;
}
void CBombardSide::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CBombardSide::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());
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
}
void CBombardSide::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
{
if (pObject == nullptr)
return E_FAIL;
m_pOwner = pObject;
Reset_EffectParts();
m_fAccTime = 0.f;
__super::m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return E_FAIL;
m_pWandParticle->Set_Visible(true);
m_pWandLight->Set_Visible(true);
/*트레일 초기화 */
m_pWandTrail->Set_Visible(true);
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());
m_bVisible = true;
return S_OK;
}
HRESULT CBombardSide::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CBombardSide::Ready_Child()
{
return S_OK;
}
CBombardSide* CBombardSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CBombardSide* pInstance = new CBombardSide(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CBombardSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CBombardSide::Clone(void* pArg, CGameObject* pOwner)
{
CBombardSide* pInstance = new CBombardSide(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CBombardSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CBombardSide::OnCollision(CGameObject* pOther, void* pDesc)
{
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
}
void CBombardSide::Free()
{
__super::Free();
Safe_Release(m_pWandLight);
Safe_Release(m_pWandTrail);
Safe_Release(m_pWandParticle);
}
#ifdef _DEBUG
void CBombardSide::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CBombardSide::Bind_ShaderResources()
{
return S_OK;
}
@@ -34,15 +34,15 @@ void CBuildingContainer::Update(_float fTimeDelta)
void CBuildingContainer::Late_Update(_float fTimeDelta)
{
if (m_pOcclusionQueryCom->isDraw()){
// if (m_pOcclusionQueryCom->isDraw()){
__super::Late_Update(fTimeDelta);
}
//}
for (auto& pCollisiton : m_ColiisonPartObjects){
pCollisiton->Late_Update(fTimeDelta);
}
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
//m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
}
HRESULT CBuildingContainer::Render()
+23 -40
View File
@@ -6,6 +6,9 @@
#include "PhysXEffectHitBox.h"
#include "TrailObject.h"
#include "Wand.h"
#include "Player.h"
CDecendo::CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -53,11 +56,7 @@ void CDecendo::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
}
XMStoreFloat4(&m_vStartPos, m_pProjectile->Get_WorldPostion());
}
void CDecendo::Update(_float fTimeDelta)
@@ -73,11 +72,6 @@ void CDecendo::Update(_float fTimeDelta)
m_pProjectile->Get_Component<CTransform>()->Translation(m_vCameraLook * 0.5f);
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vCameraLook * 0.5f);
}
if (m_fAccTime > XM_2PI)
return;
@@ -86,9 +80,14 @@ void CDecendo::Update(_float fTimeDelta)
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
m_pProjectile->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vRotateUp * 0.2f * sinf(m_fAccTime));
//TODO : 다시 위치 잡기
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 0.5f))
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
{
OnCollision();
}
}
void CDecendo::Late_Update(_float fTimeDelta)
@@ -98,6 +97,8 @@ void CDecendo::Late_Update(_float fTimeDelta)
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
__super::Late_Update(fTimeDelta);
}
@@ -120,12 +121,18 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
m_fPreAccTime = 0.f;
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
if (pWand == nullptr)
return E_FAIL;
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
/* 초기 객체 위치 초기화 */
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pProjectile_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
m_pProjectile_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
/* 초기 객체 비지블 */
pCircle0->Set_Visible(true);
@@ -163,24 +170,6 @@ HRESULT CDecendo::Ready_Components(void* pArg)
HRESULT CDecendo::Ready_Child()
{
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = 70;
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
Desc.vLifeTime = { 0.f, 1.f };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
assert(false);
return E_FAIL;
}
SAFE_ADDREF(m_pPhysHitBox);
return S_OK;
}
@@ -214,13 +203,13 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
{
//CTransform* pOtherTransform = p
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
for (auto& pPair : m_PartObjects)
{
pPair.second->Set_Visible(true);
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
}
@@ -240,18 +229,12 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
Get_PartObject<CTrailObject>()->Set_Visible(false);
m_pPhysHitBox->Set_Dead();
SAFE_RELEASE(m_pPhysHitBox);
}
void CDecendo::Free()
{
__super::Free();
if (m_pPhysHitBox != nullptr)
SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pProjectile_Blur);
SAFE_RELEASE(m_pProjectile);
@@ -0,0 +1,194 @@
#include "pch.h"
#include "DecendoSide.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Player.h"
#include "Wand.h"
#include "TrailObject.h"
CDecendoSide::CDecendoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CDecendoSide::CDecendoSide(const CDecendoSide& rhs)
: CEffect_Container(rhs)
{
}
HRESULT CDecendoSide::Initialize_Prototype()
{
return S_OK;
}
HRESULT CDecendoSide::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/DecendoSide")))
return E_FAIL;
m_wstrEffectName = L"DecendoSide";
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_R");
m_pWandTrail = Get_PartObject<CTrailObject>();
SAFE_ADDREF(m_pWandLight);
SAFE_ADDREF(m_pWandTrail);
m_fDuration = 1.f;
return S_OK;
}
void CDecendoSide::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CDecendoSide::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());
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
}
void CDecendoSide::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
{
if (pObject == nullptr)
return E_FAIL;
m_pOwner = pObject;
Reset_EffectParts();
m_fAccTime = 0.f;
__super::m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return E_FAIL;
m_pWandLight->Set_Visible(true);
/*트레일 초기화 */
m_pWandTrail->Set_Visible(true);
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());
m_bVisible = true;
return S_OK;
}
HRESULT CDecendoSide::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CDecendoSide::Ready_Child()
{
return S_OK;
}
CDecendoSide* CDecendoSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDecendoSide* pInstance = new CDecendoSide(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CDecendoSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CDecendoSide::Clone(void* pArg, CGameObject* pOwner)
{
CDecendoSide* pInstance = new CDecendoSide(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CDecendoSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CDecendoSide::OnCollision(CGameObject* pOther, void* pDesc)
{
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
}
void CDecendoSide::Free()
{
__super::Free();
Safe_Release(m_pWandLight);
Safe_Release(m_pWandTrail);
}
#ifdef _DEBUG
void CDecendoSide::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CDecendoSide::Bind_ShaderResources()
{
return S_OK;
}
@@ -88,6 +88,11 @@ void CEffectParts::Late_Update(_float fTimeDelta)
}
_vector CEffectParts::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CEffectParts::Ready_Components(void* pArg)
+37 -2
View File
@@ -10,6 +10,11 @@
#include "Protego.h"
#include "Revelio.h"
#include "Levioso.h"
#include "BombardSide.h"
#include "LeviosoSide.h"
#include "DecendoSide.h"
#include "NomalJapSide.h"
#include "Lumos.h"
@@ -170,7 +175,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLevioso* pEffect = nullptr;
@@ -180,7 +185,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLumos* pEffect = nullptr;
@@ -190,6 +195,36 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CBombardSide* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CBombardSide>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CLeviosoSide* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CLeviosoSide>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CDecendoSide* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CDecendoSide>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
return S_OK;
}
@@ -208,11 +208,6 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
pPart.second->Set_Visible(false);
}
if (m_pPhysHitBox != nullptr && m_pPhysHitBox->isDead() == false)
{
m_pPhysHitBox->Set_Dead();
SAFE_RELEASE(m_pPhysHitBox);
}
}
}
@@ -120,9 +120,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
/* Map Containters */
/* 테스트용 맵 */
// CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
/* 전체 맵 */
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
//CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
+10 -38
View File
@@ -61,9 +61,9 @@ void CLevioso::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
}
XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion());
}
void CLevioso::Update(_float fTimeDelta)
@@ -75,21 +75,18 @@ void CLevioso::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
m_pLeviosoPJ_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
m_pLeviosoPJ_1->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
m_pTrail_PT_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vOwnerLook * 1.f);
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f))
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
{
OnCollision();
}
_matrix WorldMat = m_pTrail_PT_0->Get_Component<CTransform>()->Get_XMWorldMatrix();
m_pLeviosoTrail->Trail_Update(WorldMat, fTimeDelta);
@@ -110,7 +107,7 @@ void CLevioso::Late_Update(_float fTimeDelta)
//m_pLeviosoTrail->Get_Component<CTrail>()->Fixed_Trail(WandWorld);
XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion());
__super::Late_Update(fTimeDelta);
@@ -176,24 +173,6 @@ HRESULT CLevioso::Ready_Components(void* pArg)
HRESULT CLevioso::Ready_Child()
{
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = 70;
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
Desc.vLifeTime = { 0.f, 1.5f };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
assert(false);
return E_FAIL;
}
SAFE_ADDREF(m_pPhysHitBox);
return S_OK;
}
@@ -227,14 +206,13 @@ CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner)
void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
{
//CTransform* pOtherTransform = p
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
for (auto& pPair : m_PartObjects)
{
pPair.second->Set_Visible(true);
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
}
__super::m_fAccTime = 0.f;
@@ -250,18 +228,12 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
m_pLeviosoPJ_1->Set_Visible(false);
m_pTrail_PT_0->Set_Visible(false);
m_pLeviosoTrail->Set_Visible(false);
m_pPhysHitBox->Set_Dead();
SAFE_RELEASE(m_pPhysHitBox);
}
void CLevioso::Free()
{
__super::Free();
if(m_pPhysHitBox != nullptr)
SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pLeviosoPJ_0);
SAFE_RELEASE(m_pLeviosoPJ_1);
@@ -0,0 +1,196 @@
#include "pch.h"
#include "LeviosoSide.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Player.h"
#include "Wand.h"
#include "TrailObject.h"
CLeviosoSide::CLeviosoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CLeviosoSide::CLeviosoSide(const CLeviosoSide& rhs)
: CEffect_Container(rhs)
{
}
HRESULT CLeviosoSide::Initialize_Prototype()
{
return S_OK;
}
HRESULT CLeviosoSide::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/LeviosoSide")))
return E_FAIL;
m_wstrEffectName = L"LeviosoSide";
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_P");
m_pWandTrail = Get_PartObject<CTrailObject>();
SAFE_ADDREF(m_pWandLight);
SAFE_ADDREF(m_pWandTrail);
m_fDuration = 1.f;
return S_OK;
}
void CLeviosoSide::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CLeviosoSide::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());
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
}
void CLeviosoSide::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
{
if (pObject == nullptr)
return E_FAIL;
m_pOwner = pObject;
Reset_EffectParts();
m_fAccTime = 0.f;
__super::m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return E_FAIL;
m_pWandLight->Set_Visible(true);
/*트레일 초기화 */
m_pWandTrail->Set_Visible(true);
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());
m_bVisible = true;
return S_OK;
}
HRESULT CLeviosoSide::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CLeviosoSide::Ready_Child()
{
return S_OK;
}
CLeviosoSide* CLeviosoSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CLeviosoSide* pInstance = new CLeviosoSide(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CNomalJapSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CLeviosoSide::Clone(void* pArg, CGameObject* pOwner)
{
CLeviosoSide* pInstance = new CLeviosoSide(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CNomalJapSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CLeviosoSide::OnCollision(CGameObject* pOther, void* pDesc)
{
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
}
void CLeviosoSide::Free()
{
__super::Free();
Safe_Release(m_pWandLight);
Safe_Release(m_pWandTrail);
}
#ifdef _DEBUG
void CLeviosoSide::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CLeviosoSide::Bind_ShaderResources()
{
return S_OK;
}
+14
View File
@@ -69,6 +69,9 @@
#include "Protego.h"
#include "Revelio.h"
#include "NomalJapSide.h"
#include "DecendoSide.h"
#include "BombardSide.h"
#include "LeviosoSide.h"
#include "TrailObject.h"
#include "Instance_Model.h"
@@ -910,6 +913,17 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(NEXT_LEVEL, CBombardSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(NEXT_LEVEL, CDecendoSide::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;
+1
View File
@@ -98,6 +98,7 @@ HRESULT CLumos::Pre_Setting(CGameObject* pObject)
if (pWand == nullptr)
return E_FAIL;
m_pLumos_Light->Set_Visible(true);
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
m_bVisible = true;
+15 -45
View File
@@ -59,10 +59,6 @@ void CNomalJap::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
}
}
void CNomalJap::Update(_float fTimeDelta)
@@ -80,15 +76,24 @@ void CNomalJap::Update(_float fTimeDelta)
_vector vDirection = XMLoadFloat3(&m_vDirection);
//_vector vStartPos = Get_WorldPostion();
//_float3 vfStartPos = {};
//XMStoreFloat3(&vfStartPos, Get_WorldPostion());
// 선속도
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
m_pProjectile->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
//_vector vEndPos = Get_WorldPostion();
//_float3 vfEndPos = {};
//XMStoreFloat3(&vfEndPos, Get_WorldPostion());
//_float3 vDir = {};
//XMStoreFloat3(&vDir, vEndPos - vStartPos);
//m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), )
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(vDirection * m_fLinearSpeed * fTimeDelta);
}
if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) {
m_bTrailPulseEnded = true;
@@ -104,11 +109,10 @@ void CNomalJap::Update(_float fTimeDelta)
SAFE_RELEASE(m_pTargetUnit);
}
MoveHitBox(fTimeDelta);
return;
}
if (true == m_bTrailPulseEnded) {
MoveHitBox(fTimeDelta);
return;
}
_vector vRotateUp = XMLoadFloat3(&m_vRotateUp);
@@ -117,24 +121,14 @@ void CNomalJap::Update(_float fTimeDelta)
// 각속도
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
m_pProjectile->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
MoveHitBox(fTimeDelta);
}
}
void CNomalJap::MoveHitBox(Engine::_float fTimeDelta)
{
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Get_Component<CCharacter_Controller>()->Move(fTimeDelta);
}
}
void CNomalJap::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
if (m_bVisible == false){
return;
}
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
@@ -226,23 +220,7 @@ HRESULT CNomalJap::Ready_Components(void* pArg)
HRESULT CNomalJap::Ready_Child()
{
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_NORMALJAP);
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
Desc.vLifeTime = { 0.f, 1.f };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
assert(false);
return E_FAIL;
}
SAFE_ADDREF(m_pPhysHitBox);
return S_OK;
}
@@ -295,20 +273,12 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
Get_PartObject<CTrailObject>()->Set_Visible(false);
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
if (nullptr != m_pPhysHitBox) {
m_pPhysHitBox->Set_Dead();
SAFE_RELEASE(m_pPhysHitBox);
}
}
void CNomalJap::Free()
{
__super::Free();
if (m_pPhysHitBox != nullptr){
SAFE_RELEASE(m_pPhysHitBox);
}
SAFE_RELEASE(m_pTargetUnit);
Safe_Release(m_pProjectile);
Safe_Release(m_pProjectile_Side);
@@ -731,13 +731,45 @@ void CPlayer::Behavior_CombatEnter()
{
switch (m_eSpell)
{
case STATEANIM::ACCIO:
pairAnimInfo = m_Animation[STATEANIM::SPELL];
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
0.f);
break;
case STATEANIM::DESCENDO:
pairAnimInfo = m_Animation[STATEANIM::SPELL];
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject<CWand>()); },
0.f);
break;
case STATEANIM::DEPULSO:
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
0.2f);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject<CWand>()); },
0.f);
m_eSpell = STATEANIM::END;
break;
case STATEANIM::DIFFINDO:
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
m_eSpell = STATEANIM::END;
break;
case STATEANIM::DISILLUSION_ENTER:
@@ -795,7 +827,12 @@ void CPlayer::Behavior_CombatEnter()
}
}
else
{
pairAnimInfo = m_Animation[STATEANIM::SPELL];
}
}
else if (m_pGameInstance->Key_Down(DIK_V)) {
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
@@ -924,6 +961,9 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this);},
0.15f);
m_eSpell = STATEANIM::END;
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -935,10 +975,21 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, this);},
0.1f);
m_eSpell = STATEANIM::END;
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
break;
case STATEANIM::DEPULSO:
{
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
m_eSpell = STATEANIM::END;
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
break;
default:
break;
}
+2 -2
View File
@@ -98,8 +98,8 @@ HRESULT CWand::Render()
}
}
#ifdef _DEBUG
m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
//m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
//m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
#endif // _DEBUG
return S_OK;
+1 -1
View File
@@ -32,7 +32,7 @@ class CBombard final : public CEffect_Container
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
_wstring m_wstrEffectName = {};
class CPartObject* m_pLight_Projectile = {};
class CEffectParts* m_pLight_Projectile = {};
_vector m_vCameraLook = {};
public:
static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -0,0 +1,49 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CBombardSide final : public CEffect_Container
{
private:
CBombardSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CBombardSide(const CBombardSide& rhs);
virtual ~CBombardSide() = 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) 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_pWandLight = { nullptr };
class CTrailObject* m_pWandTrail = { nullptr };
class CEffectParts* m_pWandParticle = { nullptr };
public:
static CBombardSide* 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
+1 -1
View File
@@ -26,7 +26,7 @@ namespace Client
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, JAP, REVELIO, PROTEGO, STUPEFY,
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
JAP_SIDE
JAP_SIDE, BOMBARDA_SIDE , DESCENDO_SIDE , LEVIOSO_SIDE
,END
};
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
@@ -0,0 +1,48 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CDecendoSide final : public CEffect_Container
{
private:
CDecendoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDecendoSide(const CDecendoSide& rhs);
virtual ~CDecendoSide() = 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) 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_pWandLight = { nullptr };
class CTrailObject* m_pWandTrail = { nullptr };
public:
static CDecendoSide* 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
@@ -21,12 +21,16 @@ class CEffectParts final : public CEffectObject
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual _vector Get_WorldPostion() override;
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
public:
static CEffectParts* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -25,6 +25,8 @@ class CEffect_Container abstract : public CContainerObject
virtual HRESULT Pre_Setting(CGameObject* pObject);
HRESULT Load_Package(const _char* pPath);
public:
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -35,8 +37,9 @@ class CEffect_Container abstract : public CContainerObject
void Update_Event(_float fTimeDelta);
HRESULT Reset_EffectParts();
protected:
class CPhysXEffectHitBox* m_pPhysHitBox = {};
_float4 m_vStartPos = {};
_float4 m_vEndPos = {};
PSX::PxSweepBuffer hitBuffer = {};
protected:
_wstring m_wstrEffectName = {};
@@ -0,0 +1,48 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CLeviosoSide final : public CEffect_Container
{
private:
CLeviosoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CLeviosoSide(const CLeviosoSide& rhs);
virtual ~CLeviosoSide() = 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) 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_pWandLight = { nullptr };
class CTrailObject* m_pWandTrail = { nullptr };
public:
static CLeviosoSide* 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
-1
View File
@@ -18,7 +18,6 @@ class CNomalJap final : public CEffect_Container
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
void MoveHitBox(Engine::_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta) override;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

After

Width:  |  Height:  |  Size: 22 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

After

Width:  |  Height:  |  Size: 13 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 7.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

After

Width:  |  Height:  |  Size: 16 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

After

Width:  |  Height:  |  Size: 18 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 7.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

After

Width:  |  Height:  |  Size: 13 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 7.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 4.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

After

Width:  |  Height:  |  Size: 4.1 MiB

@@ -441,7 +441,7 @@ technique11 PosTexTechnique11
pass TrailBlur
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
+1 -1
View File
@@ -44,7 +44,7 @@ HRESULT CDecendo::Initialize(void* pArg)
SAFE_ADDREF(m_pProjectile_Blur);
SAFE_ADDREF(m_pProjectile);
m_fDuration = 2.5f;
m_fDuration = 4.f;
return S_OK;
}
@@ -3,6 +3,9 @@
#include "GameInstance.h"
#include "Effect_Editor.h"
#include "Layer.h"
#include "Player.h"
#include "Wand.h"
CEditEffect::CEditEffect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffectObject{ pDevice, pContext }
@@ -83,7 +86,9 @@ void CEditEffect::Late_Update(_float fTimeDelta)
if (m_isWandPos == true)
{
m_pTransformCom->Set_WorldMatrix()
_vector vWandPos = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Get_PartObject<CWand>()->Get_WorldPostion();
m_pTransformCom->Set_State(STATE::POSITION, vWandPos);
}
if (m_EffectInfo.isBloom == true)
@@ -6,7 +6,8 @@
#include "TrailObject.h"
#include "EffectPool.h"
#include "Layer.h"
#include "Player.h"
#include "Wand.h"
#include <sstream>
@@ -89,8 +90,25 @@ void CEffect_Editor::Update(_float fTimeDelta)
//Update_Event(fTimeDelta);
/* 트레일 업데이트 */
if (m_pTrailObject != nullptr)
m_pTrailObject->Trail_Update(m_pTransformCom->Get_XMWorldMatrix(), fTimeDelta);
if (m_isWandPos == true)
{
if (m_pTrailObject != nullptr)
{
_matrix vWandPos = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Get_PartObject<CWand>()->Get_WorldMatrix();
m_pTrailObject->Trail_Update(vWandPos, fTimeDelta);
}
}
else
{
if (m_pTrailObject != nullptr)
m_pTrailObject->Trail_Update(m_pTransformCom->Get_XMWorldMatrix(), fTimeDelta);
}
}
@@ -542,6 +560,7 @@ void CEffect_Editor::Describe_Entity()
if (m_pTrailObject != nullptr)
{
m_pTrailObject->Describe_Entity();
GUI::Checkbox("WAND POS", &m_isWandPos);
}
ImGui::End();
@@ -44,6 +44,9 @@ void CTrailObject::Update(_float fTimeDelta)
return;
/* 디졸브 타임*/
if (m_TrailInfo.vDistortionTime.y != 0)
{
+2 -2
View File
@@ -97,8 +97,8 @@ HRESULT CWand::Render()
}
}
#ifdef _DEBUG
m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
/*m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);*/
#endif // _DEBUG
return S_OK;
@@ -56,7 +56,7 @@ class CEffect_Editor final : public CEffect_Container
private:
class CEffectPool* m_pEffectPool = nullptr;
_bool m_isWandPos = {};
public:
static CEffect_Editor* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -123,8 +123,10 @@ class CTrailObject final : public CPartObject
_string m_strName = {};
TRAIL_INFO m_TrailInfo = {};
_float4x4* m_pParantsMatrix = {};
};
NS_END
@@ -194,7 +194,7 @@ _bool CCharacter_Controller::UpdateGroundByCast(_float fTimeDelta)
if (true == bHit) { // 쿼리해서 스태틱 중에 터레인 액터들이 맞으면 다시 갱신
const PSX::PxSweepHit& hit = pxBuffer.block;
PSX::PxRigidActor* pActor = hit.actor;
PSX::PxShape* pShape = hit.shape;
@@ -49,7 +49,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
}
}
}
m_pThreadHolder = CThreadHolder::Create( 12 );
m_pThreadHolder = CThreadHolder::Create( 3 );
if (nullptr == m_pThreadHolder) {
return E_FAIL;
}
@@ -694,6 +694,10 @@ _bool CGameInstance::SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir,
{
return m_pPhysX_Manager->SphereCast(fRadius, vStartPos, vDir, fDistance, flagHitsData, flagQuery, hitBuffer);
}
_bool CGameInstance::SphereCast(_float fRadius, _fvector vStartPos, _fvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer)
{
return m_pPhysX_Manager->SphereCast(fRadius, vStartPos, vDir, fDistance, flagHitsData, flagQuery, hitBuffer);
}
PSX::PxController* CGameInstance::Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc)
{
return m_pPhysX_Manager->Add_CapsuleController(Desc);
@@ -163,13 +163,39 @@ _bool CPhysX_Manager::SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir
PSX::PxTransform startPose(startPos, startRot);
PSX::PxVec3 sweepDir(vDir.x, vDir.y, vDir.z);
sweepDir.normalize();
PSX::PxQueryFilterData filterData(flagQuery);
return m_pScene->sweep(sphereGeom, startPose, sweepDir, fDistance, hitBuffer, flagHitsData, filterData);
}
_bool CPhysX_Manager::SphereCast(_float fRadius, _fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer)
{
_float3 vDir = {};
_float3 vStartPos = {};
XMStoreFloat3(&vDir, _vDir);
XMStoreFloat3(&vStartPos, _vStartPos);
PSX::PxSphereGeometry sphereGeom(fRadius);
PSX::PxVec3 startPos(vStartPos.x, vStartPos.y, vStartPos.z);
PSX::PxQuat startRot(PSX::PxIdentity);
PSX::PxTransform startPose(startPos, startRot);
PSX::PxVec3 sweepDir(vDir.x, vDir.y, vDir.z);
sweepDir.normalize();
PSX::PxQueryFilterData filterData(flagQuery);
_bool bHit = m_pScene->sweep(sphereGeom, startPose, sweepDir, fDistance, hitBuffer, flagHitsData, filterData);
return bHit;
}
void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
{
m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh);
@@ -127,7 +127,6 @@ enum class PXOBJECT : _uint {
SKILL_BOMBARD_FLAME,
SKILL_INCENDIO_STRIKE,
SKILL_INCENDIO_SPREAD,
#pragma endregion
#pragma region NEUTRAL_HITBOX
NEUTRAL_HITBOX = 300,
@@ -200,6 +200,7 @@ class ENGINE_DLL CGameInstance final : public CBase
PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _fvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
PSX::PxController* Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc);
PSX::PxController* Add_BoxController(PSX::PxBoxControllerDesc& Desc);
@@ -30,6 +30,7 @@ class CPhysX_Manager final : public CBase
PSX::PxMaterial* Create_Material(const _float3* vMatInfo);
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _fvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
#ifdef EDITOR_PROJECT