diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index eea9ad819..7ad4932fd 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -163,6 +163,10 @@ call Update_Resources.bat + + + + @@ -475,6 +479,10 @@ call Update_Resources.bat + + + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index b49271f9f..a660ac69f 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -952,13 +952,25 @@ 02.GameObjects\Effect\Effects\Reparo - + 04.Mechanic\State\Focus\Spell_Learning 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + + 02.GameObjects\Effect\Effects\Potion\PotionScreen + + + 02.GameObjects\Effect\Effects\Potion\PotionBroken + + + 02.GameObjects\Effect\Effects\HitScreen + + + 02.GameObjects\Effect\BroomRace\Bubble + @@ -1976,10 +1988,28 @@ {88c3bc02-a51d-4cd8-87a2-197722d48f83} - - + + {26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf} + + {1f2c5d56-c8a8-458e-a48c-444d7c885cf3} + + + {3f02d29d-759e-4572-9439-ec79909273e5} + + + {6fa4085d-e9eb-47c3-b384-2aa92baf1d55} + + + {8c62c8f3-d8ba-4a6d-99bd-6270333ea0bb} + + + {67efb2e4-26f6-41b5-a754-eddf91f1d528} + + + {ce57978a-c208-4fe6-bbfd-8f582c20ff07} + @@ -2852,13 +2882,25 @@ 02.GameObjects\Effect\Effects\Reparo - + 04.Mechanic\State\Focus\Spell_Learning 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + + 02.GameObjects\Effect\Effects\Potion\PotionScreen + + + 02.GameObjects\Effect\Effects\Potion\PotionBroken + + + 02.GameObjects\Effect\Effects\HitScreen + + + 02.GameObjects\Effect\BroomRace\Bubble + diff --git a/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp b/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp new file mode 100644 index 000000000..b60dbf613 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp @@ -0,0 +1,194 @@ +#include "pch.h" +#include "BroomRace_Bubble.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "Goblin_BattleAxe.h" +#include "TrailObject.h" + +CBroomRace_Bubble::CBroomRace_Bubble(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CBroomRace_Bubble::CBroomRace_Bubble(const CBroomRace_Bubble& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CBroomRace_Bubble::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BroomBubble"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CBroomRace_Bubble::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_fDuration = 99999.f; + + + + return S_OK; +} + +void CBroomRace_Bubble::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CBroomRace_Bubble::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CBroomRace_Bubble::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + CEffectParts* pBubble = Get_PartObject("Bubble"); + + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = pBubble->Get_WorldPostion(); + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); + + OnCollision(this, &CollisionInfo); + + } +} + +HRESULT CBroomRace_Bubble::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + _float4* pPos = static_cast<_float4*>(pArg); + + m_vStartPos = *pPos; + + _vector vPosVector = XMLoadFloat4(pPos); + + CEffectParts* pBubble = Get_PartObject("Bubble"); + CEffectParts* pBubble_Distortion = Get_PartObject("Bubble_Distortion"); + CEffectParts* pHit_Bubble = Get_PartObject("Hit_Bubble"); + + pBubble->Set_Visible(true); + pBubble_Distortion->Set_Visible(true); + + pBubble->Get_Component()->Set_State(STATE::POSITION, vPosVector); + pBubble_Distortion->Get_Component()->Set_State(STATE::POSITION, vPosVector); + pHit_Bubble->Get_Component()->Set_State(STATE::POSITION, vPosVector); + + + return S_OK; +} + +HRESULT CBroomRace_Bubble::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CBroomRace_Bubble::Ready_Child() +{ + return S_OK; +} + +CBroomRace_Bubble* CBroomRace_Bubble::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBroomRace_Bubble* pInstance = new CBroomRace_Bubble(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBroomRace_Bubble"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CBroomRace_Bubble::Clone(void* pArg, CGameObject* pOwner) +{ + CBroomRace_Bubble* pInstance = new CBroomRace_Bubble(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBroomRace_Bubble"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBroomRace_Bubble::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + + CEffectParts* pBubble = Get_PartObject("Bubble"); + CEffectParts* pBubble_Distortion = Get_PartObject("Bubble_Distortion"); + + pBubble->Set_Visible(false); + pBubble_Distortion->Set_Visible(false); + + m_fDuration = 3.f; + m_fAccTime = 0.f; + + CEffectParts* pHit_Bubble = Get_PartObject("Hit_Bubble"); + + pHit_Bubble->Set_Visible(true); + +} + +void CBroomRace_Bubble::Free() +{ + __super::Free(); + + +} +#ifdef _DEBUG +void CBroomRace_Bubble::Describe_Entity() +{ + +} +#endif + +HRESULT CBroomRace_Bubble::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index c489367f8..5fb399b19 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -54,6 +54,10 @@ #include "Transformation.h" #include "Avadakedavra.h" #include "Reparo.h" +#include "PotionBroken.h" +#include "PotionScreen.h" +#include "HitScreen.h" +#include "BroomRace_Bubble.h" #include "Goblin_ProtegoHit.h" #include "Duelist_ProtegoHit.h" @@ -522,6 +526,42 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::POTION_BROKEN, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CPotionBroken* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_POTION, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CPotionScreen* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_HIT, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CHitScreen* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::BROOM_RACE_BUBBLE, 20, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CBroomRace_Bubble* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index 503a5f961..ed5c2ad89 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -84,6 +84,10 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg) m_pModelCom->Set_DisableRootMotionScale(true); + m_fRimStrength = 2.3f; + m_fRimPower = 2.3f; + m_vRimColor = _float4(0.f , 0.f , 0.f , 0.5f); + return S_OK; } @@ -144,6 +148,8 @@ void CGoblin_Assassin::Update(_float fTimeDelta) //m_pDetection->Set_Active(m_bDetection); Update_Disolve(fTimeDelta, 0.8f); + + m_pMotionTrailCom->Update_Capture(fTimeDelta); } void CGoblin_Assassin::Late_Update(_float fTimeDelta) @@ -163,12 +169,30 @@ void CGoblin_Assassin::Late_Update(_float fTimeDelta) } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); } HRESULT CGoblin_Assassin::Render() { + RENDER ePass = m_pGameInstance->Get_CurrentRenderPass(); + + if(ePass == RENDER::BLEND) + { + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + + if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { + return E_FAIL; + } + + return S_OK; + } + + if (m_bVisible == false) return S_OK; @@ -237,9 +261,6 @@ HRESULT CGoblin_Assassin::Render() m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float)); } - if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { - return E_FAIL; - } return S_OK; } @@ -350,6 +371,17 @@ HRESULT CGoblin_Assassin::Render_Shadow(SHADOW eType) HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) { + if(FAILED(m_pShaderCom->Bind_RawValue("g_fRimStrength" , &m_fRimLightStrength , sizeof(_float)))) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimPower", &m_fRimPower, sizeof(_float)))) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimColor", &m_vRimColor, sizeof(_float4)))) + return E_FAIL; + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); for (_uint i = 0; i < iNumMeshes; i++) { @@ -362,7 +394,7 @@ HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV) if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) return E_FAIL; - if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::RIMLIGHT)))) return E_FAIL; m_pContext->VSSetShaderResources(26, 1, &pSRV); @@ -724,7 +756,7 @@ void CGoblin_Assassin::Describe_Entity() { GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); - if (GUI::CollapsingHeader("Goblin")) { + if (GUI::CollapsingHeader("Goblin_Assassin")) { GUI::Checkbox("LookAt", &m_bLookAt); string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); @@ -748,6 +780,15 @@ void CGoblin_Assassin::Describe_Entity() GUI::Text("Length %.2f", m_fLength); GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance); + + + GUI::DragFloat("RimStrength", &m_fRimStrength , 0.01f); + GUI::DragFloat("RimPower", &m_fRimPower, 0.01f); + GUI::ColorEdit4("RimColor", (_float*)(&m_vRimColor)); + GUI::DragFloat("MotionTrailTime", &m_vCaptureTimer.y); + + m_pMotionTrailCom->Describe_Entity(); + } GUI::End(); } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp index 9b482c77c..018fe4de3 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp @@ -46,8 +46,8 @@ HRESULT CGoblin_Assassin_Spector::Initialize(void* pArg) m_vOriginScale = m_pTransformCom->Get_Scale(); - m_pLeftHand_BoneMat = Get_PartObject("Goblin_Sword_L")->Get_Component()->Get_BoneMatrixPtr("Bone"); - m_pRightHand_BoneMat = Get_PartObject("Goblin_Sword_R")->Get_Component()->Get_BoneMatrixPtr("Bone"); + m_pLeftHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand"); + m_pRightHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand"); m_pModelCom->Set_AnimationIndex(5); m_pModelCom->Play_Animation(0, m_pTransformCom); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp index 5d17850e7..11d016b6d 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp @@ -302,8 +302,12 @@ void CGoblin_Assassin::Behavior_SlashEnter() HRESULT CGoblin_Assassin::Behavior_SlashExitCheck(_float fTimeDelta) { _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + + + if (fRatio >= 0.8f) { + m_pGoblinSpector->Spector_Trail_Visible(false); Get_PartObject("Goblin_Sword_L")->Set_CanTakeDamage(false); Get_PartObject("Goblin_Sword_R")->Set_CanTakeDamage(false); m_pFSM->Change_State(FSMSTATE::COMBAT); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp b/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp index 6d621219e..019d51417 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp @@ -50,7 +50,7 @@ HRESULT CGoblin_Attack::Initialize(void* pArg) SAFE_ADDREF(m_pPT1); SAFE_ADDREF(m_pPT2); SAFE_ADDREF(m_pAttack_Trail); - m_fDuration = 2.f; + m_fDuration = 4.f; m_Events.emplace(1.2f, [&]() { @@ -87,6 +87,7 @@ void CGoblin_Attack::Update(_float fTimeDelta) m_pAttack_Trail->Trail_Update(BoneMat, fTimeDelta); + } void CGoblin_Attack::Late_Update(_float fTimeDelta) @@ -122,6 +123,8 @@ HRESULT CGoblin_Attack::Pre_Setting(CGameObject* pObject, void* pArg) m_pPT2->Set_Visible(true); m_pAttack_Trail->Set_Visible(true); m_pAttack_Trail->SetDissolve(false); + m_pAttack_Trail->Get_Component()->Reset_Trail(); + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/HitScreen.cpp b/Jusin154_Team3D/Client/Private/HitScreen.cpp new file mode 100644 index 000000000..d8afd9739 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/HitScreen.cpp @@ -0,0 +1,159 @@ +#include "pch.h" +#include "HitScreen.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "Goblin_BattleAxe.h" +#include "TrailObject.h" + +CHitScreen::CHitScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CHitScreen::CHitScreen(const CHitScreen& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CHitScreen::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/HitScreen"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CHitScreen::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_fDuration = 4.f; + + + + return S_OK; +} + +void CHitScreen::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CHitScreen::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CHitScreen::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CHitScreen::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CEffectParts* pHit_Screen_FX = Get_PartObject("Hit_Screen_FX"); + + pHit_Screen_FX->Set_Visible(true); + + + return S_OK; +} + +HRESULT CHitScreen::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CHitScreen::Ready_Child() +{ + return S_OK; +} + +CHitScreen* CHitScreen::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CHitScreen* pInstance = new CHitScreen(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CHitScreen"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CHitScreen::Clone(void* pArg, CGameObject* pOwner) +{ + CHitScreen* pInstance = new CHitScreen(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CHitScreen"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CHitScreen::OnCollision(CGameObject* pOther, void* pDesc) +{ + + +} + +void CHitScreen::Free() +{ + __super::Free(); + + +} +#ifdef _DEBUG +void CHitScreen::Describe_Entity() +{ + +} +#endif + +HRESULT CHitScreen::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Item_Potion.cpp b/Jusin154_Team3D/Client/Private/Item_Potion.cpp index cfcbd8f72..523d17cdf 100644 --- a/Jusin154_Team3D/Client/Private/Item_Potion.cpp +++ b/Jusin154_Team3D/Client/Private/Item_Potion.cpp @@ -61,15 +61,22 @@ void CItem_Potion::Late_Update(_float fTimeDelta) if (m_bVisible) { m_fTimer += fTimeDelta; + if (m_fTimer >= 1.f && m_bOnce == false) { + m_pEffectPool->Use_Skill(SKILL_TYPE::SCREEN_POTION , this); + m_bOnce = true; + } if (m_fTimer >= 1.6f) { m_bAttach = false; } + if (m_fTimer >= 3.f) { m_fTimer = 0.f; m_bVisible = false; m_bAttach = true; + m_bOnce = false; } } + if (m_bAttach) { m_bHit = false; @@ -189,12 +196,21 @@ void CItem_Potion::Check_GroundCollision() void CItem_Potion::OnCollision(CGameObject* pOther, void* pDesc) { + if (m_bVisible == false) + return; + m_bHit = false; + m_pEffectPool->Use_Skill(SKILL_TYPE::POTION_BROKEN, this); + m_fTimer = 0.f; + m_bVisible = false; + m_bAttach = true; + m_bOnce = false; } void CItem_Potion::Set_Attach(_bool Attach) { m_bAttach = Attach; + } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 1840ee53b..405209736 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -210,6 +210,10 @@ #include "Avadakedavra.h" #include "Goblin_Teleport.h" +#include "PotionBroken.h" +#include "PotionScreen.h" +#include "HitScreen.h" +#include "BroomRace_Bubble.h" #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" @@ -2946,7 +2950,21 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CScreen_Wind::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPotionBroken::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPotionScreen::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHitScreen::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroomRace_Bubble::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -4112,8 +4130,8 @@ HRESULT CLoader::Loading_For_GamePlay() { CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model")); CMotion_Trail::MODELCAPTURE_DESC Desc{}; - Desc.fMaxCaptureLifeTime = 2.f; - Desc.iMaximumCapture = 4; + Desc.fMaxCaptureLifeTime = 0.3f; + Desc.iMaximumCapture = 16; Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount(); if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) { return E_FAIL; @@ -4123,8 +4141,8 @@ HRESULT CLoader::Loading_For_GamePlay() { CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model")); CMotion_Trail::MODELCAPTURE_DESC Desc{}; - Desc.fMaxCaptureLifeTime = 2.f; - Desc.iMaximumCapture = 4; + Desc.fMaxCaptureLifeTime = 0.7f; + Desc.iMaximumCapture = 16; Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount(); if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/MageSide.cpp b/Jusin154_Team3D/Client/Private/MageSide.cpp index d00c5a72b..635832b4f 100644 --- a/Jusin154_Team3D/Client/Private/MageSide.cpp +++ b/Jusin154_Team3D/Client/Private/MageSide.cpp @@ -49,6 +49,7 @@ HRESULT CMageSide::Initialize(void* pArg) SAFE_ADDREF(m_pMage_PT); SAFE_ADDREF(m_pMage_Trail); + SAFE_ADDREF(m_pMage_Fire); m_fDuration = 5.f; diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 82504467e..9853e33de 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -56,7 +56,7 @@ HRESULT CPlayer::Initialize(void* pArg) Load_KeyFrame(); #if 진우 - m_isDebugMode = true; // 디버그 무적 모드 + m_isDebugMode = false; // 디버그 무적 모드 #endif #if 나 m_isDebugMode = true; // 디버그 무적 모드 diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index ecb439a79..12e6044a5 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -248,6 +248,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) else if (m_pGameInstance->Key_Down(DIK_G)) { Get_PartObject()->Set_Visible(true); m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); + + + } else if (m_pGameInstance->Key_Down(DIK_B)) { m_pFSM->Change_State(FSMSTATE::BROOM_RIDE); @@ -1940,7 +1943,7 @@ void CPlayer::Behavior_ParryEnter() } Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject()); }, 0.01f); @@ -2012,6 +2015,8 @@ void CPlayer::Behavior_HitEnter() } + m_pEffectPool->Use_Skill(SKILL_TYPE::SCREEN_HIT, this); + ProcessHitBehavior(); } diff --git a/Jusin154_Team3D/Client/Private/PotionBroken.cpp b/Jusin154_Team3D/Client/Private/PotionBroken.cpp new file mode 100644 index 000000000..48e9f5aaa --- /dev/null +++ b/Jusin154_Team3D/Client/Private/PotionBroken.cpp @@ -0,0 +1,162 @@ +#include "pch.h" +#include "PotionBroken.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "Goblin_BattleAxe.h" +#include "TrailObject.h" + +CPotionBroken::CPotionBroken(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CPotionBroken::CPotionBroken(const CPotionBroken& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CPotionBroken::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/PotionEffect"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CPotionBroken::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_fDuration = 5.f; + + return S_OK; +} + +void CPotionBroken::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CPotionBroken::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CPotionBroken::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CPotionBroken::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CEffectParts* pPotionEffect = Get_PartObject("PotionEffect"); + CEffectParts* pPotionSmoke = Get_PartObject("PotionSmoke"); + + _vector vPosVector = m_pOwner->Get_Component()->Get_State(STATE::POSITION); + + pPotionEffect->Get_Component()->Set_State(STATE::POSITION, vPosVector); + pPotionSmoke->Get_Component()->Set_State(STATE::POSITION, vPosVector); + + pPotionEffect->Set_Visible(true); + pPotionSmoke->Set_Visible(true); + + + return S_OK; +} + +HRESULT CPotionBroken::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CPotionBroken::Ready_Child() +{ + return S_OK; +} + +CPotionBroken* CPotionBroken::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CPotionBroken* pInstance = new CPotionBroken(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CPotionBroken"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CPotionBroken::Clone(void* pArg, CGameObject* pOwner) +{ + CPotionBroken* pInstance = new CPotionBroken(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CPotionBroken"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CPotionBroken::OnCollision(CGameObject* pOther, void* pDesc) +{ + +} + +void CPotionBroken::Free() +{ + __super::Free(); + + +} +#ifdef _DEBUG +void CPotionBroken::Describe_Entity() +{ + +} +#endif + +HRESULT CPotionBroken::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/PotionScreen.cpp b/Jusin154_Team3D/Client/Private/PotionScreen.cpp new file mode 100644 index 000000000..01e0b20d4 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/PotionScreen.cpp @@ -0,0 +1,159 @@ +#include "pch.h" +#include "PotionScreen.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "Goblin_BattleAxe.h" +#include "TrailObject.h" + +CPotionScreen::CPotionScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CPotionScreen::CPotionScreen(const CPotionScreen& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CPotionScreen::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/PotionScreen"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CPotionScreen::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_fDuration = 4.f; + + + + return S_OK; +} + +void CPotionScreen::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CPotionScreen::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + +} + +void CPotionScreen::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CPotionScreen::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CEffectParts* pPotion_ScreenFX = Get_PartObject("Potion_ScreenFX"); + + pPotion_ScreenFX->Set_Visible(true); + + + return S_OK; +} + +HRESULT CPotionScreen::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CPotionScreen::Ready_Child() +{ + return S_OK; +} + +CPotionScreen* CPotionScreen::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CPotionScreen* pInstance = new CPotionScreen(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CPotionScreen"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CPotionScreen::Clone(void* pArg, CGameObject* pOwner) +{ + CPotionScreen* pInstance = new CPotionScreen(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CPotionScreen"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CPotionScreen::OnCollision(CGameObject* pOther, void* pDesc) +{ + + +} + +void CPotionScreen::Free() +{ + __super::Free(); + + +} +#ifdef _DEBUG +void CPotionScreen::Describe_Entity() +{ + +} +#endif + +HRESULT CPotionScreen::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/StupefySide.cpp b/Jusin154_Team3D/Client/Private/StupefySide.cpp index 550b84866..0ae0c99de 100644 --- a/Jusin154_Team3D/Client/Private/StupefySide.cpp +++ b/Jusin154_Team3D/Client/Private/StupefySide.cpp @@ -131,10 +131,13 @@ HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) if (pWand == nullptr) return E_FAIL; + class CEffectParts* pBlurMesh = Get_PartObject("BlurMesh"); + m_pWandParticle->Set_Visible(true); m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 m_pWandLight->Set_Visible(true); + pBlurMesh->Set_Visible(true); /*트레일 초기화 */ m_pWandTrail->Set_Visible(true); @@ -144,6 +147,7 @@ HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pBlurMesh->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_Owner()->Get_Component()->Get_State(STATE::POSITION)); m_pWandTrail->SetDissolve(false); diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 4edd5bb4b..11d39c981 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -797,9 +797,8 @@ void CTroll::Behavior_DeadEnter() m_pRigidBody->SetActive(false); m_pCharacter_Controller->SetActive(false); - m_pTroll_Particle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); - m_pTroll_Particle2->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); - + m_pTroll_Particle->Set_Visible(false); + m_pTroll_Particle2->Set_Visible(false); m_pLeft_Smoke->Set_Visible(false); m_pRight_Smoke->Set_Visible(false); diff --git a/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h b/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h new file mode 100644 index 000000000..b84f08a2a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CBroomRace_Bubble final : public CEffect_Container +{ +private: + CBroomRace_Bubble(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBroomRace_Bubble(const CBroomRace_Bubble& rhs); + virtual ~CBroomRace_Bubble() = 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_pPT1 = { nullptr }; + class CEffectParts* m_pPT2 = { nullptr }; + class CTrailObject* m_pAttack_Trail = { nullptr }; + const _float4x4* m_vMat = { nullptr }; + + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + +public: + static CBroomRace_Bubble* 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 diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 0169ed767..55abeff00 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -33,7 +33,7 @@ namespace Client MI_Troll_Club_DAENMROSRXO_To , OUTLINE_READ, MI_DANSROMRO_ToSRO, DragonAuraPass, DragonEtherealEyesPass, DragonEtherealWingsPass, DragonWingsPass, DragonBodyPass, DragonRedHotPass, DragonPinkHotPass, DragonYellowHotPass, - PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY + PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY, RIMLIGHT , END }; enum class UI_STATE { @@ -60,16 +60,16 @@ namespace Client ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, LIGHTNING, /* PROPS */ - BOX_SPLESH, CHAIL_SPLESH, BARRAL_SPLASH, + BOX_SPLESH, CHAIL_SPLESH, BARRAL_SPLASH, POTION_BROKEN, BROOM_RACE_BUBBLE, /*상태 이펙트*/ - STUN, BLINK, + STUN, BLINK, /*스크린 이펙트*/ - SCREEN_WIND, + SCREEN_WIND, SCREEN_HIT , SCREEN_POTION, /* 히트 이펙트 */ - PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, + PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, /*사이드*/ JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE, diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h index 59324c1b3..a5da601fa 100644 --- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h +++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h @@ -25,7 +25,7 @@ class CCutSceneInfo final : public CBase void Active_Event(_string& strKey); HRESULT DeActive_ActiveEvent(_string& strKey); void Load_Events(pair<_string, TimeLine*>& pairTimeLine); - + HRESULT Clear_AllEvents(); private: CGameInstance* m_pGameInstance = { nullptr }; class CInfoInstance* m_pInfoInstance = { nullptr }; @@ -46,7 +46,7 @@ class CCutSceneInfo final : public CBase #endif // _DEBUG HRESULT Clear_ActiveEvents(); HRESULT Clear_Events(map<_string, TimeLine*>&Events); - HRESULT Clear_AllEvents(); + HRESULT Ready_GameplayCutScenes(); HRESULT Ready_FieldCutScenes(); diff --git a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h index 7a5b60522..359a597a3 100644 --- a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h +++ b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h @@ -84,8 +84,8 @@ class CGoblin_Assassin final : public CMonster _float m_fMoveTime = {}; _bool m_bFirstMove = {}; _bool m_bPos = {}; - _float m_fAccel = { 3.f}; - _float m_fTargetSpeed = {60.f}; + _float m_fAccel = { 3.f }; + _float m_fTargetSpeed = { 60.f }; _float m_fSpeed = {}; _bool m_bAir = {}; _float m_fGravityAmount = {}; @@ -97,7 +97,11 @@ class CGoblin_Assassin final : public CMonster _float m_fMoveDecisionLimit = 1.2f; _float4 m_vDashDir = {}; - _float2 m_vCaptureTimer = { 0.f, 0.1f }; + _float2 m_vCaptureTimer = { 0.f, 0.01f }; + + _float m_fRimStrength = { 1.f}; + _float m_fRimPower = { 0.f }; + _float4 m_vRimColor = {}; void Behavior_IdleEnter(); HRESULT Behavior_IdleExitCheck(); diff --git a/Jusin154_Team3D/Client/Public/HitScreen.h b/Jusin154_Team3D/Client/Public/HitScreen.h new file mode 100644 index 000000000..2a3777ae8 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/HitScreen.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CHitScreen final : public CEffect_Container +{ +private: + CHitScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CHitScreen(const CHitScreen& rhs); + virtual ~CHitScreen() = 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_pPT1 = { nullptr }; + class CEffectParts* m_pPT2 = { nullptr }; + class CTrailObject* m_pAttack_Trail = { nullptr }; + const _float4x4* m_vMat = { nullptr }; + + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + +public: + static CHitScreen* 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 diff --git a/Jusin154_Team3D/Client/Public/Item_Potion.h b/Jusin154_Team3D/Client/Public/Item_Potion.h index 1f4333ee3..8dd9ecbf3 100644 --- a/Jusin154_Team3D/Client/Public/Item_Potion.h +++ b/Jusin154_Team3D/Client/Public/Item_Potion.h @@ -45,6 +45,7 @@ class CItem_Potion final : public CPartObject _bool m_bAttach = { true }; _float m_fTimer = {}; _bool m_bHit = {}; + _bool m_bOnce = {}; private: HRESULT Ready_Components(); diff --git a/Jusin154_Team3D/Client/Public/PotionBroken.h b/Jusin154_Team3D/Client/Public/PotionBroken.h new file mode 100644 index 000000000..4d4a22a4a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/PotionBroken.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CPotionBroken final : public CEffect_Container +{ +private: + CPotionBroken(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CPotionBroken(const CPotionBroken& rhs); + virtual ~CPotionBroken() = 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 = {}; + +public: + static CPotionBroken* 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 diff --git a/Jusin154_Team3D/Client/Public/PotionScreen.h b/Jusin154_Team3D/Client/Public/PotionScreen.h new file mode 100644 index 000000000..9d955befb --- /dev/null +++ b/Jusin154_Team3D/Client/Public/PotionScreen.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CPotionScreen final : public CEffect_Container +{ +private: + CPotionScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CPotionScreen(const CPotionScreen& rhs); + virtual ~CPotionScreen() = 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_pPT1 = { nullptr }; + class CEffectParts* m_pPT2 = { nullptr }; + class CTrailObject* m_pAttack_Trail = { nullptr }; + const _float4x4* m_vMat = { nullptr }; + + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + +public: + static CPotionScreen* 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 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin index ef6eadf86..6660da18c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:48058f203cc122f819851508bceccc0d9f770dee93b0897c0682335d4aeb2e44 +oid sha256:87477de6575f074df236f26504bad51e532523e69e31b8f94d036c1869cf9581 size 1265 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/BroomBubble/Bubble.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/BroomBubble/Bubble.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble_Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/BroomBubble/Bubble_Distortion.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble_Distortion.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/BroomBubble/Bubble_Distortion.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Hit_Bubble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/BroomBubble/Hit_Bubble.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Hit_Bubble.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/BroomBubble/Hit_Bubble.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin index 4213fca60..1b565e977 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:028981d804f9832afe880942dcf3d24bb069e8bd928c7e09265810c9adfef0ba -size 1202 +oid sha256:23000966771a8512c0b32f1a666a6cba9518fa45992e8311ae24975b18b1b917 +size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin index aee30218b..ba6d21857 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:31508b23f35c1ec71bcfbeb87ef87b8e067391ec24efd8a9495025ea55d14337 -size 1152 +oid sha256:7a8ef40eaecedcc5662898171237712720c4c869b1e21f8c6bec81091a8f1c08 +size 1160 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin index b470b4188..2c86b86b1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f29e7cec579177962fda34974b3b56d4454be4de80e3979553fb81838af99585 -size 1202 +oid sha256:ca6bbc7bcc517227b7f36da399f2f664f16ddc5d624e20474e11aab45bbf942b +size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin index ee28b1d82..18ca3d03e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c23f4b98e7e0c473754733ec9f37f8d5d620e7c5ef5fdfaed19fa4c0f207efcc -size 1152 +oid sha256:5cf3c91a4c3e0ce775a29ae3e1f231301fdb5ac65e645dc8cacaceeb732c8ad7 +size 1160 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/BroomBubble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/BroomBubble.bin new file mode 100644 index 000000000..b00142cc7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/BroomBubble.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff1ca8e75ebea41f867732fc47dc4bcde5925dc232e6cb92ae03d939c07100a9 +size 229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/HitScreen.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/HitScreen.bin new file mode 100644 index 000000000..a9acd2044 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/HitScreen.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88aaafd3c12dd5f1b150642385ec8be16aca8dd4e99e213c97756df90e2836fc +size 78 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/PotionEffect.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/PotionEffect.bin new file mode 100644 index 000000000..d7c8b86e1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/PotionEffect.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cc5c9a5b0657b136b9efe256a9fc8677bd106548fb887f391a9b6e59e53708a +size 137 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/PotionScreen.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/PotionScreen.bin new file mode 100644 index 000000000..f188243e2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/PotionScreen.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:792feb72878da417eca760a84249867351e6f721d79a93454d375991059e23b4 +size 83 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin index c5ffa3902..c48e62548 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bb0d150bb6e87ae13f391e22f1e29a1757113db0ae89ea77cd55e5a60b80ea31 -size 202 +oid sha256:3c4b927a7beeec432a1226a380f6bd4a3ce2e367d27a88f74fc7909db0c24b3f +size 264 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin index e051c7b1a..2598a72f8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Water_Splesh.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:02dcd1f6c60081714fc430dbb356a018d36b4c9b990782d444c3a3d49166533c +oid sha256:6eeca8bc2b5de0f28d08c00dd15c8baf509c6c5dc6372c53e2961461412687c7 size 1215 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin index 0f9346928..e3eb25c5b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c02298204e35c06a863c2d467d3130649f72f6c19ff54daaa8087751f984d95 -size 1162 +oid sha256:af5c86d34488b04462ed4592dc1af43627479fb798c9efa37db550d988ddc1e9 +size 1207 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin index b34dc65d2..ef83264fa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7eed68d1905cb63a7f8f2750b8fe867cec4811050ac56d2438c4d878db0e91f1 -size 1162 +oid sha256:b27bf57f90e25f28a97485a625ae32ccaa57865f28fe8e22febd42c784b51102 +size 1201 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin index 69bb6a7cd..25fc3822e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Barral/Wood_PT2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e3c7d372b1c4d90abb5994103962a54052570e6e6cdf00ec1bc810c886d4c619 -size 1209 +oid sha256:b12bf1a031b88e47ff2ad63340bee69a81e0631e4df2c17506909e90810ac57c +size 1248 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin index bfa38e23e..548110648 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Box/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9e336803e9730d9ea4932ae0a5b1770494336898a068931546e823ddd08d5e34 -size 1201 +oid sha256:da43fa49cd287e09edaaacecfb6c4f4603017ad5df6e01380ca0b534ca55c432 +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin index d731c7dd8..548110648 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fb765eeb637b8d8424e335b8b0d26309400febb214e98a185aba3968326ccde6 -size 1205 +oid sha256:da43fa49cd287e09edaaacecfb6c4f4603017ad5df6e01380ca0b534ca55c432 +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin index 0cb98198c..1a5fc7e49 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ac4c981ed5ae5555e5025eb958e4e4e7bdbb4774effe840c1e9321d65f31873a -size 1169 +oid sha256:6924d381d2ab6abd95050e117f6631c5f4fa70439d37ac06f15915285cde5e15 +size 1216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin index 094b9e683..f10033e9c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PorpBroken/Chair/Wood_PT1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f1dd122ed7323a6fba3e4b05ce471a8f47f482cebc83f91cfe2a8c1059bf678 +oid sha256:82ded9ff50f425382f901aed614212217cca0d2882eee48e635c5aa148b2cdb2 size 1175 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PotionEffect/PotionEffect.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PotionEffect/PotionEffect.bin new file mode 100644 index 000000000..9c3b99dae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PotionEffect/PotionEffect.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efcda4d122efa9c35534cb5690377552fd6806926d21aa5694725f7c9403b9d7 +size 1193 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PotionEffect/PotionSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PotionEffect/PotionSmoke.bin new file mode 100644 index 000000000..1be4d207e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/PotionEffect/PotionSmoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5f1eb97158a4849bb87d80eea5b52a3530c3da29699ec88a2c5595bbb6c2492 +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin index f829c835c..61ea4da52 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a8c9bcf30d20800a50aec55d63608b8e78b920a28cb4d748c88d85d6c33b8d9c -size 1169 +oid sha256:9396503b3166f158dc575960e68f6beca5b67411f9aab239940be06259fff598 +size 1219 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin index 87782589c..1b8ea9810 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3d0457c7ae01b3e01651da8a09c564e366ff6ba2ed20557fad0794f89617e7c6 +oid sha256:e7cd1673c8027f0b044e7bbbf98109498f4b591c4a46f19b21fa569d1f4ddf3f size 1111 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin index 436d643f8..7efd85f7d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bc5728c2f4120da79b34554b4c08999485481dad9f67be2f2fb4cb072c1c8367 +oid sha256:73f6a96d45de45ac47140d490e0c85769717cd4254a5ebad8287afdaed2b28a2 size 1111 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/HitScreen/Hit_Screen_FX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/HitScreen/Hit_Screen_FX.bin new file mode 100644 index 000000000..5045f8867 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/HitScreen/Hit_Screen_FX.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9580ffc6821620c2051d76570d150286edde3657cf923557b75adacfecdc79e0 +size 1265 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin new file mode 100644 index 000000000..38bd5bfe7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ec2f3949f22a41dcdcfce5f469e646f9a7b0bf025fb262b859523f34dc91d7b +size 1219 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/BlurMesh.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/BlurMesh.bin new file mode 100644 index 000000000..a79a64f3d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/BlurMesh.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7b7f1b095678a75f52ce267c2a92e2498b66376a2205863d68a928dccf31961 +size 1160 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_d_crack_012.003.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_d_crack_012.003.bin new file mode 100644 index 000000000..25b91cc3f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_d_crack_012.003.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c45484d81f9f7658784621fa997e3657360d47d3ccbf73c6d51744b53e3f9186 +size 31398 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_d_crack_012.003.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_d_crack_012.003.fbx new file mode 100644 index 000000000..6f89a44ef --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_d_crack_012.003.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38dc3927c5aec7db71933858160cc8efc12cd1edd74aa1245d6fa8fa2cf10ff9 +size 28028 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_t_crack_10.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_t_crack_10.001.bin new file mode 100644 index 000000000..c0d52bc9f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_t_crack_10.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b15c17f5d36704e4900499689d471c57ae31d495651e0c4200068a583a5a520 +size 39708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_t_crack_10.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_t_crack_10.001.fbx new file mode 100644 index 000000000..9c78182d3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/fm_t_crack_10.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7980ea49ae3f43f7c518b56481a8c6cdd767691fe2858d743ca6e0feb36a4e5 +size 25404 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl index 2e08ae843..ae41deabd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl @@ -79,6 +79,11 @@ matrix g_BoneMatrices[256]; matrix g_PrevBoneMatrices[256]; int g_RobeBoneMask[256]; +float g_fRimStrength; +float g_fRimPower; +float4 g_vRimColor; +float2 g_vMotionTrail_LifeTime; + struct VS_IN_MESH { float3 vPosition : POSITION; @@ -1387,6 +1392,21 @@ PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In) return Out; } +PS_OUT_BLEND PS_RIMLIGHT(PS_IN In) +{ + PS_OUT_BLEND Out = (PS_OUT_BLEND) 0; + + + float4 vRimColor = float4(g_vRimColor.xyz * GetRimLight(g_vCamPosition.xyz, In.vPosition.xyz, In.vNormal, g_fRimPower, g_fRimStrength), g_vRimColor.a); + + vRimColor.a *= g_vMotionTrail_LifeTime.x / g_vMotionTrail_LifeTime.y; + + Out.vAlbedo = vRimColor; + + return Out; +} + + technique11 DefaultTechnique { pass EYELASH_DAOTHV_ToSRO // 0 @@ -1660,4 +1680,13 @@ technique11 DefaultTechnique VertexShader = compile vs_5_0 VS_MAIN_SHADOW_LEGACY(); PixelShader = compile ps_5_0 PS_MAIN_SHADOW(); } + + pass RimLight // 30 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Effect, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + PixelShader = compile ps_5_0 PS_RIMLIGHT(); + } } diff --git a/Jusin154_Team3D/Engine/Private/Motion_Trail.cpp b/Jusin154_Team3D/Engine/Private/Motion_Trail.cpp index 24eb9da4b..157b01246 100644 --- a/Jusin154_Team3D/Engine/Private/Motion_Trail.cpp +++ b/Jusin154_Team3D/Engine/Private/Motion_Trail.cpp @@ -13,7 +13,10 @@ CMotion_Trail::CMotion_Trail(const CMotion_Trail& rhs) : CComponent(rhs), m_pClearBuffer(rhs.m_pClearBuffer), m_CaptureInfos(rhs.m_CaptureInfos), - m_RemainingInfos(rhs.m_RemainingInfos) + m_RemainingInfos(rhs.m_RemainingInfos), + m_fMaxCaptureLifeTime(rhs.m_fMaxCaptureLifeTime), + m_iMaximumCapture(rhs.m_iMaximumCapture), + m_iNumBones(rhs.m_iMaximumCapture) { } @@ -66,6 +69,12 @@ HRESULT CMotion_Trail::Render(CShader* pShader) if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &pInfo->WorldMatrix))) { return E_FAIL; } + + if (FAILED(pShader->Bind_RawValue("g_vMotionTrail_LifeTime", &pInfo->vCaptureLifeTime , sizeof(_float2)))) + { + return E_FAIL; + } + //if (FAILED(pShader->Bind_RawValue("g_LifeTime", &fRatio, sizeof(_float)))) { // return E_FAIL; //} @@ -229,6 +238,21 @@ void CMotion_Trail::Free() #ifdef _DEBUG void CMotion_Trail::Describe_Entity() { + + if (GUI::TreeNode("Motion Trail")) + { + + GUI::DragFloat("m_fMaxCaptureLifeTime", &m_fMaxCaptureLifeTime); + + _int iMaximumCapture = m_iMaximumCapture; + if (GUI::DragInt("m_iMaximumCapture", &iMaximumCapture)) + { + m_iMaximumCapture = iMaximumCapture; + } + + + GUI::TreePop(); + } } #endif // _DEBUG