Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / map / RoomDoor.tscn
@小李xl 小李xl on 29 May 2023 1 KB 资源移动位置
[gd_scene load_steps=10 format=3 uid="uid://dswcawdc85pgq"]

[ext_resource type="Script" path="res://src/framework/activity/ActivityObjectTemplate.cs" id="1_8es7a"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_d8jnk"]
[ext_resource type="Texture2D" uid="uid://dviv44fhwvkb1" path="res://resource/sprite/map/map1/door1_down.png" id="3_knmoy"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_x5aop"]
resource_local_to_scene = true
shader = ExtResource("2_d8jnk")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1

[sub_resource type="ShaderMaterial" id="ShaderMaterial_f8vun"]
resource_local_to_scene = true
shader = ExtResource("2_d8jnk")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0

[sub_resource type="AtlasTexture" id="AtlasTexture_wfl7i"]
atlas = ExtResource("3_knmoy")
region = Rect2(32, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_j20kt"]
atlas = ExtResource("3_knmoy")
region = Rect2(32, 32, 16, 48)

[sub_resource type="SpriteFrames" id="SpriteFrames_ugstb"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_wfl7i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j20kt")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_lvvwj"]
resource_local_to_scene = true
size = Vector2(32, 23)

[node name="RoomDoor" type="Node"]
script = ExtResource("1_8es7a")
collision_layer = 1
z_index = 15

[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_x5aop")
position = Vector2(0, 8)

[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_f8vun")
position = Vector2(0, -8)
sprite_frames = SubResource("SpriteFrames_ugstb")

[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2(0, -3.5)
shape = SubResource("RectangleShape2D_lvvwj")