1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-23 05:04:19 +00:00
the-cold-night/src/levels/Game.gd

15 lines
294 B
GDScript3
Raw Normal View History

extends Node2D
var survival_seconds: float setget set_survival_seconds
signal survival_seconds_updated(value)
func set_survival_seconds(value):
survival_seconds = value
emit_signal("survival_seconds_updated", value)
func _process(delta):
set_survival_seconds(survival_seconds + delta)