game: add group for xp orbs

This commit is contained in:
2025-08-19 15:33:22 +02:00
parent 42fd207906
commit 9f5f628891
3 changed files with 3 additions and 1 deletions

View File

@@ -14,3 +14,4 @@ signal sig_stop_spawning(value: bool)
const GROUP_ENEMY = "enemy"
const GROUP_DAMAGEABLE = "damagable"
const GROUP_PLAYER = "player"
const GROUP_XP_ORB = "xp_orb"

View File

@@ -31,6 +31,7 @@ window/stretch/scale_mode="integer"
player="Group containing current player"
enemy="Group containing all enemies"
damagable="Can be damaged using take_damage"
xp_orb="Experience orbs"
[input]

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" uid="uid://bx43us4qd2vpf" path="res://scenes/xp_orb.gd" id="1_me6n8"]
[ext_resource type="Texture2D" uid="uid://crty0t7ryksqn" path="res://assets/sprites/xp_orb.png" id="1_pkphv"]
[node name="XPOrb" type="Node2D"]
[node name="XPOrb" type="Node2D" groups=["xp_orb"]]
script = ExtResource("1_me6n8")
[node name="Sprite2D" type="Sprite2D" parent="."]