Title screen and credits

Also skipping with space. Nice.
This commit is contained in:
Paul Norberger
2020-04-18 15:41:11 +02:00
parent 4d696c0cea
commit 766a18d9f4
7 changed files with 299 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
extends Node2D
export(String, FILE, "*.tscn,*.scn") var scene_to_load = ""
onready var animation_player = $AnimationPlayer
func _process(delta):
if Input.is_action_pressed("skip"):
animation_player.playback_speed = 8.0
else:
animation_player.playback_speed = 1.0
func _on_AnimationPlayer_animation_finished(anim_name):
get_tree().change_scene(scene_to_load)