INNER CODE UNIT · C++

delta

camila314/gdp · GJBaseGameLayer/GJBaseGameLayer_update.cpp:61

        delta = this->getModifiedDelta(delta);
    } else {
        m_deltaRemainder = 0; 
    }

    float warpDelta = (delta / m_timewarp);

    if (m_gameStarted && m_resumeAudioTimer < 1) {
        if (delta > 0.0) {
            m_player1->m_bool_934 = false;
            m_player2->m_bool_934 = false;
            if (!m_player1->m_didReset) {
                m_player1->setPosition(m_player1->m_position);
            }
            if (m_isTwoPlayer && !m_player2->m_didReset) {
                m_player2->setPosition(m_player2->m_position);
            }
            int stepCount = fmax(1.0, (delta * 240.0) / fmin(m_timewarp, 1));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…