chill out bro:

This commit is contained in:
pennyrigate 2025-03-01 19:49:37 -05:00
parent cbbf55a48a
commit ddd02953da
10 changed files with 178 additions and 7 deletions

20
objects/ice/ice.gd Normal file
View file

@ -0,0 +1,20 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_area_2d_body_entered(body: Node2D) -> void:
if body is Player:
body.ices_touched += 1
func _on_area_2d_body_exited(body: Node2D) -> void:
body.ices_touched -= 1