mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-22 15:44:21 +00:00
20 lines
431 B
GDScript3
20 lines
431 B
GDScript3
|
extends Node2D
|
||
|
var conta_soldi: int = 0
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
pass # Replace with function body.
|
||
|
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
func _process(delta):
|
||
|
pass
|
||
|
|
||
|
|
||
|
func _on_ingresso_body_shape_entered(body_rid, body, body_shape_index, local_shape_index):
|
||
|
body.queue_free()
|
||
|
conta_soldi+=1
|
||
|
if conta_soldi>=10:
|
||
|
conta_soldi=0
|
||
|
|