35 Commits
Author SHA1 Message Date
qordlsgur d89e45f2ee Merge pull request #876 from SpicyGangjeong/Develope
[Modify] 수정
2026-02-02 17:26:15 +09:00
qordlsgur ce110ed0d5 [Modify] 수 2026-02-02 17:25:11 +09:00
qordlsgur da538b04aa Merge pull request #875 from SpicyGangjeong/UI
[Modify] 전체적인 버그 수정 및 사운드 추가
2026-02-02 16:35:42 +09:00
qordlsgur dc8771ed75 [Modify] 일단 마무리 작 2026-02-02 16:08:41 +09:00
qordlsgur 024e678b21 [Modify] 병합 2026-02-02 16:00:22 +09:00
qordlsgur 87feb376fb [Add] 사운드 추가 및 스킬 사용 시 안나오는 UI 추 2026-02-02 15:54:29 +09:00
jinwoo0522 ce3c99d4de Merge pull request #873 from SpicyGangjeong/Jinwoo
Jinwoo
2026-02-02 12:27:13 +09:00
GiJungSUk 1b2ebab5c9 commit 2026-02-02 12:25:17 +09:00
GiJungSUk e260a7ae31 Merge branch 'Develope' into Jinwoo 2026-02-02 12:04:49 +09:00
qordlsgur 5ec6d81ccb Merge pull request #872 from SpicyGangjeong/Develope
[Follow]
2026-02-02 12:02:11 +09:00
qordlsgur 3e657beac5 [Modify] 수 2026-02-02 12:00:40 +09:00
qordlsgur 94ee62d50b [Modify] 수 2026-02-02 10:32:20 +09:00
GiJungSUk f4e794fec3 COMMIT 2026-02-02 00:58:27 +09:00
kimnuri 6306a40c60 Merge branch 'Develope' into MotionBlur 2026-02-01 21:27:07 +09:00
kimnuri 0ad74c349a [fix] 란록 브레스 수정
[fix] 게임플레이 레벨 노출값 수
2026-02-01 21:26:07 +09:00
Kim Nuri 10ddbffe72 Merge pull request #870 from SpicyGangjeong/MotionBlur
Close #867
2026-01-31 13:00:27 +09:00
kimnuri 707e44291e [fix] 트롤 인트로 트리거박스 복원
[fix] 트롤 스탭 오프셋 수정
2026-01-31 12:55:49 +09:00
GiJungSUk e52bf45a03 commit 2026-01-31 02:47:39 +09:00
kimnuri e1e4b58a40 [add] ToneMapping 수치조 2026-01-31 00:25:30 +09:00
qordlsgur 0ecd6de2ae [Modify] 수 2026-01-30 12:15:26 +09:00
kimnuri 35e21bc5bc [add] 백버퍼 가드 추 2026-01-30 06:57:44 +09:00
kimnuri 274f0903fb [add] 톤매핑 채도 추가적용, 백버퍼과정 병합 2026-01-30 06:52:29 +09:00
kimnuri 1dd48f1c9f 모션블러 속도에 따라 선형적으로 블러되게끔 변 2026-01-29 18:05:14 +09:00
kimnuri b6b64a701c [add] 사백안 전체 에셋 수 2026-01-29 17:58:32 +09:00
kimnuri c3c5f716c5 [add] 플레이어 눈동자 사백안 수 2026-01-29 15:58:07 +09:00
hyunbin14 6ca37c15cb Merge pull request #863 from SpicyGangjeong/Model
Model
2026-01-16 05:03:41 +09:00
hyunbin14 ab760f62d0 [Fix] 2026-01-16 05:03:16 +09:00
hyunbin14 3f5b4a4afd Merge pull request #862 from SpicyGangjeong/Develope
Follow
2026-01-16 04:05:03 +09:00
hyunbin14 99e978aba7 Merge pull request #861 from SpicyGangjeong/Develope
Follow
2026-01-16 01:57:33 +09:00
hyunbin14 3ae6ea0b40 Merge pull request #858 from SpicyGangjeong/Develope
Follow
2026-01-16 01:04:18 +09:00
hyunbin14 8a6206524a Merge pull request #856 from SpicyGangjeong/Develope
Follow
2026-01-16 00:13:42 +09:00
hyunbin14 3bcc3d6547 Merge pull request #853 from SpicyGangjeong/Develope
Follow
2026-01-16 00:03:48 +09:00
hyunbin14 83c0a0e61c Merge pull request #850 from SpicyGangjeong/Develope
Follow
2026-01-15 23:59:23 +09:00
hyunbin14 2699beb6a3 Merge pull request #846 from SpicyGangjeong/Develope
Follow
2026-01-15 23:31:27 +09:00
hyunbin14 efa2151a9c Merge pull request #844 from SpicyGangjeong/Develope
Follow
2026-01-15 22:59:28 +09:00
143 changed files with 1115 additions and 590 deletions
+30 -13
View File
@@ -77,6 +77,31 @@ void CBombard::Update(_float fTimeDelta)
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
if (m_isSoundDelay == true)
{
m_fAccSoundDelay += fTimeDelta;
if (m_fAccSoundDelay >= 0.4f)
{
m_isSoundDelay = false;
_int iRand = m_pGameInstance->Random_Int(0, 2);
switch (iRand)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_23, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_32, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_39, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
}
}
if (pWand == nullptr)
return;
@@ -123,6 +148,7 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject, void* pArg)
if (pWand == nullptr)
return E_FAIL;
m_isSoundDelay = false;
CPartObject* pShootPt = Get_PartObject<CEffectParts>("Bombard_Shoot_Pt");
CPartObject* pCircle0 = Get_PartObject<CEffectParts>("Bombard_Circle0");
@@ -209,19 +235,10 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
if (m_bHit == false)
return;
_int iRand = m_pGameInstance->Random_Int(0, 2);
switch (iRand)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_23, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_32, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_39, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
m_fAccSoundDelay = 0.f;
m_isSoundDelay = true;
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
@@ -136,6 +136,8 @@ HRESULT CBombardSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BOMBARDA_SIDE_0, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
return S_OK;
}
@@ -72,7 +72,6 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
m_bRaceEnd = true;
_float Alpha = 2.f;
m_pInfoInstance->Event_CallBack(TEXT("UIFadeIn"), &Alpha);
for (auto& racer : m_Racers)
{
if (racer.pAI)
@@ -163,6 +162,7 @@ void CBroomRaceManager::Update(_float fTimeDelta)
pTransform->Set_State(STATE::POSITION, XMLoadFloat4(&m_OriginPos));
pCharacter->Set_Position(XMLoadFloat4(&m_OriginPos));
m_bRaceEnd = false;
m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRaceEnd);
m_fDelay = 0.f;
m_bCurrentRace = false;
m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT);
@@ -171,13 +171,12 @@ void CBroomRaceManager::Update(_float fTimeDelta)
m_pRaceRings[m_pRaceRings.size() - 1]->Set_Target(false);
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_0, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_GamePlay, SD_CHANNEL_GROUP::BGM, true, 0.2f);
}
}
}
}
m_bCurrentRace = true;
#ifdef _DEBUG
//Describe_Entity();
#endif // _DEBUG
@@ -394,8 +393,6 @@ void CBroomRaceManager::Check_RingPassed()
{
racer.curRing = (_uint)m_pRaceRings.size();
if (racer.pAI) {
racer.pAI->Get_Broom()->Set_Hover(true);
racer.pAI->Get_Broom()->Set_Move(false);
@@ -406,8 +403,6 @@ void CBroomRaceManager::Check_RingPassed()
racer.pRacer->Get_Broom()->Set_Move(false);
}
XMStoreFloat4(&racer.prevPos, currPos);
continue;
}
@@ -525,6 +520,7 @@ void CBroomRaceManager::RaceReady()
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_RACE, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_bCurrentRace = true;
}
void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
@@ -545,6 +541,14 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
{
if (racer.pRacer == pRacer)
{
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
if (iRand == 0)
{
m_pGameInstance->Sound_Play(SOUND::SD_KIND::FX_SWOOSH0, SD_CHANNEL_GROUP::EFFECT, false, 3.f);
}
else {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::FX_SWOOSH1, SD_CHANNEL_GROUP::EFFECT, false, 3.f);
}
m_pRaceRings[racer.curRing-1]->Set_Target(false);
@@ -134,6 +134,7 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
Describe_Entity();
#endif // _DEBUG
#ifndef _DEBUG
if (dynamic_cast<CPlayer*>(m_pOwner)->Get_UIState() == UI_STATE::GAMEPLAYER)
{
m_bMovable = true;
@@ -141,7 +142,7 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
else {
m_bMovable = false;
}
#endif // _DEBUG
if (m_pGameInstance->Key_Up(DIK_PGDN)) {
m_bDampingParentPos = !m_bDampingParentPos;
@@ -214,7 +214,7 @@ HRESULT CCutSceneInfo::Ready_Events()
m_CutScene_StartEvents.emplace("RanrokIntro",
[this]() {
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_RANROK_0, SD_CHANNEL_GROUP::BGM, true, 0.5f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_RANROK_0, SD_CHANNEL_GROUP::BGM, true, 0.4f);
m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_UI)->Get_Object<CInteraction_Key>()->Set_Active(false);
});
@@ -232,8 +232,6 @@ HRESULT CCutSceneInfo::Ready_Events()
[this]() {
m_pInfoInstance->Load_ReparoObjects("Reparo_Data");
m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_UI)->Get_Object<CInteraction_Key>()->Set_Active(true);
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_Land_DAY, SD_CHANNEL_GROUP::BGM, true, 0.8f);
});
m_CutScene_EndEvents.emplace("RanrokIntro",
@@ -247,6 +245,7 @@ HRESULT CCutSceneInfo::Ready_Events()
[this]() {
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_Land_DAY, SD_CHANNEL_GROUP::BGM, true, 0.5f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_GamePlay, SD_CHANNEL_GROUP::BGM, true, 0.3f);
m_pGameInstance->Get_Layer(g_iStaticLevel, LAYER_UI)->Get_Object<CInteraction_Key>()->Set_Active(true);
});
#pragma endregion
@@ -64,6 +64,7 @@ void CDialogue_Font::Update(_float fTimeDelta)
{
if (m_bChoiceText == true)
{
_bool Map = true;
switch (m_iType)
{
case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT):
@@ -89,12 +90,14 @@ void CDialogue_Font::Update(_float fTimeDelta)
break;
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bChoiceText);
m_bRace = true;
m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace);
MapMove();
break;
case ENUM_CLASS(NPCTEXTTYPE::BATTLE):
m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bChoiceText);
m_bBattle = true;
m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle);
MapMove();
break;
@@ -131,17 +134,15 @@ void CDialogue_Font::Update(_float fTimeDelta)
}
}
if (m_fTime >= 0.f)
if (m_fTime > 0.f)
{
m_fTime -= fTimeDelta;
}
else
if (m_fTime <= 0.f)
{
m_fTime = 0.f;
}
}
}
void CDialogue_Font::Late_Update(_float fTimeDelta)
{
@@ -192,8 +193,6 @@ HRESULT CDialogue_Font::Bind_ShaderResources()
HRESULT CDialogue_Font::Ready_Components(void* pArg)
{
return S_OK;
}
@@ -256,6 +255,7 @@ void CDialogue_Font::NpcInfo(void* pArg)
m_pNpcName = Info->pName;
m_pName = Info->pNPCName;
m_iTextID = Info->iTextID;
m_iNextID = Info->iNextID;
}
void CDialogue_Font::NpcInteract(_bool bInteract)
@@ -265,7 +265,16 @@ void CDialogue_Font::NpcInteract(_bool bInteract)
void CDialogue_Font::NpcDialogue()
{
auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, m_iNextID);
_int ID{};
if (m_iNextID == 0)
{
ID = m_iTextID;
}
else
{
ID = m_iNextID;
}
auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, ID);
m_bTag = Info.bTag;
if (m_bTag == false)
{
@@ -292,6 +301,7 @@ void CDialogue_Font::NpcDialogue(CNPCStat* Stat)
m_Info.fTime = 3.f;
m_iType = Info.iType;
m_iNextID = Info.NextTextID;
m_iTextID = Info.iLineID;
m_bTag = Info.bTag;
Npc_Dialogue(m_Info);
}
@@ -308,7 +318,6 @@ void CDialogue_Font::NpcNextText()
{
m_Info.pName = m_pName;
}
m_Info.pName = m_pName;
m_Info.pText = Info.pText;
m_Info.fTime = 99999.f;
Npc_Dialogue(m_Info);
@@ -316,6 +325,7 @@ void CDialogue_Font::NpcNextText()
void CDialogue_Font::CHoice()
{
m_NextLevel.clear();
m_bCurrentChoiceText = true;
size_t InfoCount = m_pInfoInstance->Get_Dialogue(m_pNpcName, m_iTextID).ChoiceInfo.size();
for (size_t i = 0; i < InfoCount; ++i)
@@ -349,7 +359,6 @@ void CDialogue_Font::Quest()
if (m_bChoiceText == true)
{
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
ENDText();
}
@@ -375,36 +384,35 @@ void CDialogue_Font::ENDText()
NPCINTERACT Interact{};
Interact.bInteract = bInteract;
Interact.fAlpha = 1.f;
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact.bInteract);
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
m_pNpc->Set_NextID(m_iNextID);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &bInteract);
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_pInfoInstance->Event_CallBack(TEXT("ReSetNPC"));
m_bChoiceText = false;
m_bCurrentChoiceText = false;
m_bRace = false;
m_bBattle = false;
vector<_int> Dummy;
m_NextLevel.swap(Dummy);
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end(); ++it)
{
(*it)->Set_Hover(false);
(*it)->Visible(false);
m_DialoguInfo.push_back((*it));
it = m_pCurrentDialogue.erase(it);
(*it)->Set_Time(3.f);
}
}
void CDialogue_Font::ReSet()
{
NPCINTERACT Interact{};
Interact.bInteract = false;
Interact.fAlpha = 1.f;
Interact.fAlpha = 0.f;
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
m_pNpc->Set_NextID(m_iTextID);
m_pNpc->Set_NextID(m_iNextID);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact);
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_pInfoInstance->Event_CallBack(TEXT("ReSetNPC"));
m_bChoiceText = false;
m_bCurrentChoiceText = false;
m_bRace = false;
@@ -422,12 +430,17 @@ void CDialogue_Font::ReSet()
void CDialogue_Font::MapMove()
{
m_pNpc->Set_NextID(m_iTextID);
NPCINTERACT Interact{};
Interact.bInteract = false;
Interact.fAlpha = 1.f;
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
m_pNpc->Set_NextID(m_iNextID);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact);
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_pInfoInstance->Event_CallBack(TEXT("ReSetNPC"));
m_bChoiceText = false;
m_bCurrentChoiceText = false;
m_bRace = false;
m_bBattle = false;
vector<_int> Dummy;
m_NextLevel.swap(Dummy);
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
@@ -437,11 +450,13 @@ void CDialogue_Font::MapMove()
m_DialoguInfo.push_back((*it));
it = m_pCurrentDialogue.erase(it);
}
NPCINTERACT Interact{};
Interact.bInteract = false;
Interact.fAlpha = 1.5f;
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
if (m_bRace == true)
{
m_pInfoInstance->Event_CallBack(TEXT("UIFadeIn"), &Interact.fAlpha);
}
m_bRace = false;
m_bBattle = false;
}
void CDialogue_Font::Quest_Complete()
@@ -450,11 +465,22 @@ void CDialogue_Font::Quest_Complete()
}
void CDialogue_Font::NextText()
{
if (m_bChoiceText == true)
{
m_bChoiceText = false;
m_bCurrentChoiceText = false;
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
}
Skip();
NpcDialogue();
}
void CDialogue_Font::Skip()
{
m_pCurrentDialogue[0]->Visible(false);
m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
NpcDialogue();
}
void CDialogue_Font::NextLevel(CHOICEINFO Choice)
@@ -463,6 +489,8 @@ void CDialogue_Font::NextLevel(CHOICEINFO Choice)
m_iType = Choice.iType;
m_iQuestID = Choice.QuestID;
m_bChoiceText = true;
Skip();
if (m_iType != 0)
NpcNextText();
}
@@ -111,11 +111,13 @@ void CDialogue_Panel::Choice_Slot(CHOICEINFO Choice)
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
m_bBroomRace = true;
m_fTime = 0.f;
break;
case ENUM_CLASS(NPCTEXTTYPE::BATTLE):
m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
m_bBttle = true;
m_fTime = 0.f;
break;
default:
@@ -149,7 +151,7 @@ void CDialogue_Panel::Change_Map()
);
_vector vPlayerOriginPos = XMVectorZero();
if (FAILED(m_pInfoInstance->Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
if (FAILED(m_pInfoInstance->Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
return;
CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST);
@@ -210,8 +212,8 @@ void CDialogue_Panel::Change_Map()
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_INSIDE, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_INT, SD_CHANNEL_GROUP::BGM, true, 1.f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_INSIDE, SD_CHANNEL_GROUP::BGM, true, 0.6f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_INT, SD_CHANNEL_GROUP::BGM, true, 1.2f);
}
void CDialogue_Panel::Priority_Update(_float fTimeDelta)
@@ -237,7 +239,7 @@ void CDialogue_Panel::Update(_float fTimeDelta)
}
if (m_fTime >= 0.8f)
if (m_fTime >= 1.f)
{
if (m_bBroomRace == true)
{
@@ -249,6 +251,8 @@ void CDialogue_Panel::Update(_float fTimeDelta)
m_bBttle = false;
Change_Map();
}
m_pInfoInstance->Event_CallBack(TEXT("ReSetNPC"));
m_fTime = 0.f;
}
__super::Update(fTimeDelta);
@@ -240,7 +240,21 @@ HRESULT CDuelist_NormalJap::Pre_Setting(CGameObject* pObject, void* pArg)
m_fAccZigZagTime = 0.f;
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_13, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
switch (iIndex)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_34, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_35, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_36, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
case 3:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_37, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
}
return S_OK;
}
@@ -232,7 +232,23 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc)
}
break;
default:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
_uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, 3);
switch (iRandomIndex)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_1, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 3:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
break;
}
}
@@ -867,19 +867,32 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
PSX::PxSweepBuffer pxBuffer = {};
PSX::PxSweepBufferN<12> pxBuffer = {};
_bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
const PSX::PxSweepHit& hit = pxBuffer.block;
ON_COLLISION_INFO tagCollInfo = {};
if (bHit) {
vector<PSX::PxSweepHit*> Hits;
_uint iHitCount = pxBuffer.nbTouches;
if (true == pxBuffer.hasBlock) {
iHitCount += 1;
Hits.reserve(iHitCount);
Hits.emplace_back(&pxBuffer.block);
}
else {
Hits.reserve(iHitCount);
}
for (_uint i = 0; i < pxBuffer.nbTouches; ++i) {
Hits.emplace_back(&pxBuffer.touches[i]);
}
for (_uint i = 0; i < Hits.size(); ++i) {
const PSX::PxSweepHit& hit = *Hits[i];
PSX::PxRigidActor* pActor = hit.actor;
PSX::PxShape* pShape = hit.shape;
ON_COLLISION_INFO tagCollInfo = {};
tagCollInfo.vWorldPos.w = 1.f;
if (bHit) {
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
@@ -887,9 +900,15 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
tagCollInfo.fLength = fDistance;
if (nullptr != pActor && nullptr != pActor->userData)
if (nullptr != pActor && nullptr != pActor->userData || nullptr != pShape && nullptr != pShape->userData)
{
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
PHYSX_USERDATA* pUserData = nullptr;
if (nullptr == pActor->userData) {
pUserData = static_cast<PHYSX_USERDATA*>(pShape->userData);
}
else {
pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
}
tagCollInfo.pObject = pUserData->pOwner;
tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE);
tagCollInfo.fDamage = 10.f;
@@ -922,20 +941,15 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
}
}
default:
break;
}
}
}
}
if (isTerrainCollision == true && bHit == false)
{
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
tagCollInfo.fLength = fDistance;
tagCollInfo.pObject = m_pOwner->Get_Owner();
bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer);
const PSX::PxSweepHit& hit = pxBuffer.block;
+8 -9
View File
@@ -71,15 +71,15 @@ void CElf::Update(_float fTimeDelta)
Set_Anim();
if (m_pGameInstance->Key_Down(DIK_U))
{
m_iCurrentFlow++;
}
//if (m_pGameInstance->Key_Down(DIK_U))
//{
// m_iCurrentFlow++;
//}
if (m_bFlow == true)
{
m_fFlowTime -= fTimeDelta;
}
//if (m_bFlow == true)
//{
// m_fFlowTime -= fTimeDelta;
//}
if (m_fFlowTime <= 0.f && m_bFlow == true)
{
@@ -247,7 +247,6 @@ _int CElf::Get_NpcID()
void CElf::Set_Flow(_int Index, _float fTime)
{
m_iFlowIndex = Index;
m_fFlowTime = fTime;
m_bFlow = true;
}
@@ -170,7 +170,7 @@ HRESULT CEnemy_SkillUI::Ready_Components(void* pArg)
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Map_RaceGate"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_ranrok_ball"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
+2 -2
View File
@@ -76,7 +76,7 @@ HRESULT CGoblin::Initialize(void* pArg)
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
SAFE_ADDREF(m_pEffectPool);
m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
/*m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
[this](void* p)
{
CGameObject* pSender = static_cast<CGameObject*>(p);
@@ -88,7 +88,7 @@ HRESULT CGoblin::Initialize(void* pArg)
return;
m_pFSM->Change_State(FSMSTATE::FEAR);
});
});*/
m_pModelCom->Set_DisableRootMotionScale(true);
@@ -68,19 +68,19 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg)
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
SAFE_ADDREF(m_pEffectPool);
m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
[this](void* p)
{
CGameObject* pSender = static_cast<CGameObject*>(p);
//m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
// [this](void* p)
// {
// CGameObject* pSender = static_cast<CGameObject*>(p);
if (pSender == this)
return;
// if (pSender == this)
// return;
if (isDead())
return;
// if (isDead())
// return;
m_pFSM->Change_State(FSMSTATE::FEAR);
});
// m_pFSM->Change_State(FSMSTATE::FEAR);
// });
m_pModelCom->Set_DisableRootMotionScale(true);
+10 -10
View File
@@ -73,19 +73,19 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
m_pCharacter_Controller->Set_Position(vPos);
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z));
m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
[this](void* p)
{
CGameObject* pSender = static_cast<CGameObject*>(p);
//m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
// [this](void* p)
// {
// CGameObject* pSender = static_cast<CGameObject*>(p);
if (pSender == this)
return;
// if (pSender == this)
// return;
if (isDead())
return;
// if (isDead())
// return;
m_pFSM->Change_State(FSMSTATE::FEAR);
});
// m_pFSM->Change_State(FSMSTATE::FEAR);
// });
#ifdef _DEBUG
#if 진우
@@ -196,7 +196,7 @@ void CGoblin_Mage::Behavior_SpellEnter()
Add_Event(pairAnimInfo.first, [this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_MAGE_SIDE, this);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::GOBLIN_DOWN_ATTCK_1, SD_CHANNEL_GROUP::ENEMY, false, 0.6f);
}, 0.1f);
Add_Event(pairAnimInfo.first,
@@ -226,7 +226,11 @@ HRESULT CGoblin_Mage::Behavior_SpellExitCheck(_float fTimeDelta)
Add_Event(pairAnimInfo.first,
[this]() {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::GOBLIN_25, SD_CHANNEL_GROUP::ENEMY, false, 0.5f); },
m_pGameInstance->Sound_Play(SOUND::SD_KIND::GOBLIN_25, SD_CHANNEL_GROUP::ENEMY, false, 0.3f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::GOBLIN_DOWN_ATTCK_0, SD_CHANNEL_GROUP::ENEMY, false, 0.6f);
},
0.1f);
}
return S_OK;
@@ -263,7 +263,23 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
}
break;
default:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
_uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, 3);
switch (iRandomIndex)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_1, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 3:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
break;
}
}
@@ -109,13 +109,21 @@ void CHuman_Duelist::Update(_float fTimeDelta)
pPlayer->ExitBattle();
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_0, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_GamePlay, SD_CHANNEL_GROUP::BGM, true, 0.3f);
m_bBattleEnd = false;
}
}
Play_Event();
if (m_fBattleEndTimer >= 2.f)
{
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_0, SD_CHANNEL_GROUP::BGM, true, 0.8f);
}
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
@@ -210,6 +210,7 @@ HRESULT CInfoInstance::Deregist_ActiveEffect(CEffect_Container* pEffect)
}
return m_pEffectInfo->Deregist_ActiveEffect(pEffect);
}
#pragma endregion
@@ -44,6 +44,7 @@ void CInteraction_Key::Priority_Update(_float fTimeDelta)
void CInteraction_Key::Update(_float fTimeDelta)
{
if (m_pInfoInstance->IsActiveCutScene() == false)
ReLockOnTarget();
}
@@ -374,7 +374,7 @@ void CLevel_Field::ResetLevel_Environment()
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f));
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(2.f), _float2(0.019f, 0.161f),
m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(0.5f), _float2(0.019f, 0.161f),
_float2(2.300f, 10.000f), _float4(0.0360f, 0.0326f, 0.0057f, 0.0018f), _float4(2.0000f, 1.f, 1.f, 1.f), _float3(0.f, 0.f, -100.f), _float3(0.f, 0.f, 100.f));
m_pGameInstance->Setting_Volumetirc(1.743f, 0.0001f, 0.2000f, 1.050f, 0.04862f);
m_pLight->Capture_PreShadow();
@@ -152,7 +152,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_0, SD_CHANNEL_GROUP::BGM, true, 0.6f);
return S_OK;
@@ -169,11 +169,11 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
_bool bStartCinematic = { true };
#ifdef _DEBUG
#ifdef 기무리
bStartCinematic = true;
bStartCinematic = false;
#elif 진우
bStartCinematic = true;
#elif Bin
bStartCinematic = false;
bStartCinematic = true;
#elif gimch
bStartCinematic = true;
#elif 나
@@ -363,9 +363,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = false;
#endif //
#ifdef 기무리
isReady_Background = true;
isReady_Hogsmeade = true;
isReady_Hogwart = true;
isReady_Background = false;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#ifdef 나
isReady_Background = false;
@@ -1157,8 +1157,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
isLoad_NPC = false;
#endif //
#ifdef 기무리
isLoad_NPC = true;
isLoad_RandomNPC = true;
isLoad_NPC = false;
isLoad_RandomNPC = false;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
@@ -1243,7 +1243,7 @@ void CLevel_GamePlay::ResetLevel_Environment()
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(0.581f, 0.239f, -0.183f, 0.757f));
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.700), _float2(0.019f, 0.161f),
m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.5f), _float2(0.019f, 0.161f),
_float2(2.300f, 10.000f), _float4(0.0047f, 0.0018f, 0.0018f, 0.0018f),
_float4(2.f, 1.f, 1.f, 1.f), _float3(-10.f, -10.f, -50.f), _float3(10.f, 10.f, 50.f));
m_pLight->Capture_PreShadow();
@@ -33,6 +33,8 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
m_bNextLevel = false;
m_fTimeDelta = 1.2f;
return S_OK;
}
@@ -22,7 +22,7 @@ HRESULT CLevel_Logo::Initialize()
return E_FAIL;
}
m_pGameInstance->Sound_Play(SOUND::SD_KIND::LOGO_INTRO, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_Loading, SD_CHANNEL_GROUP::BGM, false, 0.7f);
return S_OK;
}
+3 -1
View File
@@ -118,7 +118,7 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
if (pPlayer == nullptr)
return E_FAIL;
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_LEVIOSA_27, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_LEVIOSA_27, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
_vector WandPos = pPlayer->Get_WandPos().r[3];
@@ -226,6 +226,8 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
if (pHitCCT != nullptr)
{
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_LEVIOSA_26, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
CEffectParts* pLevioso_Spline = Get_PartObject<CEffectParts>("Levioso_Spline");
CEffectParts* pLevioso_Hit0 = Get_PartObject<CEffectParts>("Levioso_Hit0");
@@ -117,6 +117,7 @@ HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_LEVIOSA_9, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
return S_OK;
}
+4 -4
View File
@@ -581,9 +581,9 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
isLoad_Hogwart = true;
isLoad_UI_SEQUANTIAL = true;
isLoad_NPC = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = false;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -2466,7 +2466,7 @@ HRESULT CLoader::Loading_For_GamePlay()
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Quest_Slot_Desc{};
Quest_Slot_Desc.iNum = 10;
Quest_Slot_Desc.iNum = 6;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Quest_Slot"),
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Quest_Slot_Desc)))) {
+2 -1
View File
@@ -78,7 +78,8 @@ void CMageSide::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
if (m_pOwner->isDead())
return;
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("RightHand"));
for (int i = 0; i < 3; ++i) {
@@ -58,6 +58,8 @@ HRESULT CMainApp::Initialize()
return E_FAIL;
}
return S_OK;
}
@@ -201,13 +201,13 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta)
void CNPCInteraction::Update(_float fTimeDelta)
{
if (m_bVisible != true)
if (m_bActive != true)
return;
}
void CNPCInteraction::Late_Update(_float fTimeDelta)
{
if (m_bVisible != true)
if (m_bActive != true)
return;
if (m_bActive == true || m_bBoxActive)
@@ -241,12 +241,12 @@ void CNPC_EleazarFig::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _
}
void CNPC_EleazarFig::Set_Pos(_vector vPos)
{
_float fRandX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
/*_float fRandX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
_float fRandY= m_pGameInstance->Real_Random_Float(-3.f, 3.f);
_vector Offset = XMVectorSet(fRandX, 0.f, fRandY, 0.f);
vPos += Offset;
m_pCharacter_Controller->Set_Position(vPos);
m_pCharacter_Controller->Set_Position(vPos);*/
}
_wstring CNPC_EleazarFig::Get_Name()
+4 -4
View File
@@ -176,16 +176,16 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
switch (iIndex)
{
case 0 :
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_34, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_34, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
case 1 :
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_35, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_35, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
case 2 :
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_36, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_36, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
case 3 :
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_37, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_37, SD_CHANNEL_GROUP::EFFECT, false, 0.4f);
break;
}
+12 -9
View File
@@ -125,7 +125,7 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<UI_STATE*>(p)); });
m_pInfoInstance->Add_Event(TEXT("NpcInteraction"), [this](void* p) {this->Set_Interaction(*reinterpret_cast<_bool*>(p)); });
m_pInfoInstance->Add_Event(TEXT("SpellLearningSuccess"), [this](void* p) {this->Set_Spell_Learning_Success(); });
m_pInfoInstance->Add_Event(TEXT("ReSetNPC"), [this](void* p) {this->ReSetNPC(); });
m_bAI = false;
@@ -393,6 +393,7 @@ HRESULT CPlayer::Update_RaycastElements()
XMStoreFloat4(&Pos, static_cast<CUnit*>(pFoundNPC)->Get_WorldPostion());
Info.fNPCPosition = Pos;
Info.iTextID = static_cast<CUnit*>(pFoundNPC)->Get_TextID();
Info.iNextID = static_cast<CUnit*>(pFoundNPC)->Get_NextID();
m_bNpcInteraction = true;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOn"), &Info);
}
@@ -415,10 +416,7 @@ HRESULT CPlayer::Update_RaycastElements()
{
if (m_pCurrentNpcInteraction && !m_bCurrentInteraction)
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff"));
m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff"));
ReSetNPC();
}
}
@@ -428,10 +426,7 @@ HRESULT CPlayer::Update_RaycastElements()
{
if (m_pCurrentNpcInteraction && !m_bCurrentInteraction)
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff"));
m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff"));
ReSetNPC();
}
}
@@ -454,6 +449,14 @@ void CPlayer::Add_TurboBoost(_float fAmount)
m_pBroom->Add_TurboBoost(fAmount);
}
void CPlayer::ReSetNPC()
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff"));
m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff"));
}
HRESULT CPlayer::Render_Shadow(SHADOW eType)
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+109 -13
View File
@@ -935,7 +935,7 @@ void CPlayer::Behavior_BlinkEnter()
Add_Sound_Event(m_Animation[STATEANIM::DODGE].first,
[this]() {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BLINK_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BLINK_2, SD_CHANNEL_GROUP::EFFECT, false, 1.f);
},
0.01f);
@@ -1131,11 +1131,36 @@ void CPlayer::Behavior_CombatEnter()
},
0.2f);
Add_Event(pairAnimInfo.first,
[this]() {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::THROW_3, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
},
0.2f);
Add_Event(pairAnimInfo.first,
[this]() {
m_pGameInstance->SlowMotion(0.1f, 0.35f);
},
0.1f);
_uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, 3);
switch (iRandomIndex)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::THROW_0, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::THROW_1, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::THROW_2, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
break;
case 3:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::THROW_2, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
break;
}
}
}
}
@@ -1175,6 +1200,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
else {
return S_OK;
}
Add_Event(pairAnimInfo.first,
[this]() { m_bLookAt = true; },
0.1f);
@@ -1189,6 +1215,8 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
m_pGameInstance->SlowMotion(0.1f, 0.35f);
},
0.1f);
}
}
@@ -1290,8 +1318,17 @@ void CPlayer::Behavior_LightAttackEnter()
fRatio);
Add_Event(pairAnimInfo.first,
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>());
},
0.0f);
Add_Event(pairAnimInfo.first,
[this]() {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::JAP_SIDE_0, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
},
0.05f);
}
HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
@@ -1338,13 +1375,58 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
Add_Event(iNext,
[this]() {
_uint comboIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &comboIndex);
_uint iComboIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iComboIndex);
},
fAttackRatio);
_uint iComboIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
_float fTime = 0.f;
switch (iComboIndex)
{
case 0:
fTime = 0.1f;
break;
case 1:
fTime = 0.f;
break;
case 2:
fTime = 0.f;
break;
case 3:
fTime = 0.1f;
break;
}
Add_Event(iNext,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE,Get_PartObject<CWand>());
[this]() {
_uint iComboIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
switch (iComboIndex)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::JAP_SIDE_0, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::JAP_SIDE_1, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::JAP_SIDE_2, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
break;
case 3:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::JAP_SIDE_3, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
break;
}
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>());
},
fTime);
Add_Event(iNext,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE,Get_PartObject<CWand>());
},
0.0f);
}
@@ -1666,7 +1748,7 @@ void CPlayer::Behavior_AncientSpellEnter()
if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::GAMEPLAY))
{
Get_PartObject<CCamPosition_Shoulder>()->Set_CameraAnim(6);
m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
/*m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));*/
}
Add_Event(pairAnimInfo.first,
@@ -1679,6 +1761,7 @@ void CPlayer::Behavior_AncientSpellEnter()
Add_Event(pairAnimInfo.first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::LIGHTNING_SIDE, Get_PartObject<CWand>());
m_pGameInstance->Sound_Play(SOUND::SD_KIND::LIGHTNINH_SIDE_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
},
0.18f);
@@ -1716,7 +1799,8 @@ void CPlayer::Behavior_AncientSpellExit()
void CPlayer::Behavior_ShieldEnter()
{
pair<_uint, _bool> pairAnimInfo;
DIALOGUEINFO Info;
Info.pName = m_pStat->Get_Stat().pUnit_Name;
m_pFSM->Enable_State(FSMSTATE::SHIELD);
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
@@ -1729,9 +1813,12 @@ void CPlayer::Behavior_ShieldEnter()
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
0.1f);
//Add_Sound_Event(pairAnimInfo.first,
// [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); },
// 0.01f);
Add_Sound_Event(pairAnimInfo.first,
[this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); },
0.01f);
Info.pText = TEXT("프로테고!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
Add_Sound_Event(pairAnimInfo.first,
[this]() {
@@ -1916,6 +2003,8 @@ void CPlayer::Behavior_BlockExit()
void CPlayer::Behavior_ParryEnter()
{
pair<_uint, _bool> pairAnimInfo;
DIALOGUEINFO Info;
Info.pName = m_pStat->Get_Stat().pUnit_Name;
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
_float fEventRatio = 0.2f;
@@ -1995,12 +2084,19 @@ void CPlayer::Behavior_ParryEnter()
fEventRatio);
Add_Sound_Event(pairAnimInfo.first,
[this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_STUPEFY, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
0.01f);
[this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_STUPEFY, SD_CHANNEL_GROUP::EFFECT, false, 0.8f); },
0.01f);
Info.pText = TEXT("스투페파이!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
Add_Sound_Event(pairAnimInfo.first,
[this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_24, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); }, 0.01f);
Add_Sound_Event(pairAnimInfo.first,
[this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::STUPEFY_HIT_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); }, 0.01f);
m_bShield = false;
}
@@ -3194,7 +3290,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::GAMEPLAY))
{
Get_PartObject<CCamPosition_Shoulder>()->Set_CameraAnim(6);
m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
/*m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));*/
}
break;
+17 -1
View File
@@ -196,7 +196,23 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
dynamic_cast<CPlayer*>(m_pOwner)->Set_Shield(true);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
_uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, 3);
switch (iRandomIndex)
{
case 0:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 1:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_1, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 2:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
case 3:
m_pGameInstance->Sound_Play(SOUND::SD_KIND::PROTEGO_HIT_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>()
->Use_Skill(SKILL_TYPE::PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
@@ -54,7 +54,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
Visible(true);
ElementAllVisible(true);
Set_Status();
m_pInfoInstance->Set_AcceptQuest(0);
/*m_pInfoInstance->Set_AcceptQuest(0);*/
//m_pInfoInstance->Set_AcceptQuest(1);
//m_pInfoInstance->Set_AcceptQuest(6);
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
@@ -333,6 +333,10 @@ void CQuest_Slot::Hover()
//m_pVIBufferCom->Set_Hover(m_iIndex);
Font_Size();
m_iPrevIndex = m_iIndex;
if (m_iIndex != -1)
{
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SLOT_HOVER, SD_CHANNEL_GROUP::EFFECT, false, 1.f);
}
}
}
+6 -3
View File
@@ -473,6 +473,7 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
if (true == m_bDead) {
return;
}
if (m_bDisolve)
return;
@@ -1015,7 +1016,7 @@ HRESULT CRanrok::Render_Blur()
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
{
if (m_pEtherInfo[i]->isBlur() == false)
if (m_pEtherInfo[i]->isBlur() == false || m_pEtherInfo[i]->Get_Visible() == false)
continue;
if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
@@ -1064,7 +1065,9 @@ HRESULT CRanrok::Render_Bloom()
{
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
{
if (m_pEtherInfo[i]->isBloom() == false)
if (m_pEtherInfo[i]->isBloom() == false || m_pEtherInfo[i]->Get_Visible() == false)
continue;
if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
@@ -1121,7 +1124,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
{
if (m_iCurrentPoint >= m_Points[m_iCurrentFlow].size() * 0.3f)
{
m_fTuckedSpeed = 55.f;
m_fTuckedSpeed = 50.f;
}
}
@@ -103,10 +103,11 @@ void CRanrok_Breath::Update(_float fTimeDelta)
if (m_isStartRayCast == true)
{
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(XMLoadFloat4(&m_vStartPos), CombinedMat.r[2] * -1.f, 50.f, 50);
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(vStartPos, CombinedMat.r[2] * -1.f, 50.f, 50);
if (m_bHit = true)
OnCollision(this, &CollisionInfo);
_vector vEndPos = vStartPos + CombinedMat.r[2] * -1.f * 50.f;
MonsterSweepTarget(vStartPos, vEndPos, 0.6f, false);
}
@@ -971,7 +971,7 @@ void CRanrok::Behavior_TuckedExit()
m_pFSM->Disable_State(FSMSTATE::TUCKED);
m_bTucked = false;
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR)) {
if (m_iCurrentFlow == 1) {
m_vCreatePropTime.x = m_vCreatePropTime.y;
}
}
@@ -1015,10 +1015,14 @@ void CRanrok::Behavior_LandExit()
void CRanrok::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
m_pFSM->Enable_State(FSMSTATE::HIT);
m_bLookAt = false;
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_BWD2].first)
return;
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; // 스몰
@@ -1034,7 +1038,14 @@ void CRanrok::Behavior_HitEnter()
HRESULT CRanrok::Behavior_HitExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_BWD2].first)
{
m_pFSM->Change_State(FSMSTATE::TUCKED);
return E_FAIL;
}
if (m_pModelCom->IsFinishedAnim())
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
@@ -51,6 +51,11 @@ HRESULT CRevelio::Initialize(void* pArg)
m_Events.emplace(0.4f, [&]() {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_REVELIO0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_REVELIO1, SD_CHANNEL_GROUP::EFFECT, false, 0.5f);
});
m_fDuration = 3.f;
return S_OK;
@@ -154,6 +159,7 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg)
m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_REVELIO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
return S_OK;
}
@@ -20,7 +20,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
Spell_UnLock(3);
Spell_UnLock(4);
Spell_UnLock(6);
//Spell_UnLock(11);
Spell_UnLock(11);
Spell_UnLock(14);
Spell_UnLock(15);
Spell_UnLock(20);
@@ -68,7 +68,8 @@ void CSkill_Data::Spell_UnLock(_int SpellID)
return;
SpellInfo[SpellID].bSpell_Lock = true;
m_pInfoInstance->Event_CallBack(TEXT("Spell_UnLock"), &SpellInfo[SpellID].bSpell_Lock);
_int Index = SpellInfo[SpellID].iSpell_ID;
m_pInfoInstance->Event_CallBack(TEXT("Spell_UnLock"), &Index);
}
void CSkill_Data::Update(_float fTimeDelta)
@@ -51,6 +51,8 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
m_fDelayTime = 1.f;
Index = 0;
Set_Learn(Index);
static_cast<CSpellLearn*>(m_pSpellLearn)->Set_Pointer(
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer),
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer));
@@ -72,21 +74,21 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
return S_OK;
}
void CSpellLearn_Panel::Set_Learn(_int Index)
void CSpellLearn_Panel::Set_Learn(_int iIndex)
{
m_fTime = 0.f;
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_ID(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(Index);
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
static_cast<CSpellLearn_Name*>(m_pSpellLearn_Name)->Set_Name(Index);
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
static_cast<CSpellLearn_Slot*>(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_ID(m_pInfoInstance->Get_SpellLearn(iIndex).iSpellID);
static_cast<CSpellLearn*>(m_pSpellLearn)->Change_Image(iIndex);
static_cast<CSpellLearn_MovePointer*>(m_pSpellLearn_MovePointer)->Set_SpellLearn(iIndex);
static_cast<CSpellLearn_ChaserPointer*>(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(iIndex);
static_cast<CSpellLearn_Name*>(m_pSpellLearn_Name)->Set_Name(iIndex);
static_cast<CSpellLearn_Overlay*>(m_pSpellLearn_Overlay)->Set_SpellLearn(iIndex);
static_cast<CSpellLearn_Slot*>(m_pSpellLearn_Slot)->Set_SpellLearn(iIndex);
for (size_t i = 0; i < m_pBooster.size(); ++i)
{
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Move(
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].x,
m_pInfoInstance->Get_SpellLearn(Index).Booster[i].y);
m_pInfoInstance->Get_SpellLearn(iIndex).Booster[i].x,
m_pInfoInstance->Get_SpellLearn(iIndex).Booster[i].y);
static_cast<CSpellLearn_Booster*>(m_pBooster[i])->Reset();
}
}
@@ -46,6 +46,7 @@ HRESULT CSpell_Hover::Initialize(void* pArg)
m_pVIBufferCom->Set_Cloned(true);
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
m_iCurrentSpellType = 99;
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
return S_OK;
}
@@ -95,6 +96,15 @@ void CSpell_Hover::Update(_float fTimeDelta)
m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
}
if (m_iSpellType >= 0)
{
if (m_iCurrentSpellType != m_iSpellType)
{
m_iCurrentSpellType = m_iSpellType;
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SLOT_HOVER, SD_CHANNEL_GROUP::EFFECT, false, 1.f);
}
}
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -122,6 +122,8 @@ void CSpell_Overlay::Spell_Setting(_int SlotIndex, _int SpellIndex)
m_bSpellUsed[SlotIndex] = m_pInfoInstance->Get_Spell_Info(SpellIndex).bUse_Skill;
m_vUV[SlotIndex] = Compute_UI(SpellIndex);
m_iSpellType[SlotIndex] = m_pInfoInstance->Get_Spell_Info(SpellIndex).iSpell_Type;
m_pGameInstance->Sound_Play(SOUND::SD_KIND::EQUIP_SPELL, SD_CHANNEL_GROUP::EFFECT, false, 1.f);
}
void CSpell_Overlay::Use_Spell()
@@ -151,6 +151,8 @@ HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg)
m_pWandTrail->SetDissolve(false);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::STUPEFY_SIDE_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
return S_OK;
}
@@ -165,6 +165,9 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg)
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
m_pTransformation_PJ->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::TRANSFORMATION_0, SD_CHANNEL_GROUP::EFFECT, false, 1.f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::TRANSFORMATION_1, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
return S_OK;
}
@@ -304,6 +307,11 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
pRotate_1->Set_Visible(true);
m_pTransformation_PJ->Get_Effect_Info()->isDissolve = true;
m_pGameInstance->Sound_Play(SOUND::SD_KIND::TRANSFORMATION_HIT0, SD_CHANNEL_GROUP::EFFECT, false, 0.8f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::TRANSFORMATION_HIT1, SD_CHANNEL_GROUP::EFFECT, false, 0.6f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::TRANSFORMATION_HIT2, SD_CHANNEL_GROUP::EFFECT, false, 0.8f);
}
void CTransformation::Free()
@@ -131,6 +131,8 @@ HRESULT CTransformationSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
m_pGameInstance->Sound_Play(SOUND::SD_KIND::TRANSFORMATION_SIDE0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
return S_OK;
}
+1 -4
View File
@@ -367,9 +367,6 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
return;
}
if (m_pModelCom->Get_AnimIndex() == m_Animation[STATEANIM::RUSH_LOOP].first)
return;
XMStoreFloat4(&m_DamageInfo.vTarget_Pos, m_pCharacter_Controller->Get_HeadPosition());
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
@@ -533,7 +530,7 @@ HRESULT CTroll::Ready_Components()
Desc.fContactOffset = 0.001f;
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.12f };
Desc.fStepOffset = { 0.02f };
Desc.fRadius = 1.2f;
Desc.fHeight = 1.5f;
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Troll_HitReport::Create();
@@ -947,6 +947,7 @@ void CTroll::Behavior_DeadExit()
{
m_bDead = true;
m_pDead_Smoke->Set_Visible(false);
}
_bool CTroll::IsHitSpellDisabled()
@@ -1109,6 +1110,10 @@ void CTroll::Add_FSM()
pReparoObject->IsRepairable(true);
}
}
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_Land_DAY, SD_CHANNEL_GROUP::BGM, true, 0.5f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_GamePlay, SD_CHANNEL_GROUP::BGM, false, 0.3f);
m_bDead = true;
}
};
+21 -27
View File
@@ -89,14 +89,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(true);
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(true);
static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
if (m_bRace == false)
{
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(true);
}
else
{
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(false);
}
m_pGameInstance->Toggle_MouseCenter(true);
break;
@@ -268,9 +261,17 @@ void CUI_Manager::Update(_float fTimeDelta)
if (m_bCurrentNPCInteract == true && m_bNPCInteract == false)
{
m_fAlphaVelue = 1.f;
m_bCurrentNPCInteract = m_bNPCInteract;
if (m_bCurrentNPCInteract != m_bNPCInteract)
m_bCurrentNPCInteract = m_bNPCInteract;
if (m_bActive == false)
if (m_eType == UI_STATE::NPC_INTERACT)
{
Canvas_Change(UI_STATE::GAMEPLAYER);
}
/*if (m_bActive == false)
{
m_bActive = true;
m_bAlphaZero = true;
@@ -278,7 +279,7 @@ void CUI_Manager::Update(_float fTimeDelta)
{
m_eType = UI_STATE::GAMEPLAYER;
}
}
}*/
}
if (m_bActive == true && m_bHover == false)
@@ -340,36 +341,28 @@ void CUI_Manager::Update(_float fTimeDelta)
{
m_pMouse_Cursor->Set_Visible(false);
m_pCamera_LockOn->Set_Visible(false);
static_cast<CCanvasObject*>(m_pGamePlay_Canves)->Visible(false);
static_cast<CCanvasObject*>(m_pSpell_Canvas)->Visible(false);
static_cast<CCanvasObject*>(m_pQuest_Canvas)->Visible(false);
static_cast<CCanvasObject*>(m_pSpellLearn_Canvas)->Visible(false);
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(false);
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(false);
static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
m_pNPCInteraction->Set_Visible(!m_bRace);
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(false);
}
else
{
m_pMouse_Cursor->Set_Visible(false);
m_pCamera_LockOn->Set_Visible(false);
static_cast<CCanvasObject*>(m_pGamePlay_Canves)->Visible(true);
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(true);
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(true);
static_cast<CCanvasObject*>(m_pSpell_Canvas)->Visible(false);
static_cast<CCanvasObject*>(m_pQuest_Canvas)->Visible(false);
static_cast<CCanvasObject*>(m_pSpellLearn_Canvas)->Visible(false);
m_pNPCInteraction->Set_Visible(!m_bRace);
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(true);
}
}
if (m_pGameInstance->Key_Down(DIK_M) && m_pGameInstance->Key_Pressing(DIK_L))
Set_Enviroment();
@@ -591,7 +584,8 @@ void CUI_Manager::Set_Enviroment()
}
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_Land_DAY, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_Land_DAY, SD_CHANNEL_GROUP::BGM, true, 0.5f);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_GamePlay, SD_CHANNEL_GROUP::BGM, false, 0.3f);
}
@@ -629,11 +623,11 @@ void CUI_Manager::NpcInteract(void* pArg)
NPCINTERACT Interact = *reinterpret_cast<NPCINTERACT*>(pArg);
m_bNPCInteract = Interact.bInteract;
m_bHover = Interact.bInteract;
m_bActive = Interact.bInteract;
m_fAlpha= Interact.fAlpha;
m_bAlphaZero = true;
m_fAlphaVelue = 1.f;
//m_bHover = Interact.bInteract;
//m_bActive = Interact.bInteract;
//m_fAlpha= Interact.fAlpha;
//m_bAlphaZero = true;
//m_fAlphaVelue = 1.f;
}
void CUI_Manager::Chage()
@@ -666,7 +660,7 @@ void CUI_Manager::Set_Race(_bool bRace)
void CUI_Manager::Set_Battle(_bool bBattle)
{
m_bBattle = bBattle;
//FadeIn(1.5f);
FadeIn(1.5f);
}
void CUI_Manager::FadeIn(_float fAlphaVelue)
+3
View File
@@ -42,6 +42,9 @@ class CBombard final : public CEffect_Container
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
_float m_fLinearSpeed = 2.f;
_float3 m_vCameraLook = {};
_float m_fAccSoundDelay = {};
_bool m_isSoundDelay = { false };
public:
static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
@@ -76,6 +76,7 @@ typedef struct tegNPCInteractionInfo
_wstring pName;
_float4 fNPCPosition{};
_int iTextID{};
_int iNextID{};
}NPCINTERACTIONINFO;
typedef struct tegBoxInteractionInfo
@@ -44,6 +44,7 @@ class CDialogue_Font final : public CGameObject
void Npc_Dialogue(DIALOGUEINFO Info);
void NextText();
void Skip();
void NextLevel(CHOICEINFO Choice);
void ENDText();
void NextText(_int Index);
@@ -82,6 +82,7 @@ DECLARE_SINGLETON(CInfoInstance)
UI_STATE Get_UISTATE();
_float Get_Spell_Damage(_int Index);
void Add_Event(_wstring EventName, function<void(void*)> Event);
void Clear_Event();
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
#pragma endregion
@@ -128,6 +129,7 @@ DECLARE_SINGLETON(CInfoInstance)
HRESULT Deregist_ActiveEffect(CEffect_Container* pEffect);
#pragma endregion
private:
CGameInstance* m_pGameInstance = { nullptr };
ID3D11Device* m_pDevice = { nullptr };
+1
View File
@@ -43,6 +43,7 @@ class CMonster abstract : public CUnit
void CameraShake(_float ClampValue, _float Min, _float Max, _float Time);
virtual _bool IsHitStateDisabled();
virtual _bool IsHitSpellDisabled();
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CUnit* m_pTarget = { nullptr };
+1
View File
@@ -60,6 +60,7 @@ class CPlayer final : public CUnit
void ExitBattle();
void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); }
void Add_TurboBoost(_float fAmount);
void ReSetNPC();
#ifdef _DEBUG
void Render_CameraCoordinateSystem();
#endif // _DEBUG
@@ -51,6 +51,8 @@ class CSpell_Hover final : public CElementObject
_float m_fOffSetX{};
_float m_fOffSetY{};
_uint m_iCols{};
_int m_iCurrentSpellType{};
public:
static CSpell_Hover* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -22,7 +22,7 @@
<Line ID="1" Tag="1" Type="1" Text="방금 결투는 훌륭했어. 하지만 안심하긴 이르지." NextID="2"/>
<Line ID="2" Tag="1" Type="1" Text="란록이 움직이고 있어. 시간이 우리 편이 아니네." NextID="3"/>
<Line ID="3" Tag="1" Type="2" Text="자네, 지금 바로 란록을 추적하겠나?" NextID="3">
<Choice Type="3" Text="바로 가죠. 끝내겠습니다." NextID="4" QuestID="6"/>
<Choice Type="3" Text="바로 가죠. 끝내겠습니다." NextID="4" QuestID="5"/>
<Choice Type="1" Text="잠깐만요. 란록에 대해 더 알려주세요." NextID="10" QuestID="-1"/>
<Choice Type="0" Text="지금은 위험해요. 준비가 더 필요해요." NextID="20" QuestID="-1"/>
</Line>
@@ -37,15 +37,15 @@
<Line ID="13" Tag="1" Type="1" Text="특히 분노할수록 더 거칠어지고... 그 힘은 폭주하지." NextID="14"/>
<Line ID="14" Tag="1" Type="1" Text="그러니 가까이 붙기보단, 타이밍을 노려야 하네." NextID="15"/>
<Line ID="15" Tag="1" Type="2" Text="이제 준비가 됐나?" NextID="15">
<Choice Type="4" Text="네. 이제 갑시다." NextID="4" QuestID="6"/>
<Choice Type="4" Text="네. 이제 갑시다." NextID="4" QuestID="5"/>
<Choice Type="0" Text="조금만 더 생각할게요." NextID="3" QuestID="-1"/>
</Line>
<Line ID="20" Tag="1" Type="1" Text="…두려움을 느끼는 건 정상일세." NextID="21"/>
<Line ID="20" Tag="1" Type="1" Text="두려움을 느끼는 건 정상일세." NextID="21"/>
<Line ID="21" Tag="1" Type="1" Text="하지만 란록은 기다려주지 않아." NextID="22"/>
<Line ID="22" Tag="1" Type="1" Text="시간이 지날수록, 상황은 더 나빠질 걸세." NextID="23"/>
<Line ID="23" Tag="1" Type="2" Text="그래도 떠나기 전에 정비하겠나?" NextID="23">
<Choice Type="2" Text="좋아요. 잠깐만 정비하고 올게요." NextID="-1" QuestID="-1"/>
<Choice Type="4" Text="아니요. 지금 가야겠어요." NextID="4" QuestID="6"/>
<Choice Type="4" Text="아니요. 지금 가야겠어요." NextID="4" QuestID="5"/>
</Line>
</Dialogue>
@@ -16,7 +16,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0.34117648" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="32" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -26,7 +26,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0.090196081" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="31" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -36,7 +36,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0.49019608" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="78" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -56,7 +56,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="36" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -66,7 +66,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0.14509805" y="0" z="0"/>
<Specular x="0.13333334" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="13" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -76,7 +76,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0.18039216" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="17" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -86,7 +86,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="0.86274511" y="0" z="0" w="1"/>
<Ambient x="0.15294118" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="9" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -96,7 +96,7 @@
<Rotation x="0" y="0" z="0"/>
<Diffuse x="1" y="0" z="0" w="1"/>
<Ambient x="0.60000002" y="0" z="0"/>
<Specular x="0.2" y="0" z="0"/>
<Specular x="0" y="0" z="0"/>
<PosOffset x="0" y="0" z="0"/>
<Info Range="14" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
</Object>
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<GOBLIN>
<Object Name="Goblin">
<Object Name="Goblin_Mage">
<RotQ X="0.000" Y="0.955" Z="0.000" W="0.298"/>
<Trans X="-24.541" Y="-23.196" Z="-58.537"/>
</Object>
<Object Name="Goblin_Mage">
<Object Name="Goblin">
<RotQ X="0.000" Y="0.760" Z="0.000" W="-0.650"/>
<Trans X="-32.229" Y="-24.335" Z="-51.151"/>
</Object>
@@ -16,4 +16,8 @@
<RotQ X="-0.000" Y="-0.209" Z="-0.000" W="0.978"/>
<Trans X="-49.431" Y="-6.307" Z="-5.569"/>
</Object>
<Object Name="Goblin">
<RotQ X="-0.000" Y="-0.595" Z="-0.000" W="0.804"/>
<Trans X="-34.253" Y="-5.495" Z="-8.462"/>
</Object>
</GOBLIN>
@@ -42,15 +42,7 @@
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="5" QuestType="Main" QuestName="어디갔어 내 노예!" QuestInfo="숨어있는 도비 찾기" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="찾은 수" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="6" QuestType="Main" QuestName="드래곤 슬레이어!" QuestInfo="용으로 변신한 란록 처치하기" AcceptState="0">
<Quest QuestID="5" QuestType="Main" QuestName="드래곤 슬레이어!" QuestInfo="용으로 변신한 란록 처치하기" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="4" QuestInfo="란록" CurrentCount="0" RequiredCount="1"/>
</Objectives>
@@ -58,29 +50,5 @@
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="7" QuestType="Main" QuestName="ghjk!" QuestInfo="ghjk" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="결투 승리" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="8" QuestType="Main" QuestName="vbnm!" QuestInfo="vbnm" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="결투 승리" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="9" QuestType="Main" QuestName="1234!" QuestInfo="1234" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="결투 승리" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
</QuestData>
</QuestInfo>
@@ -32,7 +32,7 @@
<Pos x="15.554" y="5.833" z="201.019"/>
</Position>
<Position>
<Pos x="8.232" y="-14.972" z="202.142"/>
<Pos x="8.232" y="-12.972" z="202.142"/>
</Position>
</Name>
<Name Flow="2">
@@ -1,5 +1,5 @@
<StatInfo>
<STAT_PLAYER Name="Aria" OBJECTID="-1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10000000" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
<STAT_PLAYER Name="Aria" OBJECTID="-1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
<STAT_GOBLIN Name="고블린 전사" OBJECTID="0" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
<STAT_GOBLIN_ASSASSIN Name="고블린 암살자" OBJECTID="1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="2" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
@@ -209,7 +209,7 @@
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".png"/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
@@ -1,62 +1,62 @@
<KeyFrames>
<Animation Index="89">
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.065" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.323" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.065" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.323" Volume="0.600001"/>
<KeyFrame Event="Troll/Troll_Stop_Attack_SFX_7.wav" Ratio="0.355" Volume="5.00000001"/>
</Animation>
<Animation Index="91">
<KeyFrame Event="Troll/Troll_Attack_Stomp_Windup.wav" Ratio="0.127" Volume="0.80000001"/>
<KeyFrame Event="Troll/Troll_Attack_Swing_1.wav" Ratio="0.283" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_10.wav" Ratio="0.105" Volume="0.80000001"/>
<KeyFrame Event="Troll/Troll_Attack_Stomp_Windup.wav" Ratio="0.127" Volume="0.600001"/>
<KeyFrame Event="Troll/Troll_Attack_Swing_1.wav" Ratio="0.283" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_10.wav" Ratio="0.105" Volume="0.600001"/>
</Animation>
<Animation Index="66">
<KeyFrame Event="Troll/troll_1.wav" Ratio="0.200" Volume="0.80000001"/>
<KeyFrame Event="Troll/Troll_Attack_2H_Overhead_Slam_Windup.wav" Ratio="0.010" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_1.wav" Ratio="0.200" Volume="0.600001"/>
<KeyFrame Event="Troll/Troll_Attack_2H_Overhead_Slam_Windup.wav" Ratio="0.010" Volume="0.600001"/>
</Animation>
<Animation Index="11">
<KeyFrame Event="Troll/troll_10.wav" Ratio="0.250" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_15.wav" Ratio="0.660" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_10.wav" Ratio="0.250" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_15.wav" Ratio="0.660" Volume="0.600001"/>
</Animation>
<Animation Index="141">
<KeyFrame Event="Troll/troll_87.wav" Ratio="0.638" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_87.wav" Ratio="0.638" Volume="0.600001"/>
</Animation>
<Animation Index="14">
<KeyFrame Event="Troll/troll_87.wav" Ratio="0.155" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_87.wav" Ratio="0.155" Volume="0.600001"/>
</Animation>
<Animation Index="74">
<KeyFrame Event="Troll/Troll_Attack_RockThrow_LiveLoop.wav" Ratio="0.091" Volume="0.80000001"/>
<KeyFrame Event="Troll/Troll_Attack_RockThrow_Windup.wav" Ratio="0.010" Volume="0.80000001"/>
<KeyFrame Event="Troll/Troll_Attack_RockThrow_LiveLoop.wav" Ratio="0.091" Volume="0.600001"/>
<KeyFrame Event="Troll/Troll_Attack_RockThrow_Windup.wav" Ratio="0.010" Volume="0.600001"/>
</Animation>
<Animation Index="77">
<KeyFrame Event="Troll/Troll_Ragdoll_Body_Foley.wav" Ratio="0.812" Volume="0.80000001"/>
<KeyFrame Event="Troll/Troll_Ragdoll_Body_Foley.wav" Ratio="0.812" Volume="0.600001"/>
</Animation>
<Animation Index="156">
<KeyFrame Event="Troll/troll_rock_oppugno_impact_Play_1.wav" Ratio="0.030" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_rock_oppugno_impact_Play_1.wav" Ratio="0.030" Volume="0.600001"/>
</Animation>
<Animation Index="143">
<KeyFrame Event="Troll/troll_voice.wav" Ratio="0.105" Volume="5"/>
</Animation>
<Animation Index="55">
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.362" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_3.wav" Ratio="0.796" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.362" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_3.wav" Ratio="0.796" Volume="0.600001"/>
</Animation>
<Animation Index="54">
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.089" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_3.wav" Ratio="0.345" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_6.wav" Ratio="0.618" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_4.wav" Ratio="0.881" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact.wav" Ratio="0.089" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_3.wav" Ratio="0.345" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_6.wav" Ratio="0.618" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_4.wav" Ratio="0.881" Volume="0.600001"/>
</Animation>
<Animation Index="103">
<KeyFrame Event="Troll/troll_foot_impact_1.wav" Ratio="0.078" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_3.wav" Ratio="0.372" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_9.wav" Ratio="0.621" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_11.wav" Ratio="0.885" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_1.wav" Ratio="0.078" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_3.wav" Ratio="0.372" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_9.wav" Ratio="0.621" Volume="0.600001"/>
<KeyFrame Event="Troll/troll_foot_impact_11.wav" Ratio="0.885" Volume="0.600001"/>
</Animation>
<Animation Index="104">
<KeyFrame Event="Troll/troll_foot_impact_4.wav" Ratio="0.564" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_foot_impact_4.wav" Ratio="0.564" Volume="0.600001"/>
</Animation>
<Animation Index="165">
<KeyFrame Event="Troll/troll_92.wav" Ratio="0.437" Volume="0.80000001"/>
<KeyFrame Event="Troll/OLI_01_05_TrollAttack_Outro_pt2.wav" Ratio="0.010" Volume="0.80000001"/>
<KeyFrame Event="Troll/troll_92.wav" Ratio="0.437" Volume="0.600001"/>
<KeyFrame Event="Troll/OLI_01_05_TrollAttack_Outro_pt2.wav" Ratio="0.010" Volume="0.600001"/>
</Animation>
</KeyFrames>
@@ -485,7 +485,7 @@ float3 ReinHard_ToneMapper(float3 vColor)
{
float k = 1.f;
vColor = (vColor / (vColor + k));
return pow(vColor, 1.f / 2.2f);
return vColor;
}
float3 Filmic_ToneMapper(float3 vColor)
@@ -501,7 +501,7 @@ float3 Filmic_ToneMapper(float3 vColor)
/ (vColor * (fC * vColor + fD) + fE)
);
return pow(vColor, 1.f / 2.2f);
return vColor;
}
@@ -82,7 +82,7 @@ Texture2D g_TileVelocityTexture;
int g_iMBSampleCount;
int g_iMBMaxSampleCount;
float g_fMBBlurRadius;
float g_fMBMaxBlurRadius;
int g_iMBType;
int g_iMBTileSize;
float g_fMBSampleBias;
@@ -254,8 +254,8 @@ struct PS_OUT_SSAO_BLUR
// g_fFar
// g_fMBSampleBias
// g_fMBBlurRadius
// g_iMBSampleCount
// g_iMBMaxSampleCount
// g_iMBSampleCount 실제 현재 프레임 모션블러 픽셀
// g_iMBMaxSampleCount 허용가능한 모션블러 픽셀
// g_iMBType
PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
{
@@ -269,39 +269,48 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
bool bBorrowedVelocityFromTile = false;
float2 vBlurVelo = vCenterVelo;
float2 vBlurVeloPixel = vCenterVeloPixel;
if (length(vBlurVeloPixel) < 0.5f) {
float2 vBlurVeloPixel = vCenterVeloPixel; // 프레임당 픽셀 이동량
float fVelocityEpsilon = 0.5f;
if (length(vBlurVeloPixel) < fVelocityEpsilon)
{
// 사실상 정지해 있던 픽셀이면 텐트벨로시티맵에서 빌려옴
vBlurVelo = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f;
vBlurVeloPixel = vBlurVelo * g_vResolution.xy;
bBorrowedVelocityFromTile = true;
}
if (length(vBlurVeloPixel) < 0.5f) {
if (length(vBlurVeloPixel) < fVelocityEpsilon) {
// 텐트벨로시티맵에서 빌려온 픽셀또한 정지해 있었으면 원본 그대로 반환
Out.vColor = g_ColorTexture.Sample(ClampLinearSampler, vCenterUV);
Out.vVelocity = float2(0.5f, 0.5f);
return Out;
}
float fPixelSpeed = length(vBlurVeloPixel);
float2 vBlurDirPixel = (vBlurVeloPixel / max(length(vBlurVeloPixel), FLT_EPSILON5));
int iMaxRadius = min(g_iMBSampleCount, g_iMBMaxSampleCount);
float2 vBlurDirPixel = (vBlurVeloPixel / max(fPixelSpeed, FLT_EPSILON5));
// 픽셀의 속도로 블러 반경을 가변적으로 돌림
float fBlurRadiusPixel = clamp(fPixelSpeed * 0.4f , 0.f, g_fMBMaxBlurRadius);
fBlurRadiusPixel = max(fBlurRadiusPixel, 1.f);
int iMaxRadius = (int)ceil(fBlurRadiusPixel);
iMaxRadius = clamp(iMaxRadius, 1, min(g_iMBSampleCount, g_iMBMaxSampleCount));
// 샘플링 당 이동 픽셀
float fSamplePixelSpeed = g_fMBBlurRadius / max((float) iMaxRadius, 1.f);
float fSamplePixelSpeed = fBlurRadiusPixel / max((float) iMaxRadius, 1.f);
// 샘플유닛의 크기
float fScalePixelToSampleUnit = (float) iMaxRadius / max(g_fMBBlurRadius, FLT_EPSILON5);
float fScalePixelToSampleUnit = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5);
float fScaleDepth = 0.5f / max(g_fMBSampleBias, FLT_EPSILON5);
float4 vAccColorSum = float4(0.f, 0.f, 0.f, 0.f);
float2 vAccVeloSum = float2(0.f, 0.f);
float fAccWeight = 0.f;
// 센터의 스프레드 길이
float2 vReferenceVelocityPixel = vCenterVeloPixel;
if (true == bBorrowedVelocityFromTile)
{
vReferenceVelocityPixel = vBlurVeloPixel;
}
float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, g_fMBBlurRadius);
float2 vReferenceVelocityPixel = bBorrowedVelocityFromTile ? vBlurVeloPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨
float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍
[loop]
for (int iInterval = -iMaxRadius; iInterval <= iMaxRadius; ++iInterval) {
@@ -318,7 +327,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
// 샘플의 스프레드 길이
float fBlurSampleAccurate = abs(dot(vSampledVeloPixel, vBlurDirPixel));
float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, g_fMBBlurRadius);
float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, fBlurRadiusPixel);
if (true == bBorrowedVelocityFromTile)
{
fSampleSpreadLengthPixel = max(fSampleSpreadLengthPixel, fCenterSpreadLengthPixel);
@@ -349,6 +358,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
Out.vVelocity = vBlurredVelo * 0.5f + 0.5f;
return Out;
}
PS_OUT_VELOCITYTILE PS_MOTIONBLUR_TILESAMPLE(PS_IN In)
{
PS_OUT_VELOCITYTILE Out = (PS_OUT_VELOCITYTILE) 0;
@@ -1225,12 +1235,10 @@ PS_OUT_FLT4_SINGLE PS_MAIN_FOG(PS_IN In)
PS_OUT_BACKBUFFER PS_TONE_MAPPING(PS_IN In)
{
PS_OUT_BACKBUFFER Out;
vector vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord);
vColor *= g_fToneMappingExposure;
vColor = pow(vColor, 2.2f);
switch (g_iToneMappingType) {
case 0:
vColor = pow(vColor, 1.f/2.2f);
vColor /= g_fToneMappingExposure;
break;
case 1:
@@ -115,8 +115,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
row_major matrix ProjMatrix;
float2 vScreenSize;
float fPadding0;
bool isInstanceBillboard;
float fPadding1;
float4 vCamposition;
}
//내가 몇개의 스레드를 사용할 것인지 지정하는데
@@ -558,6 +560,26 @@ void CS_MAIN(
if (length(particleValue.vVelocity) > FLT_EPSILON5)
particle.vTranslation.xyz += fRatio * particleValue.vVelocity;
if (isInstanceBillboard == true)
{
float3 vBillboardLook = normalize(vCamposition.xyz - particle.vTranslation.xyz);
float3 vBillboardRight = normalize(cross(float3(0.f, 1.f, 0.f), vBillboardLook));
float3 vBillboardUp = normalize(cross(vBillboardLook, vBillboardRight));
float fLengthRight = length(particle.vRight);
float fLengthUp = length(particle.vUp);
float fLengthLook = length(particle.vLook);
matrix BillBoardMat = { vector(vBillboardRight, 0.f), vector(vBillboardUp, 0.f), vector(vBillboardLook, 0.f), vector(0.f, 0.f, 0.f, 1.f) };
matrix LocalRotMat = { normalize(particleValue.vOriginRight) * fLengthRight, normalize(particleValue.vOriginUp) * fLengthUp, normalize(particleValue.vOriginLook) * fLengthLook, vector(0.f, 0.f, 0.f, 1.f) };
matrix CombinedMat = mul(LocalRotMat, BillBoardMat);
particle.vRight = CombinedMat[0];
particle.vUp = CombinedMat[1];
particle.vLook = CombinedMat[2];
}
if (isSizeMove == true)
{
float3 CurLength =
@@ -596,6 +618,7 @@ void CS_MAIN(
}
//애니메이션 속도 , 인덱스
if (isRandomAniIndex == false)

Some files were not shown because too many files have changed in this diff Show More