StormyExtraction/scenes/game/mainGame/main_game.gd

15 lines
384 B
GDScript

extends Node2D
@onready var stormTimer = $StormTimer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
stormTimer.start(randi_range(G.GAMETIME.MIN, G.GAMETIME.MAX))
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_storm_timer_timeout() -> void:
print("Storm")