1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-24 09:04:21 +00:00
This commit is contained in:
Steffo 2023-11-25 21:29:45 +01:00
parent fd0db1476b
commit e2c400ee9e
3 changed files with 400 additions and 11 deletions

View file

@ -3,10 +3,17 @@ class_name GameTimer
var current_time := 0.0
var stopped: bool = false
@onready var parent: Label = get_parent()
func _process(delta):
if not stopped:
current_time += delta
parent.text = "%0.2f" % current_time
func _on_dialog_6_body_entered(body):
if body is Player:
stopped = true

View file

@ -30,6 +30,9 @@ func on_banana():
func _physics_process(delta):
velocity.x *= friction
velocity.z *= friction
# Refilla salto
if is_on_floor():
refill_jumps()

397
Root.tscn

File diff suppressed because one or more lines are too long