2 Commits
v1.7 ... v1.8

Author SHA1 Message Date
2d7a427ba2 Update Main.gd 2019-01-25 00:06:31 +01:00
19e64e3948 fix flashtext 2019-01-24 23:50:06 +01:00
4 changed files with 17 additions and 19 deletions

View File

@ -10,7 +10,7 @@ func print(text):
$AnimationPlayer.play("Flash") $AnimationPlayer.play("Flash")
func _on_AnimationPlayer_animation_finished(anim_name): func _on_AnimationPlayer_animation_finished(anim_name):
texts.resize(0) texts = PoolStringArray()
func _on_Stats_flash_text(text): func _on_Stats_flash_text(text):
self.print(text) self.print(text)

View File

@ -83,20 +83,9 @@ func _unhandled_input(event):
$AutoShiftDelay.stop() $AutoShiftDelay.stop()
$AutoShiftTimer.stop() $AutoShiftTimer.stop()
autoshift_action = "" autoshift_action = ""
for action in movements: process_new_action(Input)
if Input.is_action_pressed(action): else:
autoshift_action = action process_new_action(event)
process_autoshift()
$AutoShiftDelay.start()
break
for action in movements:
if action != autoshift_action:
if event.is_action_pressed(action):
$AutoShiftTimer.stop()
autoshift_action = action
process_autoshift()
$AutoShiftDelay.start()
break
if event.is_action_pressed("hard_drop"): if event.is_action_pressed("hard_drop"):
hard_drop() hard_drop()
if event.is_action_pressed("rotate_clockwise"): if event.is_action_pressed("rotate_clockwise"):
@ -106,6 +95,15 @@ func _unhandled_input(event):
if event.is_action_pressed("hold"): if event.is_action_pressed("hold"):
hold() hold()
func process_new_action(event):
for action in movements:
if action != autoshift_action and event.is_action_pressed(action):
$AutoShiftTimer.stop()
autoshift_action = action
process_autoshift()
$AutoShiftDelay.start()
break
func _on_AutoShiftDelay_timeout(): func _on_AutoShiftDelay_timeout():
if autoshift_action: if autoshift_action:
process_autoshift() process_autoshift()

View File

@ -443,10 +443,10 @@ anchor_left = 1.0
anchor_top = 1.0 anchor_top = 1.0
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
margin_left = -215.0 margin_left = -170.0
margin_top = -100.0 margin_top = -90.0
margin_right = -90.0 margin_right = -45.0
margin_bottom = -60.0 margin_bottom = -50.0
rect_pivot_offset = Vector2( 0, 0 ) rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false rect_clip_content = false
focus_mode = 2 focus_mode = 2

Binary file not shown.