game: add xp orbs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://ca2so8fm3q8fe"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://ca2so8fm3q8fe"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://5x5wimok8uw2" path="res://assets/sprites/roguelikeChar_transparent.png" id="1_3vyb7"]
|
||||
[ext_resource type="Script" uid="uid://cvqaxckx4num3" path="res://scenes/player.gd" id="1_g2els"]
|
||||
@@ -7,6 +7,9 @@
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_3vyb7"]
|
||||
radius = 8.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_qhqgy"]
|
||||
radius = 8.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D" groups=["damagable", "player"]]
|
||||
collision_layer = 0
|
||||
script = ExtResource("1_g2els")
|
||||
@@ -21,3 +24,13 @@ shape = SubResource("CircleShape2D_3vyb7")
|
||||
|
||||
[node name="AttackSword" parent="." node_paths=PackedStringArray("player") instance=ExtResource("3_qhqgy")]
|
||||
player = NodePath("..")
|
||||
|
||||
[node name="PickupArea" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 8
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickupArea"]
|
||||
shape = SubResource("CircleShape2D_qhqgy")
|
||||
|
||||
[connection signal="area_entered" from="PickupArea" to="." method="_on_pickup_area_area_entered"]
|
||||
|
Reference in New Issue
Block a user