Interactable Chest Collision

This commit is contained in:
Marco 2025-01-29 14:54:01 +01:00
commit 686dea6c8d
8 changed files with 95 additions and 22 deletions

View file

@ -1,8 +1,33 @@
[gd_scene load_steps=2 format=3 uid="uid://chkpk7erlqajg"]
[gd_scene load_steps=5 format=3 uid="uid://chkpk7erlqajg"]
[ext_resource type="Texture2D" uid="uid://kgs1d0m47u3g" path="res://Sprites/selector.png" id="1_ui0xt"]
[ext_resource type="Texture2D" uid="uid://dde36pgb8fbwc" path="res://Sprites/selector_big.png" id="1_cc7mb"]
[sub_resource type="AtlasTexture" id="AtlasTexture_gc2o5"]
atlas = ExtResource("1_cc7mb")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_goaai"]
atlas = ExtResource("1_cc7mb")
region = Rect2(16, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_kehny"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_gc2o5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_goaai")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Selector" type="Node2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_ui0xt")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
z_index = -5
sprite_frames = SubResource("SpriteFrames_kehny")
frame = 1
frame_progress = 0.18995