@@ -163,6 +163,10 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
||||
<ClInclude Include="..\Public\BroomRace_Bubble.h" />
|
||||
<ClInclude Include="..\Public\HitScreen.h" />
|
||||
<ClInclude Include="..\Public\PotionScreen.h" />
|
||||
<ClInclude Include="..\Public\PotionBroken.h" />
|
||||
<ClInclude Include="..\Public\CamPosition_WorldLook.h" />
|
||||
<ClInclude Include="..\Public\Reparo.h" />
|
||||
<ClInclude Include="..\Public\Elf.h" />
|
||||
@@ -476,6 +480,10 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
||||
<ClCompile Include="..\Private\BroomRace_Bubble.cpp" />
|
||||
<ClCompile Include="..\Private\HitScreen.cpp" />
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp" />
|
||||
<ClCompile Include="..\Private\PotionBroken.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp" />
|
||||
<ClCompile Include="..\Private\Reparo.cpp" />
|
||||
<ClCompile Include="..\Private\Elf.cpp" />
|
||||
|
||||
@@ -959,6 +959,18 @@
|
||||
<ClInclude Include="..\Public\TriggerBox.h">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PotionScreen.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PotionBroken.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionBroken</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\HitScreen.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\HitScreen</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\BroomRace_Bubble.h">
|
||||
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CamPosition_WorldLook.h">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||
</ClInclude>
|
||||
@@ -1980,6 +1992,24 @@
|
||||
<Filter Include="04.Mechanic\State\Focus\Spell_Learning">
|
||||
<UniqueIdentifier>{26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Potion">
|
||||
<UniqueIdentifier>{1f2c5d56-c8a8-458e-a48c-444d7c885cf3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Potion\PotionBroken">
|
||||
<UniqueIdentifier>{3f02d29d-759e-4572-9439-ec79909273e5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Potion\PotionScreen">
|
||||
<UniqueIdentifier>{6fa4085d-e9eb-47c3-b384-2aa92baf1d55}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\HitScreen">
|
||||
<UniqueIdentifier>{8c62c8f3-d8ba-4a6d-99bd-6270333ea0bb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\BroomRace">
|
||||
<UniqueIdentifier>{67efb2e4-26f6-41b5-a754-eddf91f1d528}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\BroomRace\Bubble">
|
||||
<UniqueIdentifier>{ce57978a-c208-4fe6-bbfd-8f582c20ff07}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook">
|
||||
<UniqueIdentifier>{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -2862,6 +2892,18 @@
|
||||
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PotionBroken.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionBroken</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\HitScreen.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\HitScreen</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\BroomRace_Bubble.cpp">
|
||||
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -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<CEffectPool>();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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<CEffectParts>("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<CEffectParts>("Bubble");
|
||||
CEffectParts* pBubble_Distortion = Get_PartObject<CEffectParts>("Bubble_Distortion");
|
||||
CEffectParts* pHit_Bubble = Get_PartObject<CEffectParts>("Hit_Bubble");
|
||||
|
||||
pBubble->Set_Visible(true);
|
||||
pBubble_Distortion->Set_Visible(true);
|
||||
|
||||
pBubble->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
pBubble_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
pHit_Bubble->Get_Component<CTransform>()->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<CEffectParts>("Bubble");
|
||||
CEffectParts* pBubble_Distortion = Get_PartObject<CEffectParts>("Bubble_Distortion");
|
||||
|
||||
pBubble->Set_Visible(false);
|
||||
pBubble_Distortion->Set_Visible(false);
|
||||
|
||||
m_fDuration = 3.f;
|
||||
m_fAccTime = 0.f;
|
||||
|
||||
CEffectParts* pHit_Bubble = Get_PartObject<CEffectParts>("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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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<CPotionBroken>(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<CPotionScreen>(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<CHitScreen>(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<CBroomRace_Bubble>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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<CGoblin_Sword>("Goblin_Sword_L")->Set_CanTakeDamage(false);
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_R")->Set_CanTakeDamage(false);
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
|
||||
@@ -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<CTrail>()->Reset_Trail();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -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<CEffectParts>("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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<CScreen_Wind>(g_iStaticLevel, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPotionBroken>(g_iStaticLevel, CPotionBroken::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPotionScreen>(g_iStaticLevel, CPotionScreen::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CHitScreen>(g_iStaticLevel, CHitScreen::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBroomRace_Bubble>(g_iStaticLevel, CBroomRace_Bubble::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -248,6 +248,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
Get_PartObject<CItem_Potion>()->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<CWand>());
|
||||
m_pGameInstance->SlowMotion(0.4f, 0.2f); },
|
||||
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject<CWand>());
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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<CEffectParts>("PotionEffect");
|
||||
CEffectParts* pPotionSmoke = Get_PartObject<CEffectParts>("PotionSmoke");
|
||||
|
||||
_vector vPosVector = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
pPotionEffect->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
pPotionSmoke->Get_Component<CTransform>()->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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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<CEffectParts>("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;
|
||||
}
|
||||
|
||||
|
||||
@@ -131,10 +131,13 @@ HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
class CEffectParts* pBlurMesh = Get_PartObject<CEffectParts>("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<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pBlurMesh->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_Owner()->Get_Component<CTransform>()->Get_State(STATE::POSITION));
|
||||
|
||||
m_pWandTrail->SetDissolve(false);
|
||||
|
||||
|
||||
@@ -797,9 +797,8 @@ void CTroll::Behavior_DeadEnter()
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
m_pTroll_Particle->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
|
||||
m_pTroll_Particle2->Get_Component<CTransform>()->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);
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ class CBroomRaceManager final : public CGameObject
|
||||
|
||||
HRESULT Load_RaceRing();
|
||||
HRESULT Load_Balloons();
|
||||
HRESULT Load_Broomrace_Effect();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
@@ -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
|
||||
@@ -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,
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<EffectParts>
|
||||
<Object>
|
||||
<Position x="-557.4693" y="1.7081518" z="-404.99838"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-546.97711" y="3.4388852" z="-405.45068"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-533.41187" y="5.8523626" z="-407.15222"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-422.68542" y="12.297935" z="-423.10046"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-438.46686" y="11.288605" z="-419.94629"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-272.8252" y="11.575071" z="-466.4433"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-233.60553" y="4.5245433" z="-438.84055"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-116.56883" y="-5.2835941" z="-457.04156"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-115.49762" y="-4.3404284" z="-462.14432"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-114.33831" y="-2.8634744" z="-469.75327"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-114.49501" y="8.9647017" z="-630.75684"/>
|
||||
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-122.38454" y="9.379631" z="-632.39172"/>
|
||||
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-141.58109" y="9.3517723" z="-635.36981"/>
|
||||
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-358.02856" y="21.008039" z="-564.20557"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-381.73807" y="18.154875" z="-551.83118"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-420.54446" y="14.254954" z="-531.81177"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-470.04022" y="7.4956679" z="-506.46667"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
</EffectParts>
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
<KeyFrames>
|
||||
<Animation Index="206">
|
||||
<KeyFrame Event="Player/Voice/avadakedavra_voice.wav" Ratio="0.265" Volume="0.8"/>
|
||||
</Animation>
|
||||
<Animation Index="858">
|
||||
<KeyFrame Event="Player/Voice/decendo_voice.wav" Ratio="0.022" Volume="1"/>
|
||||
</Animation>
|
||||
</KeyFrames>
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||
|
||||
@@ -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<CUnit*>(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<CUnit*>(pObject)->Reset_SoundEvent();
|
||||
dynamic_cast<CUnit*>(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<SOUND::SD_KIND>(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<CUnit*>(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)
|
||||
|
||||
@@ -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<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
// return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Player */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
///* For.Prototype_GameObject_Player */
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(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<CWand>(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<future<void>> jobFutures;
|
||||
_uint iLoadCount = 44;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
_bool isLoad_Map = { true };
|
||||
_bool isLoad_Map = { false };
|
||||
if(isLoad_Map)
|
||||
{
|
||||
{ /* Terrain */
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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<CEditEffect>(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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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<Channel*> 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<SOUND::SD_KIND>(item_selected_SD_KIND), static_cast<SD_CHANNEL_GROUP>(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<SOUND::SD_KIND>(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
CSound_Manager* CSound_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSound_Manager* pInstance = new CSound_Manager(pDevice, pContext);
|
||||
|
||||
@@ -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<void()> Callback, _float fRatio,_bool bKeep)
|
||||
@@ -198,6 +229,21 @@ void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,
|
||||
m_PendingEvents.push_back(Desc);
|
||||
}
|
||||
|
||||
void CUnit::Add_Sound_Event(_uint AnimIndex, function<void()> 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()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -11,6 +11,7 @@ class CSound_Manager final :
|
||||
static _string s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
|
||||
static list<Channel*> 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);
|
||||
|
||||
@@ -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<void()> 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<PendingEvent> m_PendingEvents;
|
||||
vector<PendingEvent> 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<void()> 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;
|
||||
|
||||
Reference in New Issue
Block a user