[add] SceneSkip
This commit is contained in:
@@ -24,7 +24,8 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
return;
|
||||
}
|
||||
Transition(fTimeDelta);
|
||||
const _float fFixedDebugTimeDelta = 1.f / 60.f;
|
||||
Transition(fFixedDebugTimeDelta);
|
||||
_float3 vCamPos = {};
|
||||
_float3 vSetPos = {};
|
||||
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
@@ -39,22 +40,22 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
#pragma region Position
|
||||
_float fSpeed = 5.f;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W)) {
|
||||
m_pTransformCom->Go_Straight(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Straight(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A)) {
|
||||
m_pTransformCom->Go_Left(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Left(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_S)) {
|
||||
m_pTransformCom->Go_Backward(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Backward(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_D)) {
|
||||
m_pTransformCom->Go_Right(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Right(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_SPACE)) {
|
||||
m_pTransformCom->Go_Up(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Up(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_C)) {
|
||||
m_pTransformCom->Go_Down(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Down(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_TAB)) {
|
||||
Set_InitialPos();
|
||||
@@ -81,8 +82,8 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
#pragma region Angle
|
||||
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta * fMove.x * m_fMouseSensor);
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fTimeDelta * fMove.y * m_fMouseSensor);
|
||||
m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fFixedDebugTimeDelta * fMove.x * m_fMouseSensor);
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fFixedDebugTimeDelta * fMove.y * m_fMouseSensor);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ CCutSceneInfo::CCutSceneInfo()
|
||||
}
|
||||
void CCutSceneInfo::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Pressing(DIK_LCONTROL) && m_pGameInstance->Key_Pressing(DIK_RCONTROL) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)&& m_pGameInstance->Key_Pressing(DIK_RSHIFT) && m_pGameInstance->Key_Pressing(DIK_LALT) && m_pGameInstance->Key_Pressing(DIK_RALT)) {
|
||||
Set_AllActiveEventsExit();
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -572,3 +575,14 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
|
||||
m_pInfoInstance->Load_Events(pairResult);
|
||||
}
|
||||
|
||||
void CCutSceneInfo::Set_AllActiveEventsExit()
|
||||
{
|
||||
map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin();
|
||||
for (; iter != m_funcActiveEvents.end();++iter) {
|
||||
for (list<CTimeSocket*>::iterator socketIter = (*iter).second->m_Sockets.begin();
|
||||
socketIter != (*iter).second->m_Sockets.end(); ++socketIter) {
|
||||
(*socketIter)->Trigger(1.f - FLT_EPSILON);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ HRESULT CMapElement_Cave::Ready_TriggerBox()
|
||||
CTriggerBox::TRIGGERBOX_DESC Desc = {};
|
||||
|
||||
XMStoreFloat4(&Desc.vPosition_Radius, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
Desc.vPosition_Radius.w = 10.f;
|
||||
Desc.vPosition_Radius.w = 3.f;
|
||||
|
||||
m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc);
|
||||
|
||||
|
||||
@@ -196,7 +196,6 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta)
|
||||
m_fFontSize = 0;
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pBoxInfo.fPosition));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CNPCInteraction::Update(_float fTimeDelta)
|
||||
|
||||
@@ -25,7 +25,7 @@ class CCutSceneInfo final : public CBase
|
||||
void Active_Event(_string& strKey);
|
||||
HRESULT DeActive_ActiveEvent(_string& strKey);
|
||||
void Load_Events(pair<_string, TimeLine*>& pairTimeLine);
|
||||
HRESULT Clear_AllEvents();
|
||||
HRESULT Clear_AllEvents();
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -40,6 +40,7 @@ class CCutSceneInfo final : public CBase
|
||||
void Update_WaitEvents(_float fTimeDelta);
|
||||
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
void Load_CutSceneXML(const string& path);
|
||||
void Set_AllActiveEventsExit();
|
||||
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user