[gd_scene load_steps=53 format=2] [ext_resource path="res://assets/Hayley3D.tscn" type="PackedScene" id=1] [ext_resource path="res://assets/HUD/bar.png" type="Texture" id=2] [ext_resource path="res://assets/HUD/barsmall.png" type="Texture" id=3] [ext_resource path="res://assets/HUD/Coin.png" type="Texture" id=4] [ext_resource path="res://assets/HUD/Heart.png" type="Texture" id=5] [ext_resource path="res://assets/HUD/Backpack.png" type="Texture" id=6] [ext_resource path="res://assets/HUD/Score.png" type="Texture" id=7] [ext_resource path="res://assets/HUD/stopwatch.png" type="Texture" id=8] [ext_resource path="res://assets/HUD/Touchscreen/MovementUpPressed.png" type="Texture" id=9] [ext_resource path="res://assets/fonts/Monocraft.ttf" type="DynamicFontData" id=10] [ext_resource path="res://assets/characters/Hayley.png" type="Texture" id=11] [ext_resource path="res://assets/HUD/barsmallreversed.png" type="Texture" id=12] [ext_resource path="res://assets/HUD/DirectionArrow.png" type="Texture" id=13] [ext_resource path="res://assets/HUD/MapIcon.png" type="Texture" id=14] [ext_resource path="res://Hayley2D.gd" type="Script" id=15] [ext_resource path="res://Timer.gd" type="Script" id=16] [ext_resource path="res://TimerText.gd" type="Script" id=17] [ext_resource path="res://assets/HUD/Touchscreen/MovementUp.png" type="Texture" id=18] [ext_resource path="res://assets/HUD/Touchscreen/MovementDownPressed.png" type="Texture" id=19] [ext_resource path="res://assets/HUD/Touchscreen/MovementDown.png" type="Texture" id=20] [ext_resource path="res://assets/HUD/Touchscreen/MovementLeftPressed.png" type="Texture" id=21] [ext_resource path="res://assets/HUD/Touchscreen/MovementLeft.png" type="Texture" id=22] [ext_resource path="res://assets/HUD/Touchscreen/MovementRightPressed.png" type="Texture" id=23] [ext_resource path="res://assets/HUD/Touchscreen/MovementRight.png" type="Texture" id=24] [ext_resource path="res://assets/HUD/Touchscreen/Pause.png" type="Texture" id=25] [ext_resource path="res://FPSCounter.gd" type="Script" id=26] [ext_resource path="res://CPUname.gd" type="Script" id=27] [ext_resource path="res://Pause.tscn" type="PackedScene" id=28] [ext_resource path="res://DebugLeft.gd" type="Script" id=29] [ext_resource path="res://assets/HUD/Touchscreen/debugbutton.png" type="Texture" id=30] [ext_resource path="res://addons/controller_icons/assets/key/esc.png" type="Texture" id=31] [ext_resource path="res://addons/controller_icons/objects/Sprite.gd" type="Script" id=32] [ext_resource path="res://addons/controller_icons/assets/key/f3.png" type="Texture" id=33] [ext_resource path="res://addons/controller_icons/assets/key/f1.png" type="Texture" id=34] [ext_resource path="res://assets/HUD/Touchscreen/debugbuttonpressed.png" type="Texture" id=35] [ext_resource path="res://ScreenRes.gd" type="Script" id=36] [ext_resource path="res://DebugRight.gd" type="Script" id=37] [ext_resource path="res://GridContainer.gd" type="Script" id=39] [sub_resource type="BoxShape" id=1] [sub_resource type="CubeMesh" id=2] [sub_resource type="BoxShape" id=3] extents = Vector3( 64, 1, 64 ) [sub_resource type="CubeMesh" id=4] size = Vector3( 128, 0.2, 128 ) [sub_resource type="SpatialMaterial" id=8] albedo_color = Color( 0.670588, 1, 0.0823529, 1 ) [sub_resource type="TileSet" id=9] [sub_resource type="DynamicFont" id=12] size = 9 font_data = ExtResource( 10 ) [sub_resource type="DynamicFont" id=15] size = 18 font_data = ExtResource( 10 ) [sub_resource type="DynamicFont" id=14] size = 18 font_data = ExtResource( 10 ) [sub_resource type="DynamicFont" id=10] size = 18 font_data = ExtResource( 10 ) [sub_resource type="DynamicFont" id=11] size = 18 font_data = ExtResource( 10 ) [sub_resource type="DynamicFont" id=13] size = 9 outline_size = 1 outline_color = Color( 0, 0, 0, 1 ) font_data = ExtResource( 10 ) [sub_resource type="ProceduralSky" id=7] sky_horizon_color = Color( 0.901961, 0.694118, 0.321569, 1 ) [sub_resource type="Environment" id=6] background_mode = 2 background_sky = SubResource( 7 ) [node name="TutorialLevel" type="Spatial"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 13.0458, 0 ) [node name="GridContainer" type="GridContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 columns = 2 script = ExtResource( 39 ) [node name="ViewportContainer" type="ViewportContainer" parent="GridContainer"] margin_right = 640.0 margin_bottom = 720.0 size_flags_horizontal = 3 size_flags_vertical = 3 stretch = true [node name="Viewport" type="Viewport" parent="GridContainer/ViewportContainer"] size = Vector2( 1280, 720 ) handle_input_locally = false render_target_update_mode = 3 [node name="Node2D" type="Node2D" parent="."] [node name="Timer" type="Timer" parent="."] autostart = true script = ExtResource( 16 ) [node name="RigidBody" type="RigidBody" parent="."] transform = Transform( 0.596267, -0.802786, 0, 0.802786, 0.596267, 0, 0, 0, 1, 0, 25.9218, 0 ) [node name="CollisionShape" type="CollisionShape" parent="RigidBody"] shape = SubResource( 1 ) [node name="MeshInstance" type="MeshInstance" parent="RigidBody"] mesh = SubResource( 2 ) [node name="StaticBody" type="StaticBody" parent="."] transform = Transform( 0.0823517, 0, 0, 0, 0.957435, -0.288648, 0, 0.288648, 0.957435, 0, -2.49318, 0 ) [node name="CollisionShape" type="CollisionShape" parent="StaticBody"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00354958, 0.014761, 0.00830269 ) shape = SubResource( 3 ) [node name="MeshInstance" type="MeshInstance" parent="StaticBody/CollisionShape"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00344944, 0.0174236, 0.0605755 ) mesh = SubResource( 4 ) material/0 = SubResource( 8 ) [node name="TileMap" type="TileMap" parent="."] tile_set = SubResource( 9 ) format = 1 [node name="CentreCentre" type="Control" parent="."] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -20.0 margin_top = -20.0 margin_right = 20.0 margin_bottom = 20.0 [node name="Hayley" type="Sprite" parent="CentreCentre"] position = Vector2( 20, 20 ) scale = Vector2( 4, 4 ) texture = ExtResource( 11 ) script = ExtResource( 15 ) [node name="HUD" type="Control" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 [node name="LeftUI" type="Control" parent="HUD"] anchor_right = 1.0 anchor_bottom = 1.0 margin_right = 7.67993 margin_bottom = 7.91998 [node name="LeftBar" type="Sprite" parent="HUD/LeftUI"] position = Vector2( 155, 48 ) scale = Vector2( 3, 3 ) texture = ExtResource( 12 ) [node name="DirectionArrow" type="Sprite" parent="HUD/LeftUI/LeftBar"] position = Vector2( 29, 0 ) scale = Vector2( 0.666667, 0.666667 ) texture = ExtResource( 13 ) [node name="MapIcon" type="Sprite" parent="HUD/LeftUI/LeftBar"] position = Vector2( -43, 0 ) scale = Vector2( 0.666667, 0.666667 ) texture = ExtResource( 14 ) [node name="PlaceText" type="Label" parent="HUD/LeftUI/LeftBar"] margin_left = -30.3333 margin_top = -4.0 margin_right = 17.6667 margin_bottom = 5.0 custom_fonts/font = SubResource( 12 ) text = "Tutorial" align = 1 valign = 1 [node name="LocationNumber" type="Label" parent="HUD/LeftUI/LeftBar"] margin_left = 24.667 margin_top = -6.0 margin_right = 64.667 margin_bottom = 8.0 custom_fonts/font = SubResource( 12 ) text = "?" align = 1 valign = 1 [node name="BottomLeft" type="Control" parent="HUD/LeftUI"] anchor_top = 1.0 anchor_bottom = 1.0 margin_top = -47.92 margin_right = 40.0 margin_bottom = -7.91998 [node name="MovementDown" type="TouchScreenButton" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 158, -125 ) scale = Vector2( 4, 4 ) normal = ExtResource( 20 ) pressed = ExtResource( 19 ) action = "game_down" visibility_mode = 1 [node name="MovementUp" type="TouchScreenButton" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 158, -253 ) scale = Vector2( 4, 4 ) normal = ExtResource( 18 ) pressed = ExtResource( 9 ) action = "game_up" visibility_mode = 1 [node name="MovementLeft" type="TouchScreenButton" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 32, -189 ) scale = Vector2( 4, 4 ) normal = ExtResource( 22 ) pressed = ExtResource( 21 ) action = "game_left" visibility_mode = 1 [node name="MovementRight" type="TouchScreenButton" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 284, -189 ) scale = Vector2( 4, 4 ) normal = ExtResource( 24 ) pressed = ExtResource( 23 ) action = "game_right" visibility_mode = 1 [node name="DebugButton" type="TouchScreenButton" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 64, -280 ) scale = Vector2( 4, 4 ) normal = ExtResource( 30 ) pressed = ExtResource( 35 ) action = "ui_debug" visibility_mode = 1 [node name="PauseGlyph" type="Sprite" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 64, -32 ) scale = Vector2( 0.5, 0.5 ) texture = ExtResource( 31 ) script = ExtResource( 32 ) path = "game_pause" [node name="PauseGlyphText" type="Label" parent="HUD/LeftUI/BottomLeft"] margin_left = 96.0 margin_top = -42.0 margin_right = 180.0 margin_bottom = -24.0 custom_fonts/font = SubResource( 15 ) text = "Pause" [node name="DebugGlyph" type="Sprite" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 194, -32 ) scale = Vector2( 0.5, 0.5 ) texture = ExtResource( 33 ) script = ExtResource( 32 ) path = "ui_debug" [node name="DebugGlyphText" type="Label" parent="HUD/LeftUI/BottomLeft"] margin_left = 226.0 margin_top = -42.0 margin_right = 310.0 margin_bottom = -24.0 custom_fonts/font = SubResource( 15 ) text = "Debug" [node name="HideGlyph" type="Sprite" parent="HUD/LeftUI/BottomLeft"] position = Vector2( 321, -32 ) scale = Vector2( 0.5, 0.5 ) texture = ExtResource( 34 ) script = ExtResource( 32 ) path = "ui_hide" [node name="HideGlyphText" type="Label" parent="HUD/LeftUI/BottomLeft"] margin_left = 353.0 margin_top = -42.0 margin_right = 449.0 margin_bottom = -24.0 custom_fonts/font = SubResource( 15 ) text = "Hide HUD" [node name="DebugLeft" type="Control" parent="HUD/LeftUI"] visible = false anchor_top = 0.5 anchor_bottom = 0.5 margin_top = -20.0 margin_right = 40.0 margin_bottom = 20.0 script = ExtResource( 29 ) [node name="FPSCounter" type="Label" parent="HUD/LeftUI/DebugLeft"] margin_left = 8.0 margin_top = -180.0 margin_right = 56.0 margin_bottom = -162.0 custom_fonts/font = SubResource( 14 ) text = "FPS:" align = 1 valign = 1 script = ExtResource( 26 ) [node name="CPUName" type="Label" parent="HUD/LeftUI/DebugLeft"] margin_left = 8.0 margin_top = -160.0 margin_right = 56.0 margin_bottom = -142.0 custom_fonts/font = SubResource( 14 ) text = "CPU:" align = 1 valign = 1 script = ExtResource( 27 ) [node name="RightUI" type="Control" parent="HUD"] anchor_left = 1.0 anchor_right = 1.0 margin_left = -640.0 margin_bottom = 720.0 [node name="Barlarge" type="Sprite" parent="HUD/RightUI"] position = Vector2( 450, 66 ) scale = Vector2( 3, 3 ) texture = ExtResource( 2 ) [node name="Backpack" type="Sprite" parent="HUD/RightUI/Barlarge"] position = Vector2( 29.4902, 0 ) texture = ExtResource( 6 ) [node name="Stopwatch" type="Sprite" parent="HUD/RightUI/Barlarge"] position = Vector2( -67.1373, 0 ) texture = ExtResource( 8 ) [node name="TimerText" type="Label" parent="HUD/RightUI/Barlarge"] margin_left = -49.5681 margin_top = -8.0 margin_right = 10.4319 margin_bottom = 10.0 custom_fonts/font = SubResource( 10 ) text = "00:00" align = 1 valign = 1 script = ExtResource( 17 ) [node name="ItemsCollectedText" type="Label" parent="HUD/RightUI/Barlarge"] margin_left = 31.3724 margin_top = -8.0 margin_right = 71.3724 margin_bottom = 10.0 custom_fonts/font = SubResource( 11 ) text = "0" align = 1 valign = 1 [node name="Barsmall" type="Sprite" parent="HUD/RightUI"] position = Vector2( 450, 129 ) scale = Vector2( 3, 3 ) texture = ExtResource( 3 ) [node name="Score" type="Sprite" parent="HUD/RightUI/Barsmall"] position = Vector2( -6.33331, 0 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 7 ) [node name="Heart" type="Sprite" parent="HUD/RightUI/Barsmall"] position = Vector2( -45.4762, 0 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 5 ) [node name="Coin" type="Sprite" parent="HUD/RightUI/Barsmall"] position = Vector2( 36.143, 0 ) scale = Vector2( 0.75, 0.75 ) texture = ExtResource( 4 ) [node name="CoinsText" type="Label" parent="HUD/RightUI/Barsmall"] margin_left = 33.6667 margin_top = -7.0 margin_right = 73.6667 margin_bottom = 7.0 custom_fonts/font = SubResource( 12 ) text = "0" align = 1 valign = 1 [node name="ScoreText" type="Label" parent="HUD/RightUI/Barsmall"] margin_left = -9.143 margin_top = -7.0 margin_right = 30.857 margin_bottom = 7.0 custom_fonts/font = SubResource( 12 ) text = "0" align = 1 valign = 1 [node name="HealthText" type="Label" parent="HUD/RightUI/Barsmall"] margin_left = -44.6193 margin_top = -7.0 margin_right = -4.61934 margin_bottom = 7.0 custom_fonts/font = SubResource( 12 ) text = "100" align = 1 valign = 1 [node name="HealthText2" type="Label" parent="HUD/RightUI/Barsmall"] margin_left = -62.6668 margin_top = -4.66666 margin_right = -22.6668 margin_bottom = 9.33334 custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 ) custom_fonts/font = SubResource( 13 ) text = "x3" align = 1 valign = 1 [node name="DebugRight" type="Control" parent="HUD/RightUI"] visible = false anchor_left = 1.0 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 margin_left = -40.0 margin_top = -20.0 margin_bottom = 20.0 script = ExtResource( 37 ) [node name="ScreenRes" type="Label" parent="HUD/RightUI/DebugRight"] margin_left = -8.0 margin_top = -180.0 margin_right = 40.0 margin_bottom = -162.0 grow_horizontal = 0 custom_fonts/font = SubResource( 14 ) text = "CPU:" align = 1 valign = 1 script = ExtResource( 36 ) [node name="CentreUI" type="Control" parent="HUD"] anchor_left = 0.5 anchor_right = 0.5 margin_left = -20.0 margin_right = 20.0 margin_bottom = 40.0 [node name="PauseButton" type="TouchScreenButton" parent="HUD/CentreUI"] position = Vector2( -12, 0 ) scale = Vector2( 4, 4 ) normal = ExtResource( 25 ) action = "game_pause" visibility_mode = 1 [node name="Pause" parent="HUD" instance=ExtResource( 28 )] pause_mode = 2 visible = false [node name="Hayley3D" parent="." instance=ExtResource( 1 )] transform = Transform( -1, 8.74228e-08, 0, 8.74228e-08, 1, 8.74228e-08, 7.64274e-15, 8.74228e-08, -1, -0.00308418, -0.0160446, -0.000152588 ) [node name="InterpolatedCamera" type="InterpolatedCamera" parent="Hayley3D"] transform = Transform( 1, 0, 0, 0, 0.906308, 0.422618, 0, -0.422618, 0.906308, 0, 3, 5 ) environment = SubResource( 6 ) current = true fov = 95.0 enabled = true [connection signal="pressed" from="HUD/CentreUI/PauseButton" to="HUD/Pause" method="_on_PauseButton_pressed"]