[gd_scene load_steps=52 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="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="3_4cy24"] [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="Texture2D" uid="uid://cheyvdcyhcjfx" path="res://model/GameOver2.jpg" id="3_todyh"] [ext_resource type="PackedScene" uid="uid://bq2yxcm55h7n8" path="res://scene/control/door_view.tscn" id="4_0vwed"] [ext_resource type="Texture2D" uid="uid://cv3g2ug3gn6bl" path="res://model/GameOver3.jpg" id="4_54muj"] [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://nb15wpu2dfiy" path="res://model/GameOver4.jpg" id="5_s8qqs"] [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://dxbamm4wyrws7" path="res://model/GameOver5.jpg" id="6_y7gua"] [ext_resource type="Texture2D" uid="uid://pyg47l5x2ym7" path="res://model/GameOver6.jpg" id="7_lxnjo"] [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="AudioStream" uid="uid://dw0xcpxllfds7" path="res://sound/GameOver1.wav" id="8_omk30"] [ext_resource type="Texture2D" uid="uid://dxepey1fkkhhv" path="res://model/DiabeteMeter1.png" id="9_0ohl3"] [ext_resource type="AudioStream" uid="uid://dc7is0h71kji3" path="res://sound/GameOver2.wav" id="9_igpaw"] [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="AudioStream" uid="uid://c1t5uqvw7m3ne" path="res://sound/GameOver3.wav" id="10_nfxj1"] [ext_resource type="Texture2D" uid="uid://dgs1topxer4a8" path="res://model/PatrickBack2.png" id="10_rvawd"] [ext_resource type="AudioStream" uid="uid://vkhuejdh1c1i" path="res://sound/GameOver4.wav" id="11_hwc4x"] [ext_resource type="Texture2D" uid="uid://cisefnb0eej45" path="res://model/Patrickfront1.png" id="11_wpam5"] [ext_resource type="AudioStream" uid="uid://di2xiq3877bto" path="res://sound/GameOver5.wav" id="12_dv7eh"] [ext_resource type="Texture2D" uid="uid://niofms1fbpqf" path="res://model/GameOver1.jpg" id="12_rjqtk"] [ext_resource type="Texture2D" uid="uid://bex6put0xmadj" path="res://model/Patrickfront2.png" id="12_t0eem"] [ext_resource type="AudioStream" uid="uid://cpekdylimwdq7" path="res://sound/GameOver6.wav" id="13_0akal"] [ext_resource type="Texture2D" uid="uid://rbp38pbtd8e0" path="res://model/PatrickIdle2.png" id="13_2yj6y"] [ext_resource type="Theme" uid="uid://d0wymiuig18m3" path="res://themes/label.tres" id="15_hsss5"] [ext_resource type="PackedScene" uid="uid://bj1ita42m6vj5" path="res://scene/gameboy.tscn" id="25_25150"] [ext_resource type="Texture2D" uid="uid://d0tifgesw6o2c" path="res://model/PatrickGameConsole1.png" id="35_k0eif"] [ext_resource type="Texture2D" uid="uid://ufsduorrajdw" path="res://model/PatrickGameConsole2.png" id="36_ln8i7"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_qxy68"] height = 40.4 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_eh2ky"] [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")] } tracks/6/type = "value" tracks/6/imported = false tracks/6/enabled = true tracks/6/path = NodePath("Camera2D/CanvasLayer2:visible") tracks/6/interp = 1 tracks/6/loop_wrap = true tracks/6/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } [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_q5gvg"] resource_name = "game" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Camera2D/CanvasLayer2:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [false, true] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Icon1:texture") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), "update": 1, "values": [ExtResource("2_w2lj6"), ExtResource("35_k0eif"), ExtResource("36_ln8i7"), ExtResource("35_k0eif"), ExtResource("36_ln8i7"), ExtResource("2_w2lj6")] } [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"), "game": SubResource("Animation_q5gvg"), "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", "time", "over", "gameover", "audio", "gameboy")] position = Vector2(1, 1) motion_mode = 1 script = ExtResource("1_gmlsd") Speed = 6000.0 sugar_speed = 1.5 anim = NodePath("anim") cam = NodePath("Camera2D") bar = NodePath("diabetmeter") menu = NodePath("Camera2D/menu") minute_part_second = 0.5 time = NodePath("time") over = NodePath("Camera2D/gameover/Panel/Sprite2D") gameover = NodePath("Camera2D/gameover") audio = NodePath("AudioStreamPlayer") gameboy = NodePath("Camera2D/CanvasLayer2") caniche = ExtResource("12_rjqtk") shotgun = ExtResource("3_todyh") caramel = ExtResource("4_54muj") glissemie = ExtResource("5_s8qqs") voiture = ExtResource("6_y7gua") win = ExtResource("7_lxnjo") aud_caniche = ExtResource("8_omk30") aud_shotgun = ExtResource("9_igpaw") aud_caramel = ExtResource("10_nfxj1") aud_glissemie = ExtResource("11_hwc4x") aud_voiture = ExtResource("12_dv7eh") aud_win = ExtResource("13_0akal") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 3.8) shape = SubResource("CapsuleShape2D_qxy68") [node name="Icon1" type="Sprite2D" parent="."] position = Vector2(2, 1) texture = ExtResource("2_w2lj6") [node name="time" type="Label" parent="."] anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -25.0 offset_top = -118.0 offset_right = 21.0 offset_bottom = -90.0 grow_horizontal = 2 theme = ExtResource("15_hsss5") theme_override_font_sizes/font_size = 26 text = "18:10" horizontal_alignment = 1 vertical_alignment = 1 [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" node_paths=PackedStringArray("menu") instance=ExtResource("4_0vwed")] visible = false size_flags_horizontal = 4 menu = NodePath("../menu") [node name="gameover" type="CanvasLayer" parent="Camera2D"] visible = false [node name="Panel" type="Panel" parent="Camera2D/gameover"] offset_right = 40.0 offset_bottom = 40.0 theme_override_styles/panel = SubResource("StyleBoxEmpty_eh2ky") [node name="Sprite2D" type="Sprite2D" parent="Camera2D/gameover/Panel"] texture = ExtResource("12_rjqtk") centered = false [node name="exit" type="Button" parent="Camera2D/gameover/Panel"] layout_mode = 0 offset_left = 16.0 offset_top = 245.0 offset_right = 68.0 offset_bottom = 283.0 theme = ExtResource("3_4cy24") text = "Exit" [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="CanvasLayer2" parent="Camera2D" node_paths=PackedStringArray("player", "Cmenu") instance=ExtResource("25_25150")] visible = false player = NodePath("../..") Cmenu = NodePath("../menu") [node name="anim" type="AnimationPlayer" parent="."] process_mode = 3 libraries = { "": SubResource("AnimationLibrary_1e41b") } autoplay = "idle" [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] process_mode = 3 volume_db = -20.0 [connection signal="pressed" from="Camera2D/gameover/Panel/exit" to="Camera2D/menu" method="ExitDown"]