diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index 54a164fcd..ee7eb85fd 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -163,6 +163,10 @@ call Update_Resources.bat + + + + @@ -476,6 +480,10 @@ call Update_Resources.bat + + + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index f8ef4e342..5ee1646f4 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -959,6 +959,18 @@ 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 + 02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook @@ -1980,6 +1992,24 @@ {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} + {b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99} @@ -2862,6 +2892,18 @@ 02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook + + 02.GameObjects\Effect\Effects\Potion\PotionScreen + + + 02.GameObjects\Effect\Effects\Potion\PotionBroken + + + 02.GameObjects\Effect\Effects\HitScreen + + + 02.GameObjects\Effect\BroomRace\Bubble + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index a26ca106a..014eb5b35 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -10,6 +10,7 @@ #include "Broom.h" #include "InfoInstance.h" #include "InstancedProp.h" +#include "EffectPool.h" CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -39,6 +40,8 @@ HRESULT CBroomRaceManager::Initialize(void* pArg) m_pInfoInstance->Add_Event(TEXT("BROOMRACENPCINTERACT"), [this](void* p) {this->RaceReady(); }); + + return S_OK; } @@ -357,6 +360,11 @@ void CBroomRaceManager::RaceReady() MSG_BOX("Failed Load Balloons"); } + if (FAILED(Load_Broomrace_Effect())) + { + MSG_BOX("Failed Load Broomrace_Effect"); + } + CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {}; /* InstanceProp RouteMarker*/ @@ -577,6 +585,48 @@ HRESULT CBroomRaceManager::Load_Balloons() return E_FAIL; } + return S_OK; +} + +HRESULT CBroomRaceManager::Load_Broomrace_Effect() +{ + CEffectPool* pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + + if (nullptr == pEffectPool) + return E_FAIL; + + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/EffectPart/Bubble_Data.xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + _float4 vPosition = {}; + + /* Transform */ + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &vPosition.x); + Position->QueryFloatAttribute("y", &vPosition.y); + Position->QueryFloatAttribute("z", &vPosition.z); + vPosition.w = 1.f; + + pEffectPool->Use_Skill(SKILL_TYPE::BROOM_RACE_BUBBLE, this, &vPosition); + } + + + + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp b/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp new file mode 100644 index 000000000..ec665b5c7 --- /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 = MonsterSweepTarget(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 22a9df155..586d17143 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 b7705d753..ec67c6749 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,12 +261,6 @@ HRESULT CGoblin_Assassin::Render() m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float)); } - if (m_bMotionTrail) { - if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { - return E_FAIL; - } - } - return S_OK; } @@ -352,6 +370,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++) { @@ -364,7 +393,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); @@ -720,7 +749,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()); @@ -744,6 +773,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_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp index b9b43e30b..3fb873f9a 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/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 2cf9347e1..8146c5508 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -175,7 +175,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta) bStartCinematic = true; #elif Bin bStartCinematic = false; -#elif gimchi +#elif gimch bStartCinematic = false; #endif #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 092dad3b3..84c1503c1 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -211,6 +211,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" @@ -2947,7 +2951,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; } @@ -4117,8 +4135,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; @@ -4128,8 +4146,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 dd60adfd1..edfbc46b7 100644 --- a/Jusin154_Team3D/Client/Private/MageSide.cpp +++ b/Jusin154_Team3D/Client/Private/MageSide.cpp @@ -50,6 +50,7 @@ HRESULT CMageSide::Initialize(void* pArg) SAFE_ADDREF(m_pMage_PT); SAFE_ADDREF(m_pMage_Fire); 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 c5fed4a04..55388e8a5 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; // 디버그 무적 모드 @@ -126,6 +126,8 @@ HRESULT CPlayer::Initialize(void* pArg) m_fRayDistance = 5.f; m_pModelCom->Set_DisableRootMotionScale(true); + Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml"); + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 6bef0eedf..c8a6346f6 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,8 +1943,9 @@ void CPlayer::Behavior_ParryEnter() } Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); - m_pGameInstance->SlowMotion(0.4f, 0.2f); }, + + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject()); + m_pGameInstance->SlowMotion(0.4f, 0.2f); }, 0.01f); @@ -2013,6 +2017,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 b9d0a4db5..0d52d46f4 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/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h index fbb2b7251..811c03d95 100644 --- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h +++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h @@ -44,6 +44,7 @@ class CBroomRaceManager final : public CGameObject HRESULT Load_RaceRing(); HRESULT Load_Balloons(); + HRESULT Load_Broomrace_Effect(); private: CInfoInstance* m_pInfoInstance = { nullptr }; 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 c046f9424..f19da831d 100644 --- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h +++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h @@ -25,7 +25,8 @@ 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(); + HRESULT Clear_AllEvents(); + private: CGameInstance* m_pGameInstance = { nullptr }; class CInfoInstance* m_pInfoInstance = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h index ed93bbaa8..309746ee8 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 = {}; @@ -98,7 +98,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/Data/Map/EffectPart/Bubble_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Bubble_Data.xml new file mode 100644 index 000000000..beea5468d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/EffectPart/Bubble_Data.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds index 4f509bd01..df19cee74 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds differ 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/Models/Human/PlayableCharacter/KeyFrame.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml new file mode 100644 index 000000000..051939b9e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml @@ -0,0 +1,8 @@ + + + + + + + + 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/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index da8df57ee..39e1db320 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -806,9 +806,9 @@ HRESULT CLevel_MapViewer::Ready_Layer_MapObjectManager(const _wstring& strLayerT HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok() { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) { - return E_FAIL; - } + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) { + // return E_FAIL; + //} /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index df032518f..15b4e032c 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -20,6 +20,8 @@ #include "Goblin.h" #include "Broom.h" #include "ReparoObject.h" +#include "Sound_Manager.h" +#include "Unit.h" CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } { @@ -42,6 +44,7 @@ HRESULT CLevel_ObjectViewer::Initialize() return E_FAIL; } + m_fVolume = 0.8f; return S_OK; } @@ -59,6 +62,9 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta) Parts_Object_Setting(); Find_Anim(); + + for(auto& pObject : m_Objects) + dynamic_cast(pObject)->Play_Event(); } HRESULT CLevel_ObjectViewer::Render() @@ -362,6 +368,7 @@ void CLevel_ObjectViewer::Show_AnimList() GUI::End(); } + void CLevel_ObjectViewer::Show_ObjectList() { for (size_t i = 0; i < m_Objects.size(); i++) @@ -428,6 +435,7 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() _int iIndex = pModel->Get_AnimIndex(); if (GUI::InputInt("Anim Index", &iIndex)) { + m_iCurAnimIndex = iIndex; pModel->Set_AnimationIndex(iIndex); } @@ -438,8 +446,15 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() Load_KeyFrame(szName); } - - static _char EventName[64] = {}; + if(GUI::Button("Load KeyFrame_")) + { + for (auto& pObject : m_Objects) + { + dynamic_cast(pObject)->Reset_SoundEvent(); + dynamic_cast(m_Objects[m_iObjectIndex])->Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml"); + } + } + static _char EventName[256] = {}; GUI::InputText("EventName", EventName, sizeof(EventName)); GUI::SameLine(); @@ -456,6 +471,31 @@ void CLevel_ObjectViewer::Dummy_Object_Setting() EventName[0] = '\0'; } } + GUI::InputFloat("Volume", &m_fVolume); + static _char SoundFilter[256] = {}; + + if (GUI::Button("Stop Sound")) + m_pGameInstance->Sound_StopAll(); + + if (GUI::CollapsingHeader("Sound list")) + { + GUI::InputText("Filter", SoundFilter, sizeof(SoundFilter)); + + _wstring soudnfilter = CMyTools::ToWstring(SoundFilter); + for (_uint i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i) + { + _wstring Name = SOUND::SD_PATH::SD_KIND_PATHS[i]; + if (string::npos != Name.find(soudnfilter)) + { + if (GUI::Button(("S_" + CMyTools::ToString(Name)).c_str())) + { + strcpy_s(EventName, CMyTools::ToString(Name).c_str()); + m_pGameInstance->Sound_Play(static_cast(i), SD_CHANNEL_GROUP::EFFECT, false, m_fVolume); + } + } + } + } + for (auto& iter : m_KeyFrames) @@ -702,6 +742,7 @@ void CLevel_ObjectViewer::Find_Anim() void CLevel_ObjectViewer::Save_KeyFrame() { + _char szDrive[MAX_PATH] = {}; _char szDir[MAX_PATH] = {}; _splitpath_s(m_DummyPath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0); @@ -736,17 +777,17 @@ void CLevel_ObjectViewer::Save_KeyFrame() } } - if (!pAnimNode) + if (nullptr == pAnimNode) { pAnimNode = doc.NewElement("Animation"); pAnimNode->SetAttribute("Index", m_iCurAnimIndex); pRoot->InsertEndChild(pAnimNode); } - while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame")) - { - pAnimNode->DeleteChild(pKey); - } + //while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame")) + //{ + // pAnimNode->DeleteChild(pKey); + //} for (auto& iter : m_KeyFrames) { @@ -757,9 +798,20 @@ void CLevel_ObjectViewer::Save_KeyFrame() pKey->SetAttribute("Ratio", buf); pKey->SetAttribute("Volume", m_fVolume); pAnimNode->InsertEndChild(pKey); + + SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(Path)); + + if(nullptr != m_Objects[m_iObjectIndex]) + { + dynamic_cast(m_Objects[m_iObjectIndex])->Add_Sound_Event(m_iCurAnimIndex, + [this, eSoundKind, iter]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, m_fVolume); }, + iter.second, true); + } } + m_KeyFrames.clear(); doc.SaveFile(Path.c_str()); + } HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 1990d7f4f..b6b0488fa 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -418,6 +418,15 @@ HRESULT CLoader::Loading_For_Logo() m_strMessage = TEXT("Model Loading.."); + m_strMessage = TEXT("Sound Loading.."); + + const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/"); + + for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) { + if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_PATHS[iIndex]).c_str(), FMOD_DEFAULT))) { + return E_FAIL; + } + } m_strMessage = TEXT("Shader Loading.."); @@ -2858,25 +2867,25 @@ HRESULT CLoader::Loading_For_MapViewer() // return E_FAIL; //} - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), + // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { + // return E_FAIL; + //} - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) { - return E_FAIL; - } + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) { + // return E_FAIL; + //} - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) + // return E_FAIL; - /* For.Prototype_GameObject_Player */ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext)))) - return E_FAIL; + ///* For.Prototype_GameObject_Player */ + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext)))) + // return E_FAIL; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) { - return E_FAIL; - } + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) { + // return E_FAIL; + //} /* For.Prototype_GameObject_Wand */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) @@ -3490,7 +3499,7 @@ _bool bLoadHogsmeade = true; } #pragma region HOGWART -_bool bHogwartLoad = { false }; +_bool bHogwartLoad = { true }; /* Hogwart LOD */ if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD", @@ -3833,7 +3842,7 @@ vector> jobFutures; _uint iLoadCount = 44; vector*> Contents(iLoadCount); -_bool isLoad_Map = { true }; +_bool isLoad_Map = { false }; if(isLoad_Map) { { /* Terrain */ diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index 14dc49d0c..5a2bbca19 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -75,14 +75,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma region MONSTER - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_BattleAxe01.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - futures.emplace_back(Deferred_ModelLoad( MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 686407b32..fb52ae93f 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -76,7 +76,7 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) /*if (FAILED(Load_LightObject("LightElement"))) return E_FAIL;*/ - if (FAILED(Load_InteractObject("E_INTER_Barrel"))) + /*if (FAILED(Load_InteractObject("E_INTER_Barrel"))) return E_FAIL; if (FAILED(Load_InteractObject("E_INTER_PostPackage_B"))) return E_FAIL; @@ -85,11 +85,11 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) if (FAILED(Load_InteractObject("E_INTER_TeaShopTable"))) return E_FAIL; if (FAILED(Load_InteractObject("E_INTER_TeaShopChair"))) - return E_FAIL; + return E_FAIL;*/ #pragma region HOGSMEADE - if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE))) - return E_FAIL; + //if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE))) + // return E_FAIL; #pragma endregion #pragma region DUNGEON @@ -100,10 +100,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) #pragma endregion #pragma region HOGWART - //if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) - // return E_FAIL; - //if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART))) - // return E_FAIL; + if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART))) + return E_FAIL; + if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART))) + return E_FAIL; #pragma endregion #pragma region Light @@ -277,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta) //Update_LightSpawer(); //Update_Decal(); //Update_RaceRing(); - //Update_EditEffect(); + Update_EditEffect(); //Update_Balloon(); - Update_DummyNpc(); + //Update_DummyNpc(); Update_Unified(); @@ -2766,7 +2766,7 @@ void CMapObject_Manager::Update_EditEffect() if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_Effect_EDIT"), &PartsDesc, nullptr, &pEffect))) return; - pEffect->Load("../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35",LEVEL::MAP); + pEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Bubble",LEVEL::MAP); pEffect->Set_Visible(true); } diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index d4b1d3ae0..f17105244 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -1032,10 +1032,34 @@ HRESULT CGameInstance::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundF { return m_pSound_Manager->Load_Sound(eKind, wstrSoundFilePath, eSoundMode); } +SOUND::SD_KIND CGameInstance::Find_Sound(const _wstring wstrFilePath) +{ + return m_pSound_Manager->Find_Sound(wstrFilePath); +} void CGameInstance::Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume) { m_pSound_Manager->Sound_Play(eSoundKind, eSoundChannel, bRepeat, fVolume); } +void CGameInstance::Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin, _float fMax, _bool bRepeat) +{ + m_pSound_Manager->Sound_Play_3DPos(eSoundKind, eSoundChannel, refSpeaker, fMin, fMax, bRepeat); +} +void CGameInstance::Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause) +{ + m_pSound_Manager->Sound_Pause_Channel(eSoundChannel, bPause); +} +void CGameInstance::Sound_Set3DListenerPos(CTransform* pTransform) +{ + m_pSound_Manager->Sound_Set3DListenerPos(pTransform); +} +void CGameInstance::Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel) +{ + m_pSound_Manager->Sound_StopChannel(eSoundChannel); +} +void CGameInstance::Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel) +{ + m_pSound_Manager->Sound_Stop(eSoundKind, eSoundChannel); +} void CGameInstance::Sound_StopAll() { m_pSound_Manager->Sound_StopAll(); 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 diff --git a/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp b/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp index 6d46c82a7..cf4e8effc 100644 --- a/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp @@ -7,7 +7,7 @@ System* CSound_Manager::s_pSystem = { nullptr }; _string CSound_Manager::s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = { "BGM", "ENVIRONMENT", "EFFECT", "VOICE" }; list CSound_Manager::s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = {}; Sound* CSound_Manager::s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)] = {}; - +map<_wstring, SOUND::SD_KIND > CSound_Manager::s_SoundMap = {}; CSound_Manager::CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : m_pDevice(pDevice), @@ -38,7 +38,6 @@ HRESULT CSound_Manager::Update() } } } - Sound_Test(); return S_OK; } @@ -204,45 +203,8 @@ void CSound_Manager::Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolu } } -void CSound_Manager::Sound_Test() -{ - //GUI::Begin("Music_Player"); - //static int item_selected_CHANNEL = 0; - //static int item_selected_SD_KIND = 0; - - //GUI::BeginChild("##ITEMs", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar); - //for (int iIndex = 0; iIndex < SOUND::SD_KIND::END; ++iIndex) { - // if (GUI::Button(CMyTools::ToString(SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str())) { - // item_selected_SD_KIND = iIndex; - // } - //} - //GUI::EndChild(); - //GUI::BeginChild("##Channels", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar); - //for (int iIndex = 0; iIndex < ENUM_CLASS(SD_CHANNEL_GROUP::END); ++iIndex) { - // if (GUI::Button(s_ArrChannelName[iIndex].c_str())) { - // item_selected_CHANNEL = iIndex; - // } - //} - //GUI::EndChild(); - - //if (GUI::Button("Play_Sound", { 50, 50 })) { - // Sound_Play(static_cast(item_selected_SD_KIND), static_cast(item_selected_CHANNEL), false, false, 1.f); - //} GUI::SameLine(); - //if (GUI::Button("Sound_STOP", { 50, 50 })) { - // Sound_StopAll(); - //} - //GUI::End(); -} - HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode) { - //const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/"); - //for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) { - // if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str()))) { - // return E_FAIL; - // } - //} - //// 사운드 생성, 파일 불러오기 FMOD_RESULT fr = CSound_Manager::s_pSystem->createSound( CMyTools::ToString(wstrSoundFilePath).c_str(), // 대상 경로 @@ -255,6 +217,16 @@ HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSound return E_FAIL; } +SOUND::SD_KIND CSound_Manager::Find_Sound(const _wstring wstrFilePath) +{ + auto iter = s_SoundMap.find(wstrFilePath); + + if (iter == s_SoundMap.end()) + return SOUND::SD_KIND::END; + + return iter->second; +} + HRESULT CSound_Manager::Initialize() { FMOD_RESULT r = System_Create(&s_pSystem); @@ -275,9 +247,22 @@ HRESULT CSound_Manager::Initialize() s_pSystem->init(512, FMOD_INIT_NORMAL, nullptr); } + Ready_SoundMap(); + return S_OK; } +void CSound_Manager::Ready_SoundMap() +{ + _uint iNumSound = ENUM_CLASS(SOUND::SD_KIND::END); + for (_uint i = 0; i < iNumSound; ++i) + { + s_SoundMap.emplace(SOUND::SD_PATH::SD_KIND_PATHS[i], static_cast(i)); + } +} + + + CSound_Manager* CSound_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CSound_Manager* pInstance = new CSound_Manager(pDevice, pContext); diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index a5a47ecaa..a5615d92f 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -186,6 +186,37 @@ void CUnit::Play_Event() ++iter; } + + /* Sound */ + for (auto iter = m_SoundEvents.begin(); iter != m_SoundEvents.end(); ) + { + _float ratio = m_pModelCom->Get_CurrentTrackProgressRatio(); + _uint curAnim = m_pModelCom->Get_AnimIndex(); + + _float prevRatio = iter->PrevRatio; + + if (curAnim == iter->AnimIndex) + { + if (prevRatio <= iter->fRatio && ratio >= iter->fRatio) + { + iter->Callback(); + + if (!iter->bKeep) + { + iter = m_SoundEvents.erase(iter); + continue; + } + } + + iter->PrevRatio = ratio; + } + else + { + iter->PrevRatio = 0.f; + } + + ++iter; + } } void CUnit::Add_Event(_uint AnimIndex, function Callback, _float fRatio,_bool bKeep) @@ -198,6 +229,21 @@ void CUnit::Add_Event(_uint AnimIndex, function Callback, _float fRatio, m_PendingEvents.push_back(Desc); } +void CUnit::Add_Sound_Event(_uint AnimIndex, function Callback, _float fRatio, _bool bKeep) +{ + PendingEvent Desc; + Desc.AnimIndex = AnimIndex; + Desc.fRatio = fRatio; + Desc.Callback = Callback; + Desc.bKeep = bKeep; + m_SoundEvents.push_back(Desc); +} + +void CUnit::Reset_SoundEvent() +{ + m_SoundEvents.clear(); +} + void CUnit::Reset_Event() { m_PendingEvents.clear(); @@ -584,6 +630,48 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) return it->second; } +HRESULT CUnit::Ready_Sound_Events(const _char* pFilePath) +{ + tinyxml2::XMLDocument xmlDoc; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(pFilePath))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("KeyFrames"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Animation = root->FirstChildElement("Animation"); Animation; Animation = Animation->NextSiblingElement("Animation")) + { + _uint iAnimationIndex = {}; + + Animation->QueryUnsignedAttribute("Index", &iAnimationIndex); + + + for (auto* KeyFrame = Animation->FirstChildElement("KeyFrame"); KeyFrame; KeyFrame = KeyFrame->NextSiblingElement("KeyFrame")) + { + _float fVolume = {}; + _float fRatio = {}; + const _char* pPath = {}; + + KeyFrame->QueryStringAttribute("Event", &pPath); + KeyFrame->QueryFloatAttribute("Ratio", &fRatio); + KeyFrame->QueryFloatAttribute("Volume", &fVolume); + + SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(pPath)); + + Add_Sound_Event(iAnimationIndex, + [this, eSoundKind, fVolume]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, fVolume); }, + fRatio, true); + } + } + + return S_OK; +} void CUnit::Free() { diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index b229b5ac3..f23d75036 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -211,8 +211,14 @@ class ENGINE_DLL CGameInstance final : public CBase #pragma endregion #pragma region SOUND_MANAGER HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode); + SOUND::SD_KIND Find_Sound(const _wstring wstrFilePath); void Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume); - void Sound_StopAll(); // 전체 정지 + void Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin = 3.f, _float fMax = 20.f, _bool bRepeat = false); + void Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause); + void Sound_Set3DListenerPos(class CTransform* pTransform); + void Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel); + void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel); + void Sound_StopAll(); #pragma endregion #pragma region PICKING diff --git a/Jusin154_Team3D/Engine/Public/Sound_Manager.h b/Jusin154_Team3D/Engine/Public/Sound_Manager.h index b5931c8e3..e5e213158 100644 --- a/Jusin154_Team3D/Engine/Public/Sound_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Sound_Manager.h @@ -11,6 +11,7 @@ class CSound_Manager final : static _string s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)]; static list s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)]; static Sound* s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)]; + static map<_wstring, SOUND::SD_KIND> s_SoundMap; private: CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -29,9 +30,9 @@ class CSound_Manager final : void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel); // 특정 사운드 정지 void Sound_StopAll(); // 전체 정지 void Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolume); - void Sound_Test(); HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode); + SOUND::SD_KIND Find_Sound(const _wstring wstrFilePath); private: ID3D11Device* m_pDevice = { nullptr }; @@ -41,6 +42,7 @@ class CSound_Manager final : private: HRESULT Initialize(); + void Ready_SoundMap(); public: static CSound_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h index 1072fb757..04a531250 100644 --- a/Jusin154_Team3D/Engine/Public/Unit.h +++ b/Jusin154_Team3D/Engine/Public/Unit.h @@ -36,6 +36,9 @@ class ENGINE_DLL CUnit abstract : public CContainerObject _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } _bool IsAI() { return m_bAI; } + HRESULT Ready_Sound_Events(const _char* pFilePath); + void Add_Sound_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f, _bool bKeep = false); + void Reset_SoundEvent(); #ifdef _DEBUG void Load_KeyFrame(); #endif // _DEBUG @@ -89,6 +92,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject _float m_fHitRadius = {}; vector m_PendingEvents; + vector m_SoundEvents = {}; _float m_fHitDegree = {}; _float m_fHitCross = {}; @@ -105,12 +109,17 @@ class ENGINE_DLL CUnit abstract : public CContainerObject protected: HRESULT Ready_Components(void*pArg); +#ifdef _DEBUG +public: +#endif // _DEBUG void Play_Event(); +protected: void Add_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f, _bool bKeep = false); void Reset_Event(); void Check_HitAngle(_vector ProjectileDir); virtual void Load_AnimXML(const string& path); STATEANIM::ESTATE StringToStateAnim(const string& s); + public: virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE; virtual void Free() override;