feat: Implement a skill pickup system with a new collectable type, event handling, and dedicated pickup objects.
This commit is contained in:
34
objects/entities/double_jump_skill_pickup.tscn
Normal file
34
objects/entities/double_jump_skill_pickup.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dk2cu8qs7odib"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_214vd"]
|
||||
[ext_resource type="Script" uid="uid://r4jybneigfcn" path="res://scripts/components/CollectableComponent.cs" id="2_h7fi3"]
|
||||
[ext_resource type="Script" uid="uid://bjln6jb1sigx2" path="res://scripts/components/FadeAwayComponent.cs" id="3_b687r"]
|
||||
[ext_resource type="Resource" path="res://resources/collectables/double_jump_pickup.tres" id="3_h7fi3"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_pickup"]
|
||||
radius = 12.0
|
||||
|
||||
[node name="SkillPickup" type="Area2D" groups=["Collectables"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_pickup")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_214vd")
|
||||
hframes = 12
|
||||
vframes = 12
|
||||
frame = 24
|
||||
|
||||
[node name="CollectableComponent" type="Node" parent="." node_paths=PackedStringArray("Area2D", "CollisionShape")]
|
||||
script = ExtResource("2_h7fi3")
|
||||
Area2D = NodePath("..")
|
||||
CollisionShape = NodePath("../CollisionShape2D")
|
||||
Data = ExtResource("3_h7fi3")
|
||||
|
||||
[node name="FadeAwayComponent" type="Node" parent="." node_paths=PackedStringArray("Sprite", "Area")]
|
||||
script = ExtResource("3_b687r")
|
||||
Sprite = NodePath("../Sprite2D")
|
||||
FadeDuration = 0.5
|
||||
Area = NodePath("..")
|
||||
Reference in New Issue
Block a user