您的位置: 单机 > 攻略 > 图文攻略 > 攻略详情

星界边境跃迁显示代码一览 飞船跃迁滚动代码内容

时间:2016-09-07 11:06:21
  • 来源:L丶V丨临灬渊
  • 作者:售梦者
  • 编辑:售梦者
0

下面是文和图。有需要的拿去。虽然我觉得没有多少个人像我一样有这种需要……

截图:


转成文本内容:

Void Sky::update(unit64_tcurrtStep) {

m_netStates.updateStep(currentStep);)

Double dt = WorldTimesetp

If (m_referenceClock) {

double clockTime = m_referenceClock-}time();

If

(isnan(m_clockTrackingTime)) {

M_clockTrackingTime =

clockTime;

} else {

//if our reference clock is set,and we have a valid tracking time ,then

//slowly adjust time towards the tracking time based on the

// ‘clockTrackingFctor’setting.

Double clockDiff = clockTime -

M_clockTrackingTime;

Double adjustment =

clockDiff *

m_settings.queryDouble(“clock

TrackingFactor”);

Dt = adjustmen;

M_clockTrackingTime +=

Adjustment;

}

}

M_time += dt;

m_flashTimer = std::max(0.0,

M_flashTimer - dt);

If (flying()) {

m_flyingTimer += dt;

If (m_flyingType ==

FlyingType::Disembarking) {

Bool finished =

M_starOffset -=

M_starOffset *

M_settings.queryFloat(“correctionPower”);

M+planetOffset -=

M_planetOffset *

M_settings.queryFloat(“correctionPower”);

} else if (m_flyingType ==

FlyingType::Interstellar) {

M_flyingVelocity +=

M_flyingAccel *dt *

(int)m_interstellarPhase;

If (m_interstellarPhase)

== InterstellarPhase::Maintain)

{

M_flyingVelocity =

M_settings.queryFloat(“flyMax

Velocity”);

tionPower”);

] else if (m_flyingType ==

FlyingType::Interstellar) [

M_flyingVelocity +=

M_flyingAccel * dt *

(int)m_interstellarPhase::Maintain)

{

M_flyingVelocity =

M_settings.queryFloat(“flyMax

Velocity”);

} else {

M_flyingVelocity =

Clamp(m_flyingVelocity, 0.0f,

M_settings.queryFloat(“flyMaxVelocity”));

}

M_starOffset +=

Vec2F::withAngel(--

getStarRotation(),

M_flyingVelocity * dt *

M_settings.queryFloat(“starVelocityFactor”);

M_planetOffset +=

Vec2F::withAngel(--

getPlanetRotation(),

M_flyingVelocity *dt);

If (m_interstellarPhase)

InterstellarPhase::SpeedingUp

&& m_flyingTimer >=

M_settings.queryFloat(“speedupTimer”)) {

enterHyperspace();

9.3
已有99人评分 您还未评分!
  • 类型:动作角色
  • 发行:Chucklefish
  • 发售:2016-07-22
  • 开发:Chucklefish
  • 语言:英文
  • 平台:PC
  • 标签:魔幻卡通XGP游戏列表

玩家点评 0人参与,0条评论)

收藏
违法和不良信息举报
分享:

热门评论

全部评论

Steam正版购买
今日特惠星界边境
星界边境
-31%¥48¥33
立即购买
3DM自运营游戏推荐 更多+