434 lines
13 KiB
Plaintext
434 lines
13 KiB
Plaintext
[gd_scene load_steps=33 format=3 uid="uid://4ubk6w44h4s2"]
|
|
|
|
[ext_resource type="Script" path="res://script/Player.cs" id="1_gmlsd"]
|
|
[ext_resource type="Texture2D" uid="uid://bo4q2rvn056p3" path="res://model/PatrickIdle1.png" id="2_w2lj6"]
|
|
[ext_resource type="PackedScene" uid="uid://co0u7xd45nxv1" path="res://scene/control/menu.tscn" id="3_6uvd0"]
|
|
[ext_resource type="Texture2D" uid="uid://cgql6fnplgyeo" path="res://model/Glitch1.png" id="3_kao8s"]
|
|
[ext_resource type="PackedScene" uid="uid://bq2yxcm55h7n8" path="res://scene/control/door_view.tscn" id="4_0vwed"]
|
|
[ext_resource type="Texture2D" uid="uid://b4dlsfi5glbqf" path="res://model/Glitch2.png" id="4_smidx"]
|
|
[ext_resource type="Texture2D" uid="uid://dwd4cqn0sfv0i" path="res://model/Glitch3.png" id="5_pmits"]
|
|
[ext_resource type="Texture2D" uid="uid://b5mfnew4kh6ht" path="res://model/PatrickLeft1.png" id="5_vnnjt"]
|
|
[ext_resource type="Texture2D" uid="uid://dyi5a1hlwio71" path="res://model/Glitch4.png" id="6_73f32"]
|
|
[ext_resource type="Texture2D" uid="uid://bu5nnr2x4co38" path="res://model/PatrickLeft2.png" id="6_jii6b"]
|
|
[ext_resource type="Texture2D" uid="uid://doavv8drnetm" path="res://model/PatrickRight1.png" id="7_xptin"]
|
|
[ext_resource type="Texture2D" uid="uid://dbey2oeyhxsq8" path="res://model/PatrickRight2.png" id="8_m32jm"]
|
|
[ext_resource type="Texture2D" uid="uid://dxepey1fkkhhv" path="res://model/DiabeteMeter1.png" id="9_0ohl3"]
|
|
[ext_resource type="Texture2D" uid="uid://c0oqqh7qgohu" path="res://model/PatrickBack1.png" id="9_y1wtp"]
|
|
[ext_resource type="Texture2D" uid="uid://dqqegt7a6ng06" path="res://model/DiabeteMeter2.png" id="10_ete3q"]
|
|
[ext_resource type="Texture2D" uid="uid://dgs1topxer4a8" path="res://model/PatrickBack2.png" id="10_rvawd"]
|
|
[ext_resource type="Texture2D" uid="uid://cisefnb0eej45" path="res://model/Patrickfront1.png" id="11_wpam5"]
|
|
[ext_resource type="Texture2D" uid="uid://bex6put0xmadj" path="res://model/Patrickfront2.png" id="12_t0eem"]
|
|
[ext_resource type="Texture2D" uid="uid://rbp38pbtd8e0" path="res://model/PatrickIdle2.png" id="13_2yj6y"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2homw"]
|
|
size = Vector2(34, 53)
|
|
|
|
[sub_resource type="Animation" id="Animation_8ug73"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:texture")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [ExtResource("3_kao8s")]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_q8biw"]
|
|
resource_name = "glitch"
|
|
length = 2.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:texture")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2.03333),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [ExtResource("3_kao8s"), ExtResource("4_smidx"), ExtResource("5_pmits"), ExtResource("6_73f32"), ExtResource("3_kao8s")]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jlbns"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_8ug73"),
|
|
"glitch": SubResource("Animation_q8biw")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_epvli"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera2D:zoom")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Camera2D:offset")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Camera2D/menu:visible")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Camera2D:position")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("Camera2D:position_smoothing_enabled")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("Icon1:texture")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [ExtResource("2_w2lj6")]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_shn62"]
|
|
resource_name = "down"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon1:texture")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [ExtResource("11_wpam5"), ExtResource("12_t0eem"), ExtResource("11_wpam5")]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_mf8ie"]
|
|
resource_name = "idle"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon1:texture")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [ExtResource("2_w2lj6"), ExtResource("13_2yj6y"), ExtResource("2_w2lj6")]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_8foih"]
|
|
resource_name = "left"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon1:texture")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [ExtResource("5_vnnjt"), ExtResource("6_jii6b"), ExtResource("5_vnnjt")]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_0ydoq"]
|
|
resource_name = "paused"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera2D:zoom")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1.5),
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(3, 3)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Camera2D:offset")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1.5),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(20, -10)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Camera2D/menu:visible")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [false, true]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Camera2D:position_smoothing_enabled")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_d3u02"]
|
|
resource_name = "resume"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera2D:zoom")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(3, 3), Vector2(1, 1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Camera2D:offset")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(20, -10), Vector2(0, 0)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Camera2D/menu:visible")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Camera2D:position")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, 0)]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("Camera2D:position_smoothing_enabled")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/5/type = "method"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("Camera2D/menu")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"Res"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_qfm7l"]
|
|
resource_name = "right"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon1:texture")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1.03333),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [ExtResource("7_xptin"), ExtResource("8_m32jm"), ExtResource("7_xptin")]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7twwg"]
|
|
resource_name = "up"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Icon1:texture")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [ExtResource("9_y1wtp"), ExtResource("10_rvawd"), ExtResource("9_y1wtp")]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1e41b"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_epvli"),
|
|
"down": SubResource("Animation_shn62"),
|
|
"idle": SubResource("Animation_mf8ie"),
|
|
"left": SubResource("Animation_8foih"),
|
|
"paused": SubResource("Animation_0ydoq"),
|
|
"resume": SubResource("Animation_d3u02"),
|
|
"right": SubResource("Animation_qfm7l"),
|
|
"up": SubResource("Animation_7twwg")
|
|
}
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" node_paths=PackedStringArray("anim", "cam", "bar", "menu")]
|
|
position = Vector2(1, 1)
|
|
motion_mode = 1
|
|
script = ExtResource("1_gmlsd")
|
|
Speed = 6000.0
|
|
sugar_speed = 2.0
|
|
anim = NodePath("anim")
|
|
cam = NodePath("Camera2D")
|
|
bar = NodePath("diabetmeter")
|
|
menu = NodePath("Camera2D/menu")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -2.5)
|
|
shape = SubResource("RectangleShape2D_2homw")
|
|
|
|
[node name="Icon1" type="Sprite2D" parent="."]
|
|
position = Vector2(2, 1)
|
|
texture = ExtResource("2_w2lj6")
|
|
|
|
[node name="diabetmeter" type="TextureProgressBar" parent="."]
|
|
texture_filter = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 162.0
|
|
offset_top = -121.0
|
|
offset_right = 192.0
|
|
offset_bottom = 129.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
step = 0.01
|
|
value = 50.0
|
|
fill_mode = 3
|
|
texture_under = ExtResource("9_0ohl3")
|
|
texture_progress = ExtResource("10_ete3q")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
process_mode = 3
|
|
limit_smoothed = true
|
|
position_smoothing_enabled = true
|
|
rotation_smoothing_speed = 7.0
|
|
|
|
[node name="menu" parent="Camera2D" node_paths=PackedStringArray("anim", "player") instance=ExtResource("3_6uvd0")]
|
|
visible = false
|
|
offset_left = -47.0
|
|
offset_top = -60.0
|
|
offset_right = -47.0
|
|
offset_bottom = -60.0
|
|
scale = Vector2(0.334, 0.334)
|
|
anim = NodePath("../../anim")
|
|
player = NodePath("../..")
|
|
|
|
[node name="door_view" parent="Camera2D" instance=ExtResource("4_0vwed")]
|
|
visible = false
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="Camera2D"]
|
|
|
|
[node name="glitch" type="Sprite2D" parent="Camera2D/CanvasLayer"]
|
|
position = Vector2(200, 150)
|
|
texture = ExtResource("3_kao8s")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Camera2D/CanvasLayer"]
|
|
root_node = NodePath("../glitch")
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_jlbns")
|
|
}
|
|
autoplay = "glitch"
|
|
speed_scale = 1.5
|
|
|
|
[node name="anim" type="AnimationPlayer" parent="."]
|
|
process_mode = 3
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_1e41b")
|
|
}
|
|
autoplay = "idle"
|