diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index a15e12766..bf71a449a 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -18,6 +18,7 @@ float g_fPI;
float g_fFar;
float g_fBlinkTime;
float g_fTime;
+float g_fColorTime;
float g_fFrame;
float g_fDeltaU;
float g_fDeltaV;
@@ -455,10 +456,11 @@ PS_OUT PS_Spell_Anim(PS_IN In)
float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal = (In.vTexcoord - texpos) / texsize;
bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
-
if (inside)
+ {
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, texlocal);
Color = lerp(Color, tex2, tex2.a);
+ }
Color.a *= Alpha;
Out.vColor = Color;
@@ -1771,6 +1773,7 @@ PS_OUT PS_Broomstick(PS_IN In)
return Out;
}
+
PS_OUT PS_SpellLearn(PS_IN In)
{
PS_OUT Out = (PS_OUT)0;
@@ -1997,6 +2000,72 @@ PS_OUT PS_CanvasFade(PS_IN In)
return Out;
}
+PS_OUT PS_FlagWave(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = float4(0.f, 0.f, 0.f, 1.f);
+
+ float2 uv = In.vTexcoord;
+
+ float phase = uv.y * 1.5f;
+
+ float waveX =
+ sin(uv.y * 20.f + g_fTime * 1.0f + phase) * 0.007f;
+
+ float waveY =
+ sin(uv.x * 12.f + g_fTime * 0.8f) * 0.002f;
+
+ uv.x += waveX;
+ uv.y += waveY;
+
+ float4 tex = g_Texture.Sample(ClampSampler, uv);
+
+ Color = tex;
+
+ if (Color.r <= 0.f)
+ discard;
+
+ Color.a = Alpha;
+
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_BroomCircle(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(0.f, 0.f, 0.f, 0.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ float2 Rotation;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float4 tex = g_Texture.Sample(BorderZeroLinearSampler, Rotation);
+ color = tex;
+
+ float Diffuse = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
+
+
+ if (g_iHover != 0)
+ {
+ if (g_fTime >= Diffuse)
+ {
+ discard;
+ }
+ }
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+ return Out;
+}
+
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -2281,6 +2350,22 @@ PS_OUT PS_Interaction_Npc(PS_IN In)
return Out;
}
+PS_OUT PS_BroomGateTarget(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex1;
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -2691,6 +2776,26 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_CanvasFade();
}
+ pass FlagWave
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_FlagWave();
+ }
+
+ pass BroomCircle
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BroomCircle();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
@@ -2720,4 +2825,14 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Interaction_Npc();
}
+
+ pass BroomGateTarget
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_None, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_NONESIZE3D();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BroomGateTarget();
+ }
}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index e031d03d7..4ff8bdbb3 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -163,6 +163,14 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
@@ -177,6 +185,7 @@ call Update_Resources.bat
+
@@ -411,6 +420,14 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
@@ -426,6 +443,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 9e5cf3d69..5616bdcba 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -740,6 +740,9 @@
04.Mechanic\Dialogue\Dialogue_Data
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point
+
02.GameObjects\Player
@@ -764,6 +767,30 @@
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Assassin_Spector
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Circle
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Flag
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Scoreboard
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Finish
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Exit
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Record
+
@@ -1569,6 +1596,9 @@
{b03591a7-a14e-425a-8a3f-2a6a054c884a}
+
+ {a94e24d2-0f61-4263-b834-bfdf9f6c06ae}
+
{f3c7cf8d-2b83-49d3-85da-fe135e376a11}
@@ -1593,6 +1623,30 @@
{bf7cf91b-742f-4913-8af2-39ed94d19e23}
+
+ {e5da4124-9936-46e7-981b-9d8ccc9590d9}
+
+
+ {b5b99876-ca87-4276-9276-5961625e06c3}
+
+
+ {8a87e6cb-ba54-45ee-866b-9098085f973b}
+
+
+ {09fac7f5-d246-4860-a151-04c92c0677f2}
+
+
+ {c61b7c21-0ea8-42c4-a535-8624ce17fc8c}
+
+
+ {b585e3f0-93f7-4825-b049-5616a680d102}
+
+
+ {40d9d62b-f8cf-4a09-89cc-2f336f8052a2}
+
+
+ {2246ff16-d62c-4e16-a948-16e7968e0933}
+
@@ -2280,6 +2334,12 @@
04.Mechanic\Dialogue\Dialogue_Data
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point
+
+
+ 02.GameObjects\Cameras\Camera_Model
+
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Assassin
@@ -2304,6 +2364,30 @@
02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Assassin_Spector
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Circle
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Flag
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Scoreboard
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Finish
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Exit
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_Record
+
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index 258b6a796..1fa8647a0 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -7,6 +7,7 @@
#include "BroomRacerAI.h"
#include "Player.h"
#include "Broom.h"
+#include "InfoInstance.h"
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -14,7 +15,8 @@ CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext*
}
CBroomRaceManager::CBroomRaceManager(const CBroomRaceManager& Prototype)
- : CGameObject(Prototype)
+ : CGameObject(Prototype),
+ m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -33,7 +35,6 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
return E_FAIL;
}
-
return S_OK;
}
@@ -56,6 +57,23 @@ void CBroomRaceManager::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
+ if (m_eRaceState == ENUM_CLASS(RACE_STATE::RACING))
+ {
+ if (m_iLastRing < m_pRaceRings.size())
+ {
+ m_fRacingTimer += fTimeDelta;
+ m_pInfoInstance->Set_Broom_Timer(m_fRacingTimer);
+ }
+ else
+ {
+ m_fRacingTimer = 0.f;
+ if (m_bRaceStart == true)
+ {
+ m_pInfoInstance->Event_CallBack(TEXT("RaceEnd"));
+ m_bRaceStart = false;
+ }
+ }
+ }
@@ -72,8 +90,6 @@ void CBroomRaceManager::Late_Update(_float fTimeDelta)
HRESULT CBroomRaceManager::Render()
{
- m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip.c_str(), _float2(g_iWinSizeX*0.5f, g_iWinSizeY*0.5f),XMVectorSet(1.f,1.f,1.f,1.f),5.f);
-
return S_OK;
}
@@ -173,7 +189,7 @@ void CBroomRaceManager::Describe_Entity()
CTransform* pTransform =
racer.pRacer->Get_Component();
spawnPos.m128_f32[1] -= 2.f;
- pTransform->Set_State(STATE::POSITION,spawnPos);
+ pTransform->Set_State(STATE::POSITION, spawnPos);
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
racer.pRacer->Get_Broom()->Set_Move(false);
@@ -184,6 +200,7 @@ void CBroomRaceManager::Describe_Entity()
{
if (GUI::Button("Countdown"))
{
+ m_pInfoInstance->Event_CallBack(TEXT("Ready_Race"));
m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
}
}
@@ -201,13 +218,15 @@ void CBroomRaceManager::Update_Countdown(_float fTimeDelta)
m_fCountTimer = 0.f;
--m_iCount;
- if (m_iCount > 0)
+ if (m_iPerCount != m_iCount)
{
- ToolTip = to_wstring(m_iCount);
+ m_iPerCount = m_iCount;
+ m_pInfoInstance->Event_CallBack(TEXT("Race_Count"), &m_iCount);
}
- else
+ if (m_iCount <= 0)
{
- ToolTip = to_wstring(0);
+ size_t MaxRing = m_pRaceRings.size();
+ m_pInfoInstance->Event_CallBack(TEXT("Race_Start"), &MaxRing);
StartRaceMove();
}
}
@@ -228,6 +247,7 @@ void CBroomRaceManager::StartRaceMove()
}
m_eRaceState = ENUM_CLASS(RACE_STATE::RACING);
+ m_bRaceStart = true;
}
@@ -275,8 +295,8 @@ void CBroomRaceManager::Check_RingPassed()
if (dist <= PASS_RADIUS)
{
- if(racer.pRacer){
- pRing->Set_Target(false);
+ if (racer.pRacer) {
+ pRing->Set_Target(false);
}
racer.curRing = (racer.curRing + 1) % m_pRaceRings.size();
@@ -284,7 +304,7 @@ void CBroomRaceManager::Check_RingPassed()
if (racer.pRacer) {
m_pRaceRings[racer.curRing]->Set_Target(true);
}
-
+
racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer);
}
}
@@ -294,8 +314,8 @@ void CBroomRaceManager::Check_RingPassed()
}
-void CBroomRaceManager::SetTargetRing(CGameObject*pRacer)
-{
+void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
+{
for (auto& racer : m_Racers)
{
if (racer.pAI)
@@ -313,8 +333,10 @@ void CBroomRaceManager::SetTargetRing(CGameObject*pRacer)
if (racer.pRacer == pRacer)
{
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
+ m_pInfoInstance->Event_CallBack(TEXT("CurrentRing"));
}
}
+ m_iLastRing++;
}
}
@@ -326,9 +348,9 @@ void CBroomRaceManager::Push_BroomRacer(RacerInfo Info)
info.curRing = Info.curRing;
info.prevPos = Info.prevPos;
- if(Info.pAI)
+ if (Info.pAI)
info.pAI->Set_RaceRing(m_pRaceRings[info.curRing]);
- else if(Info.pRacer)
+ else if (Info.pRacer)
info.pRacer->Set_RaceRing(m_pRaceRings[info.curRing]);
m_Racers.push_back(info);
diff --git a/Jusin154_Team3D/Client/Private/Broom_Circle.cpp b/Jusin154_Team3D/Client/Private/Broom_Circle.cpp
new file mode 100644
index 000000000..7e11c1b6e
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Circle.cpp
@@ -0,0 +1,372 @@
+#include "pch.h"
+#include "Broom_Circle.h"
+#include "GameInstance.h"
+
+CBroom_Circle::CBroom_Circle(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Circle::CBroom_Circle(const CBroom_Circle& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Circle::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Circle::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 120.f;
+ Desc.fSizeX = 160.f;
+ Desc.fSizeY = 160.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 150.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_iCount = 3;
+ m_fFontX = 918.f;
+ m_fFontY = 345.f;
+ m_fFontAlpha = 1.f;
+ m_fAngle = XMConvertToRadians(90.f);
+ m_bTimer = false;
+ return S_OK;
+}
+
+void CBroom_Circle::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Circle::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ //if (m_pGameInstance->Key_Down(DIK_K))
+ //{
+ // Race_Start();
+ //}
+
+ if (m_iPerCount != m_iCount)
+ {
+ m_iPerCount = m_iCount;
+ Start_Size_Lerp(fTimeDelta * m_fTimeMult);
+ }
+
+
+ if (m_fFontAlpha >= 0.f)
+ {
+ m_fFontAlpha -= fTimeDelta;
+ }
+ else
+ {
+ m_fFontAlpha = 0.f;
+ }
+
+ if (m_bHover == true)
+ {
+ if (m_fDissolve <= 1.f)
+ m_fDissolve += fTimeDelta;
+ else if (m_fDissolve >= 1.f)
+ {
+ m_bHover = false;
+ Visible(false);
+ }
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Circle::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Circle::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMCIRCLE)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _wstring Count;
+ _vector Color{};
+ if (m_iCount > 0.f)
+ {
+ Count = to_wstring(m_iCount);
+ Color = XMVectorSet(1.f * m_fFontAlpha, 1.f * m_fFontAlpha, 1.f * m_fFontAlpha, m_fFontAlpha);
+ }
+
+ else if (m_iCount == 0)
+ {
+ Count = TEXT("GO");
+ Color = XMVectorSet(0.f, 1.f * m_fFontAlpha, 0.f, m_fFontAlpha);
+ }
+
+ _float OffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size70"), Count.c_str()) - 61.f) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("UI_size70"), Count.c_str(), _float2(m_fFontX + m_fX - OffSet, m_fFontY - m_fY), Color);
+
+ return S_OK;
+}
+
+_vector CBroom_Circle::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Circle::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fDissolve, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Circle::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_AccioBallFrame_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_Repairo_Wisp_04_D"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CBroom_Circle::Start_Size_Lerp(_float fTimeDelta)
+{
+ m_fFontAlpha = 1.f;
+ if (m_bCountDown == true)
+ {
+ m_bCountDown = false;
+ }
+
+ if (m_fSizeX >= 150.f && m_bSizeDown == false)
+ {
+ m_fSizeX -= fTimeDelta;
+ m_fSizeY -= fTimeDelta;
+ }
+
+ if (m_fSizeX <= 150.f)
+ {
+ m_bSizeDown = true;
+ }
+
+ if (m_bSizeDown == true)
+ {
+ m_fSizeX += fTimeDelta;
+ m_fSizeY += fTimeDelta;
+ }
+
+ if (m_fSizeX >= 180.f && m_bSizeUp == false)
+ {
+ m_bSizeDown = false;
+ m_bSizeUp = true;
+ }
+
+ if (m_bSizeUp == true)
+ {
+ if (m_fSizeX >= 160.f)
+ {
+ m_fSizeX -= fTimeDelta;
+ m_fSizeY -= fTimeDelta;
+ }
+ else if (m_fSizeX <= 160.f/* && m_bCountDown == false*/)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bSizeUp = false;
+ /*m_fTime = 0.f;*/
+ //m_bCountDown = true;
+ }
+ }
+
+ if (m_iCount <= 0)
+ {
+ //m_bTimer = false;
+ m_bHover = true;
+ //static_cast(m_pOwner)->Function_Callback(TEXT("BroomEnd"), &m_bHover);
+ //Visible(false);
+ }
+
+}
+
+void CBroom_Circle::Race_Start(_int iCount)
+{
+ m_iCount = iCount;
+ //m_bTimer = true;
+ m_bCountDown = true;
+ m_bHover = false;
+ m_fTime = 0.f;
+ m_fDissolve = 0.f;
+ m_fFontAlpha = 1.f;
+}
+
+void CBroom_Circle::Set_Count(_int Count)
+{
+ m_iCount = Count;
+}
+
+void CBroom_Circle::Rece_Results()
+{
+ Visible(true);
+}
+
+CBroom_Circle* CBroom_Circle::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Circle* pInstance = new CBroom_Circle(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Circle");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Circle::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Circle* pInstance = new CBroom_Circle(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Circle");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Circle::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Circle::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Exit.cpp b/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
new file mode 100644
index 000000000..0b022ea0a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
@@ -0,0 +1,252 @@
+#include "pch.h"
+#include "Broom_Exit.h"
+#include "GameInstance.h"
+
+CBroom_Exit::CBroom_Exit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Exit::CBroom_Exit(const CBroom_Exit& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Exit::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Exit::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = -400.f;
+ Desc.fSizeX = 180.f;
+ Desc.fSizeY = 60.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fFontX = 940.f;
+ m_fFontY = 385.f;
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+
+ return S_OK;
+}
+
+void CBroom_Exit::Rece_Results()
+{
+ Visible(true);
+}
+
+void CBroom_Exit::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Exit::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fImagePosi = _float4(35.f, 17.f, 32.f, 32.f);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Exit::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Exit::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::UVMULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("나가기"), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
+
+ return S_OK;
+}
+
+_vector CBroom_Exit::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Exit::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Exit::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Exit"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Space"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Exit* CBroom_Exit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Exit* pInstance = new CBroom_Exit(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Exit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Exit::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Exit* pInstance = new CBroom_Exit(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Finish");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Exit::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Exit::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Finish.cpp b/Jusin154_Team3D/Client/Private/Broom_Finish.cpp
new file mode 100644
index 000000000..e3ac76752
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Finish.cpp
@@ -0,0 +1,264 @@
+#include "pch.h"
+#include "Broom_Finish.h"
+#include "GameInstance.h"
+
+CBroom_Finish::CBroom_Finish(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Finish::CBroom_Finish(const CBroom_Finish& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Finish::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Finish::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = -140.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 1080.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+ Set_Font();
+ Visible(false);
+ return S_OK;
+}
+
+void CBroom_Finish::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Finish::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Finish::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Finish::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[0].c_str(), m_fFontPos[0]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[1].c_str(), m_fFontPos[1], XMVectorSet(0.f, 1.f, 0.f, 1.f));
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[2].c_str(), m_fFontPos[2]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[3].c_str(), m_fFontPos[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[4].c_str(), m_fFontPos[4]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[5].c_str(), m_fFontPos[5]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[6].c_str(), m_fFontPos[6]);
+
+ return S_OK;
+}
+
+_vector CBroom_Finish::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Finish::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CBroom_Finish::Set_Font()
+{
+ m_fFont[0] = TEXT("경주 시간");
+ m_fFont[1] = TEXT("0:00:00");
+ m_fFont[2] = TEXT("놓친 고리로 인한 패널티 X ");
+ m_fFont[3] = TEXT("0");
+ m_fFont[4] = TEXT("0:00:00");
+ m_fFont[5] = TEXT("총 시간");
+ m_fFont[6] = TEXT("0:00:00");
+
+ m_fFontPos[0] = _float2(m_fX + 700, m_fY + 600);
+ m_fFontPos[1] = _float2(m_fX + 1100, m_fY + 600);
+ m_fFontPos[2] = _float2(m_fX + 700, m_fY + 640);
+ m_fFontPos[3] = _float2(m_fX + 1020, m_fY + 640);
+ m_fFontPos[4] = _float2(m_fX + 1100, m_fY + 640);
+ m_fFontPos[5] = _float2(m_fX + 700, m_fY + 700);
+ m_fFontPos[6] = _float2(m_fX + 1100, m_fY + 700);
+}
+
+void CBroom_Finish::Finish(_float fTime)
+{
+ wchar_t szBuf[32] = {};
+
+ _int min = static_cast<_int>(fTime) / 60;
+ _int sec = static_cast<_int>(fTime) % 60;
+ _int ms = static_cast<_int>((fTime - static_cast<_int>(fTime)) * 100);
+
+ swprintf_s(szBuf, L"%02d:%02d:%02d", min, sec, ms);
+ m_fFont[1] = szBuf;
+ m_fFont[6] = szBuf;
+}
+
+HRESULT CBroom_Finish::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Finish"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Finish* CBroom_Finish::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Finish* pInstance = new CBroom_Finish(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Finish");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Finish::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Finish* pInstance = new CBroom_Finish(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Finish");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Finish::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Finish::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Flag.cpp b/Jusin154_Team3D/Client/Private/Broom_Flag.cpp
new file mode 100644
index 000000000..c316fce95
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Flag.cpp
@@ -0,0 +1,265 @@
+#include "pch.h"
+#include "Broom_Flag.h"
+#include "GameInstance.h"
+
+CBroom_Flag::CBroom_Flag(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Flag::CBroom_Flag(const CBroom_Flag& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Flag::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Flag::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 100.f;
+ Desc.fSizeX = 437.5f;
+ Desc.fSizeY = 160.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+ m_fStart = 500.f;
+ return S_OK;
+}
+
+void CBroom_Flag::Set_Start()
+{
+ m_fSizeX = m_fOrigin_Size.x;
+ m_fAlpha = 1.f;
+}
+
+void CBroom_Flag::Set_Finish()
+{
+ Visible(true);
+ m_fFinish = true;
+}
+
+void CBroom_Flag::Rece_Results()
+{
+ Visible(true);
+}
+
+void CBroom_Flag::Finish_SizeUp(_float fTime)
+{
+
+}
+
+void CBroom_Flag::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Flag::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bHover == true)
+ {
+ m_fSizeX -= fTimeDelta * m_fStart;
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bHover = false;
+ m_fAlpha = 0.f;
+ Visible(false);
+ }
+
+ if (m_fFinish == true)
+ {
+
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Flag::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Flag::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::FLAGWAVE)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CBroom_Flag::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Flag::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Flag::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_BRFlag"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Flag* CBroom_Flag::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Flag* pInstance = new CBroom_Flag(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Flag");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Flag::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Flag* pInstance = new CBroom_Flag(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Flag");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Flag::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Flag::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Panel.cpp b/Jusin154_Team3D/Client/Private/Broom_Panel.cpp
new file mode 100644
index 000000000..67c7dc348
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Panel.cpp
@@ -0,0 +1,271 @@
+#include "pch.h"
+#include "Broom_Panel.h"
+#include "GameInstance.h"
+#include "Broom_Flag.h"
+#include "Broom_Circle.h"
+#include "Broom_Scoreboard.h"
+#include "Broom_Finish.h"
+#include "Broom_Record.h"
+#include "Broom_Exit.h"
+#include "InfoInstance.h"
+
+CBroom_Panel::CBroom_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CBroom_Panel::CBroom_Panel(const CBroom_Panel& rhs)
+ :CPanelObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CBroom_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = -400.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 700.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Element(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_pInfoInstance->Add_Event(TEXT("CurrentRing"), [this](void* p) {this->Current_Ring(); });
+ m_pInfoInstance->Add_Event(TEXT("Ready_Race"), [this](void* p) {this->Ready_Race(); });
+ m_pInfoInstance->Add_Event(TEXT("Race_Count"), [this](void* p) {this->Race_Count(*reinterpret_cast<_int*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("Race_Start"), [this](void* p) {this->Race_Start(*reinterpret_cast<_int*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("RaceEnd"), [this](void* p) {this->Race_End(); });
+
+ Visible(false);
+ ElementAllVisible(false);
+ return S_OK;
+}
+
+void CBroom_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ Set_BroomTimer();
+
+ if (m_bDinish == true)
+ m_fTime += fTimeDelta;
+
+ if (m_fTime >= 1.f && m_bResults == false)
+ {
+ m_fTime = 0.f;
+ m_bDinish = false;
+ Race_Results();
+ }
+
+ if (m_bResults == true)
+ {
+ if (m_pGameInstance->Key_Down(DIK_ESCAPE))
+ {
+ m_fTime = 0.f;
+ m_bDinish = false;
+ m_bResults = false;
+ ElementAllVisible(false);
+ }
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Panel::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+
+}
+
+HRESULT CBroom_Panel::Render()
+{
+ return S_OK;
+}
+
+_vector CBroom_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Panel::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CBroom_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Flag))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Flag"), m_pBroom_Flag);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Circle))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Circle"), m_pBroom_Circle);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Scoreboard))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Scoreboard"), m_pBroom_Scoreboard);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Fiish))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Fiish"), m_pBroom_Fiish);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Record))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Record"), m_pBroom_Record);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Exit))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Exit"), m_pBroom_Exit);
+
+ return S_OK;
+}
+
+void CBroom_Panel::Ready_Race()
+{
+ Visible(true);
+ static_cast(m_pBroom_Circle)->Visible(true);
+ static_cast(m_pBroom_Flag)->Visible(true);
+}
+
+void CBroom_Panel::Race_Count(_int Count)
+{
+ static_cast(m_pBroom_Circle)->Race_Start(Count);
+ static_cast(m_pBroom_Flag)->Set_Start();
+}
+
+void CBroom_Panel::Race_Start(_int iRing)
+{
+ static_cast(m_pBroom_Flag)->Set_Hover(true);
+ static_cast(m_pBroom_Scoreboard)->Visible(true);
+ static_cast(m_pBroom_Scoreboard)->Set_MaxRing(iRing);
+}
+
+void CBroom_Panel::Current_Ring()
+{
+ static_cast(m_pBroom_Scoreboard)->Set_CurrentRing();
+}
+
+void CBroom_Panel::Race_End()
+{
+ static_cast(m_pBroom_Scoreboard)->Visible(false);
+ static_cast(m_pBroom_Fiish)->Visible(true);
+ static_cast(m_pBroom_Fiish)->Finish(m_fRaceTime);
+ static_cast(m_pBroom_Record)->Finish(m_fRaceTime);
+ m_bDinish = true;
+}
+
+void CBroom_Panel::Race_Results()
+{
+ m_bResults = true;
+ static_cast(m_pBroom_Circle)->Rece_Results();
+ static_cast(m_pBroom_Flag)->Rece_Results();
+ static_cast(m_pBroom_Record)->Rece_Results();
+ static_cast(m_pBroom_Exit)->Rece_Results();
+}
+
+void CBroom_Panel::Set_BroomTimer()
+{
+ m_fRaceTime = m_pInfoInstance->Get_Broom_Timer();
+ static_cast(m_pBroom_Scoreboard)->Set_Timer(m_fRaceTime);
+}
+
+CBroom_Panel* CBroom_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Panel* pInstance = new CBroom_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Panel* pInstance = new CBroom_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Panel::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Record.cpp b/Jusin154_Team3D/Client/Private/Broom_Record.cpp
new file mode 100644
index 000000000..fcec5e0fe
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Record.cpp
@@ -0,0 +1,296 @@
+#include "pch.h"
+#include "Broom_Record.h"
+#include "GameInstance.h"
+
+CBroom_Record::CBroom_Record(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Record::CBroom_Record(const CBroom_Record& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Record::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Record::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 120.f;
+ Desc.fSizeX = 500.f;
+ Desc.fSizeY = 150.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+ m_fBaseTime = 15.f;
+ Set_Font();
+ Set_Best_Record(m_fBaseTime);
+ return S_OK;
+}
+
+void CBroom_Record::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Record::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Record::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Record::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ if (m_bNewScore == false)
+ {
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[0].c_str(), m_fFontPos[0]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[1].c_str(), m_fFontPos[1], m_fFontColor[0]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[2].c_str(), m_fFontPos[2]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[3].c_str(), m_fFontPos[3]);
+ }
+ else
+ {
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[4].c_str(), m_fFontPos[4], m_fFontColor[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[1].c_str(), m_fFontPos[5]);
+ }
+
+
+ return S_OK;
+}
+
+_vector CBroom_Record::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Record::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Record::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Broom_Record"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CBroom_Record::Set_Font()
+{
+ m_fFont[0] = TEXT("내 기록");
+ m_fFont[1] = TEXT("0:00:00");
+ m_fFont[2] = TEXT("최고 기록");
+ m_fFont[3] = TEXT("0:00:00");
+ m_fFont[4] = TEXT("새 최고 기록");
+
+ m_fFontPos[0] = _float2(m_fX + 820.f, m_fY + 140.f);
+ m_fFontPos[1] = _float2(m_fX + 810.f, m_fY + 180.f);
+ m_fFontPos[2] = _float2(m_fX + 1005.f, m_fY + 140.f);
+ m_fFontPos[3] = _float2(m_fX + 1010.f, m_fY + 180.f);
+ m_fFontPos[4] = _float2(m_fX + 880, m_fY + 140.f);
+ m_fFontPos[5] = _float2(m_fX + 900, m_fY + 180.f);
+
+ m_fFontColor[0] = XMVectorSet(0.f, 1.f, 0.f, 1.f);
+ m_fFontColor[1] = XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha);
+
+}
+
+void CBroom_Record::Set_Best_Record(_float fTime)
+{
+
+ wchar_t szBuf[32] = {};
+
+ _int min = static_cast<_int>(fTime) / 60;
+ _int sec = static_cast<_int>(fTime) % 60;
+ _int ms = static_cast<_int>((fTime - static_cast<_int>(fTime)) * 100);
+
+ swprintf_s(szBuf, L"%02d:%02d:%02d", min, sec, ms);
+
+ m_fFont[3] = szBuf;
+}
+
+void CBroom_Record::Rece_Results()
+{
+ Visible(true);
+}
+
+void CBroom_Record::Finish(_float fTime)
+{
+ if (m_fBaseTime > fTime)
+ m_bNewScore = true;
+ else
+ m_bNewScore = false;
+
+ wchar_t szBuf[32] = {};
+
+ _int min = static_cast<_int>(fTime) / 60;
+ _int sec = static_cast<_int>(fTime) % 60;
+ _int ms = static_cast<_int>((fTime - static_cast<_int>(fTime)) * 100);
+
+ swprintf_s(szBuf, L"%02d:%02d:%02d", min, sec, ms);
+ m_fFont[1] = szBuf;
+}
+
+CBroom_Record* CBroom_Record::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Record* pInstance = new CBroom_Record(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Record");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Record::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Record* pInstance = new CBroom_Record(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Record");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Record::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Record::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Scoreboard.cpp b/Jusin154_Team3D/Client/Private/Broom_Scoreboard.cpp
new file mode 100644
index 000000000..5b70cff5d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_Scoreboard.cpp
@@ -0,0 +1,287 @@
+#include "pch.h"
+#include "Broom_Scoreboard.h"
+#include "GameInstance.h"
+
+CBroom_Scoreboard::CBroom_Scoreboard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Scoreboard::CBroom_Scoreboard(const CBroom_Scoreboard& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Scoreboard::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Scoreboard::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 300.f;
+ Desc.fSizeX = 512.f;
+ Desc.fSizeY = 132.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fFontX = 900.f;
+ m_fFontY = 900.f;
+ m_iCurrentRing = 0;
+ Set_Setting();
+ return S_OK;
+}
+
+void CBroom_Scoreboard::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Scoreboard::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Scoreboard::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Scoreboard::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[0].c_str(), m_fFontPosition[0], m_fColor[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[1].c_str(), m_fFontPosition[1], m_fColor[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[2].c_str(), m_fFontPosition[2], m_fColor[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[3].c_str(), m_fFontPosition[3], m_fColor[0]);
+ m_pGameInstance->Render_Text(TEXT("UI_size25"), Score[4].c_str(), m_fFontPosition[4], m_fColor[0]);
+ m_pGameInstance->Render_Text(TEXT("UI_size25"), Score[5].c_str(), m_fFontPosition[5], m_fColor[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size25"), Score[6].c_str(), m_fFontPosition[6], m_fColor[2]);
+ m_pGameInstance->Render_Text(TEXT("Font_size25"), Score[7].c_str(), m_fFontPosition[7], m_fColor[0]);
+
+ return S_OK;
+}
+
+void CBroom_Scoreboard::Set_Setting()
+{
+ m_fColor[0] = XMVectorSet(1.f, 1.f, 1.f, 1.f);
+ m_fColor[1] = XMVectorSet(0.5f, 0.5f, 0.5f, 1.f);
+ m_fColor[2] = XMVectorSet(0.f, 1.f, 0.f, 1.f);
+ m_fColor[3] = XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha);
+
+ Score[0] = TEXT("내 기록");
+ Score[1] = TEXT("최고 기록");
+ Score[2] = TEXT("게이트");
+ Score[3] = TEXT("/");
+ Score[4] = TEXT("0");
+ Score[5] = TEXT("29");
+ Score[6] = TEXT("0:00:00");
+ Score[7] = TEXT("0:00:00");
+
+ m_fFontPosition[0] = _float2(m_fX + 770, m_fY - 245.f);
+ m_fFontPosition[1] = _float2(m_fX + 1050, m_fY - 245.f);
+ m_fFontPosition[2] = _float2(m_fX + 918, m_fY - 195.f);
+ m_fFontPosition[3] = _float2(m_fX + 947.5f, m_fY - 225.f);
+ m_fFontPosition[4] = _float2(m_fX + 920, m_fY - 230.f);
+ m_fFontPosition[5] = _float2(m_fX + 965, m_fY - 230.f);
+ m_fFontPosition[6] = _float2(m_fX + 740, m_fY - 215.f);
+ m_fFontPosition[7] = _float2(m_fX + 1045, m_fY - 215.f);
+}
+
+void CBroom_Scoreboard::Set_MaxRing(_int iMaxRing)
+{
+ Score[5] = to_wstring(iMaxRing);
+}
+
+void CBroom_Scoreboard::Set_CurrentRing()
+{
+ m_iCurrentRing++;
+ Score[4] = to_wstring(m_iCurrentRing);
+ m_fCurreentRingFontSize = (m_pGameInstance->FontSizeX(TEXT("UI_size25"), Score[4].c_str()) - 22.f) * 0.5f;
+ m_fFontPosition[4] = _float2(m_fX + 920 - m_fCurreentRingFontSize, m_fY - 230.f);
+}
+
+void CBroom_Scoreboard::Set_Timer(_float fTimer)
+{
+ wchar_t szBuf[32] = {};
+
+ _int min = static_cast<_int>(fTimer) / 60;
+ _int sec = static_cast<_int>(fTimer) % 60;
+ _int ms = static_cast<_int>((fTimer - static_cast<_int>(fTimer)) * 100);
+
+ swprintf_s(szBuf, L"%02d:%02d:%02d", min, sec, ms);
+ Score[6] = szBuf;
+}
+
+_vector CBroom_Scoreboard::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Scoreboard::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Scoreboard::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Scoreboard"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Scoreboard* CBroom_Scoreboard::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Scoreboard* pInstance = new CBroom_Scoreboard(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Scoreboard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Scoreboard::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Scoreboard* pInstance = new CBroom_Scoreboard(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Scoreboard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Scoreboard::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CBroom_Scoreboard::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
new file mode 100644
index 000000000..5e1aef98d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
@@ -0,0 +1,211 @@
+#include "pch.h"
+#include "Broom_TargetGate.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CBroom_TargetGate::CBroom_TargetGate(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject(pDevice, pContext)
+{
+}
+
+CBroom_TargetGate::CBroom_TargetGate(const CBroom_TargetGate& rhs)
+ : CGameObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CBroom_TargetGate::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_TargetGate::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Components())) {
+ return E_FAIL;
+ }
+
+ m_fSize = _float3(1.f, 1.f, 1.f);
+ m_fAlpha = 1.f;
+ m_fViewPort = _float2(_float(g_iWinSizeX), _float(g_iWinSizeY));
+ m_fFontSize = 0.f;
+
+ m_pInfoInstance->Add_Event(TEXT("BroomTargetGate"), [this](void* p) {this->Set_TargetPosition(*reinterpret_cast<_vector*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("Race_Start"), [this](void* p) {this->Visibie(); });
+ m_bVisible = false;
+ return S_OK;
+}
+
+void CBroom_TargetGate::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CBroom_TargetGate::Update(_float fTimeDelta)
+{
+ if (m_bVisible != true)
+ return;
+
+ m_fSize = _float3(45.f, 45.f, 1.f);
+ m_vPlayerPos = m_pInfoInstance->Get_PalyerPos();
+ if (m_vActive == true)
+ {
+ m_Distance = to_wstring(_int(floor(XMVectorGetX(XMVector3Length(XMVectorSubtract(m_vTargetPos, m_vPlayerPos))))));
+ }
+}
+
+void CBroom_TargetGate::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible != true)
+ return;
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+}
+
+HRESULT CBroom_TargetGate::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMTARGETGATE)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _vector Pos = XMVectorAdd(m_vTargetPos, XMVectorSet(0.f, -3.f, 0.f, 0.f));
+
+ m_pGameInstance->Perspective_Render_Text(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
+ m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
+ TEXT("UI_size20"),
+ m_Distance.c_str(),
+ Pos);
+
+ return S_OK;
+}
+
+_vector CBroom_TargetGate::Get_WorldPostion()
+{
+ return m_pOwner->Get_WorldPostion();
+}
+
+HRESULT CBroom_TargetGate::Bind_ShaderResources()
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr())))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_CamaraPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_fSize, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fViewport", &m_fViewPort, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_TargetGate::Ready_Components()
+{
+ __super::Ready_Components(nullptr);
+
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Map_RaceGate"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CBroom_TargetGate::Set_TargetPosition(_vector TargetPos)
+{
+ m_vTargetPos = TargetPos;
+ m_pTransformCom->Set_State(STATE::POSITION, m_vTargetPos);
+ m_vActive = true;
+}
+
+void CBroom_TargetGate::Visibie()
+{
+ m_bVisible = !m_bVisible;
+}
+
+CBroom_TargetGate* CBroom_TargetGate::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_TargetGate* pInstance = new CBroom_TargetGate(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_TargetGate");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_TargetGate::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_TargetGate* pInstance = new CBroom_TargetGate(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_TargetGate");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_TargetGate::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+ SAFE_RELEASE(m_pShaderCom);
+
+}
+
+#ifdef _DEBUG
+void CBroom_TargetGate::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
index 0689f43bf..0099970ac 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
@@ -84,7 +84,7 @@ HRESULT CDialogue_Font::Render()
_vector CDialogue_Font::Get_WorldPostion()
{
- return m_pTransformCom->Get_State(STATE::POSITION);
+ return _vector();
}
HRESULT CDialogue_Font::Bind_ShaderResources()
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index fd1b7642f..7c63b8da5 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -207,7 +207,8 @@ HRESULT CEffectObject::Render_Bloom()
SHADER_PASS_INSTANCE_MODEL BloomPass = {};
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD
+ || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
{
BloomPass = SHADER_PASS_INSTANCE_MODEL::BLOOM_NOWORLD;
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 00a072d6e..db13310b0 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -44,6 +44,7 @@
#include "Avadakedavra.h"
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
+#include "Ranrok_Point.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -582,8 +583,17 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
-
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_POINT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ CRanrok_Point* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+
+ ))) return E_FAIL;
+
+
return S_OK;
}
@@ -605,7 +615,7 @@ HRESULT CEffectPool::Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPr
return S_OK;
}
-HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg)
+HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg, CEffect_Container** ppOut)
{
if (pOwner == nullptr)
return S_OK;
@@ -620,6 +630,11 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg
m_ActiveEffectList.push_back(pSkill);
Safe_AddRef(pSkill);
+ if (nullptr != ppOut) {
+ *ppOut = pSkill;
+ SAFE_ADDREF(pSkill);
+ }
+
break;
}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 008cac410..203917fa7 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -569,10 +569,28 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
m_isCollisionEnter = false;
m_bHit = false;
+ m_isStop = false;
return S_OK;
}
+
+void CEffect_Container::Setting_Pos(_fvector vPos)
+{
+ for (auto& iter : m_PartObjects)
+ {
+ CTransform* pTransform = iter.second->Get_Component();
+
+ if (pTransform == nullptr)
+ continue;
+
+ pTransform->Set_State(STATE::POSITION, vPos);
+ }
+
+ m_isStop = true;
+}
+
+
HRESULT CEffect_Container::Ready_Components(void* pArg)
{
CTransform::TRANSFORM_DESC TransformDesc = {};
diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
index 6bd2f5bff..048baf7c8 100644
--- a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
@@ -7,6 +7,7 @@
#include "Action_Panel.h"
#include "Enemy_Panel.h"
//#include "Mouse_Cursor.h"
+#include "Broom_Panel.h"
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCanvasObject(pDevice, pContext)
@@ -118,6 +119,11 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
}
Add_Panel(TEXT("Enemy_Panel"), m_pEnemy_Panel);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pBroom_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("Broom_Panel"), m_pBroom_Panel);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index 70e96f3aa..cf8c825c4 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -64,6 +64,16 @@ void CInfoInstance::Set_Damage(_float fDamage)
m_pSkillInfo->Update_Damage(fDamage);
}
+_vector CInfoInstance::Get_PalyerPos()
+{
+ return m_pPlayerPos;
+}
+
+void CInfoInstance::Set_PlayerPos(_vector Position)
+{
+ m_pPlayerPos = Position;
+}
+
#pragma region MONSTER_INFO
HRESULT CInfoInstance::Regist_PlayerAlly(CUnit* pUnit)
{
@@ -343,6 +353,16 @@ HRESULT CInfoInstance::ActiveAt_Interactive(_fvector vPosition)
return m_pInteractiveInfo->ActiveAt_Interactive(vPosition);
}
+void CInfoInstance::Set_Broom_Timer(_float fTimer)
+{
+ m_fBroom_Timer = fTimer;
+}
+
+_float CInfoInstance::Get_Broom_Timer()
+{
+ return m_fBroom_Timer;
+}
+
#pragma endregion
LEVEL CInfoInstance::Get_RestartLevel()
{
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index a47f72ada..44d567c2d 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -132,6 +132,15 @@
#include "SpellLearn_Slot.h"
#include "SpellLearn_Overlay.h"
+#include "Broom_Panel.h"
+#include "Broom_Flag.h"
+#include "Broom_Circle.h"
+#include "Broom_Scoreboard.h"
+#include "Broom_TargetGate.h"
+#include "Broom_Finish.h"
+#include "Broom_Record.h"
+#include "Broom_Exit.h"
+
#include "Interaction_Key.h"
#include "NPCInteraction.h"
@@ -184,6 +193,7 @@
#include "MageSide.h"
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
+#include "Ranrok_Point.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -1225,6 +1235,24 @@ HRESULT CLoader::Loading_For_GamePlay()
});
+
+ Asset_FileLoad("../Bin/Resources/Textures/BroomFlight", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
return E_FAIL;
@@ -2099,7 +2127,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
-
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_Point::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -2493,6 +2524,47 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ /* For.Prototype_GameObject_SpellLearn_Broom_Panel*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_Flag*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Flag::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_Circle*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Circle::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_Scoreboard*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Scoreboard::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_TargetGate*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_TargetGate::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_Fiish*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Finish::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_Record*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Record::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_Broom_Exit*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Exit::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
/* For.Prototype_GameObject_Interaction_Key*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CInteraction_Key::Create(m_pDevice, m_pContext))))
{
diff --git a/Jusin154_Team3D/Client/Private/MainApp.cpp b/Jusin154_Team3D/Client/Private/MainApp.cpp
index 21ca68f0c..7d7dbc6ca 100644
--- a/Jusin154_Team3D/Client/Private/MainApp.cpp
+++ b/Jusin154_Team3D/Client/Private/MainApp.cpp
@@ -122,11 +122,27 @@ HRESULT CMainApp::Ready_Default_Setting()
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size23"), TEXT("../Bin/Resources/Fonts/Font_size23.spritefont"))))
return E_FAIL;
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size25"), TEXT("../Bin/Resources/Fonts/Font_size25.spritefont"))))
+ return E_FAIL;
+
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size30"), TEXT("../Bin/Resources/Fonts/Font_size30.spritefont"))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size15"), TEXT("../Bin/Resources/Fonts/UI_size15.spritefont"))))
return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size20"), TEXT("../Bin/Resources/Fonts/UI_size20.spritefont"))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size25"), TEXT("../Bin/Resources/Fonts/UI_size25.spritefont"))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size50"), TEXT("../Bin/Resources/Fonts/UI_size50.spritefont"))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size70"), TEXT("../Bin/Resources/Fonts/UI_size70.spritefont"))))
+ return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
index 020a65e67..b1aafbb84 100644
--- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
+++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
@@ -84,7 +84,6 @@ void CNPCInteraction::NpcInfo(_wstring Name)
void CNPCInteraction::Priority_Update(_float fTimeDelta)
{
-
_vector MonsterPos = static_cast(m_pOwner)->Get_WorldPostion();
_float fOffsetX = 0.5f; // 적절한 X 오프셋 값 (몬스터 머리 옆으로 올리기 위함)
@@ -126,7 +125,6 @@ void CNPCInteraction::Update(_float fTimeDelta)
{
if (m_bVisible != true)
return;
- Set_ImageSizePosition();
}
void CNPCInteraction::Late_Update(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 03afdcb56..c7bf6a9d8 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -144,7 +144,7 @@ void CPlayer::Update(_float fTimeDelta)
{
Update_CameraCoordinateSystem(fTimeDelta);
UpdateGrapInteractive(fTimeDelta);
-
+
m_pFSM->Update_State(fTimeDelta);
Play_SpellHitAnim();
@@ -152,8 +152,8 @@ void CPlayer::Update(_float fTimeDelta)
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
Play_Event();
-
-__super::Update(fTimeDelta);
+
+ __super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
@@ -170,8 +170,11 @@ __super::Update(fTimeDelta);
if (m_pGameInstance->Mouse_Up(DIM_RBUTTON))
{
m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP));
- m_bAim = false;
+ m_bAim = false;
}
+
+ m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
+
}
void CPlayer::Late_Update(_float fTimeDelta)
@@ -234,7 +237,7 @@ void CPlayer::Late_Update(_float fTimeDelta)
HRESULT CPlayer::Render()
{
- if (!m_bVisible){
+ if (!m_bVisible) {
return S_OK;
}
if (FAILED(Bind_ShaderResources())) {
@@ -404,11 +407,56 @@ void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
void CPlayer::Set_RaceRing(CRaceRing* pRaceRing)
{
+ if (m_pRaceRing != pRaceRing)
+ {
+ _vector TargetPos = pRaceRing->Get_WorldPostion();
+ m_pInfoInstance->Event_CallBack(TEXT("BroomTargetGate"), &TargetPos);
+ }
SAFE_RELEASE(m_pRaceRing);
m_pRaceRing = pRaceRing;
SAFE_ADDREF(m_pRaceRing);
}
+void CPlayer::Render_CameraCoordinateSystem()
+{
+
+
+ GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
+ GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
+ GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
+ GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
+
+ _float fButtonSize = 45.f;
+ GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
+ GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
+ GUI::Button("##2", { fButtonSize, fButtonSize });
+ GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
+ GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
+ GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
+ GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
+ GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
+ GUI::Button("##8", { fButtonSize, fButtonSize });
+ //W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
+ //A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
+ //S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
+ //D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z })
+ }
+ GUI::End();
+ m_Batch->DrawLine( // W
+ VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite),
+ VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
+ );
+ m_Batch->DrawLine( // D
+ VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite),
+ VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
+ );
+ m_Batch->DrawLine( // PlayerLook
+ VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite),
+ VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink)
+ );
+ m_Batch->End();
+}
+}
HRESULT CPlayer::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -516,7 +564,7 @@ HRESULT CPlayer::Ready_Parts()
}
}
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_ITEM, nullptr, this,&m_pBroom))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_ITEM, nullptr, this, &m_pBroom))) {
return E_FAIL;
}
@@ -640,8 +688,8 @@ void CPlayer::SetGravity()
{
PSX::PxControllerCollisionFlags eCollisionFlags = m_pCharacter_Controller->Get_CollisionFlags();
eCollisionFlags;
- if ( false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN)
- && false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) {
+ if (false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN)
+ && false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) {
if (false == m_pFSM->IsEnable(FSMSTATE::JUMP)) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on
m_pCharacter_Controller->SetGravity(true);
}
@@ -665,7 +713,7 @@ void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta)
}
_matrix CPlayer::Get_WandPos()
- {
+{
CWand* pWand = Get_PartObject();
if (pWand == nullptr)
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 45368e6cb..918e76675 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -624,7 +624,6 @@ void CRanrok::MoveTo(_float fTimeDelta)
_vector CurPos = m_pCharacter_Controller->Get_Position();
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
- _float Speed = 75.f;
_vector toTarget = Target - CurPos;
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
@@ -667,7 +666,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta,2.5f);
- m_pCharacter_Controller->Set_Position(CurPos + vLook * Speed * fTimeDelta);
+ m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta);
}
HRESULT CRanrok::Load_RanrokPos(const _char* pFilePath)
@@ -749,6 +748,7 @@ void CRanrok::Free()
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pEffectPool);
+ SAFE_RELEASE(m_pRanrok_Point);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Point.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Point.cpp
new file mode 100644
index 000000000..a866af193
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Point.cpp
@@ -0,0 +1,227 @@
+#include "pch.h"
+#include "Ranrok_Point.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Point::CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Point::CRanrok_Point(const CRanrok_Point& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Point::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Point::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_wstrEffectName = L"RanrokPoint";
+
+
+ m_pGooRod_0 = Get_PartObject("GooRod_0");
+ m_pSmoke = Get_PartObject("Smoke");
+ m_pSpread_PT = Get_PartObject("Spread_PT");
+
+ SAFE_ADDREF(m_pGooRod_0);
+ SAFE_ADDREF(m_pSmoke);
+ SAFE_ADDREF(m_pSpread_PT);
+
+ m_fDuration = 30.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_Point::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Point::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ /* PJ 월드 구성하기 */
+ if (m_isStop == false)
+ {
+ /* 초기 방향 */
+
+ XMStoreFloat3(&m_vLook, m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+
+ _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
+ _vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
+ _vector vPos = m_pOwner->Get_WorldPostion();
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+ m_pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos);
+ m_pGooRod_0->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+ m_pSpread_PT->Get_Component()->Set_State(STATE::POSITION, vPos);
+ }
+
+
+}
+
+void CRanrok_Point::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Point::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+
+ /* 초기 객체 위치 초기화*/
+
+ /* 초기 방향 */
+ XMStoreFloat3(&m_vLook, m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+
+ /* PJ 월드 구성하기 */
+
+
+ _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
+ _vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
+ _vector vPos = m_pOwner->Get_WorldPostion();
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+
+ m_pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos);
+ m_pSpread_PT->Get_Component()->Set_State(STATE::POSITION, vPos);
+ m_pGooRod_0->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+
+ m_pSmoke->Set_Visible(true);
+ m_pGooRod_0->Set_Visible(true);
+ m_pSpread_PT->Set_Visible(true);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Point::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Point::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Point* CRanrok_Point::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Point* pInstance = new CRanrok_Point(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Point");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Point::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Point* pInstance = new CRanrok_Point(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Point");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Point::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos);
+ }
+
+
+}
+
+void CRanrok_Point::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+ SAFE_RELEASE(m_pGooRod_0);
+ SAFE_RELEASE(m_pSmoke);
+ SAFE_RELEASE(m_pSpread_PT);
+
+}
+#ifdef _DEBUG
+void CRanrok_Point::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Point::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index f7451e19d..fe01b71b4 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -693,6 +693,12 @@ void CRanrok::Behavior_TuckedEnter()
//}
pairAnimInfo = m_Animation[STATEANIM::FLY];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_bVisible = false;
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_POINT, this, nullptr, &m_pRanrok_Point);
+ }, 0.1f);
}
HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
@@ -719,9 +725,13 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
void CRanrok::Behavior_TuckedExit()
{
+ /* 이펙트를 서서히 사라지게 하기위해 도착 이후에 나오는 이펙트를 아래로 떨굼 */
+ m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ SAFE_RELEASE(m_pRanrok_Point);
+
+
m_pFSM->Disable_State(FSMSTATE::TUCKED);
m_bTucked = false;
- m_bVisible = true;
}
void CRanrok::Behavior_LandEnter()
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 01e28bbe1..2a793e1c9 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -11,6 +11,7 @@
#include "Dialogue_Font.h"
#include "SpellLearn_Canvas.h"
#include "Interaction_Key.h"
+#include "Broom_TargetGate.h"
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CUIObject(pDevice, pContext)
@@ -350,6 +351,12 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("SpellLearn_Canvas"), m_pSpellLearn_Canvas);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate))))
+ {
+ return E_FAIL;
+ }
+ Add_Canvas(TEXT("Broom_TargetGate"), m_pBroom_TargetGate);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
index d93a98846..2ae3c2106 100644
--- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h
+++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
@@ -18,9 +18,9 @@ class CBroomRaceManager final : public CGameObject
enum class RACE_STATE
{
- READY,
- COUNTDOWN,
- START,
+ READY,
+ COUNTDOWN,
+ START,
RACING,
FINISH,
END
@@ -42,17 +42,26 @@ class CBroomRaceManager final : public CGameObject
void Push_RaceRing(class CRaceRing* Ring);
_int Get_RaceState() const { return m_eRaceState; }
private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
vector m_pRaceRings = {};
vector m_Racers = {};
_float m_fCountTimer = {};
+ _float m_fRacingTimer = {};
_int m_iCount = { 3 };
+ _int m_iPerCount = {};
_int m_eRaceState = { ENUM_CLASS(RACE_STATE::END) };
_wstring ToolTip;
+
+ _int m_iLastRing{};
+
+ _bool m_bRaceStart = { false };
+
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components();
- HRESULT Bind_ShaderResources() override;
+ HRESULT Bind_ShaderResources() override;
void Update_Countdown(_float fTimeDelta);
void StartRaceMove();
void Check_RingPassed();
diff --git a/Jusin154_Team3D/Client/Public/Broom_Circle.h b/Jusin154_Team3D/Client/Public/Broom_Circle.h
new file mode 100644
index 000000000..563b30883
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Circle.h
@@ -0,0 +1,67 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Circle final : public CElementObject
+{
+private:
+ CBroom_Circle(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Circle(const CBroom_Circle& rhs);
+ virtual ~CBroom_Circle() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ virtual void Start_Size_Lerp(_float fTimeDelta) override;
+ void Race_Start(_int iCount);
+ void Set_Count(_int Count);
+
+ void Rece_Results();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iCount{};
+ _int m_iPerCount{};
+ _float m_fFontAlpha{};
+ _float m_fDissolve{};
+
+
+ _bool m_bCountDown = { false };
+ _bool m_bTimer = { false };
+ _bool m_bSizeDown = { false };
+ _bool m_bSizeUp = { false };
+
+public:
+ static CBroom_Circle* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_Exit.h b/Jusin154_Team3D/Client/Public/Broom_Exit.h
new file mode 100644
index 000000000..88ec64d40
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Exit.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Exit final : public CElementObject
+{
+private:
+ CBroom_Exit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Exit(const CBroom_Exit& rhs);
+ virtual ~CBroom_Exit() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Rece_Results();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float4 m_fImagePosi{};
+
+public:
+ static CBroom_Exit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_Finish.h b/Jusin154_Team3D/Client/Public/Broom_Finish.h
new file mode 100644
index 000000000..fcbe296e3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Finish.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Finish final : public CElementObject
+{
+private:
+ CBroom_Finish(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Finish(const CBroom_Finish& rhs);
+ virtual ~CBroom_Finish() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Set_Font();
+
+public:
+ void Finish(_float fTime);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _wstring m_fFont[7];
+ _float2 m_fFontPos[7];
+
+ _float4 m_fImagePosi{};
+
+public:
+ static CBroom_Finish* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_Flag.h b/Jusin154_Team3D/Client/Public/Broom_Flag.h
new file mode 100644
index 000000000..036f2b85b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Flag.h
@@ -0,0 +1,60 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Flag final : public CElementObject
+{
+private:
+ CBroom_Flag(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Flag(const CBroom_Flag& rhs);
+ virtual ~CBroom_Flag() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_Start();
+ void Set_Finish();
+ void Rece_Results();
+
+private:
+ void Finish_SizeUp(_float fTime);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float m_fStart = { false };
+
+ _bool m_fFinish = { false };
+
+public:
+ static CBroom_Flag* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_Panel.h b/Jusin154_Team3D/Client/Public/Broom_Panel.h
new file mode 100644
index 000000000..ebdce4272
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Panel.h
@@ -0,0 +1,71 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Panel final : public CPanelObject
+{
+private:
+ CBroom_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Panel(const CBroom_Panel& rhs);
+ virtual ~CBroom_Panel() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_Element(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Ready_Race();
+ void Race_Count(_int Count);
+ void Race_Start(_int iRing);
+ void Current_Ring();
+ void Race_End();
+ void Race_Results();
+
+public:
+ void Set_BroomTimer();
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pBroom_Flag = { nullptr };
+ CGameObject* m_pBroom_Circle = { nullptr };
+ CGameObject* m_pBroom_Scoreboard = { nullptr };
+ CGameObject* m_pBroom_Fiish = { nullptr };
+ CGameObject* m_pBroom_Record = { nullptr };
+ CGameObject* m_pBroom_Exit = { nullptr };
+
+ _float m_fRaceTime{};
+
+ _bool m_bDinish = { false };
+ _bool m_bResults = { false };
+
+public:
+ static CBroom_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_Record.h b/Jusin154_Team3D/Client/Public/Broom_Record.h
new file mode 100644
index 000000000..46e195f13
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Record.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Record final : public CElementObject
+{
+private:
+ CBroom_Record(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Record(const CBroom_Record& rhs);
+ virtual ~CBroom_Record() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Set_Font();
+ void Set_Best_Record(_float fTime);
+
+public:
+ void Rece_Results();
+ void Finish(_float fTime);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _wstring m_fFont[5];
+ _float2 m_fFontPos[6];
+ _vector m_fFontColor[2];
+
+ _float m_fBaseTime{};
+
+ _bool m_bNewScore = { false };
+public:
+ static CBroom_Record* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_Scoreboard.h b/Jusin154_Team3D/Client/Public/Broom_Scoreboard.h
new file mode 100644
index 000000000..c5a09781e
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_Scoreboard.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CBroom_Scoreboard final : public CElementObject
+{
+private:
+ CBroom_Scoreboard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Scoreboard(const CBroom_Scoreboard& rhs);
+ virtual ~CBroom_Scoreboard() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Set_Setting();
+
+public:
+ void Set_MaxRing(_int iMaxRing);
+ void Set_CurrentRing();
+ void Set_Timer(_float fTimer);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _vector m_fColor[4];
+ _wstring Score[8];
+ _float2 m_fFontPosition[8];
+
+ _int m_iCurrentRing{};
+ _float m_fCurreentRingFontSize{};
+
+public:
+ static CBroom_Scoreboard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Broom_TargetGate.h b/Jusin154_Team3D/Client/Public/Broom_TargetGate.h
new file mode 100644
index 000000000..612e91520
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Broom_TargetGate.h
@@ -0,0 +1,66 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Client)
+
+class CBroom_TargetGate final : public CGameObject
+{
+private:
+ CBroom_TargetGate(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_TargetGate(const CBroom_TargetGate& rhs);
+ virtual ~CBroom_TargetGate() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ HRESULT Bind_ShaderResources();
+ HRESULT Ready_Components();
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_TargetPosition(_vector TargetPos);
+
+private:
+ void Visibie();
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_vActive = { false };
+ _wstring m_Distance;
+
+ _vector m_vFontPosition{};
+
+ _vector m_vPlayerPos{};
+ _vector m_vTargetPos{};
+
+ _float m_fAlpha{};
+ _vector m_vPosition{};
+
+ _float3 m_fSize{};
+ _float2 m_fViewPort{};
+
+ _float m_fFontSize{};
+
+public:
+ static CBroom_TargetGate* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() 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 8a40d9c90..f28de31f4 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -11,7 +11,7 @@ namespace Client
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
- enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, END};
+ enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WBEND};
enum class SHADER_PASS_UIEDITOR {
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
@@ -20,7 +20,9 @@ namespace Client
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER, NPCINTERACTION, CANVASFADE,
- ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, END };
+ FLAGWAVE, BROOMCIRCLE,
+ ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE,END
+ };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
@@ -70,7 +72,7 @@ namespace Client
/*란록*/
- RANROK_FIREBALL, RANROK_BREATH,
+ RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
END
};
diff --git a/Jusin154_Team3D/Client/Public/EffectPool.h b/Jusin154_Team3D/Client/Public/EffectPool.h
index f1b28f239..063ee1f1f 100644
--- a/Jusin154_Team3D/Client/Public/EffectPool.h
+++ b/Jusin154_Team3D/Client/Public/EffectPool.h
@@ -26,7 +26,7 @@ class CEffectPool final : public CGameObject
virtual HRESULT Render() override;
public:
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function AddPrototypeEvent);
- HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr);
+ HRESULT Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg = nullptr, CEffect_Container** ppOut = nullptr);
#ifdef _DEBUG
HRESULT Reset_Pool();
#endif
diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h
index ef543c9ff..1fd5867c6 100644
--- a/Jusin154_Team3D/Client/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Client/Public/Effect_Container.h
@@ -59,6 +59,7 @@ class CEffect_Container abstract : public CContainerObject
public:
HRESULT Load_Directory(const _char* pPath);
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
+ void Setting_Pos(_fvector vPos);
HRESULT Load_Package(const _char* pPath);
HRESULT Load_Data(const _char* pPath);
HRESULT Create_Effect();
@@ -88,6 +89,7 @@ class CEffect_Container abstract : public CContainerObject
_wstring m_wstrEffectName = {};
_bool m_bHit = { false };
_bool m_isLoop = {};
+ _bool m_isStop = {};
_float m_fAccTime = {};
_float m_fPreAccTime = {};
diff --git a/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
index 65099efe7..5132b567a 100644
--- a/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
+++ b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
@@ -40,6 +40,7 @@ class CGamePlay_Canvas final : public CCanvasObject
CGameObject* m_pLoading_Panel = { nullptr };
CGameObject* m_pAction_Panel = { nullptr };
CGameObject* m_pEnemy_Panel = { nullptr };
+ CGameObject* m_pBroom_Panel = { nullptr };
public:
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 3f515e871..8078105ed 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -36,6 +36,8 @@ DECLARE_SINGLETON(CInfoInstance)
pair<_float3, _float3> Get_CameraCoordinateSystem();
_float Player_Damage();
void Set_Damage(_float fDamage);
+ void Set_PlayerPos(_vector Position);
+ _vector Get_PalyerPos();
#pragma endregion
#pragma region MONSTER_INFO
HRESULT Regist_PlayerAlly(CUnit* pUnit);
@@ -79,12 +81,11 @@ DECLARE_SINGLETON(CInfoInstance)
const vector& Get_AcceptQuest() const;
HRESULT Set_AcceptQuest(_int Index);
#pragma endregion
-#pragma region Interactive_INFO
#pragma region SpellLearn_Data
const SPELLLEARNINFO& Get_SpellLearn(_int Index) const;
_int Get_SpellLearnIndex();
#pragma endregion
-#pragma region Dialogue_Fint
+#pragma region Dialogue_Font
void Set_Font(void* pArg);
#pragma endregion
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
@@ -92,6 +93,10 @@ DECLARE_SINGLETON(CInfoInstance)
HRESULT ActiveAt_Interactive(_fvector vPosition);
#pragma endregion
+#pragma region BroomManager
+ void Set_Broom_Timer(_float fTimer);
+ _float Get_Broom_Timer();
+#pragma endregion
private:
CGameInstance* m_pGameInstance = { nullptr };
ID3D11Device* m_pDevice = { nullptr };
@@ -107,9 +112,13 @@ DECLARE_SINGLETON(CInfoInstance)
class CSpellLearn_Data* m_pSpellLearn_Data = { nullptr };
class CDialogue_Font* m_pDialogue_Font = { nullptr };
+ _vector m_pPlayerPos{};
+
_uint m_eInput = ENUM_CLASS(KEYINPUT::END);
_int m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
+ _float m_fBroom_Timer{};
+
_float m_fDamage{};
UI_STATE m_eUI_State = { UI_STATE::END };
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index aa933ac63..a04b32ce1 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -32,7 +32,7 @@ class CPlayer final : public CUnit
void Set_Shield(_bool bShield) { m_bShield = bShield; }
void Start_CameraShake(_float fTime, _float fIntense);
_int Get_UIState() { return m_eUIState; }
- void Set_RaceRing(class CRaceRing* pRaceRing);
+ void Set_RaceRing(class CRaceRing* pRaceRing);
class CBroom* Get_Broom() { return m_pBroom; }
#ifdef _DEBUG
void Render_CameraCoordinateSystem();
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index b2f6cf838..1edc6ef52 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -115,6 +115,8 @@ class CRanrok final : public CMonster
_float m_fRushTime = {};
_float m_fHeadAimWeight = {};
+ class CEffect_Container* m_pRanrok_Point = { nullptr };
+ _float m_fTuckedSpeed = { 75.f };
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h b/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h
index e0b8ebde6..6785ec2b4 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h
@@ -39,7 +39,7 @@ class CRanrok_FireBall final : public CEffect_Container
class CEffectParts* m_pFireBall_Tail = { nullptr };
_float3 m_vLook = {};
- _float m_fLinearSpeed = 0.3f;
+ _float m_fLinearSpeed = 0.8f;
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_Point.h b/Jusin154_Team3D/Client/Public/Ranrok_Point.h
new file mode 100644
index 000000000..b84f7a09e
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_Point.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_Point final : public CEffect_Container
+{
+private:
+ CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Point(const CRanrok_Point& rhs);
+ virtual ~CRanrok_Point() = 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_pGooRod_0 = { nullptr };
+ class CEffectParts* m_pSmoke = { nullptr };
+ class CEffectParts* m_pSpread_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_Point* 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/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h
index f7f2d1009..8622b2196 100644
--- a/Jusin154_Team3D/Client/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Client/Public/UI_Manager.h
@@ -60,6 +60,7 @@ class CUI_Manager final : public CUIObject
CGameObject* m_pDamage_Font = { nullptr };
CGameObject* m_pDialogue_Font = { nullptr };
CGameObject* m_pInteraction_Key = { nullptr };
+ CGameObject* m_pBroom_TargetGate = { nullptr };
_bool m_bCanvas_Change = { false };
UI_STATE m_eType{};
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecalTest.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecalTest.bin
new file mode 100644
index 000000000..dfe72be76
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecalTest.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:69de07c8698068033cadd3cbc13596ab110155af22623cc652dcfdc089bc1f80
+size 1070
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint.bin
new file mode 100644
index 000000000..bc106dcd6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:178f4b2c88a1221db0e661ae38c3d75340c3f0237d6ff818260d8be0bdbb11ab
+size 209
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/CombinedPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/CombinedPT.bin
new file mode 100644
index 000000000..24178256c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/CombinedPT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c04b322c0ab50b4dc284bfd72bb18ff436503d2471ecc80e951bcc37bbed8641
+size 1198
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/GooRod_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/GooRod_0.bin
new file mode 100644
index 000000000..9c44f3946
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/GooRod_0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fc30e1c711f8f81811de3ce4e3dac43ca215ee397b491092e32b5ea344e12a9
+size 1108
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/GooRod_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/GooRod_1.bin
new file mode 100644
index 000000000..2d7ffd790
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/GooRod_1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6901aa75ebc5b656627c64bfd3cc95cc5256bdc87b1f5c0af0bb69b3785588ce
+size 1108
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin
index 522b1b001..e57c10290 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d718e8b7d3a2f94e3caeec07660f5091bfacb9248e3d986dbfcf7328bdd34a40
-size 1085
+oid sha256:f7d1893071dcc8e656bbe5bc18c3127970421cfef63bcb02a9afe270b7acdad5
+size 1084
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Fire.bin
index 6dfc6fd78..a4ae7091c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Fire.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Fire.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e87e4a0ed1217db2f4a55051323f79fdd4f060442c69c5e6a4fe49e439b5b5f1
-size 1080
+oid sha256:e6d527af94ed63b959954b7df9bba0d9a6306afd1c06348187b1af07a2803567
+size 1081
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin
index a809feb5a..6b9bea945 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b451035db2a86bf2236fa8687c6e506654829f97b0940003a1d50c4e92fa8c39
+oid sha256:ae091e0ca74c42a665f38b96a7b3b19196b1e027a58b93b2fff803f3315cd389
size 1174
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint.bin
new file mode 100644
index 000000000..f1a71d9c4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:541dc80b2a97146e5460de68189a7b0922fb2e558500252f48a1c1be07963535
+size 1132
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin
new file mode 100644
index 000000000..f50898ff6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/GooRod_0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e45eb8b4916dcbc092fa0ee49f5e732b2147988f8bbd7e1c7d2a9e1e7ba6a924
+size 1132
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin
new file mode 100644
index 000000000..e96050a10
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e7fe867e376ff18670d875b7a4cab813b1f768290a06377ae609fc872ee7cad
+size 1200
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin
new file mode 100644
index 000000000..fe4b7719d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Spread_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f0b59935cccfcd50c29c493dad6f5638a4da7fe4ef00f729bc14884faa7aab8
+size 1198
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Fonts/Font_size25.spritefont b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/Font_size25.spritefont
new file mode 100644
index 000000000..21649c9c4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/Font_size25.spritefont differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size20.spritefont b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size20.spritefont
new file mode 100644
index 000000000..972842271
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size20.spritefont differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size25.spritefont b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size25.spritefont
new file mode 100644
index 000000000..9836ae192
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size25.spritefont differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size50.spritefont b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size50.spritefont
new file mode 100644
index 000000000..c4940b567
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size50.spritefont differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size70.spritefont b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size70.spritefont
new file mode 100644
index 000000000..eb2883bcf
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Fonts/UI_size70.spritefont differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.bin
index 73187a977..35317d78b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:25da9cb8dbca37c11819dbf709d57fc54deec89fbffefcca8f592eca287b1474
+oid sha256:816985764d634dd123474628612c0d184ca427add7fe15a41bed8e03593be2a1
size 101580
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.fbx
index d8cf2e1ec..7f78dbccf 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DragonMesh/VFX_SM_ConjuredDragonControlPoint01GooRod02.001.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1b5e1d7cf98bcb15832142577b33984852344401f6affc81e5d7d936aec8b4a5
-size 71356
+oid sha256:b0bc7ccc2589aefe986423b644d5009decf1f59e551daaa7aeab40f912be6b37
+size 81548
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 795020d19..53403c403 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -615,4 +615,60 @@ float3 DownSampleFast(Texture2D SrcTexture2D, float2 vCenterTexcoord, float2 vSr
return vCenterColor * 0.25f + (fLTColor + fRTColor + fLBColor + fRBColor) * 0.0625f + (fTColor + fLColor + fRColor + fBColor) * 0.125f;
}
+float4x4 Inverse4x4(float4x4 m)
+{
+ float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3];
+ float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3];
+ float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3];
+ float a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3];
+
+ float b00 = a00 * a11 - a01 * a10;
+ float b01 = a00 * a12 - a02 * a10;
+ float b02 = a00 * a13 - a03 * a10;
+ float b03 = a01 * a12 - a02 * a11;
+ float b04 = a01 * a13 - a03 * a11;
+ float b05 = a02 * a13 - a03 * a12;
+ float b06 = a20 * a31 - a21 * a30;
+ float b07 = a20 * a32 - a22 * a30;
+ float b08 = a20 * a33 - a23 * a30;
+ float b09 = a21 * a32 - a22 * a31;
+ float b10 = a21 * a33 - a23 * a31;
+ float b11 = a22 * a33 - a23 * a32;
+
+ float det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
+
+ // 역행렬이 존재하지 않는 경우 (det ≈ 0)
+ if (abs(det) < 1e-6)
+ return float4x4(1, 0, 0, 0,
+ 0, 1, 0, 0,
+ 0, 0, 1, 0,
+ 0, 0, 0, 1); // fallback: 단위행렬
+
+ float invDet = 1.0 / det;
+
+ float4x4 inv;
+ inv[0][0] = (a11 * b11 - a12 * b10 + a13 * b09) * invDet;
+ inv[0][1] = (-a01 * b11 + a02 * b10 - a03 * b09) * invDet;
+ inv[0][2] = (a31 * b05 - a32 * b04 + a33 * b03) * invDet;
+ inv[0][3] = (-a21 * b05 + a22 * b04 - a23 * b03) * invDet;
+
+ inv[1][0] = (-a10 * b11 + a12 * b08 - a13 * b07) * invDet;
+ inv[1][1] = (a00 * b11 - a02 * b08 + a03 * b07) * invDet;
+ inv[1][2] = (-a30 * b05 + a32 * b02 - a33 * b01) * invDet;
+ inv[1][3] = (a20 * b05 - a22 * b02 + a23 * b01) * invDet;
+
+ inv[2][0] = (a10 * b10 - a11 * b08 + a13 * b06) * invDet;
+ inv[2][1] = (-a00 * b10 + a01 * b08 - a03 * b06) * invDet;
+ inv[2][2] = (a30 * b04 - a31 * b02 + a33 * b00) * invDet;
+ inv[2][3] = (-a20 * b04 + a21 * b02 - a23 * b00) * invDet;
+
+ inv[3][0] = (-a10 * b09 + a11 * b07 - a12 * b06) * invDet;
+ inv[3][1] = (a00 * b09 - a01 * b07 + a02 * b06) * invDet;
+ inv[3][2] = (-a30 * b03 + a31 * b01 - a32 * b00) * invDet;
+ inv[3][3] = (a20 * b03 - a21 * b01 + a22 * b00) * invDet;
+
+ return inv;
+}
+
+
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index e35e794b4..e413e52ea 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -56,7 +56,11 @@ struct ParticleValue
float fRotateAttenuation;
float fRotateAttDelay;
+ float3 vWolrdOffset;
+ float fLoopCount; /* 현재 몇번째 루프중인지 */
+
row_major matrix PreWorldMatrix;
+ //row_major matrix LocalMatrixInv;
};
@@ -93,8 +97,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
bool isNoPos;
bool isNoResetTime;
- bool isPadding0;
- bool isPadding1;
+ bool isLocal_Located_Not_TakeDelay;
+ bool isCompute_LocalInverse;
bool isPadding2;
float fTimeDelta;
@@ -108,8 +112,6 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
float2 vScreenSize;
float fPadding0;
float fPadding1;
-
-
}
//내가 몇개의 스레드를 사용할 것인지 지정하는데
@@ -126,6 +128,47 @@ void CS_MAIN(
float fGravity = particleValue.fGravity;
float fOnlyDropY = 0.f;
float fRatio = particle.vLifeTime.x / particle.vLifeTime.y;
+ bool _isLocal_Located_Not_TakeDelay = isLocal_Located_Not_TakeDelay;
+
+ if (particleValue.fLoopCount == 0.f) /* 첫 루프에는 딜레이에 따른 위치를 설정받지 않도록함 */
+ {
+ _isLocal_Located_Not_TakeDelay = false;
+ }
+
+ if (_isLocal_Located_Not_TakeDelay == true && particleValue.vDelay.x <= FLT_EPSILON5)
+ {
+
+ if (isNoWorld)
+ {
+ row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
+
+
+ CurMat = mul(CurMat, WorldMatrix);
+
+ particle.vRight = CurMat[0].xyzw;
+ particle.vUp = CurMat[1].xyzw;
+ particle.vLook = CurMat[2].xyzw;
+ particle.vTranslation = CurMat[3].xyzw;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += CurMat[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += CurMat[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += CurMat[2] * particleValue.vWolrdOffset.z;
+
+ }
+
+ if (isNoPos)
+ {
+ particle.vTranslation.xyz += WorldMatrix[3].xyz;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += WorldMatrix[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += WorldMatrix[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += WorldMatrix[2] * particleValue.vWolrdOffset.z;
+ }
+ }
particleValue.vDelay.x += fTimeDelta;
@@ -138,7 +181,7 @@ void CS_MAIN(
return;
}
- if (particle.vLifeTime.x <= FLT_EPSILON5)
+ if (particle.vLifeTime.x <= FLT_EPSILON5 && _isLocal_Located_Not_TakeDelay == false)
{
if (isNoWorld)
{
@@ -150,12 +193,25 @@ void CS_MAIN(
particle.vRight = CurMat[0].xyzw;
particle.vUp = CurMat[1].xyzw;
particle.vLook = CurMat[2].xyzw;
- particle.vTranslation = CurMat[3].xyzw;
+ particle.vTranslation = CurMat[3].xyzw ;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += CurMat[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += CurMat[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += CurMat[2] * particleValue.vWolrdOffset.z;
+
}
if (isNoPos)
{
particle.vTranslation.xyz += WorldMatrix[3].xyz;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += WorldMatrix[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += WorldMatrix[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += WorldMatrix[2] * particleValue.vWolrdOffset.z;
}
}
@@ -185,6 +241,7 @@ void CS_MAIN(
}
//초기화
+ particleValue.fLoopCount += 1.f;
particle.vRight = particleValue.vOriginRight;
particle.vUp = particleValue.vOriginUp;
particle.vLook = particleValue.vOriginLook;
@@ -580,6 +637,21 @@ void CS_MAIN(
particleValue.vDissolveUVMoveTime.x = 0.f;
}
+ //if (isCompute_LocalInverse == true)
+ //{
+ // row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
+
+
+ // CurMat = mul(CurMat, WorldMatrix);
+
+ // particle.vRight = CurMat[0].xyzw;
+ // particle.vUp = CurMat[1].xyzw;
+ // particle.vLook = CurMat[2].xyzw;
+ // particle.vTranslation = CurMat[3].xyzw;
+
+ // particleValue.LocalMatrixInv = Inverse4x4(CurMat); /* 데칼 메쉬만 인스턴스당 1번 수행할거임 */
+ //}
+
//아웃풋 대입
g_VBInstanceOutput[iIndex] = particle;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index a15e12766..bf71a449a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -18,6 +18,7 @@ float g_fPI;
float g_fFar;
float g_fBlinkTime;
float g_fTime;
+float g_fColorTime;
float g_fFrame;
float g_fDeltaU;
float g_fDeltaV;
@@ -455,10 +456,11 @@ PS_OUT PS_Spell_Anim(PS_IN In)
float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal = (In.vTexcoord - texpos) / texsize;
bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
-
if (inside)
+ {
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, texlocal);
Color = lerp(Color, tex2, tex2.a);
+ }
Color.a *= Alpha;
Out.vColor = Color;
@@ -1771,6 +1773,7 @@ PS_OUT PS_Broomstick(PS_IN In)
return Out;
}
+
PS_OUT PS_SpellLearn(PS_IN In)
{
PS_OUT Out = (PS_OUT)0;
@@ -1997,6 +2000,72 @@ PS_OUT PS_CanvasFade(PS_IN In)
return Out;
}
+PS_OUT PS_FlagWave(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha;
+ float4 Color = float4(0.f, 0.f, 0.f, 1.f);
+
+ float2 uv = In.vTexcoord;
+
+ float phase = uv.y * 1.5f;
+
+ float waveX =
+ sin(uv.y * 20.f + g_fTime * 1.0f + phase) * 0.007f;
+
+ float waveY =
+ sin(uv.x * 12.f + g_fTime * 0.8f) * 0.002f;
+
+ uv.x += waveX;
+ uv.y += waveY;
+
+ float4 tex = g_Texture.Sample(ClampSampler, uv);
+
+ Color = tex;
+
+ if (Color.r <= 0.f)
+ discard;
+
+ Color.a = Alpha;
+
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_BroomCircle(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(0.f, 0.f, 0.f, 0.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ float2 Rotation;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float4 tex = g_Texture.Sample(BorderZeroLinearSampler, Rotation);
+ color = tex;
+
+ float Diffuse = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
+
+
+ if (g_iHover != 0)
+ {
+ if (g_fTime >= Diffuse)
+ {
+ discard;
+ }
+ }
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+ return Out;
+}
+
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -2281,6 +2350,22 @@ PS_OUT PS_Interaction_Npc(PS_IN In)
return Out;
}
+PS_OUT PS_BroomGateTarget(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex1;
+
+ Color.a *= g_fAlpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -2691,6 +2776,26 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_CanvasFade();
}
+ pass FlagWave
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_FlagWave();
+ }
+
+ pass BroomCircle
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BroomCircle();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
@@ -2720,4 +2825,14 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Interaction_Npc();
}
+
+ pass BroomGateTarget
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_None, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_NONESIZE3D();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BroomGateTarget();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 280881843..3ab7f069c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -20,38 +20,42 @@ struct ParticleValue
float2 vAniIndex;
- float fGravity;
+ float fGravity;
- float3 vSinAmount;
+ float3 vSinAmount;
float3 vDeltaAngle;
float3 vDeltaAxisAngle;
- float fDrag;
+ float fDrag;
float3 vPivot;
- float fSizeDrag;
+ float fSizeDrag;
float3 vDeltaSize;
float2 vDelay;
- bool isCompareStop;
+ bool isCompareStop;
float fCollisionTime;
- float fDropAttenuation;
+ float fDropAttenuation;
float3 vVelocity;
- float fAcceleration;
+ float fAcceleration;
- bool isStop;
+ bool isStop;
- float fRotateAttenuation;
- float fRotateAttDelay;
+ float fRotateAttenuation;
+ float fRotateAttDelay;
+
+ float3 vWolrdOffset;
+ float fLoopCount; /* 현재 몇번째 루프중인지 */
row_major matrix PreWorldMatrix;
+ //row_major matrix LocalMatrixInv;
};
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
-matrix g_ProjMatrixInv, g_ViewMatrixInv;
+matrix g_WorldMatrixInv, g_ProjMatrixInv, g_ViewMatrixInv;
matrix g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
@@ -70,12 +74,16 @@ Texture2D g_DepthStencilTexture : register(t7);
Texture2D g_DistortionTexture : register(t8);
Texture2D g_DepthTexture : register(t9);
Texture2D g_SurfaceParamsTexture : register(t10);
+//Texture2D g_NormalMapTexture : register(t11);
float4 g_vCamPosition;
float g_fFar;
-float g_fUsingSurfaceParams;
-float g_fMBIntensity = 1.f;
+float g_fUsingSurfaceParams;
+float g_fMBIntensity = 1.f;
+
+float g_fWinSizeX;
+float g_fWinSizeY;
/* 디퓨즈 */
float4 g_vColor;
@@ -262,6 +270,14 @@ struct PS_BLUR_MESH_IN
float4 vPrevProjPos : TEXCOORD5;
};
+struct PS_OUT_DELCAL
+{
+ float4 vAlbedo : SV_TARGET0;
+ float4 vNormal : SV_TARGET1;
+ float4 vSurface : SV_Target2;
+};
+
+
VS_BULR_MESH_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
{
VS_BULR_MESH_OUT Out = (VS_BULR_MESH_OUT) 0;
@@ -901,6 +917,57 @@ float4 SoftEffect(PS_IN In, float4 vMtrlDiffuse)
}
+float2 ComputeDecal(float4 vPosition , float4x4 LocalMatrixInv)
+{
+ float2 vDecalUV;
+ float2 vDepthUV;
+
+ //vDepthUV.x = vPosition.x / g_fWinSizeX;
+ //vDepthUV.y = vPosition.y / g_fWinSizeY;
+
+ //float4 vDepthDesc = g_DepthTexture.Sample(DefaultSampler, vDepthUV);
+ //float3 vNormalDesc = g_NormalMapTexture.Sample(DefaultSampler, vDepthUV).xyz;
+ //vNormalDesc = normalize(vNormalDesc * 2.f - 1.f);
+
+ //float fViewZ = vDepthDesc.y * g_fFar;
+
+ //float4 vPos;
+
+ //vPos.x = vDepthUV.x * 2.f - 1.f;
+ //vPos.y = vDepthUV.y * -2.f + 1.f;
+ //vPos.z = vDepthDesc.x;
+ //vPos.w = 1.f;
+
+ //float4 vViewPos = mul(vPos, g_ProjMatrixInv);
+ //vViewPos /= vViewPos.w;
+
+ //float4 vWorldPos = mul(vViewPos, g_ViewMatrixInv);
+
+ //vector vLocalPos = mul(vWorldPos, LocalMatrixInv);
+
+ //float3 ObjectAbsPos = abs(vLocalPos.xyz);
+
+ //clip(0.5f - ObjectAbsPos);
+
+ //float3 vAbsNormal = abs(vNormalDesc);
+
+ //int iAxisIndex = 0;
+
+ //if (vAbsNormal.y > vAbsNormal.x && vAbsNormal.y > vAbsNormal.z)
+ // iAxisIndex = 1;
+ //else if (vAbsNormal.z > vAbsNormal.x && vAbsNormal.z > vAbsNormal.y)
+ // iAxisIndex = 2;
+
+ //if (0 == iAxisIndex)
+ // vDecalUV = vLocalPos.zy + 0.5f * 2.f;
+ //else if (1 == iAxisIndex)
+ // vDecalUV = vLocalPos.xz + 0.5f * 2.f;
+ //else
+ // vDecalUV = vLocalPos.xy + 0.5f * 2.f;
+
+ return vDecalUV;
+}
+
PS_NOMAL_OUT PS_MAIN(PS_BLUR_MESH_IN In)
{
PS_IN PS_In;
@@ -1319,6 +1386,97 @@ PS_BLUR_MESH_OUT PS_BLUR_MESH(PS_BLUR_MESH_IN In)
return Out;
}
+
+PS_OUT_DELCAL PS_DECAL(PS_BLUR_MESH_IN In)
+{
+ PS_IN PS_In;
+ PS_OUT_DELCAL Out;
+
+ PS_In.vPosition = In.vPosition;
+ PS_In.vNormal = In.vNormal;
+ PS_In.vTangent = In.vTangent;
+ PS_In.vBinormal = In.vBinormal;
+ PS_In.vTexcoord = In.vTexcoord;
+ PS_In.vLifeTime = In.vLifeTime;
+ PS_In.vWorldPos = In.vWorldPos;
+ PS_In.vProjPos = In.vProjPos;
+ PS_In.iGPUIndex = In.iGPUIndex;
+
+ vector vMtrlDiffuse;
+
+ //PS_In.vTexcoord = ComputeDecal(In.vPosition, g_ParticleValue[In.iGPUIndex].LocalMatrixInv);
+
+ float4 vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, PS_In.vTexcoord);
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, PS_In.vTexcoord);
+
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal.rgb);
+
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+
+ float fSurfaceParam = g_fUsingSurfaceParams;
+ if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
+ {
+ fSurfaceParam = 0;
+ }
+
+ vMtrlDiffuse = DrawEffect(PS_In);
+
+ vMtrlDiffuse.rgb += EmissiveDraw(PS_In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(PS_In);
+
+ vSurface.b = 0.5f;
+
+
+ Out.vAlbedo = vMtrlDiffuse;
+ Out.vSurface = vSurface;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+
+ return Out;
+}
+
+PS_OUT PS_DECAL_WB(PS_BLUR_MESH_IN In)
+{
+ PS_IN PS_In;
+ PS_OUT Out;
+
+ PS_In.vPosition = In.vPosition;
+ PS_In.vNormal = In.vNormal;
+ PS_In.vTangent = In.vTangent;
+ PS_In.vBinormal = In.vBinormal;
+ PS_In.vTexcoord = In.vTexcoord;
+ PS_In.vLifeTime = In.vLifeTime;
+ PS_In.vWorldPos = In.vWorldPos;
+ PS_In.vProjPos = In.vProjPos;
+ PS_In.iGPUIndex = In.iGPUIndex;
+
+ vector vMtrlDiffuse;
+
+ //PS_In.vTexcoord = ComputeDecal(In.vPosition, g_ParticleValue[In.iGPUIndex].LocalMatrixInv);
+ vMtrlDiffuse = DrawEffect(PS_In);
+
+ vMtrlDiffuse = SoftEffect(PS_In, vMtrlDiffuse);
+
+ //int2 iTexel = int2(In.vPosition.xy);
+
+ //float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
+
+ //float fbias = 0.000005f;
+
+ //if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
+ // discard;
+
+ vMtrlDiffuse.rgb += EmissiveDraw(PS_In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(PS_In);
+
+
+ Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
+
+ return Out;
+}
+
technique11 DefaultTechnique
{
//0
@@ -1570,12 +1728,44 @@ technique11 DefaultTechnique
pass Default_NonPos
{
SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_Default, 0);
+ SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_NO_POS();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
+//24
+ pass NonWB_NonPos
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN_NO_POS();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_NON_NORMALMAP();
+ }
+
+//25
+ pass Decal
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_DECAL();
+ }
+
+//26
+ pass Decal_WB
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_DECAL_WB();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png
index ac6a0b938..0fb34266a 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag.png
new file mode 100644
index 000000000..70409646b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right.png
deleted file mode 100644
index 70e003d31..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right_Mask.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right_Mask.png
deleted file mode 100644
index 711702470..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right_Mask.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BR_BestTime_Trophy.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BR_BestTime_Trophy.png
deleted file mode 100644
index ed6cef853..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BR_BestTime_Trophy.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Broom_Record.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Broom_Record.png
new file mode 100644
index 000000000..47d31999d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Broom_Record.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png
index 304438d0e..d191cd90f 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Exit.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Exit.png
new file mode 100644
index 000000000..828ef8a06
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Exit.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Finish.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Finish.png
new file mode 100644
index 000000000..b43aaf124
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Finish.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Scoreboard.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Scoreboard.png
new file mode 100644
index 000000000..4556ca2aa
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Scoreboard.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_SilverNotificationBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_SilverNotificationBack.png
deleted file mode 100644
index 84d975c3e..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_SilverNotificationBack.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 99dacd8e8..18835e8e9 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -178,6 +178,13 @@ call Update_Shaders.bat
+
+
+
+
+
+
+
@@ -204,6 +211,7 @@ call Update_Shaders.bat
+
@@ -427,6 +435,13 @@ call Update_Shaders.bat
+
+
+
+
+
+
+
@@ -454,6 +469,7 @@ call Update_Shaders.bat
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index f6fcb7a17..4df13c8ad 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -682,6 +682,30 @@
{fbf574e7-159e-43c3-914d-6a200383a45c}
+
+ {837e0b65-8ea3-41c5-8176-defa6e0cf3a4}
+
+
+ {dd61e764-b7d3-444e-b366-8d5ae8178eea}
+
+
+ {3c9de404-4242-49b1-9ffb-8cae91794f27}
+
+
+ {d1ddcfea-f78c-400c-962f-2998b698f41a}
+
+
+ {7ed6c441-cc93-42ff-ba9d-1428bbc279cc}
+
+
+ {0b19a4f7-c004-4e10-8ceb-7b9b63d78e7f}
+
+
+ {39648080-72dd-484f-b490-b79d550b971d}
+
+
+ {cfd0b003-cc18-48cf-a881-94e137b5dadc}
+
@@ -1383,6 +1407,30 @@
02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Breath
+
+ 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Point
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Flag
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Circle
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Scoreboard
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Fiish
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Exit
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record
+
@@ -2092,6 +2140,30 @@
01.Level\00.Loading\Loader
+
+ 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Point
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Flag
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Circle
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Scoreboard
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Fiish
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Exit
+
+
+ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record
+
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Circle.cpp b/Jusin154_Team3D/Editor/Private/Broom_Circle.cpp
new file mode 100644
index 000000000..342698e45
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Circle.cpp
@@ -0,0 +1,355 @@
+#include "pch.h"
+#include "Broom_Circle.h"
+#include "GameInstance.h"
+
+CBroom_Circle::CBroom_Circle(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Circle::CBroom_Circle(const CBroom_Circle& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Circle::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Circle::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 120.f;
+ Desc.fSizeX = 160.f;
+ Desc.fSizeY = 160.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 150.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_iCount = 3;
+ m_fFontX = 918.f;
+ m_fFontY = 345.f;
+ m_fFontAlpha = 1.f;
+ m_fAngle = XMConvertToRadians(90.f);
+ m_bTimer = false;
+ return S_OK;
+}
+
+void CBroom_Circle::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Circle::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_pGameInstance->Key_Down(DIK_K))
+ {
+ m_bTimer = true;
+ m_bCountDown = true;
+ m_bHover = false;
+ m_iCount = 3;
+ m_fTime = 0.f;
+ m_fDissolve = 0.f;
+ m_fFontAlpha = 1.f;
+ static_cast(m_pOwner)->Function_Callback(TEXT("BroomStart"));
+ }
+
+ if (m_bTimer == true && m_iCount >= 0)
+ {
+ m_fTime += fTimeDelta;
+ if (m_fTime >= 1.f)
+ {
+ Start_Size_Lerp(fTimeDelta * m_fTimeMult);
+ }
+ }
+
+ if (m_fFontAlpha >= 0.f)
+ {
+ m_fFontAlpha -= fTimeDelta;
+ }
+ else
+ {
+ m_fFontAlpha = 0.f;
+ }
+
+ if (m_bHover == true)
+ {
+ if (m_fDissolve >= 0.f)
+ m_fDissolve += fTimeDelta;
+ else if (m_fDissolve >= 1.f)
+ m_bHover = false;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Circle::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Circle::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMCIRCLE)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _wstring Count;
+ _vector Color{};
+ if (m_iCount > 0.f)
+ {
+ Count = to_wstring(m_iCount);
+ Color = XMVectorSet(1.f * m_fFontAlpha, 1.f * m_fFontAlpha, 1.f * m_fFontAlpha, m_fFontAlpha);
+ }
+
+ else if (m_iCount == 0)
+ {
+ Count = TEXT("GO");
+ Color = XMVectorSet(0.f, 1.f * m_fFontAlpha, 0.f, m_fFontAlpha);
+ }
+
+ _float OffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size70"), Count.c_str()) - 61.f) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("UI_size70"), Count.c_str(), _float2(m_fFontX + m_fX - OffSet, m_fFontY - m_fY), Color);
+
+ return S_OK;
+}
+
+_vector CBroom_Circle::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Circle::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fDissolve, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Circle::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_AccioBallFrame_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_VFX_T_Repairo_Wisp_04_D"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CBroom_Circle::Start_Size_Lerp(_float fTimeDelta)
+{
+ m_fFontAlpha = 1.f;
+ if (m_bCountDown == true)
+ {
+ m_iCount--;
+ m_bCountDown = false;
+ }
+
+ if (m_fSizeX >= 150.f && m_bSizeDown == false)
+ {
+ m_fSizeX -= fTimeDelta;
+ m_fSizeY -= fTimeDelta;
+ }
+
+ if (m_fSizeX <= 150.f)
+ {
+ m_bSizeDown = true;
+ }
+
+ if (m_bSizeDown == true)
+ {
+ m_fSizeX += fTimeDelta;
+ m_fSizeY += fTimeDelta;
+ }
+
+ if (m_fSizeX >= 180.f && m_bSizeUp == false)
+ {
+ m_bSizeDown = false;
+ m_bSizeUp = true;
+ }
+
+ if (m_bSizeUp == true)
+ {
+ if (m_fSizeX >= 160.f)
+ {
+ m_fSizeX -= fTimeDelta;
+ m_fSizeY -= fTimeDelta;
+ }
+ else if (m_fSizeX <= 160.f && m_bCountDown == false)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bSizeUp = false;
+ m_fTime = 0.f;
+ m_bCountDown = true;
+ }
+ }
+
+ if (m_iCount <= 0)
+ {
+ m_bTimer = false;
+ m_bHover = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("BroomEnd"), &m_bHover);
+ }
+
+}
+
+CBroom_Circle* CBroom_Circle::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Circle* pInstance = new CBroom_Circle(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Circle");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Circle::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Circle* pInstance = new CBroom_Circle(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Circle");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Circle::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Circle::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Exit.cpp b/Jusin154_Team3D/Editor/Private/Broom_Exit.cpp
new file mode 100644
index 000000000..2b9ffd955
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Exit.cpp
@@ -0,0 +1,245 @@
+#include "pch.h"
+#include "Broom_Exit.h"
+#include "GameInstance.h"
+
+CBroom_Exit::CBroom_Exit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Exit::CBroom_Exit(const CBroom_Exit& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Exit::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Exit::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = -400.f;
+ Desc.fSizeX = 180.f;
+ Desc.fSizeY = 60.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fFontX = 940.f;
+ m_fFontY = 385.f;
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+
+ return S_OK;
+}
+
+void CBroom_Exit::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Exit::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fImagePosi = _float4(35.f, 17.f, 32.f, 32.f);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Exit::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Exit::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::UVMULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("나가기"), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
+
+ return S_OK;
+}
+
+_vector CBroom_Exit::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Exit::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Exit::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Exit"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Keyboard_Esc"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Exit* CBroom_Exit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Exit* pInstance = new CBroom_Exit(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Exit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Exit::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Exit* pInstance = new CBroom_Exit(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Finish");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Exit::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Exit::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Fiish.cpp b/Jusin154_Team3D/Editor/Private/Broom_Fiish.cpp
new file mode 100644
index 000000000..47c32e737
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Fiish.cpp
@@ -0,0 +1,250 @@
+#include "pch.h"
+#include "Broom_Fiish.h"
+#include "GameInstance.h"
+
+CBroom_Finish::CBroom_Finish(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Finish::CBroom_Finish(const CBroom_Finish& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Finish::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Finish::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = -140.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 1080.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+ return S_OK;
+}
+
+void CBroom_Finish::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Finish::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ Set_Font();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Finish::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Finish::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[0].c_str(), m_fFontPos[0]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[1].c_str(), m_fFontPos[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[2].c_str(), m_fFontPos[2]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[3].c_str(), m_fFontPos[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[4].c_str(), m_fFontPos[4]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[5].c_str(), m_fFontPos[5]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[6].c_str(), m_fFontPos[6]);
+
+
+ return S_OK;
+}
+
+_vector CBroom_Finish::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Finish::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CBroom_Finish::Set_Font()
+{
+ m_fFont[0] = TEXT("경주 시간");
+ m_fFont[1] = TEXT("0:00:00");
+ m_fFont[2] = TEXT("놓친 고리로 인한 패널티 X ");
+ m_fFont[3] = TEXT("0");
+ m_fFont[4] = TEXT("0:00:00");
+ m_fFont[5] = TEXT("총 시간");
+ m_fFont[6] = TEXT("0:00:00");
+
+ m_fFontPos[0] = _float2(m_fX + 700, m_fY + 600);
+ m_fFontPos[1] = _float2(m_fX + 1100, m_fY + 600);
+ m_fFontPos[2] = _float2(m_fX + 700, m_fY + 640);
+ m_fFontPos[3] = _float2(m_fX + 1020, m_fY + 640);
+ m_fFontPos[4] = _float2(m_fX + 1100, m_fY + 640);
+ m_fFontPos[5] = _float2(m_fX + 700, m_fY + 700);
+ m_fFontPos[6] = _float2(m_fX + 1100, m_fY + 700);
+}
+
+HRESULT CBroom_Finish::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Finish"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Finish* CBroom_Finish::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Finish* pInstance = new CBroom_Finish(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Finish");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Finish::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Finish* pInstance = new CBroom_Finish(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Finish");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Finish::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Finish::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Flag.cpp b/Jusin154_Team3D/Editor/Private/Broom_Flag.cpp
new file mode 100644
index 000000000..8de4d6cf7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Flag.cpp
@@ -0,0 +1,243 @@
+#include "pch.h"
+#include "Broom_Flag.h"
+#include "GameInstance.h"
+
+CBroom_Flag::CBroom_Flag(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Flag::CBroom_Flag(const CBroom_Flag& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Flag::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Flag::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 100.f;
+ Desc.fSizeX = 437.5f;
+ Desc.fSizeY = 160.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+ m_fStart = 500.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("BroomEnd"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_bool*>(p)); });
+ static_cast(m_pOwner)->Add_Function(TEXT("BroomStart"), [this](void* p) {this->Set_Start(); });
+ return S_OK;
+}
+
+void CBroom_Flag::Set_Start()
+{
+ m_fSizeX = m_fOrigin_Size.x;
+ m_fAlpha = 1.f;
+}
+
+void CBroom_Flag::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Flag::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bHover == true)
+ {
+ m_fSizeX -= fTimeDelta * m_fStart;
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bHover = false;
+ m_fAlpha = 0.f;
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Flag::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Flag::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::FLAGWAVE)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CBroom_Flag::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Flag::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Flag::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_BRFlag"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Flag* CBroom_Flag::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Flag* pInstance = new CBroom_Flag(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Flag");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Flag::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Flag* pInstance = new CBroom_Flag(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Flag");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Flag::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Flag::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp b/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp
new file mode 100644
index 000000000..1cf965aea
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Panel.cpp
@@ -0,0 +1,191 @@
+#include "pch.h"
+#include "Broom_Panel.h"
+#include "GameInstance.h"
+#include "Broom_Flag.h"
+#include "Broom_Circle.h"
+#include "Broom_Scoreboard.h"
+#include "Broom_Fiish.h"
+#include "Broom_Record.h"
+#include "Broom_Exit.h"
+
+
+CBroom_Panel::CBroom_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CBroom_Panel::CBroom_Panel(const CBroom_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CBroom_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = -400.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 700.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Element(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ Visible(true);
+ ElementAllVisible(true);
+ return S_OK;
+}
+
+void CBroom_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Panel::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+
+}
+
+HRESULT CBroom_Panel::Render()
+{
+ return S_OK;
+}
+
+_vector CBroom_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Panel::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CBroom_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Flag))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Flag"), m_pBroom_Flag);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Circle))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Circle"), m_pBroom_Circle);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Scoreboard))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Scoreboard"), m_pBroom_Scoreboard);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Fiish))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Fiish"), m_pBroom_Fiish);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Record))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Record"), m_pBroom_Record);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_Exit))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Broom_Exit"), m_pBroom_Exit);
+
+ return S_OK;
+}
+
+CBroom_Panel* CBroom_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Panel* pInstance = new CBroom_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Panel* pInstance = new CBroom_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Panel::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Record.cpp b/Jusin154_Team3D/Editor/Private/Broom_Record.cpp
new file mode 100644
index 000000000..8c01a124a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Record.cpp
@@ -0,0 +1,250 @@
+#include "pch.h"
+#include "Broom_Record.h"
+#include "GameInstance.h"
+
+CBroom_Record::CBroom_Record(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Record::CBroom_Record(const CBroom_Record& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Record::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Record::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 120.f;
+ Desc.fSizeX = 500.f;
+ Desc.fSizeY = 150.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 10.f;
+ return S_OK;
+}
+
+void CBroom_Record::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Record::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Set_Font();
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Record::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Record::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ //m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[0].c_str(), m_fFontPos[0]);
+ //m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[1].c_str(), m_fFontPos[1], m_fFontColor[0]);
+ //m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[2].c_str(), m_fFontPos[2]);
+ //m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[3].c_str(), m_fFontPos[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[4].c_str(), m_fFontPos[4], m_fFontColor[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_fFont[5].c_str(), m_fFontPos[5]);
+
+ return S_OK;
+}
+
+_vector CBroom_Record::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Record::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Record::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Broom_Record"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CBroom_Record::Set_Font()
+{
+ m_fFont[0] = TEXT("내 기록");
+ m_fFont[1] = TEXT("0:00:00");
+ m_fFont[2] = TEXT("최고 기록");
+ m_fFont[3] = TEXT("0:00:00");
+ m_fFont[4] = TEXT("새 최고 기록");
+ m_fFont[5] = TEXT("0:00:00");
+
+ m_fFontPos[0] = _float2(m_fX + 820.f, m_fY + 140.f);
+ m_fFontPos[1] = _float2(m_fX + 810.f, m_fY + 180.f);
+ m_fFontPos[2] = _float2(m_fX + 1005.f, m_fY + 140.f);
+ m_fFontPos[3] = _float2(m_fX + 1010.f, m_fY + 180.f);
+ m_fFontPos[4] = _float2(m_fX + 880, m_fY + 140.f);
+ m_fFontPos[5] = _float2(m_fX + 900, m_fY + 180.f);
+
+ m_fFontColor[0] = XMVectorSet(0.f, 1.f, 0.f, 1.f);
+ m_fFontColor[1] = XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha);
+
+}
+
+CBroom_Record* CBroom_Record::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Record* pInstance = new CBroom_Record(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Record");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Record::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Record* pInstance = new CBroom_Record(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Record");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Record::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Record::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Broom_Scoreboard.cpp b/Jusin154_Team3D/Editor/Private/Broom_Scoreboard.cpp
new file mode 100644
index 000000000..d33b167d3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_Scoreboard.cpp
@@ -0,0 +1,260 @@
+#include "pch.h"
+#include "Broom_Scoreboard.h"
+#include "GameInstance.h"
+
+CBroom_Scoreboard::CBroom_Scoreboard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CBroom_Scoreboard::CBroom_Scoreboard(const CBroom_Scoreboard& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CBroom_Scoreboard::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroom_Scoreboard::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 300.f;
+ Desc.fSizeX = 512.f;
+ Desc.fSizeY = 132.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fFontX = 900.f;
+ m_fFontY = 900.f;
+ Set_Setting();
+ return S_OK;
+}
+
+void CBroom_Scoreboard::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CBroom_Scoreboard::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ Set_Setting();
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CBroom_Scoreboard::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CBroom_Scoreboard::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[0].c_str(), m_fFontPosition[0], m_fColor[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[1].c_str(), m_fFontPosition[1], m_fColor[1]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[2].c_str(), m_fFontPosition[2], m_fColor[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), Score[3].c_str(), m_fFontPosition[3], m_fColor[0]);
+ m_pGameInstance->Render_Text(TEXT("UI_size25"), Score[4].c_str(), m_fFontPosition[4], m_fColor[0]);
+ m_pGameInstance->Render_Text(TEXT("UI_size25"), Score[5].c_str(), m_fFontPosition[5], m_fColor[3]);
+ m_pGameInstance->Render_Text(TEXT("Font_size25"), Score[6].c_str(), m_fFontPosition[6], m_fColor[2]);
+ m_pGameInstance->Render_Text(TEXT("Font_size25"), Score[7].c_str(), m_fFontPosition[7], m_fColor[0]);
+
+ return S_OK;
+}
+
+void CBroom_Scoreboard::Set_Setting()
+{
+ m_fColor[0] = XMVectorSet(1.f, 1.f, 1.f, 1.f);
+ m_fColor[1] = XMVectorSet(0.5f, 0.5f, 0.5f, 1.f);
+ m_fColor[2] = XMVectorSet(0.f, 1.f, 0.f, 1.f);
+ m_fColor[3] = XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha);
+
+ Score[0] = TEXT("내 기록");
+ Score[1] = TEXT("최고 기록");
+ Score[2] = TEXT("게이트");
+ Score[3] = TEXT("/");
+ Score[4] = TEXT("5");
+ Score[5] = TEXT("29");
+ Score[6] = TEXT("0:00:00");
+ Score[7] = TEXT("0:00:00");
+
+ m_fFontPosition[0] = _float2(m_fX + 770, m_fY - 245.f);
+ m_fFontPosition[1] = _float2(m_fX + 1050, m_fY - 245.f);
+ m_fFontPosition[2] = _float2(m_fX + 918, m_fY - 195.f);
+ m_fFontPosition[3] = _float2(m_fX + 950, m_fY - 225.f);
+ m_fFontPosition[4] = _float2(m_fX + 920, m_fY - 230.f);
+ m_fFontPosition[5] = _float2(m_fX + 970, m_fY - 230.f);
+ m_fFontPosition[6] = _float2(m_fX + 755, m_fY - 215.f);
+ m_fFontPosition[7] = _float2(m_fX + 1045, m_fY - 215.f);
+}
+
+_vector CBroom_Scoreboard::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CBroom_Scoreboard::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CBroom_Scoreboard::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Scoreboard"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CBroom_Scoreboard* CBroom_Scoreboard::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroom_Scoreboard* pInstance = new CBroom_Scoreboard(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroom_Scoreboard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CBroom_Scoreboard::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroom_Scoreboard* pInstance = new CBroom_Scoreboard(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroom_Scoreboard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroom_Scoreboard::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CBroom_Scoreboard::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 3bc14a346..9620c99d7 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -456,7 +456,8 @@ void CEditEffect::Describe_Entity()
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" ,"BLUR_NO_EMMISVE",
- "BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND" , "DEPTH_STOP" , "WB_CULLING", "SCREEN_FX" , "DISTORTION" ,"NONPOS" , "NONPOS_BLUR" , "BULR_MESH" , "BLUR_CULLING" ,"BLUR_CULLING_NO_EMISSIVE" , "BLOOM_CULLING" , "DEFAULT_NONPOS"};
+ "BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND" , "DEPTH_STOP" , "WB_CULLING", "SCREEN_FX" , "DISTORTION" ,"NONPOS" , "NONPOS_BLUR" , "BULR_MESH" , "BLUR_CULLING" ,"BLUR_CULLING_NO_EMISSIVE" ,
+ "BLOOM_CULLING" , "DEFAULT_NONPOS" , "NONWB_NONPOS", "DECAL", "DECAL_WB"};
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"};
_int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder);
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index 94439961f..82227ad1e 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -100,7 +100,8 @@ HRESULT CEffectObject::Render_Blur()
}
}
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS
+ || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
@@ -830,8 +831,24 @@ HRESULT CEffectObject::Bind_ShaderResources()
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
return E_FAIL;
}
+
+ //if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), m_pShaderCom, "g_NormalMapTexture"))) {
+ // return E_FAIL;
+ //}
}
+ //_float2 vViewPortSize = m_pGameInstance->Get_ViewPortSize();
+
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeX", &vViewPortSize.x, sizeof(_float)))) {
+ // return E_FAIL;
+ //}
+
+ //if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeY", &vViewPortSize.y, sizeof(_float)))) {
+ // return E_FAIL;
+ //}
+
+
+
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index c86d0816e..7954cc101 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -23,6 +23,7 @@
#include "Blink.h"
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
+#include "Ranrok_Point.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -333,11 +334,19 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_POINT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_Point* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
return S_OK;
}
-HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg)
+HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg , CEffect_Container** ppOut)
{
if (pOwner == nullptr)
return S_OK;
@@ -352,6 +361,11 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg
m_ActiveEffectList.push_back(pSkill);
Safe_AddRef(pSkill);
+ if (nullptr != ppOut) {
+ *ppOut = pSkill;
+ SAFE_ADDREF(pSkill);
+ }
+
break;
}
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
index 34d962179..b04c3c7db 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
@@ -328,6 +328,7 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
m_bVisible = true;
m_isCollisionEnter = false;
m_bHit = false;
+ m_isStop = false;
return S_OK;
}
@@ -346,6 +347,21 @@ void CEffect_Container::Reset_Light()
}
+void CEffect_Container::Setting_Pos(_fvector vPos)
+{
+ for (auto& iter : m_PartObjects)
+ {
+ CTransform* pTransform = iter.second->Get_Component();
+
+ if (pTransform == nullptr)
+ continue;
+
+ pTransform->Set_State(STATE::POSITION, vPos);
+ }
+
+ m_isStop = true;
+}
+
HRESULT CEffect_Container::Ready_Components(void* pArg)
{
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index fcad1f5b4..6ab24f334 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -26,7 +26,7 @@ CEffect_Editor::CEffect_Editor(const CEffect_Editor& rhs)
HRESULT CEffect_Editor::Initialize_Prototype()
{
- ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Stupify");
+ ReadMaterials("../Bin/Resources/VFX/Niagara/AncientMagic/ConjuredDragon");
for (auto iter : m_MatFiles)
diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
index 2ebae093f..d65b6c305 100644
--- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
@@ -8,6 +8,7 @@
#include "Action_Panel.h"
#include "Mouse_Cursor.h"
#include "Enemy_Panel.h"
+#include "Broom_Panel.h"
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCanvasObject(pDevice, pContext)
@@ -123,6 +124,12 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
}
Add_Panel(TEXT("Enemy_Panel"), m_pEnemy_Panel);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pBroom_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("Broom_Panel"), m_pBroom_Panel);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 412983bd9..b676a313a 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -126,6 +126,14 @@
#include "SpellLearn_Slot.h"
#include "SpellLearn_Overlay.h"
+#include "Broom_Panel.h"
+#include "Broom_Flag.h"
+#include "Broom_Circle.h"
+#include "Broom_Scoreboard.h"
+#include "Broom_Fiish.h"
+#include "Broom_Record.h"
+#include "Broom_Exit.h"
+
#include "NPCInteraction.h"
#include "Dialogue.h"
@@ -195,6 +203,7 @@
#include "Blink.h"
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
+#include "Ranrok_Point.h"
#pragma endregion
#pragma region PHYSX_HEADER
@@ -661,6 +670,22 @@ HRESULT CLoader::Loading_For_UI()
});
+ Asset_FileLoad("../Bin/Resources/Textures/BroomFlight", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Item"),
@@ -1152,7 +1177,36 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
-
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Flag::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Circle::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Scoreboard::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Finish::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Record::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom_Exit::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNPCInteraction::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
@@ -1803,6 +1857,10 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_Point::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))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/MainApp.cpp b/Jusin154_Team3D/Editor/Private/MainApp.cpp
index 081ce28c2..a95b5be6b 100644
--- a/Jusin154_Team3D/Editor/Private/MainApp.cpp
+++ b/Jusin154_Team3D/Editor/Private/MainApp.cpp
@@ -104,12 +104,27 @@ HRESULT CMainApp::Ready_Default_Setting()
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size23"), TEXT("../Bin/Resources/Fonts/Font_size23.spritefont"))))
return E_FAIL;
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size25"), TEXT("../Bin/Resources/Fonts/Font_size25.spritefont"))))
+ return E_FAIL;
+
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size30"), TEXT("../Bin/Resources/Fonts/Font_size30.spritefont"))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size15"), TEXT("../Bin/Resources/Fonts/UI_size15.spritefont"))))
return E_FAIL;
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size20"), TEXT("../Bin/Resources/Fonts/UI_size20.spritefont"))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size25"), TEXT("../Bin/Resources/Fonts/UI_size25.spritefont"))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size50"), TEXT("../Bin/Resources/Fonts/UI_size50.spritefont"))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Font(TEXT("UI_size70"), TEXT("../Bin/Resources/Fonts/UI_size70.spritefont"))))
+ return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp
index 8ad10ca23..814857bff 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp
@@ -10,6 +10,8 @@
#include "TrailObject.h"
#include "MapElement_Interactable.h"
+#include "Ranrok_Point.h"
+
#pragma region STATE
#include "State_Idle.h"
#include "State_Move.h"
@@ -156,6 +158,9 @@ void CRanrok::Late_Update(_float fTimeDelta)
}
}
+ if (m_bVisible == false)
+ return;
+
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()));
@@ -367,6 +372,7 @@ HRESULT CRanrok::Ready_Components()
HRESULT CRanrok::Ready_Parts()
{
+
return S_OK;
}
@@ -526,8 +532,6 @@ void CRanrok::MoveTo(_float fTimeDelta)
_vector CurPos = m_pCharacter_Controller->Get_Position();
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
- _float Speed = 50.f;
-
_vector toTarget = Target - CurPos;
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
@@ -567,9 +571,9 @@ void CRanrok::MoveTo(_float fTimeDelta)
_vector LerpTarget = XMVectorLerp(Target, NextTarget, 0.5f);
- m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta,2.f);
+ m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta, 2.5f);
- m_pCharacter_Controller->Set_Position(CurPos + vLook * Speed * fTimeDelta);
+ m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta);
}
HRESULT CRanrok::Load_RanrokPos(const _char* pFilePath)
@@ -651,6 +655,8 @@ void CRanrok::Free()
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pEffectPool);
+ SAFE_RELEASE(m_pRanrok_Point);
+
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
}
@@ -661,6 +667,8 @@ void CRanrok::Describe_Entity()
__super::Describe_Entity();
m_pTransformCom->Describe_Entity();
+
+ GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed);
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Point.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Point.cpp
new file mode 100644
index 000000000..cc95bde23
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_Point.cpp
@@ -0,0 +1,225 @@
+#include "pch.h"
+#include "Ranrok_Point.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Point::CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Point::CRanrok_Point(const CRanrok_Point& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Point::Initialize_Prototype()
+{
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Point::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokPoint";
+
+
+ m_pGooRod_0 = Get_PartObject("GooRod_0");
+ m_pSmoke = Get_PartObject("Smoke");
+ m_pSpread_PT = Get_PartObject("Spread_PT");
+
+ SAFE_ADDREF(m_pGooRod_0);
+ SAFE_ADDREF(m_pSmoke);
+ SAFE_ADDREF(m_pSpread_PT);
+
+ m_fDuration = 30.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_Point::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Point::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ /* PJ 월드 구성하기 */
+ if (m_isStop == false)
+ {
+ /* 초기 방향 */
+
+ XMStoreFloat3(&m_vLook, m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+
+ _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
+ _vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
+ _vector vPos = m_pOwner->Get_WorldPostion();
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+ m_pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos);
+ m_pGooRod_0->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+ m_pSpread_PT->Get_Component()->Set_State(STATE::POSITION, vPos);
+ }
+
+
+}
+
+void CRanrok_Point::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Point::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+
+ /* 초기 객체 위치 초기화*/
+
+ /* 초기 방향 */
+ XMStoreFloat3(&m_vLook, m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+
+ /* PJ 월드 구성하기 */
+
+
+ _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
+ _vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
+ _vector vPos = m_pOwner->Get_WorldPostion();
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+
+ m_pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos);
+ m_pSpread_PT->Get_Component()->Set_State(STATE::POSITION, vPos);
+ m_pGooRod_0->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+
+ m_pSmoke->Set_Visible(true);
+ m_pGooRod_0->Set_Visible(true);
+ m_pSpread_PT->Set_Visible(true);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Point::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Point::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Point* CRanrok_Point::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Point* pInstance = new CRanrok_Point(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Point");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Point::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Point* pInstance = new CRanrok_Point(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Point");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Point::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos);
+ }
+
+
+}
+
+void CRanrok_Point::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+ SAFE_RELEASE(m_pGooRod_0);
+ SAFE_RELEASE(m_pSmoke);
+ SAFE_RELEASE(m_pSpread_PT);
+
+}
+#ifdef _DEBUG
+void CRanrok_Point::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Point::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
index ee2ebdbd3..1c78059e1 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
@@ -661,6 +661,12 @@ void CRanrok::Behavior_TuckedEnter()
//}
pairAnimInfo = m_Animation[STATEANIM::FLY];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_bVisible = false;
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_POINT, this, nullptr , &m_pRanrok_Point);
+ }, 0.1f);
}
HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
@@ -687,6 +693,11 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
void CRanrok::Behavior_TuckedExit()
{
+ /* 이펙트를 서서히 사라지게 하기위해 도착 이후에 나오는 이펙트를 아래로 떨굼 */
+ m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ SAFE_RELEASE(m_pRanrok_Point);
+
+
m_pFSM->Disable_State(FSMSTATE::TUCKED);
m_bTucked = false;
m_bVisible = true;
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Circle.h b/Jusin154_Team3D/Editor/Public/Broom_Circle.h
new file mode 100644
index 000000000..280b1b2ba
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Circle.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Circle final : public CElementObject
+{
+private:
+ CBroom_Circle(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Circle(const CBroom_Circle& rhs);
+ virtual ~CBroom_Circle() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ virtual void Start_Size_Lerp(_float fTimeDelta) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iCount{};
+ _float m_fFontAlpha{};
+ _float m_fDissolve{};
+
+
+ _bool m_bCountDown = { false };
+ _bool m_bTimer = { false };
+ _bool m_bSizeDown = { false };
+ _bool m_bSizeUp = { false };
+
+public:
+ static CBroom_Circle* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Exit.h b/Jusin154_Team3D/Editor/Public/Broom_Exit.h
new file mode 100644
index 000000000..8e963b25b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Exit.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Exit final : public CElementObject
+{
+private:
+ CBroom_Exit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Exit(const CBroom_Exit& rhs);
+ virtual ~CBroom_Exit() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float4 m_fImagePosi{};
+
+public:
+ static CBroom_Exit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Fiish.h b/Jusin154_Team3D/Editor/Public/Broom_Fiish.h
new file mode 100644
index 000000000..74fb7f73b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Fiish.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Finish final : public CElementObject
+{
+private:
+ CBroom_Finish(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Finish(const CBroom_Finish& rhs);
+ virtual ~CBroom_Finish() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Set_Font();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _wstring m_fFont[7];
+ _float2 m_fFontPos[7];
+
+ _float4 m_fImagePosi{};
+
+public:
+ static CBroom_Finish* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Flag.h b/Jusin154_Team3D/Editor/Public/Broom_Flag.h
new file mode 100644
index 000000000..78797e325
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Flag.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Flag final : public CElementObject
+{
+private:
+ CBroom_Flag(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Flag(const CBroom_Flag& rhs);
+ virtual ~CBroom_Flag() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_Start();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float m_fStart = { false };
+
+public:
+ static CBroom_Flag* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Panel.h b/Jusin154_Team3D/Editor/Public/Broom_Panel.h
new file mode 100644
index 000000000..01ff1fe87
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Panel.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Panel final : public CPanelObject
+{
+private:
+ CBroom_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Panel(const CBroom_Panel& rhs);
+ virtual ~CBroom_Panel() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_Element(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pBroom_Flag = { nullptr };
+ CGameObject* m_pBroom_Circle = { nullptr };
+ CGameObject* m_pBroom_Scoreboard = { nullptr };
+ CGameObject* m_pBroom_Fiish = { nullptr };
+ CGameObject* m_pBroom_Record = { nullptr };
+ CGameObject* m_pBroom_Exit = { nullptr };
+
+public:
+ static CBroom_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Record.h b/Jusin154_Team3D/Editor/Public/Broom_Record.h
new file mode 100644
index 000000000..fefeceb21
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Record.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Record final : public CElementObject
+{
+private:
+ CBroom_Record(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Record(const CBroom_Record& rhs);
+ virtual ~CBroom_Record() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Set_Font();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _wstring m_fFont[6];
+ _float2 m_fFontPos[6];
+ _vector m_fFontColor[2];
+public:
+ static CBroom_Record* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Broom_Scoreboard.h b/Jusin154_Team3D/Editor/Public/Broom_Scoreboard.h
new file mode 100644
index 000000000..20c8c9645
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Broom_Scoreboard.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CBroom_Scoreboard final : public CElementObject
+{
+private:
+ CBroom_Scoreboard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroom_Scoreboard(const CBroom_Scoreboard& rhs);
+ virtual ~CBroom_Scoreboard() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Set_Setting();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _vector m_fColor[4];
+ _wstring Score[8];
+
+ _float2 m_fFontPosition[8];
+
+public:
+ static CBroom_Scoreboard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 9d74c1d76..b111c5219 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -15,29 +15,33 @@ namespace Editor
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP, UI, EFFECT, PHYSX, BLOOM, END };
enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END };
- enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_LIGHT, ELEMENT_LAKE};
+ enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_LIGHT, ELEMENT_LAKE };
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END };
- enum class SHADER_PASS_NPC_PBR_ANIM { EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
- , OUTLINE_READ
- , END};
+ enum class SHADER_PASS_NPC_PBR_ANIM {
+ EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
+ , OUTLINE_READ, TEETH_SRXO_ToSRO__OUTLINE_WRITE, EYE_DN_ToSRO__OUTLINE_WRITE, HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE, UPPER_DMRON_ToMRO__OUTLINE_WRITE, EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE, MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE
+ , END
+ };
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, LAKE, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
- LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
- ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,
- REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
- SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
- ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
+ enum class SHADER_PASS_UIEDITOR {
+ DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
+ LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
+ ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,
+ REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
+ SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
+ ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER, NPCINTERACTION, CANVASFADE,
+ FLAGWAVE, BROOMCIRCLE,
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, END
};
- enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , END };
+ enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
@@ -57,11 +61,11 @@ namespace Editor
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
STUN,
- TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH,
+ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
END
};
- enum class SPELL_LINE { LINE, CURVE };
+ enum class SPELL_LINE { LINE, CURVE };
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
diff --git a/Jusin154_Team3D/Editor/Public/EffectPool.h b/Jusin154_Team3D/Editor/Public/EffectPool.h
index 70dc8795d..90f30cbbc 100644
--- a/Jusin154_Team3D/Editor/Public/EffectPool.h
+++ b/Jusin154_Team3D/Editor/Public/EffectPool.h
@@ -26,7 +26,7 @@ class CEffectPool final : public CGameObject
virtual HRESULT Render() override;
public:
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function AddPrototypeEvent);
- HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr);
+ HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr, CEffect_Container** ppOut = nullptr);
public:
#ifdef _DEBUG
HRESULT Reset_Pool();
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Container.h b/Jusin154_Team3D/Editor/Public/Effect_Container.h
index b148ba8d4..71c1d03f0 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Container.h
@@ -26,6 +26,7 @@ class CEffect_Container abstract : public CContainerObject
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
void Reset_Light();
_uint Get_SkillType() const { return m_iSkillType; }
+ void Setting_Pos(_fvector vPos);
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -52,6 +53,7 @@ class CEffect_Container abstract : public CContainerObject
_wstring m_wstrEffectName = {};
_bool m_isLoop = {};
+ _bool m_isStop = {};
_float m_fAccTime = {};
_float m_fPreAccTime = {};
diff --git a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
index 764aad6e3..4ad937cc1 100644
--- a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
+++ b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
@@ -40,6 +40,7 @@ class CGamePlay_Canvas final : public CCanvasObject
CGameObject* m_pLoading_Panel = { nullptr };
CGameObject* m_pAction_Panel = { nullptr };
CGameObject* m_pEnemy_Panel = { nullptr };
+ CGameObject* m_pBroom_Panel = { nullptr };
public:
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok.h b/Jusin154_Team3D/Editor/Public/Ranrok.h
index 22b93d579..8262a9a00 100644
--- a/Jusin154_Team3D/Editor/Public/Ranrok.h
+++ b/Jusin154_Team3D/Editor/Public/Ranrok.h
@@ -100,7 +100,7 @@ class CRanrok final : public CMonster
_bool m_bHoverDash = { false };
_vector m_vMoveDir = XMVectorZero();
-
+ class CEffect_Container* m_pRanrok_Point = { nullptr };
vector> m_Points;
_int m_iCurrentPoint = 0;
@@ -111,6 +111,7 @@ class CRanrok final : public CMonster
_float m_fAroundRadius = 40.f;
_float m_fAroundTime = {};
_float m_fRushTime = {};
+ _float m_fTuckedSpeed = { 75.f};
void Behavior_IdleEnter();
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_Point.h b/Jusin154_Team3D/Editor/Public/Ranrok_Point.h
new file mode 100644
index 000000000..9d0cd84f7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_Point.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRanrok_Point final : public CEffect_Container
+{
+private:
+ CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Point(const CRanrok_Point& rhs);
+ virtual ~CRanrok_Point() = 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 CEditEffect* m_pGooRod_0 = { nullptr };
+ class CEditEffect* m_pSmoke = { nullptr };
+ class CEditEffect* m_pSpread_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_Point* 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/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 795020d19..53403c403 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -615,4 +615,60 @@ float3 DownSampleFast(Texture2D SrcTexture2D, float2 vCenterTexcoord, float2 vSr
return vCenterColor * 0.25f + (fLTColor + fRTColor + fLBColor + fRBColor) * 0.0625f + (fTColor + fLColor + fRColor + fBColor) * 0.125f;
}
+float4x4 Inverse4x4(float4x4 m)
+{
+ float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3];
+ float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3];
+ float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3];
+ float a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3];
+
+ float b00 = a00 * a11 - a01 * a10;
+ float b01 = a00 * a12 - a02 * a10;
+ float b02 = a00 * a13 - a03 * a10;
+ float b03 = a01 * a12 - a02 * a11;
+ float b04 = a01 * a13 - a03 * a11;
+ float b05 = a02 * a13 - a03 * a12;
+ float b06 = a20 * a31 - a21 * a30;
+ float b07 = a20 * a32 - a22 * a30;
+ float b08 = a20 * a33 - a23 * a30;
+ float b09 = a21 * a32 - a22 * a31;
+ float b10 = a21 * a33 - a23 * a31;
+ float b11 = a22 * a33 - a23 * a32;
+
+ float det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
+
+ // 역행렬이 존재하지 않는 경우 (det ≈ 0)
+ if (abs(det) < 1e-6)
+ return float4x4(1, 0, 0, 0,
+ 0, 1, 0, 0,
+ 0, 0, 1, 0,
+ 0, 0, 0, 1); // fallback: 단위행렬
+
+ float invDet = 1.0 / det;
+
+ float4x4 inv;
+ inv[0][0] = (a11 * b11 - a12 * b10 + a13 * b09) * invDet;
+ inv[0][1] = (-a01 * b11 + a02 * b10 - a03 * b09) * invDet;
+ inv[0][2] = (a31 * b05 - a32 * b04 + a33 * b03) * invDet;
+ inv[0][3] = (-a21 * b05 + a22 * b04 - a23 * b03) * invDet;
+
+ inv[1][0] = (-a10 * b11 + a12 * b08 - a13 * b07) * invDet;
+ inv[1][1] = (a00 * b11 - a02 * b08 + a03 * b07) * invDet;
+ inv[1][2] = (-a30 * b05 + a32 * b02 - a33 * b01) * invDet;
+ inv[1][3] = (a20 * b05 - a22 * b02 + a23 * b01) * invDet;
+
+ inv[2][0] = (a10 * b10 - a11 * b08 + a13 * b06) * invDet;
+ inv[2][1] = (-a00 * b10 + a01 * b08 - a03 * b06) * invDet;
+ inv[2][2] = (a30 * b04 - a31 * b02 + a33 * b00) * invDet;
+ inv[2][3] = (-a20 * b04 + a21 * b02 - a23 * b00) * invDet;
+
+ inv[3][0] = (-a10 * b09 + a11 * b07 - a12 * b06) * invDet;
+ inv[3][1] = (a00 * b09 - a01 * b07 + a02 * b06) * invDet;
+ inv[3][2] = (-a30 * b03 + a31 * b01 - a32 * b00) * invDet;
+ inv[3][3] = (a20 * b03 - a21 * b01 + a22 * b00) * invDet;
+
+ return inv;
+}
+
+
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index e35e794b4..e413e52ea 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -56,7 +56,11 @@ struct ParticleValue
float fRotateAttenuation;
float fRotateAttDelay;
+ float3 vWolrdOffset;
+ float fLoopCount; /* 현재 몇번째 루프중인지 */
+
row_major matrix PreWorldMatrix;
+ //row_major matrix LocalMatrixInv;
};
@@ -93,8 +97,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
bool isNoPos;
bool isNoResetTime;
- bool isPadding0;
- bool isPadding1;
+ bool isLocal_Located_Not_TakeDelay;
+ bool isCompute_LocalInverse;
bool isPadding2;
float fTimeDelta;
@@ -108,8 +112,6 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
float2 vScreenSize;
float fPadding0;
float fPadding1;
-
-
}
//내가 몇개의 스레드를 사용할 것인지 지정하는데
@@ -126,6 +128,47 @@ void CS_MAIN(
float fGravity = particleValue.fGravity;
float fOnlyDropY = 0.f;
float fRatio = particle.vLifeTime.x / particle.vLifeTime.y;
+ bool _isLocal_Located_Not_TakeDelay = isLocal_Located_Not_TakeDelay;
+
+ if (particleValue.fLoopCount == 0.f) /* 첫 루프에는 딜레이에 따른 위치를 설정받지 않도록함 */
+ {
+ _isLocal_Located_Not_TakeDelay = false;
+ }
+
+ if (_isLocal_Located_Not_TakeDelay == true && particleValue.vDelay.x <= FLT_EPSILON5)
+ {
+
+ if (isNoWorld)
+ {
+ row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
+
+
+ CurMat = mul(CurMat, WorldMatrix);
+
+ particle.vRight = CurMat[0].xyzw;
+ particle.vUp = CurMat[1].xyzw;
+ particle.vLook = CurMat[2].xyzw;
+ particle.vTranslation = CurMat[3].xyzw;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += CurMat[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += CurMat[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += CurMat[2] * particleValue.vWolrdOffset.z;
+
+ }
+
+ if (isNoPos)
+ {
+ particle.vTranslation.xyz += WorldMatrix[3].xyz;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += WorldMatrix[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += WorldMatrix[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += WorldMatrix[2] * particleValue.vWolrdOffset.z;
+ }
+ }
particleValue.vDelay.x += fTimeDelta;
@@ -138,7 +181,7 @@ void CS_MAIN(
return;
}
- if (particle.vLifeTime.x <= FLT_EPSILON5)
+ if (particle.vLifeTime.x <= FLT_EPSILON5 && _isLocal_Located_Not_TakeDelay == false)
{
if (isNoWorld)
{
@@ -150,12 +193,25 @@ void CS_MAIN(
particle.vRight = CurMat[0].xyzw;
particle.vUp = CurMat[1].xyzw;
particle.vLook = CurMat[2].xyzw;
- particle.vTranslation = CurMat[3].xyzw;
+ particle.vTranslation = CurMat[3].xyzw ;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += CurMat[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += CurMat[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += CurMat[2] * particleValue.vWolrdOffset.z;
+
}
if (isNoPos)
{
particle.vTranslation.xyz += WorldMatrix[3].xyz;
+
+ /* 월드 오프셋 */
+
+ particle.vTranslation += WorldMatrix[0] * particleValue.vWolrdOffset.x;
+ particle.vTranslation += WorldMatrix[1] * particleValue.vWolrdOffset.y;
+ particle.vTranslation += WorldMatrix[2] * particleValue.vWolrdOffset.z;
}
}
@@ -185,6 +241,7 @@ void CS_MAIN(
}
//초기화
+ particleValue.fLoopCount += 1.f;
particle.vRight = particleValue.vOriginRight;
particle.vUp = particleValue.vOriginUp;
particle.vLook = particleValue.vOriginLook;
@@ -580,6 +637,21 @@ void CS_MAIN(
particleValue.vDissolveUVMoveTime.x = 0.f;
}
+ //if (isCompute_LocalInverse == true)
+ //{
+ // row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
+
+
+ // CurMat = mul(CurMat, WorldMatrix);
+
+ // particle.vRight = CurMat[0].xyzw;
+ // particle.vUp = CurMat[1].xyzw;
+ // particle.vLook = CurMat[2].xyzw;
+ // particle.vTranslation = CurMat[3].xyzw;
+
+ // particleValue.LocalMatrixInv = Inverse4x4(CurMat); /* 데칼 메쉬만 인스턴스당 1번 수행할거임 */
+ //}
+
//아웃풋 대입
g_VBInstanceOutput[iIndex] = particle;
diff --git a/Jusin154_Team3D/Engine/Private/ElementObject.cpp b/Jusin154_Team3D/Engine/Private/ElementObject.cpp
index 3e70c723b..8fddae41e 100644
--- a/Jusin154_Team3D/Engine/Private/ElementObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/ElementObject.cpp
@@ -22,6 +22,12 @@ HRESULT CElementObject::Initialize(void* pArg)
{
return E_FAIL;
}
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(
+ m_fX + m_pOwner->Get_WorldPostion().m128_f32[0],
+ m_fY + m_pOwner->Get_WorldPostion().m128_f32[1],
+ m_fSortZ, 1.f));
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index 2012fe477..2bb44dae5 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -579,8 +579,10 @@ void CInstance_Model::Compute_CS(_float fTimeDelta)
pDesc->isStop_Move_For_Depth_Compare = m_InstanceDesc.isStop_Move_For_Depth_Compare;
pDesc->isNoPos = m_InstanceDesc.isNoPos;
pDesc->isNoResetTime = m_InstanceDesc.isNoResetTime;
+ pDesc->isLocal_Located_Not_TakeDelay = m_InstanceDesc.isLocal_Located_Not_TakeDelay;
+ pDesc->isCompute_LocalInverse = m_InstanceDesc.isCompute_LocalInverse;
+
-
pDesc->WorldMatrix = *m_pOwner->Get_Component()->Get_WorldMatrixPtr();
pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption;
pDesc->fMoveLerpOption = m_InstanceDesc.fMoveLerpOption;
@@ -681,13 +683,21 @@ void CInstance_Model::Instane_Buffer_ReStruct()
memcpy(&pVertices[i].vUp, SRMatrix.m[1], sizeof(_float4));
memcpy(&pVertices[i].vLook, SRMatrix.m[2], sizeof(_float4));
+ /* 구위의 한점으로 위치를 정하기 위한 반지름 */
+ _float fRoundRange = m_pGameInstance->Random_Float(m_InstanceDesc.vRoundRangeLength.x, m_InstanceDesc.vRoundRangeLength.y);
+ _float fAzimuthAngle = m_pGameInstance->Random_Float(m_InstanceDesc.vAzimuthAngle.x, m_InstanceDesc.vAzimuthAngle.y);
+ _float fPolarAngle = m_pGameInstance->Random_Float(m_InstanceDesc.vPolarAngle.x, m_InstanceDesc.vPolarAngle.y);
pVertices[i].vTranslation = _float4(
- m_pGameInstance->Random_Float(m_InstanceDesc.vCenter.x - m_InstanceDesc.vRange.x * 0.5f, m_InstanceDesc.vCenter.x + m_InstanceDesc.vRange.x * 0.5f),
- m_pGameInstance->Random_Float(m_InstanceDesc.vCenter.y - m_InstanceDesc.vRange.y * 0.5f, m_InstanceDesc.vCenter.y + m_InstanceDesc.vRange.y * 0.5f),
- m_pGameInstance->Random_Float(m_InstanceDesc.vCenter.z - m_InstanceDesc.vRange.z * 0.5f, m_InstanceDesc.vCenter.z + m_InstanceDesc.vRange.z * 0.5f),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vCenter.x - m_InstanceDesc.vRange.x * 0.5f, m_InstanceDesc.vCenter.x + m_InstanceDesc.vRange.x * 0.5f)
+ + fRoundRange * cosf(XMConvertToRadians(fAzimuthAngle)) * sinf(XMConvertToRadians(fPolarAngle)) ,
+ m_pGameInstance->Random_Float(m_InstanceDesc.vCenter.y - m_InstanceDesc.vRange.y * 0.5f, m_InstanceDesc.vCenter.y + m_InstanceDesc.vRange.y * 0.5f)
+ + fRoundRange * sinf(XMConvertToRadians(fAzimuthAngle)) * sinf(XMConvertToRadians(fPolarAngle)),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vCenter.z - m_InstanceDesc.vRange.z * 0.5f, m_InstanceDesc.vCenter.z + m_InstanceDesc.vRange.z * 0.5f)
+ + fRoundRange * cosf(XMConvertToRadians(fPolarAngle)),
1.f);
+
_float3 vSinAmount = _float3(
m_pGameInstance->Random_Float(m_InstanceDesc.vSinMinAmount.x, m_InstanceDesc.vSinMaxAmount.x),
m_pGameInstance->Random_Float(m_InstanceDesc.vSinMinAmount.y, m_InstanceDesc.vSinMaxAmount.y),
@@ -737,6 +747,15 @@ void CInstance_Model::Instane_Buffer_ReStruct()
pParticleValues[i].vDeltaSize = vSizeLerp;
+ _float3 vWolrdOffset = _float3(
+ m_pGameInstance->Random_Float(m_InstanceDesc.vWolrdOffsetMin.x, m_InstanceDesc.vWolrdOffsetMax.x),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vWolrdOffsetMin.y, m_InstanceDesc.vWolrdOffsetMax.y),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vWolrdOffsetMin.z, m_InstanceDesc.vWolrdOffsetMax.z)
+ );
+
+
+ pParticleValues[i].vWolrdOffset = vWolrdOffset;
+
//라이프 타임 설정
pVertices[i].vLifeTime = _float2(0.0f, m_pGameInstance->Random_Float(m_InstanceDesc.vLifeTime.x, m_InstanceDesc.vLifeTime.y));
@@ -761,6 +780,8 @@ void CInstance_Model::Instane_Buffer_ReStruct()
pParticleValues[i].fCollisionTime = 0.f;
pParticleValues[i].isCompareStop = false;
pParticleValues[i].isStop = false;
+ pParticleValues[i].fLoopCount = 0.f;
+
memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4));
memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4));
@@ -768,6 +789,8 @@ void CInstance_Model::Instane_Buffer_ReStruct()
memcpy(&pParticleValues[i].vOriginTranslation, &pVertices[i].vTranslation, sizeof(_float4));
memcpy(&pParticleValues[i].PreWorldMatrix, &IdentityMat, sizeof(_float4x4));
+ /* memcpy(&pParticleValues[i].LocalMatrixInv, &IdentityMat, sizeof(_float4x4));*/
+
if (m_InstanceDesc.isRandomAniIndex == true)
{
@@ -879,7 +902,18 @@ void CInstance_Model::Describe_Entity()
{
Instane_Buffer_ReStruct();
}
+
+ if (GUI::Checkbox("Local_Located_Not_TakeDelay", &m_InstanceDesc.isLocal_Located_Not_TakeDelay))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (GUI::Checkbox("Compute_LocalInverse", &m_InstanceDesc.isCompute_LocalInverse))
+ {
+ Instane_Buffer_ReStruct();
+
+ }
if (GUI::Checkbox("RandomIndex", &m_InstanceDesc.isRandomAniIndex))
@@ -922,6 +956,31 @@ void CInstance_Model::Describe_Entity()
Instane_Buffer_ReStruct();
}
+ if (ImGui::DragFloat2("RoundRangeLength", reinterpret_cast<_float*>(&m_InstanceDesc.vRoundRangeLength)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat2("AzimuthAngle", reinterpret_cast<_float*>(& m_InstanceDesc.vAzimuthAngle)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat2("PolarAngle", reinterpret_cast<_float*>(&m_InstanceDesc.vPolarAngle)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat3("WolrdOffsetMin", reinterpret_cast<_float*>(&m_InstanceDesc.vWolrdOffsetMin)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat3("WolrdOffsetMax", reinterpret_cast<_float*>(&m_InstanceDesc.vWolrdOffsetMax)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
GUI::TreePop();
}
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index 930720aab..e1f2961e4 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -332,6 +332,7 @@ void CRenderer::Render_NonBlend()
void CRenderer::Render_Decal()
{
m_pGameInstance->Copy_RenderTargetAToB(TEXT("Target_Normal"), TEXT("Target_NormalCopy"));
+
EVENTSCOPE_("Render_Decal");
if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_Decal")))) {
return;
diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h
index 50fe8e1a0..4561c2992 100644
--- a/Jusin154_Team3D/Engine/Public/Instance_Model.h
+++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h
@@ -76,13 +76,16 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float2 vAcceleration = {};
_bool isNoResetTime = {};
- _bool isPadding1 = {};
- _bool isPadding2 = {};
+ _bool isLocal_Located_Not_TakeDelay = {};
+ _bool isCompute_LocalInverse = {};
_bool isPadding3 = {};
_float fTimeMult = { 1.f };
- _float2 fPadding4 = {};
- _float4 vPadding5 = {};
+ _float2 vRoundRangeLength = {};
+ _float2 vAzimuthAngle = {};
+ _float2 vPolarAngle = {};
+
+
_float4 vPadding6 = {};
_bool isRandomAniIndex = {};
@@ -91,6 +94,9 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_bool isExcludePos = {};
_bool isStop_Move_For_Depth_Compare = {};
+ _float3 vWolrdOffsetMax = {};
+ _float3 vWolrdOffsetMin = {};
+
}INSTANCE_DESC;
typedef struct tagPreInstanceDesc
@@ -185,8 +191,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_int isNoPos = {};
_int isNoResetTime = {};
- _int isPadding0 = {};
- _int isPadding1 = {};
+ _int isLocal_Located_Not_TakeDelay = {};
+ _int isCompute_LocalInverse = {};
_int isPadding2 = {};
_float fTimeDelta = {};
@@ -245,7 +251,11 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float fRotateAttenuation = {};
_float fRotateAttDelay = {};
+ _float3 vWolrdOffset = {};
+ _float fLoopCount = {};
+
_float4x4 PreWorldMatrix = {};
+ //_float4x4 LocalMatrixInv = {};
}CS_PARTICLE_VALUE_DESC;