mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-02 11:41:15 +00:00
Keycards and mapping
This commit is contained in:
parent
204d7ca9da
commit
fbe8a52e06
20 changed files with 446 additions and 38 deletions
45
Scenes/Items/Yellow_Keycard.tscn
Normal file
45
Scenes/Items/Yellow_Keycard.tscn
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://8yggb3ay3hr0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3h7b30kerf60" path="res://Scripts/Interactables/ItemPickup.cs" id="1_3cfwm"]
|
||||
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_ydogx"]
|
||||
[ext_resource type="Resource" uid="uid://b2vyr1tcm4rc1" path="res://Resources/Items/Yellow_Keycard.tres" id="3_chik2"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckpehix3prcx5" path="res://Sprites/Items/YellowKeycard_Small.png" id="4_chik2"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ydogx"]
|
||||
atlas = ExtResource("4_chik2")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_spl5h"]
|
||||
atlas = ExtResource("4_chik2")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ecs5y"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ydogx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_spl5h")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="YellowKeyCard" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_3cfwm")
|
||||
LootTable = Array[ExtResource("2_ydogx")]([ExtResource("3_chik2")])
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_6vv2s")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_ecs5y")
|
||||
autoplay = "default"
|
||||
frame = 1
|
||||
frame_progress = 0.173295
|
||||
Loading…
Add table
Add a link
Reference in a new issue