Diffstat (limited to 'ui/scripts/StartMenu.gd')
-rw-r--r--ui/scripts/StartMenu.gd24
1 files changed, 0 insertions, 24 deletions
diff --git a/ui/scripts/StartMenu.gd b/ui/scripts/StartMenu.gd
deleted file mode 100644
index 0cd31e2..0000000
--- a/ui/scripts/StartMenu.gd
+++ /dev/null
@@ -1,24 +0,0 @@
-extends Node
-var USE_TOUCH = OS.has_touchscreen_ui_hint()
-var on = false
-
-onready var highscoreLabel = $Label
-
-
-func _input(event):
- if on:
- if event.is_action("shoot_1"):
- Game.transition("res://world/World.tscn")
- if event.is_action("ui_cancel"):
- Game.exit()
-
-
-func _ready():
- var save_data = SaveAndLoad.load_data_from_file()
- highscoreLabel.text = "Highscore = " + str(save_data.highscore)
- if USE_TOUCH:
- $MobileControls/Attack.visible = true
- $AnimatedSprite.play("default")
- $MobileControls/Attack.visible = USE_TOUCH
- yield(get_tree().create_timer(.3), "timeout")
- on = true