Started working on act1

This commit is contained in:
Segey Lapin
2019-08-10 04:20:04 +03:00
parent 59e0b46384
commit 952020998a
5 changed files with 109 additions and 20 deletions

20
proto2/ui/act1_start.gd Normal file
View File

@@ -0,0 +1,20 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
var delay: float = 8.0
func _process(delta):
if delay < 0.0:
var sc = load("res://main.tscn")
world.init_data()
get_tree().change_scene_to(sc)
delay -= delta