Sped up maze levels. Fixed an unhinged world deserialization listener.

This commit is contained in:
Nick Winter 2014-10-14 11:53:32 -07:00
parent ee9e32af51
commit 04ec8c5222
2 changed files with 3 additions and 1 deletions

View file

@ -124,7 +124,7 @@ module.exports = class Angel extends CocoClass
@shared.lastSerializedWorldFrames = serialized.frames
finishBeholdingWorld: (goalStates) -> (world) =>
return if @aborting
return if @aborting or @destroyed
finished = world.frames.length is world.totalFrames
firstChangedFrame = world.findFirstChangedFrame @shared.world
eventType = if finished then 'god:new-world-created' else 'god:streaming-world-updated'

View file

@ -100,6 +100,8 @@ module.exports = class World
@loadFrames(loadedCallback, errorCallback, loadProgressCallback, preloadedCallback, skipDeferredLoading, loadUntilFrame) unless @destroyed
if @realTime and not @countdownFinished
if @levelID in ['the-first-kithmaze', 'the-second-kithmaze', 'the-final-kithmaze']
@realTimeSpeedFactor = 5
else if @levelID in ['kithgard-gates']
@realTimeSpeedFactor = 3
else
@realTimeSpeedFactor = 1