Relax succubus arms, strengthen idle and allow Space to skip intro
This commit is contained in:
@@ -41,5 +41,20 @@ func run(g):
|
||||
assert(not g.intro.active)
|
||||
g.intro.begin();g.reset_shift()
|
||||
assert(not g.intro.active and not g.intro.voice.playing and not g.avatar.cinematic_idle)
|
||||
# Space skips during lead, speech and camera return without leaking gameplay input.
|
||||
for phase in ["lead","voice","tail"]:
|
||||
g.intro.begin()
|
||||
if phase!="lead":g.intro.update(2.1)
|
||||
if phase=="tail":g.intro._voice_finished();g.intro.update(.3)
|
||||
var before_coins=g.coins;var before_position=g.player.position
|
||||
var release=InputEventKey.new();release.keycode=KEY_SPACE;release.pressed=false
|
||||
g._input(release);assert(g.intro.active)
|
||||
var echo=InputEventKey.new();echo.keycode=KEY_SPACE;echo.pressed=true;echo.echo=true
|
||||
g._input(echo);assert(g.intro.active)
|
||||
var skip=InputEventKey.new();skip.keycode=KEY_SPACE;skip.physical_keycode=KEY_SPACE;skip.pressed=true
|
||||
g._input(skip)
|
||||
assert(not g.intro.active and not g.intro.voice.playing and not g.paused and g.hud.visible)
|
||||
assert(not g.avatar.cinematic_idle and is_equal_approx(g.camera.size,20))
|
||||
assert(g.coins==before_coins and g.player.position==before_position and g.orbit.keys.is_empty())
|
||||
print("PASS: intro full recording, 2s lead/tail, input lock, camera restore, suspend, resume and reset (%d ms)" % (Time.get_ticks_msec()-start))
|
||||
g.get_tree().quit()
|
||||
|
||||
Reference in New Issue
Block a user