This commit is contained in:
pennyrigate 2025-07-19 16:54:36 -04:00
commit 6a269eb236
97 changed files with 2137 additions and 0 deletions

View file

@ -0,0 +1,12 @@
extends Node2D
@export var score = 0
const PARTICLES = preload("res://objects/scoreitem/scoreitem_particles.tscn")
func _on_area_2d_area_entered(area: Area2D) -> void:
if area.is_in_group("player_hitbox"):
GlobalFunctions.queue_score(score)
var particles = PARTICLES.instantiate()
particles.global_position = global_position
get_owner().add_child(particles)
queue_free()