xiandie/scene/shading/ghost.tscn

59 lines
1.8 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://h0s5ms7r7d8g"]
[ext_resource type="Shader" path="res://scene/shading/ghost.gdshader" id="1_n4q4i"]
[ext_resource type="Texture2D" uid="uid://wvnpr0w3srtr" path="res://asset/art/临时草稿/ghost-sheet.png" id="2_vp102"]
[ext_resource type="Texture2D" uid="uid://bc64s5xfysrc3" path="res://asset/art/scene/c01/s07_书店外/bg_书店外_夜晚.png" id="4_lap87"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fv2fx"]
shader = ExtResource("1_n4q4i")
shader_parameter/shake_power = 0.01
shader_parameter/shake_rate = 1.0
shader_parameter/shake_speed = 6.0
shader_parameter/shake_block_size = 5.0
shader_parameter/shake_color_rate = 0.005
[sub_resource type="AtlasTexture" id="AtlasTexture_vaq88"]
atlas = ExtResource("2_vp102")
region = Rect2(0, 0, 256, 256)
[sub_resource type="AtlasTexture" id="AtlasTexture_mh23v"]
atlas = ExtResource("2_vp102")
region = Rect2(256, 0, 256, 256)
[sub_resource type="AtlasTexture" id="AtlasTexture_5x2re"]
atlas = ExtResource("2_vp102")
region = Rect2(512, 0, 256, 256)
[sub_resource type="SpriteFrames" id="SpriteFrames_fqswq"]
animations = [{
"frames": [{
"duration": 3.0,
"texture": SubResource("AtlasTexture_vaq88")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mh23v")
}, {
"duration": 2.0,
"texture": SubResource("AtlasTexture_5x2re")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Ghost" type="AnimatedSprite2D"]
material = SubResource("ShaderMaterial_fv2fx")
position = Vector2(135, 129)
sprite_frames = SubResource("SpriteFrames_fqswq")
autoplay = "default"
frame_progress = 0.983059
[node name="BackBufferCopy" type="BackBufferCopy" parent="."]
copy_mode = 2
[node name="Sprite2D" type="Sprite2D" parent="."]
visible = false
show_behind_parent = true
position = Vector2(595, -10)
texture = ExtResource("4_lap87")