Wicked-Depths/plr.tscn

345 lines
9.5 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=32 format=3 uid="uid://bdncoo2t66e58"]
[ext_resource type="Script" path="res://plr.gd" id="1_ub5ic"]
[ext_resource type="Texture2D" uid="uid://dvrxgvepbbhl7" path="res://silly_fella.png" id="2_hijeb"]
[ext_resource type="Material" uid="uid://btj4q14v2jd0t" path="res://vingette.tres" id="3_2p62w"]
[ext_resource type="Script" path="res://scroll.gd" id="3_vv75q"]
[ext_resource type="Texture2D" uid="uid://45fgpfmo6jpm" path="res://sheet1.png" id="4_id5lh"]
[ext_resource type="Script" path="res://typewrite.gd" id="5_68akq"]
[ext_resource type="Theme" uid="uid://doj6uvro8nygh" path="res://plr.tres" id="6_qo7h3"]
[ext_resource type="Texture2D" uid="uid://btw7cy3q5fxng" path="res://explorer.png" id="7_d3k28"]
[ext_resource type="AudioStream" uid="uid://bdpql7v8x0ajy" path="res://beep.wav" id="7_d3xbw"]
[ext_resource type="Shader" path="res://blur.gdshader" id="9_axrdm"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xil0x"]
size = Vector2(6, 15)
[sub_resource type="AtlasTexture" id="AtlasTexture_yljtm"]
atlas = ExtResource("2_hijeb")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_t5nf3"]
atlas = ExtResource("2_hijeb")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_odf15"]
atlas = ExtResource("2_hijeb")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_d2unb"]
atlas = ExtResource("2_hijeb")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jm6aj"]
atlas = ExtResource("2_hijeb")
region = Rect2(112, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_p3ah2"]
atlas = ExtResource("2_hijeb")
region = Rect2(144, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_7kh7l"]
atlas = ExtResource("2_hijeb")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ds08w"]
atlas = ExtResource("2_hijeb")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_708w7"]
atlas = ExtResource("2_hijeb")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_mpv1h"]
atlas = ExtResource("2_hijeb")
region = Rect2(128, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_q5dbt"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yljtm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t5nf3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_odf15")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t5nf3")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_d2unb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jm6aj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d2unb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p3ah2")
}],
"loop": false,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7kh7l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ds08w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_708w7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ds08w")
}],
"loop": true,
"name": &"move",
"speed": 7.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_mpv1h")
}],
"loop": true,
"name": &"wall",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1r4pd"]
size = Vector2(1.5, 12.5)
[sub_resource type="AtlasTexture" id="AtlasTexture_hdeoh"]
atlas = ExtResource("4_id5lh")
region = Rect2(335, 220, 114, 53)
[sub_resource type="AtlasTexture" id="AtlasTexture_vvr4i"]
atlas = ExtResource("4_id5lh")
region = Rect2(401, 192, 14, 11)
[sub_resource type="AtlasTexture" id="AtlasTexture_2jfhy"]
atlas = ExtResource("4_id5lh")
region = Rect2(417, 193, 14, 11)
[sub_resource type="AtlasTexture" id="AtlasTexture_7ahja"]
atlas = ExtResource("4_id5lh")
region = Rect2(433, 193, 14, 11)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kp2us"]
shader = ExtResource("9_axrdm")
shader_parameter/blur_amount = 0.291
shader_parameter/color = null
shader_parameter/multiplier = -5.98
shader_parameter/softness = 3.12
[sub_resource type="Animation" id="Animation_h3c1q"]
resource_name = "death"
length = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AnimatedSprite2D:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(0, 0, 0, 1)]
}
[sub_resource type="Animation" id="Animation_jpfe0"]
resource_name = "new_animation"
[sub_resource type="AnimationLibrary" id="AnimationLibrary_a2qok"]
_data = {
"death": SubResource("Animation_h3c1q"),
"new_animation": SubResource("Animation_jpfe0")
}
[node name="plr" type="CharacterBody2D"]
script = ExtResource("1_ub5ic")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -4.5)
shape = SubResource("RectangleShape2D_xil0x")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-8, -13)
sprite_frames = SubResource("SpriteFrames_q5dbt")
animation = &"jump"
frame = 3
frame_progress = 1.0
centered = false
[node name="Left" type="Area2D" parent="."]
position = Vector2(-7, 7)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Left"]
position = Vector2(4, -11.75)
shape = SubResource("RectangleShape2D_1r4pd")
[node name="CPUParticles2D" type="CPUParticles2D" parent="Left"]
position = Vector2(4, -10)
emitting = false
amount = 10
randomness = 0.8
lifetime_randomness = 1.0
emission_shape = 3
emission_rect_extents = Vector2(1, 1)
spread = 180.0
gravity = Vector2(0, 50)
angular_velocity_max = 58.18
angle_max = 29.1
scale_amount_min = 0.5
color = Color(0.698039, 0.698039, 0.698039, 1)
[node name="right" type="Area2D" parent="."]
position = Vector2(7, -4)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="right"]
position = Vector2(-3.75, -1)
shape = SubResource("RectangleShape2D_1r4pd")
[node name="CPUParticles2D" type="CPUParticles2D" parent="right"]
position = Vector2(-4, 1)
emitting = false
amount = 10
randomness = 0.8
lifetime_randomness = 1.0
emission_shape = 3
emission_rect_extents = Vector2(1, 1)
spread = 180.0
gravity = Vector2(0, 50)
angular_velocity_max = 58.18
angle_max = 29.1
scale_amount_min = 0.5
color = Color(0.698039, 0.698039, 0.698039, 1)
[node name="rightt" type="Timer" parent="."]
one_shot = true
[node name="leftt" type="Timer" parent="."]
one_shot = true
[node name="LedgeAssist" type="Timer" parent="."]
wait_time = 0.05
one_shot = true
[node name="LedgeAssistWall" type="Timer" parent="."]
wait_time = 0.02
one_shot = true
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(2, -16)
zoom = Vector2(5, 5)
limit_left = -391
limit_smoothed = true
drag_horizontal_enabled = true
drag_vertical_enabled = true
drag_top_margin = 0.35
drag_right_margin = 0.35
drag_bottom_margin = 0.0
script = ExtResource("3_vv75q")
[node name="dialogue" type="Sprite2D" parent="Camera2D"]
visible = false
z_index = 4096
position = Vector2(-58, -62)
texture = SubResource("AtlasTexture_hdeoh")
centered = false
script = ExtResource("5_68akq")
[node name="RichTextLabel" type="RichTextLabel" parent="Camera2D/dialogue"]
clip_contents = false
offset_left = 3.0
offset_top = 11.0
offset_right = 111.0
offset_bottom = 51.0
theme = ExtResource("6_qo7h3")
scroll_active = false
[node name="Timer" type="Timer" parent="Camera2D/dialogue"]
one_shot = true
[node name="Icons" type="Node2D" parent="Camera2D/dialogue"]
[node name="normal" type="Sprite2D" parent="Camera2D/dialogue/Icons"]
visible = false
position = Vector2(6, 4)
texture = SubResource("AtlasTexture_vvr4i")
centered = false
[node name="nervous" type="Sprite2D" parent="Camera2D/dialogue/Icons"]
visible = false
position = Vector2(6, 4)
texture = SubResource("AtlasTexture_2jfhy")
centered = false
[node name="upsidedown" type="Sprite2D" parent="Camera2D/dialogue/Icons"]
visible = false
position = Vector2(6, 4)
texture = SubResource("AtlasTexture_7ahja")
centered = false
[node name="explorer" type="Sprite2D" parent="Camera2D/dialogue/Icons"]
visible = false
position = Vector2(6, 2)
texture = ExtResource("7_d3k28")
centered = false
region_enabled = true
region_rect = Rect2(7, 5, 15, 13)
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Camera2D/dialogue"]
stream = ExtResource("7_d3xbw")
volume_db = -10.576
max_polyphony = 7
[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = 20
visible = false
[node name="blur" type="ColorRect" parent="CanvasLayer"]
z_index = 40
material = SubResource("ShaderMaterial_kp2us")
offset_right = 1152.0
offset_bottom = 648.0
[node name="vingette" type="ColorRect" parent="CanvasLayer"]
z_index = 90
material = ExtResource("3_2p62w")
offset_right = 1152.0
offset_bottom = 648.0
[node name="fadeout" type="ColorRect" parent="CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_a2qok")
}
[connection signal="timeout" from="rightt" to="." method="_on_rightt_timeout"]
[connection signal="timeout" from="leftt" to="." method="_on_leftt_timeout"]
[connection signal="timeout" from="LedgeAssist" to="." method="_on_ledge_assist_timeout"]
[connection signal="timeout" from="LedgeAssistWall" to="." method="_on_ledge_assist_wall_timeout"]