mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-03 15:21:16 +00:00
Keycards and mapping
This commit is contained in:
parent
204d7ca9da
commit
fbe8a52e06
20 changed files with 446 additions and 38 deletions
|
|
@ -1,19 +1,54 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://byjq8xpx4crfd"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://byjq8xpx4crfd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_qh7tc"]
|
||||
[ext_resource type="Resource" uid="uid://cj5aa7btaw6q0" path="res://Resources/Items/Blue_Keycard.tres" id="2_0wao8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bc1383k5nnuyy" path="res://Sprites/Actors/Blue_Card_Reader.png" id="3_bdcur"]
|
||||
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_k5c4k"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1hcyxn2og2kq" path="res://Sprites/Actors/Key_Reader.png" id="4_ma3tr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsf7jj36mk0xp" path="res://Sprites/Actors/KeyReaderOverlay.png" id="5_mcwj3"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_vvpve"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1r0vh"]
|
||||
atlas = ExtResource("4_ma3tr")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vnkqd"]
|
||||
atlas = ExtResource("4_ma3tr")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_330vc"]
|
||||
atlas = ExtResource("4_ma3tr")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ck7ns"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1r0vh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vnkqd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_330vc")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="KeycardReaderBlue" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_qh7tc")
|
||||
Requirements = [ExtResource("2_0wao8")]
|
||||
Requirements = Array[ExtResource("2_k5c4k")]([ExtResource("2_0wao8")])
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_vvpve")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("3_bdcur")
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_ck7ns")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="AnimatedSprite2D"]
|
||||
modulate = Color(0, 0.329412, 0.984314, 1)
|
||||
texture = ExtResource("5_mcwj3")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue