mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-18 11:03:47 +00:00
Power Pickup
This commit is contained in:
parent
e6c880e918
commit
5e4c82c9e7
9 changed files with 166 additions and 1 deletions
34
Scenes/Items/Power_Pickup.tscn
Normal file
34
Scenes/Items/Power_Pickup.tscn
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://dtuu2oo6qyo73"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Interactables/ItemPickup.cs" id="1_p3rh6"]
|
||||
[ext_resource type="Resource" uid="uid://clr1gln7nxa1o" path="res://Resources/Items/Power_Pickup.tres" id="2_yhlj7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjdsi4x8m42ky" path="res://Sprites/Items/Power_Pickup.png" id="3_o2lex"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7bs76"]
|
||||
atlas = ExtResource("3_o2lex")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_y2inf"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7bs76")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="Power" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_p3rh6")
|
||||
LootTable = [ExtResource("2_yhlj7")]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_6vv2s")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_y2inf")
|
||||
Loading…
Add table
Add a link
Reference in a new issue