commit
This commit is contained in:
@@ -161,6 +161,7 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Stupefy.h" />
|
||||
<ClInclude Include="..\Public\BroomRaceManager.h" />
|
||||
<ClInclude Include="..\Public\BroomRacerAI.h" />
|
||||
<ClInclude Include="..\Public\Chair_Splesh.h" />
|
||||
@@ -358,6 +359,7 @@ call Update_Resources.bat
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Stupefy.cpp" />
|
||||
<ClCompile Include="..\Private\Boss_HpBar.cpp" />
|
||||
<ClCompile Include="..\Private\Barral_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\BroomRaceManager.cpp" />
|
||||
|
||||
@@ -611,6 +611,9 @@
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Stupefy.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1281,6 +1284,9 @@
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot">
|
||||
<UniqueIdentifier>{6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Stupefy">
|
||||
<UniqueIdentifier>{7672784a-86a8-4485-a4de-a979bd0c8f52}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1836,6 +1842,9 @@
|
||||
<ClCompile Include="..\Private\Quest_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Stupefy.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -209,6 +209,9 @@ HRESULT CEffectObject::Render_Bloom()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Render(i)))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -809,7 +812,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -936,6 +939,13 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskOffset", &m_EffectInfo.vMaskOffset, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (m_pDiffuse_TextureCom != nullptr)
|
||||
{
|
||||
@@ -979,9 +989,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "Goblin_Teleport.h"
|
||||
#include "Accio.h"
|
||||
#include "Screen_Wind.h"
|
||||
#include "Stupefy.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -370,6 +371,18 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStupefy* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CStupefy>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -566,14 +566,14 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
{
|
||||
for (_uint i = 0; i < 1; ++i)
|
||||
for (_uint i = 0; i < 0; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
for (_uint i = 0; i <1; ++i)
|
||||
for (_uint i = 0; i <3; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Mage>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &i))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -164,6 +164,7 @@
|
||||
#include "Chair_Splesh.h"
|
||||
#include "Barral_Splesh.h"
|
||||
#include "Screen_Wind.h"
|
||||
#include "Stupefy.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -335,7 +336,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = false;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isLoad_Background = true;
|
||||
isLoad_Background = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = false;
|
||||
@@ -1724,6 +1725,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStupefy>(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -324,6 +324,12 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
||||
}
|
||||
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::SHIELD))
|
||||
{
|
||||
m_bShield = true;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (m_isDebugMode == true)
|
||||
return;
|
||||
@@ -336,10 +342,7 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
else {
|
||||
m_fHitDegree = -1.f;
|
||||
}
|
||||
if (m_pFSM->IsEnable(FSMSTATE::SHIELD))
|
||||
{
|
||||
m_bShield = true;
|
||||
}
|
||||
|
||||
|
||||
if(!m_pFSM->IsEnable(FSMSTATE::DODGE) && !m_bShield)
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
@@ -1191,7 +1191,7 @@ void CPlayer::Behavior_SpellEnter()
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); },
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); }, /* 임시로 바꿔놓음 */
|
||||
fRatio);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
@@ -1469,13 +1469,17 @@ void CPlayer::Behavior_ShieldEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
|
||||
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f);
|
||||
if (!m_bShield)
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
|
||||
0.1f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
|
||||
0.1f);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
@@ -1486,6 +1490,7 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
|
||||
if (m_bShield)
|
||||
{
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Q))
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::PARRY);
|
||||
@@ -1534,10 +1539,11 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
m_pGameInstance->SlowMotion(0.8f, 0.3f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
/* Add_Event(pairAnimInfo.first,
|
||||
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
|
||||
0.2f);
|
||||
*/ m_bShield = false;
|
||||
|
||||
m_bShield = false;
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
@@ -38,9 +38,10 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
m_pSphereLay = Get_PartObject<CEffectParts>("ProtegoLay");
|
||||
|
||||
SAFE_ADDREF(m_pSphere);
|
||||
|
||||
SAFE_ADDREF(m_pSphereLay);
|
||||
|
||||
m_wstrEffectName = L"Protego";
|
||||
|
||||
@@ -65,11 +66,14 @@ void CProtego::Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
/* 시작 사이즈 러프 */
|
||||
if (m_fSizeAccTime > XM_PIDIV2)
|
||||
return;
|
||||
@@ -80,6 +84,7 @@ void CProtego::Update(_float fTimeDelta)
|
||||
_float3 vSize = _float3(fSize, fSize, fSize);
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
}
|
||||
|
||||
void CProtego::Late_Update(_float fTimeDelta)
|
||||
@@ -98,13 +103,16 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
m_pSphere->Set_Visible(true);
|
||||
m_pSphereLay->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
_float3 vSize = _float3(1.f, 1.f, 1.f);
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
@@ -180,6 +188,7 @@ void CProtego::Free()
|
||||
// SAFE_RELEASE(m_pPhysHitBox);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pSphere);
|
||||
SAFE_RELEASE(m_pSphereLay);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
#include "pch.h"
|
||||
#include "Stupefy.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CStupefy::CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CStupefy::CStupefy(const CStupefy& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stupefy")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CStupefy::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_iSkillType = ENUM_CLASS(SKILL_TYPE::STUPEFY);
|
||||
|
||||
m_wstrEffectName = L"Stupefy";
|
||||
|
||||
m_pProjectile0 = Get_PartObject<CEffectParts>("Stupefy_PJ0");
|
||||
SAFE_ADDREF(m_pProjectile0);
|
||||
|
||||
m_pProjectile1 = Get_PartObject<CEffectParts>("Stupefy_PJ1");
|
||||
SAFE_ADDREF(m_pProjectile1);
|
||||
|
||||
m_pStupefy_PJ_PT = Get_PartObject<CEffectParts>("Stupefy_PJ_PT");
|
||||
SAFE_ADDREF(m_pStupefy_PJ_PT);
|
||||
|
||||
m_fDuration = 4.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CStupefy::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pStupefy_PJ_PT->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CStupefy::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pStupefy_PJ_PT->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CStupefy::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion());
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
|
||||
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
|
||||
CEffectParts* pStupefy_PJ0 = Get_PartObject<CEffectParts>("Stupefy_PJ0");
|
||||
CEffectParts* pStupefy_PJ1 = Get_PartObject<CEffectParts>("Stupefy_PJ1");
|
||||
CEffectParts* pWand_Distortion = Get_PartObject<CEffectParts>("Wand_Distortion");
|
||||
|
||||
CEffectParts* pStupefy_Light_Long = Get_PartObject<CEffectParts>("Stupefy_Light_Long");
|
||||
CEffectParts* pBodyFlare = Get_PartObject<CEffectParts>("BodyFlare");
|
||||
|
||||
CEffectParts* pStupefy_Smoke = Get_PartObject<CEffectParts>("Stupefy_Smoke");
|
||||
|
||||
pStupefy_PJ0->Set_Visible(true);
|
||||
pStupefy_PJ1->Set_Visible(true);
|
||||
pWand_Distortion->Set_Visible(true);
|
||||
pStupefy_Light_Long->Set_Visible(true);
|
||||
pBodyFlare->Set_Visible(true);
|
||||
pStupefy_Smoke->Set_Visible(true);
|
||||
m_pStupefy_PJ_PT->Set_Visible(true);
|
||||
|
||||
_vector vDirection = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
/*완드 포지션*/
|
||||
|
||||
_vector vWandPos = pWand->Get_WorldPostion();
|
||||
|
||||
pStupefy_PJ0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
pStupefy_PJ1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
|
||||
m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
//
|
||||
/*몸통 포지션*/
|
||||
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position() + vDirection * -0.1f;
|
||||
|
||||
pStupefy_Light_Long->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
pBodyFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
pWand_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
/*발 포지션*/
|
||||
|
||||
_vector vPlayerFootPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
pStupefy_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f));
|
||||
|
||||
|
||||
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
|
||||
_vector vStartPos = vWandPos;
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
|
||||
m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
if (nullptr != m_Info.pUnit) {
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
}
|
||||
else {
|
||||
// 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
_float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos));
|
||||
|
||||
CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component<CTransform>();
|
||||
CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component<CTransform>();
|
||||
|
||||
_vector vUp = XMVector3Normalize(vDirection) * fLength;
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight));
|
||||
_vector vPos = vPlayerPos;
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CStupefy* CStupefy::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CStupefy* pInstance = new CStupefy(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CStupefy");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CStupefy::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CStupefy* pInstance = new CStupefy(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CStupefy");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CStupefy::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
CEffectParts* pStupefy_Hit_PT = Get_PartObject<CEffectParts>("Stupefy_Hit_PT");
|
||||
CEffectParts* pStupefy_Circle0 = Get_PartObject<CEffectParts>("Stupefy_Circle0");
|
||||
CEffectParts* pHitFlare = Get_PartObject<CEffectParts>("HitFlare");
|
||||
|
||||
|
||||
pStupefy_Hit_PT->Set_Visible(true);
|
||||
pStupefy_Hit_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pStupefy_Circle0->Set_Visible(true);
|
||||
pStupefy_Circle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pHitFlare->Set_Visible(true);
|
||||
pHitFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
|
||||
m_pProjectile0->Set_Visible(false);
|
||||
m_pProjectile1->Set_Visible(false);
|
||||
|
||||
/*맞는순간 위로 올리기*/
|
||||
m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f));
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CStupefy::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pProjectile0);
|
||||
SAFE_RELEASE(m_pProjectile1);
|
||||
SAFE_RELEASE(m_pStupefy_PJ_PT);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CStupefy::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CStupefy::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -202,7 +202,8 @@ namespace Client
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vRimLightColor = {};
|
||||
|
||||
_float4 vPadding4 = {};
|
||||
_float2 vMaskOffset = {};
|
||||
_float2 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isRimLight = {};
|
||||
|
||||
@@ -31,6 +31,7 @@ class CProtego final : public CEffect_Container
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pSphere = { nullptr };
|
||||
class CEffectParts* m_pSphereLay = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
_float m_fSizeAccTime = {};
|
||||
_float m_fAmountSize = {};
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CStupefy final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CStupefy(const CStupefy& rhs);
|
||||
virtual ~CStupefy() = 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:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CEffectParts* m_pProjectile0 = {};
|
||||
class CEffectParts* m_pProjectile1 = {};
|
||||
class CEffectParts* m_pStupefy_PJ_PT = {};
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
|
||||
_float m_fLinearSpeed = 0.65f;
|
||||
_float3 m_vCameraLook = {};
|
||||
public:
|
||||
static CStupefy* 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
|
||||
BIN
Binary file not shown.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -95,6 +95,7 @@ float2 g_vMaskDistortionUVGainAmount;
|
||||
float2 g_vUVMaskCutting;
|
||||
|
||||
int g_iMaskMoveLerpOption;
|
||||
float2 g_vMaskOffset;
|
||||
/* 디졸브 */
|
||||
|
||||
|
||||
@@ -387,6 +388,7 @@ float4 DrawEffect(PS_IN In)
|
||||
|
||||
vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex));
|
||||
|
||||
vMaskTexcoord += g_vMaskOffset;
|
||||
// 마스크 디스토션
|
||||
if (g_isDistortion == true)
|
||||
{
|
||||
@@ -859,6 +861,8 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
|
||||
|
||||
vMtrlDiffuse += RimLight(In);
|
||||
|
||||
float fBloomStrength = g_fBloomStrength;
|
||||
|
||||
if (g_isBloomDissolve == true)
|
||||
|
||||
@@ -756,6 +756,7 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::Checkbox("MaskClampSample", &m_EffectInfo.isMaskClampSample);
|
||||
|
||||
ImGui::PushItemWidth(80);
|
||||
GUI::DragFloat2("MaskOffset", (_float*)&m_EffectInfo.vMaskOffset, 0.01f);
|
||||
GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_EffectInfo.vMaskingUVGainAmount, 0.01f);
|
||||
GUI::Spacing();
|
||||
GUI::DragFloat("SoftMask", &m_EffectInfo.fSoftMask, 0.01f, 0.f);
|
||||
@@ -787,6 +788,7 @@ void CEditEffect::Describe_Entity()
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
GUI::Separator(); GUI::Spacing();
|
||||
|
||||
GUI::TreePop();
|
||||
|
||||
@@ -166,6 +166,9 @@ HRESULT CEffectObject::Render_Bloom()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Render(i)))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -1017,6 +1020,12 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskOffset", &m_EffectInfo.vMaskOffset, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ CEffect_Editor::CEffect_Editor(const CEffect_Editor& rhs)
|
||||
HRESULT CEffect_Editor::Initialize_Prototype()
|
||||
{
|
||||
|
||||
ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Levioso");
|
||||
ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Stupify");
|
||||
|
||||
|
||||
for (auto iter : m_MatFiles)
|
||||
|
||||
@@ -34,9 +34,10 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEditEffect>("ProtegoSphere");
|
||||
m_pSphereLay = Get_PartObject<CEditEffect>("ProtegoLay");
|
||||
|
||||
SAFE_ADDREF(m_pSphere);
|
||||
|
||||
SAFE_ADDREF(m_pSphereLay);
|
||||
|
||||
m_wstrEffectName = L"Protego";
|
||||
|
||||
@@ -61,6 +62,7 @@ void CProtego::Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
@@ -78,6 +80,7 @@ void CProtego::Update(_float fTimeDelta)
|
||||
_float3 vSize = _float3(fSize, fSize, fSize);
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
}
|
||||
|
||||
void CProtego::Late_Update(_float fTimeDelta)
|
||||
@@ -96,13 +99,16 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
m_pSphere->Set_Visible(true);
|
||||
m_pSphereLay->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
_float3 vSize = _float3(1.f, 1.f, 1.f);
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
@@ -161,12 +167,8 @@ void CProtego::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
//if(m_pPhysHitBox != nullptr)
|
||||
// if (m_pPhysHitBox->Get_Depth() == false)
|
||||
// SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
SAFE_RELEASE(m_pSphere);
|
||||
|
||||
SAFE_RELEASE(m_pSphereLay);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -127,7 +127,8 @@ class CEffectObject abstract : public CPartObject
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vRimLightColor = {};
|
||||
|
||||
_float4 vPadding4 = {};
|
||||
_float2 vMaskOffset = {};
|
||||
_float2 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isRimLight = {};
|
||||
|
||||
@@ -34,6 +34,7 @@ class CProtego final : public CEffect_Container
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEditEffect* m_pSphere = { nullptr };
|
||||
class CEditEffect* m_pSphereLay = { nullptr };
|
||||
|
||||
_float m_fSizeAccTime = {};
|
||||
_float m_fAmountSize = {};
|
||||
|
||||
Reference in New Issue
Block a user