diff --git a/src/game/levels/level_1.tscn b/src/game/levels/level_1.tscn index 271c666..cb1e254 100644 --- a/src/game/levels/level_1.tscn +++ b/src/game/levels/level_1.tscn @@ -6,7 +6,7 @@ [ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track_90_bk.png" id="3_en5wc"] [ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="4_qeube"] [ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="5_2n8nj"] -[ext_resource type="PackedScene" uid="uid://c0sexrwxdge73" path="res://src/gui/menu/level.tscn" id="6_hs25h"] +[ext_resource type="PackedScene" uid="uid://dyo5dblkfivwn" path="res://src/gui/menu/level.tscn" id="6_hs25h"] [ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="6_r1i0q"] [ext_resource type="Texture2D" uid="uid://bq151lkkfdlf4" path="res://assets/sign.png" id="7_xmahe"] [ext_resource type="PackedScene" uid="uid://ya1ctigi23wa" path="res://assets/sign.tscn" id="8_i27bq"] @@ -17,7 +17,7 @@ [sub_resource type="Curve2D" id="Curve2D_ll8bj"] _data = { -"points": PackedVector2Array(-96.196, 0.475433, 96.196, -0.475433, 59, -56, -752, -468, 752, 468, 2353, -2, 962.225, -826.544, -962.225, 826.544, 2317, 1760, 370.586, 534.912, -370.586, -534.912, -2118, 1739, -352, 856, 352, -856, -2086, 159, -428, -220, 428, 220, -810, -253, -102.358, -2.55713, 102.358, 2.55713, 59, -56) +"points": PackedVector2Array(-743.262, -14.1958, 743.262, 14.1958, 173, -44, -752, -468, 752, 468, 2353, -2, 962.225, -826.544, -962.225, 826.544, 2317, 1760, 370.586, 534.912, -370.586, -534.912, -2118, 1739, -352, 856, 352, -856, -2086, 159, -227.548, -124.674, 227.548, 124.674, -810, -253, -578.608, 1.85259, 578.608, -1.85259, 173, -44) } point_count = 7 diff --git a/src/game/levels/level_2.tscn b/src/game/levels/level_2.tscn index 21dccf0..8f7b54b 100644 --- a/src/game/levels/level_2.tscn +++ b/src/game/levels/level_2.tscn @@ -7,7 +7,7 @@ [ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="4_1w2e5"] [ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="5_4d0xw"] [ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="6_tmqkf"] -[ext_resource type="PackedScene" uid="uid://c0sexrwxdge73" path="res://src/gui/menu/level.tscn" id="7_bv3bp"] +[ext_resource type="PackedScene" uid="uid://dyo5dblkfivwn" path="res://src/gui/menu/level.tscn" id="7_bv3bp"] [ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="9_vi54e"] [ext_resource type="PackedScene" uid="uid://da1mcxm6jcpbo" path="res://assets/arrow_light_2.tscn" id="10_k8jma"] [ext_resource type="PackedScene" uid="uid://ebmku7hq0mxi" path="res://assets/arrow_light_1.tscn" id="10_pjhii"] @@ -20,12 +20,12 @@ _data = { } point_count = 10 -[node name="level1" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")] +[node name="level2" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")] script = ExtResource("1_ijrq0") starting_width = 400.0 shrink_factor = 5.0 -level_nr = 2 max_distance_offset = 5.0 +level_nr = 2 path = NodePath("TrackPath") line = NodePath("TrackLine") player = NodePath("player") @@ -34,10 +34,11 @@ menu = NodePath("CanvasLayer/menu_box") [node name="EditingBG" type="TextureRect" parent="."] self_modulate = Color(0.0313726, 0.737255, 0, 1) -offset_left = -10462.0 -offset_top = -14103.0 -offset_right = 47088.0 -offset_bottom = 30041.0 +offset_left = -10477.0 +offset_top = -14268.0 +offset_right = 47073.0 +offset_bottom = 29876.0 +rotation = -6.66384e-05 scale = Vector2(0.5, 0.5) texture = ExtResource("2_ugncc") stretch_mode = 1 @@ -108,17 +109,45 @@ rotation = -0.451921 scale = Vector2(36.1222, 29.4521) energy = 8.0 -[node name="Arrow_light_1" parent="Node2D" instance=ExtResource("10_pjhii")] +[node name="Arrow_light_1x" parent="Node2D" instance=ExtResource("10_pjhii")] position = Vector2(2813, -771) rotation = 0.982893 -[node name="Arrow_light_2" parent="Node2D" instance=ExtResource("10_k8jma")] -position = Vector2(1730, -250) -rotation = 1.27233 +[node name="Arrow_light_1x2" parent="Node2D" instance=ExtResource("10_pjhii")] +position = Vector2(4929, -6130) +rotation = 0.0637213 -[node name="Arrow_light_3" parent="Node2D" instance=ExtResource("11_t72nj")] -position = Vector2(266, -16) -rotation = 1.53565 +[node name="Arrow_light_1x3" parent="Node2D" instance=ExtResource("10_pjhii")] +position = Vector2(8353, -2654) +rotation = 2.91381 + +[node name="Arrow_light_1x4" parent="Node2D" instance=ExtResource("10_pjhii")] +position = Vector2(37.0001, 1969) +rotation = 4.55574 + +[node name="Arrow_light_2x" parent="Node2D" instance=ExtResource("10_k8jma")] +position = Vector2(248, -16) +rotation = 1.51501 + +[node name="Arrow_light_2x3" parent="Node2D" instance=ExtResource("10_k8jma")] +position = Vector2(1791, -4938) +rotation = 1.64992 + +[node name="Arrow_light_2x2" parent="Node2D" instance=ExtResource("10_k8jma")] +position = Vector2(2635, -2292) +rotation = -1.13412 + +[node name="Arrow_light_3x" parent="Node2D" instance=ExtResource("11_t72nj")] +position = Vector2(-4941, -892) +rotation = 1.31872 + +[node name="Arrow_light_3x2" parent="Node2D" instance=ExtResource("11_t72nj")] +position = Vector2(6469, -7110) +rotation = 2.4531 + +[node name="Arrow_light_3x3" parent="Node2D" instance=ExtResource("11_t72nj")] +position = Vector2(8305, -780) +rotation = 3.79577 [node name="level_music" type="AudioStreamPlayer" parent="."] stream = ExtResource("9_vi54e") diff --git a/src/game/levels/level_3.tscn b/src/game/levels/level_3.tscn index 2acfa63..630d6cf 100644 --- a/src/game/levels/level_3.tscn +++ b/src/game/levels/level_3.tscn @@ -7,7 +7,7 @@ [ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="5_3dae3"] [ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="6_s3m1a"] [ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="7_wvwuj"] -[ext_resource type="PackedScene" uid="uid://c0sexrwxdge73" path="res://src/gui/menu/level.tscn" id="8_s6qwc"] +[ext_resource type="PackedScene" uid="uid://dyo5dblkfivwn" path="res://src/gui/menu/level.tscn" id="8_s6qwc"] [ext_resource type="PackedScene" uid="uid://ya1ctigi23wa" path="res://assets/sign.tscn" id="9_j8hxc"] [ext_resource type="PackedScene" uid="uid://ebmku7hq0mxi" path="res://assets/arrow_light_1.tscn" id="10_hylbo"] [ext_resource type="PackedScene" uid="uid://da1mcxm6jcpbo" path="res://assets/arrow_light_2.tscn" id="11_wq72b"] @@ -20,7 +20,7 @@ _data = { } point_count = 14 -[node name="level1" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")] +[node name="level3" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")] script = ExtResource("1_nto0b") starting_width = 400.0 shrink_factor = 5.0 @@ -43,7 +43,6 @@ texture = ExtResource("2_wrsa7") stretch_mode = 1 [node name="Background" type="TextureRect" parent="."] -visible = false self_modulate = Color(0.827451, 0.521569, 0.713726, 1) offset_left = -10392.0 offset_top = -8149.0 diff --git a/src/game/levels/level_6.tscn b/src/game/levels/level_6.tscn new file mode 100644 index 0000000..bcc3898 --- /dev/null +++ b/src/game/levels/level_6.tscn @@ -0,0 +1,135 @@ +[gd_scene load_steps=15 format=3 uid="uid://dqsjrcip27fl"] + +[ext_resource type="Script" path="res://src/game/levels/level.gd" id="1_ev21i"] +[ext_resource type="Texture2D" uid="uid://gjr7tbyrdo6e" path="res://assets/bkbg.png" id="2_m4wxc"] +[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg_90_bk.png" id="3_6npmm"] +[ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track_90_bk.png" id="4_0rv5r"] +[ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="5_utl8a"] +[ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="6_8ifjx"] +[ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="7_d1jq2"] +[ext_resource type="PackedScene" uid="uid://dyo5dblkfivwn" path="res://src/gui/menu/level.tscn" id="8_u5jfg"] +[ext_resource type="PackedScene" uid="uid://ya1ctigi23wa" path="res://assets/sign.tscn" id="9_dsbw0"] +[ext_resource type="PackedScene" uid="uid://ebmku7hq0mxi" path="res://assets/arrow_light_1.tscn" id="10_eka1d"] +[ext_resource type="PackedScene" uid="uid://da1mcxm6jcpbo" path="res://assets/arrow_light_2.tscn" id="11_4bsja"] +[ext_resource type="PackedScene" uid="uid://c0v3ix36w45d3" path="res://assets/arrow_light_3.tscn" id="12_3i8ow"] +[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="13_mjnmk"] + +[sub_resource type="Curve2D" id="Curve2D_ll8bj"] +_data = { +"points": PackedVector2Array(-36.1082, 3589.84, 36.1082, -3589.84, 79, -9, -21.3574, 3246.33, 21.3574, -3246.33, -4870, -4849, -3284.29, -4602.8, 3284.29, 4602.8, 5575, -6579, 419.963, -3123.25, -419.963, 3123.25, 945, -734, 25.3984, -3035.11, -25.3984, 3035.11, 6241, 1780, 2260.46, -215.887, -2260.46, 215.887, 717, 3888, -1369.36, 3600.47, 1369.36, -3600.47, -7923, 2715, -211.051, 6958.49, 211.051, -6958.49, 79, -9) +} +point_count = 8 + +[node name="level9" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")] +script = ExtResource("1_ev21i") +starting_width = 400.0 +shrink_factor = 2.5 +max_distance_offset = 5.0 +level_nr = 9 +path = NodePath("TrackPath") +line = NodePath("TrackLine") +player = NodePath("player") +finish = NodePath("FinishLine") +menu = NodePath("CanvasLayer/menu_box") + +[node name="EditingBG" type="TextureRect" parent="."] +self_modulate = Color(0.0313726, 0.737255, 0, 1) +offset_left = -13901.0 +offset_top = -12380.1 +offset_right = 43649.0 +offset_bottom = 31763.9 +rotation = -6.66384e-05 +scale = Vector2(0.5, 0.5) +texture = ExtResource("2_m4wxc") +stretch_mode = 1 + +[node name="Background" type="TextureRect" parent="."] +self_modulate = Color(0.172549, 0.482353, 0.47451, 1) +offset_left = -13886.0 +offset_top = -12215.1 +offset_right = 43664.0 +offset_bottom = 31928.9 +scale = Vector2(0.5, 0.5) +texture = ExtResource("3_6npmm") +stretch_mode = 1 + +[node name="TrackPath" type="Path2D" parent="."] +curve = SubResource("Curve2D_ll8bj") + +[node name="TrackLine" type="Line2D" parent="."] +self_modulate = Color(0.447059, 0.619608, 0.329412, 1) +texture_repeat = 2 +texture = ExtResource("4_0rv5r") +texture_mode = 2 +begin_cap_mode = 2 + +[node name="FinishLine" type="Line2D" parent="."] +texture_repeat = 2 +width = 40.0 +texture = ExtResource("5_utl8a") +texture_mode = 1 +begin_cap_mode = 2 +end_cap_mode = 2 +round_precision = 32 +antialiased = true + +[node name="player" parent="." instance=ExtResource("6_8ifjx")] +position = Vector2(55, -13) +brake_strength = 800.0 + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="hud" parent="CanvasLayer" instance=ExtResource("7_d1jq2")] +size_flags_horizontal = 3 + +[node name="menu_box" type="Control" parent="CanvasLayer"] +visible = false +layout_mode = 3 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -20.0 +offset_top = -20.0 +offset_right = 20.0 +offset_bottom = 20.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="level" parent="CanvasLayer/menu_box" instance=ExtResource("8_u5jfg")] +layout_mode = 1 + +[node name="Node2D" type="Node2D" parent="."] +visible = false + +[node name="Sign" parent="Node2D" instance=ExtResource("9_dsbw0")] +light_mask = 7 +position = Vector2(-10798, -9819) +rotation = -0.451921 +scale = Vector2(36.1222, 29.4521) +energy = 8.0 + +[node name="Arrow_light_1x" parent="Node2D" instance=ExtResource("10_eka1d")] +position = Vector2(2813, -771) +rotation = 0.982893 + +[node name="Arrow_light_2x" parent="Node2D" instance=ExtResource("11_4bsja")] +position = Vector2(248, -16) +rotation = 1.51501 + +[node name="Arrow_light_3x" parent="Node2D" instance=ExtResource("12_3i8ow")] +position = Vector2(-4941, -892) +rotation = 1.31872 + +[node name="level_music" type="AudioStreamPlayer" parent="."] +stream = ExtResource("13_mjnmk") +volume_db = -29.953 +autoplay = true +bus = &"Music" + +[node name="Editor_Light" type="DirectionalLight2D" parent="."] +editor_only = true + +[connection signal="distance_changed" from="." to="CanvasLayer/hud" method="_on_level_distance_changed"] +[connection signal="speed_changed" from="player" to="CanvasLayer/hud" method="_on_player_speed_changed"] diff --git a/src/game/levels/level_9.tscn b/src/game/levels/level_9.tscn new file mode 100644 index 0000000..075bca7 --- /dev/null +++ b/src/game/levels/level_9.tscn @@ -0,0 +1,135 @@ +[gd_scene load_steps=15 format=3 uid="uid://1k61ke5bl0du"] + +[ext_resource type="Script" path="res://src/game/levels/level.gd" id="1_3ikem"] +[ext_resource type="Texture2D" uid="uid://gjr7tbyrdo6e" path="res://assets/bkbg.png" id="2_sk4kt"] +[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg_90_bk.png" id="3_e7tf0"] +[ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track_90_bk.png" id="4_4t1qw"] +[ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="5_swl7k"] +[ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="6_wjsgf"] +[ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="7_qbbnq"] +[ext_resource type="PackedScene" uid="uid://dyo5dblkfivwn" path="res://src/gui/menu/level.tscn" id="8_yh4fs"] +[ext_resource type="PackedScene" uid="uid://ya1ctigi23wa" path="res://assets/sign.tscn" id="9_hp52c"] +[ext_resource type="PackedScene" uid="uid://ebmku7hq0mxi" path="res://assets/arrow_light_1.tscn" id="10_uguru"] +[ext_resource type="PackedScene" uid="uid://da1mcxm6jcpbo" path="res://assets/arrow_light_2.tscn" id="11_op5if"] +[ext_resource type="PackedScene" uid="uid://c0v3ix36w45d3" path="res://assets/arrow_light_3.tscn" id="12_0gvwf"] +[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="13_2tt0h"] + +[sub_resource type="Curve2D" id="Curve2D_ll8bj"] +_data = { +"points": PackedVector2Array(-36.1082, 3589.84, 36.1082, -3589.84, 79, -9, -21.3574, 3246.33, 21.3574, -3246.33, -4870, -4849, -3284.29, -4602.8, 3284.29, 4602.8, 5575, -6579, 419.963, -3123.25, -419.963, 3123.25, 945, -734, 25.3984, -3035.11, -25.3984, 3035.11, 6241, 1780, 2260.46, -215.887, -2260.46, 215.887, 717, 3888, -1369.36, 3600.47, 1369.36, -3600.47, -7923, 2715, -211.051, 6958.49, 211.051, -6958.49, 79, -9) +} +point_count = 8 + +[node name="level6" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")] +script = ExtResource("1_3ikem") +starting_width = 400.0 +shrink_factor = 2.5 +max_distance_offset = 5.0 +level_nr = 6 +path = NodePath("TrackPath") +line = NodePath("TrackLine") +player = NodePath("player") +finish = NodePath("FinishLine") +menu = NodePath("CanvasLayer/menu_box") + +[node name="EditingBG" type="TextureRect" parent="."] +self_modulate = Color(0.0313726, 0.737255, 0, 1) +offset_left = -13901.0 +offset_top = -12380.1 +offset_right = 43649.0 +offset_bottom = 31763.9 +rotation = -6.66384e-05 +scale = Vector2(0.5, 0.5) +texture = ExtResource("2_sk4kt") +stretch_mode = 1 + +[node name="Background" type="TextureRect" parent="."] +self_modulate = Color(0.172549, 0.482353, 0.47451, 1) +offset_left = -13886.0 +offset_top = -12215.1 +offset_right = 43664.0 +offset_bottom = 31928.9 +scale = Vector2(0.5, 0.5) +texture = ExtResource("3_e7tf0") +stretch_mode = 1 + +[node name="TrackPath" type="Path2D" parent="."] +curve = SubResource("Curve2D_ll8bj") + +[node name="TrackLine" type="Line2D" parent="."] +self_modulate = Color(0.447059, 0.619608, 0.329412, 1) +texture_repeat = 2 +texture = ExtResource("4_4t1qw") +texture_mode = 2 +begin_cap_mode = 2 + +[node name="FinishLine" type="Line2D" parent="."] +texture_repeat = 2 +width = 40.0 +texture = ExtResource("5_swl7k") +texture_mode = 1 +begin_cap_mode = 2 +end_cap_mode = 2 +round_precision = 32 +antialiased = true + +[node name="player" parent="." instance=ExtResource("6_wjsgf")] +position = Vector2(55, -13) +brake_strength = 800.0 + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="hud" parent="CanvasLayer" instance=ExtResource("7_qbbnq")] +size_flags_horizontal = 3 + +[node name="menu_box" type="Control" parent="CanvasLayer"] +visible = false +layout_mode = 3 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -20.0 +offset_top = -20.0 +offset_right = 20.0 +offset_bottom = 20.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="level" parent="CanvasLayer/menu_box" instance=ExtResource("8_yh4fs")] +layout_mode = 1 + +[node name="Node2D" type="Node2D" parent="."] +visible = false + +[node name="Sign" parent="Node2D" instance=ExtResource("9_hp52c")] +light_mask = 7 +position = Vector2(-10798, -9819) +rotation = -0.451921 +scale = Vector2(36.1222, 29.4521) +energy = 8.0 + +[node name="Arrow_light_1x" parent="Node2D" instance=ExtResource("10_uguru")] +position = Vector2(2813, -771) +rotation = 0.982893 + +[node name="Arrow_light_2x" parent="Node2D" instance=ExtResource("11_op5if")] +position = Vector2(248, -16) +rotation = 1.51501 + +[node name="Arrow_light_3x" parent="Node2D" instance=ExtResource("12_0gvwf")] +position = Vector2(-4941, -892) +rotation = 1.31872 + +[node name="level_music" type="AudioStreamPlayer" parent="."] +stream = ExtResource("13_2tt0h") +volume_db = -29.953 +autoplay = true +bus = &"Music" + +[node name="Editor_Light" type="DirectionalLight2D" parent="."] +editor_only = true + +[connection signal="distance_changed" from="." to="CanvasLayer/hud" method="_on_level_distance_changed"] +[connection signal="speed_changed" from="player" to="CanvasLayer/hud" method="_on_player_speed_changed"]