game: add xp orbs
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://du4dqne3o0d5b"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://du4dqne3o0d5b"]
|
||||
|
||||
[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"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_me6n8"]
|
||||
radius = 7.0
|
||||
|
||||
[node name="XPOrb" type="Node2D" groups=["xp_orb"]]
|
||||
script = ExtResource("1_me6n8")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_pkphv")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
collision_layer = 9
|
||||
monitoring = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("CircleShape2D_me6n8")
|
||||
|
Reference in New Issue
Block a user