Initial commit

This commit is contained in:
Oleksiy
2021-07-27 22:23:57 +03:00
commit 6cf84a1951
208 changed files with 4053 additions and 0 deletions

19
Menu.gd Normal file
View File

@ -0,0 +1,19 @@
extends Node2D
onready var start_button = $TextureButton
func _ready():
start_button.connect("pressed", self, "start_game")
func _process(_delta):
var t = Timer.new()
t.set_wait_time(.1)
t.set_one_shot(true)
self.add_child(t)
t.start()
yield(t, "timeout")
if Input.is_action_just_pressed("ui_accept") == true:
start_game()
func start_game():
get_tree().change_scene("res://Level.tscn")