mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-07-12 18:43:49 +00:00
feat(*): Add new match scene, new player scene and main menu
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
extends Label3D
|
||||
|
||||
var time_left : int = 10
|
||||
|
||||
func _ready():
|
||||
$".".text = "Time left: " + str(time_left) + "s"
|
||||
func _on_time_left_timer_timeout():
|
||||
time_left -= 1
|
||||
$".".text = "Time left: " + str(time_left) + "s"
|
||||
print(time_left)
|
||||
|
||||
if time_left == 0:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
get_tree().change_scene_to_file("res://scenes/main_menu.tscn")
|
||||
Reference in New Issue
Block a user