[Modify] 플레이어 스킬 사용 하면 그 타이밍에 쿨타임 안돌게
This commit is contained in:
@@ -1733,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In)
|
||||
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;
|
||||
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
|
||||
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
color = lerp(color, tex2, tex2.a);
|
||||
|
||||
|
||||
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
|
||||
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
|
||||
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f;
|
||||
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5;
|
||||
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
|
||||
bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if (inside)
|
||||
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
|
||||
color = lerp(color, tex3, tex3.a);
|
||||
|
||||
float CoolTime = 0.f + g_fDeltaV;
|
||||
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
|
||||
atlasUV = startUV + texlocal1 * (endUV - startUV);
|
||||
}
|
||||
|
||||
float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
|
||||
float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
|
||||
float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
|
||||
bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
|
||||
if (inside2)
|
||||
{
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV);
|
||||
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
|
||||
color = lerp(color, tex4, tex4.a);
|
||||
}
|
||||
|
||||
color.a *= Alpha;
|
||||
@@ -1827,8 +1828,8 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
|
||||
float2 trailTopLeft = g_Trail[i];
|
||||
float2 trailCenter = trailTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x / 2.0f + 6.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 6.f;
|
||||
float halfWidth = itemSize.x / 2.0f + 12.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 12.f;
|
||||
|
||||
if (pixelPos.x >= trailCenter.x - halfWidth &&
|
||||
pixelPos.x <= trailCenter.x + halfWidth &&
|
||||
|
||||
@@ -86,7 +86,7 @@ void CAction_Panel::Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
Magic_Meter_Move();
|
||||
|
||||
m_fTime -= fTimeDelta;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -226,6 +226,10 @@ void CAction_Panel::Ancient_Magic_Throw()
|
||||
|
||||
void CAction_Panel::Use_Spell(_int Index)
|
||||
{
|
||||
if (m_fTime >= 0.f)
|
||||
return;
|
||||
|
||||
m_fTime = 1.f;
|
||||
switch (Index)
|
||||
{
|
||||
case 1:
|
||||
|
||||
@@ -166,14 +166,8 @@ void CInfoInstance::Key_Input(_uint Input)
|
||||
switch (m_eInput)
|
||||
{
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_1):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_2):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_3):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_4):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
@@ -440,7 +434,6 @@ void CInfoInstance::Release_Information()
|
||||
SAFE_RELEASE(m_pSkillInfo);
|
||||
SAFE_RELEASE(m_pQuestInfo);
|
||||
SAFE_RELEASE(m_pInteractiveInfo);
|
||||
SAFE_RELEASE(m_pSpellLearn_Data);
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
|
||||
@@ -42,27 +42,22 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
m_fAngle = XMConvertToRadians(-135.f);
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fSortZ = 0.2f;
|
||||
m_fCoolTime = 5.f;
|
||||
m_vUVScale.y = 1.f;
|
||||
m_iArratCount = 2;
|
||||
Compute_UV(0);
|
||||
Compute_UV(1);
|
||||
Compute_Image();
|
||||
m_fFontX = 1171.f;
|
||||
m_fFontY = 870.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 512.f };
|
||||
_float2 fImage_Size = { 320.f, 384.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 2;
|
||||
_uint iCountX = 5;
|
||||
_uint iCountY = 6;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
_float iImageX = 64.f;
|
||||
_float iImageY = 64.f;
|
||||
|
||||
_uint iframeX = iItemID % iCountX;
|
||||
_uint iframeY = iItemID / iCountX;
|
||||
@@ -81,10 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
|
||||
void CMagic_Item::Compute_Image()
|
||||
{
|
||||
m_vImagePos1 = _float2(72.f, 0.f);
|
||||
m_vImageSize1 = _float2(30.f, 30.f);
|
||||
m_vImagePos2 = _float2(65.f, 65.f);
|
||||
m_vImageSize2 = _float2(30.f, 30.f);
|
||||
m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f);
|
||||
m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f);
|
||||
}
|
||||
|
||||
void CMagic_Item::Priority_Update(_float fTimeDelta)
|
||||
@@ -128,27 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_vUVScale.y >= 1.f)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_TAB))
|
||||
{
|
||||
m_vUVScale.y = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
|
||||
if (m_vUVScale.y <= 1)
|
||||
{
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -172,7 +144,7 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ITEM))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMSTICK))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -184,7 +156,6 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -224,18 +195,6 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom6->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -264,35 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iArrayCount", &m_iArratCount, sizeof(_uint))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition2", &m_vImagePos2, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes2", &m_vImageSize2, sizeof(_float2))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -300,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -313,27 +249,15 @@ HRESULT CMagic_Item::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Broom9"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Item"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Tab"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom4), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_AmountFrame"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom5), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom6), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -379,9 +303,6 @@ void CMagic_Item::Free()
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom4);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom5);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom6);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
@@ -17,10 +17,12 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
|
||||
m_bNoCool = false;
|
||||
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
|
||||
Spell_UnLock(2);
|
||||
Spell_UnLock(3);
|
||||
Spell_UnLock(4);
|
||||
Spell_UnLock(6);
|
||||
Spell_UnLock(11);
|
||||
Spell_UnLock(14);
|
||||
Spell_UnLock(20);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg)
|
||||
Booster* Info = static_cast<Booster*>(pArg);
|
||||
m_Booster.iBoosterIndex = Info->iBoosterIndex;
|
||||
m_Booster.bBoosterOn = Info->bBoosterOn;
|
||||
m_bBooster = true;
|
||||
m_bBooster = m_Booster.bBoosterOn;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
|
||||
@@ -175,7 +175,7 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
m_bBooster = false;
|
||||
m_fMoveSpeed = 160.f;
|
||||
m_fMoveSpeed = 170.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg)
|
||||
|
||||
void CSpellLearn_Overlay::Clear()
|
||||
{
|
||||
m_vUVScale.y = 1.2f;
|
||||
m_vUVScale.y = 1.5f;
|
||||
m_bClear = true;
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
|
||||
|
||||
void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
|
||||
{
|
||||
m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed);
|
||||
m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.06f, fTimeaDalta * m_fMoveSpeed);
|
||||
}
|
||||
|
||||
void CSpellLearn_Overlay::SizeUp(_float fSizeX)
|
||||
|
||||
@@ -34,27 +34,19 @@ class CMagic_Item final : public CElementObject
|
||||
private:
|
||||
void Compute_UV(_uint iItemID);
|
||||
void Compute_Image();
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom4 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom5 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom6 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float4 m_vUV{};
|
||||
_uint m_iArratCount{};
|
||||
_float2 m_vImageSize1 = {};
|
||||
_float2 m_vImagePos1 = {};
|
||||
_float2 m_vImageSize2 = {};
|
||||
_float2 m_vImagePos2 = {};
|
||||
|
||||
_int m_iPotionIndex{};
|
||||
_int m_iPerPotionIndex{};
|
||||
_wstring m_strPotion;
|
||||
_float4 m_vImageposi1 = {};
|
||||
_float4 m_vImageposi2 = {};
|
||||
public:
|
||||
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -714,5 +714,162 @@
|
||||
<Pos x="528" y="265"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="변 신" ImageName="Transformation" SpellID="3" SpellType="0" Size="520" x="827.5" y="95" endx="372" endy="75">
|
||||
<Booster>
|
||||
<Pos x="776" y="-10"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="600" y="-89.5"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="420" y="-16"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="821" y="75"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="812" y="50"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="796.5" y="20"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="776" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="750" y="-37.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="720" y="-59.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="690" y="-74.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="660" y="-84"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="630" y="-88.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="600" y="-89.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="570" y="-87.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="540" y="-83"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="510" y="-74.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="480" y="-61.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="450" y="-44"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="420" y="-16"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="400.5" y="10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="384" y="40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="378" y="55"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="372" y="75"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name SpellName="아바다 케다브라" ImageName="AvadaKedavra" SpellID="20" SpellType="5" Size="640" x="627.5" y="214" endx="624" endy="-213">
|
||||
<Booster>
|
||||
<Pos x="481" y="-12"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="725" y="51"/>
|
||||
</Booster>
|
||||
<Booster>
|
||||
<Pos x="667.5" y="-100"/>
|
||||
</Booster>
|
||||
<Position>
|
||||
<Pos x="612.5" y="190"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="593" y="160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="573.5" y="130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="554.5" y="100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="534.5" y="70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="515" y="40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="496" y="10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="481" y="-12"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="520" y="-2.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="550" y="6.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="580" y="14"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="610" y="21.5"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="640" y="29"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="670" y="37"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="700" y="45"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="725" y="51"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="714" y="21"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="702" y="-10"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="690" y="-40"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="679" y="-70"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="667.5" y="-100"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="656" y="-130"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="644" y="-160"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="633" y="-190"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="624" y="-213"/>
|
||||
</Position>
|
||||
</Name>
|
||||
</SpellLearnData>
|
||||
</SpellLearnInfo>
|
||||
|
||||
@@ -1733,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In)
|
||||
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;
|
||||
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
|
||||
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
color = lerp(color, tex2, tex2.a);
|
||||
|
||||
|
||||
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
|
||||
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
|
||||
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f;
|
||||
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5;
|
||||
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
|
||||
bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if (inside)
|
||||
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
|
||||
color = lerp(color, tex3, tex3.a);
|
||||
|
||||
float CoolTime = 0.f + g_fDeltaV;
|
||||
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
|
||||
atlasUV = startUV + texlocal1 * (endUV - startUV);
|
||||
}
|
||||
|
||||
float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
|
||||
float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
|
||||
float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
|
||||
bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
|
||||
if (inside2)
|
||||
{
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV);
|
||||
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
|
||||
color = lerp(color, tex4, tex4.a);
|
||||
}
|
||||
|
||||
color.a *= Alpha;
|
||||
@@ -1827,8 +1828,8 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
|
||||
float2 trailTopLeft = g_Trail[i];
|
||||
float2 trailCenter = trailTopLeft + itemSize / 2.0f;
|
||||
|
||||
float halfWidth = itemSize.x / 2.0f + 6.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 6.f;
|
||||
float halfWidth = itemSize.x / 2.0f + 12.f;
|
||||
float halfHeight = itemSize.y / 2.0f + 12.f;
|
||||
|
||||
if (pixelPos.x >= trailCenter.x - halfWidth &&
|
||||
pixelPos.x <= trailCenter.x + halfWidth &&
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
@@ -51,7 +51,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
|
||||
void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
{
|
||||
_float2 fImage_Size = { 320.f, 384.f};
|
||||
_float2 fImage_Size = { 320.f, 384.f };
|
||||
|
||||
_uint iCountX = 5;
|
||||
_uint iCountY = 6;
|
||||
@@ -76,8 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
|
||||
void CMagic_Item::Compute_Image()
|
||||
{
|
||||
m_vImagePos1 = _float2(72.f, 0.f);
|
||||
m_vImageSize1 = _float2(30.f, 30.f);
|
||||
m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f);
|
||||
m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f);
|
||||
}
|
||||
|
||||
void CMagic_Item::Priority_Update(_float fTimeDelta)
|
||||
@@ -121,19 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_vUVScale.y >= 1.f)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_TAB))
|
||||
{
|
||||
m_vUVScale.y = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_vUVScale.y <= 1)
|
||||
{
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -236,11 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -248,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg)
|
||||
Booster* Info = static_cast<Booster*>(pArg);
|
||||
m_Booster.iBoosterIndex = Info->iBoosterIndex;
|
||||
m_Booster.bBoosterOn = Info->bBoosterOn;
|
||||
m_bBooster = true;
|
||||
m_bBooster = m_Booster.bBoosterOn;
|
||||
}
|
||||
|
||||
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
|
||||
|
||||
@@ -39,8 +39,8 @@ class CMagic_Item final : public CElementObject
|
||||
|
||||
_float4 m_vUV{};
|
||||
_uint m_iArratCount{};
|
||||
_float2 m_vImageSize1 = {};
|
||||
_float2 m_vImagePos1 = {};
|
||||
_float4 m_vImageposi1 = {};
|
||||
_float4 m_vImageposi2 = {};
|
||||
|
||||
public:
|
||||
static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
Reference in New Issue
Block a user