Merge branch 'main' of git.snrd.eu:giantroostergames/LD54
This commit is contained in:
commit
cbd5606f5e
11 changed files with 966 additions and 28 deletions
|
@ -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://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="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://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="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="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"]
|
[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"]
|
[sub_resource type="Curve2D" id="Curve2D_ll8bj"]
|
||||||
_data = {
|
_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
|
point_count = 7
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ point_count = 7
|
||||||
script = ExtResource("1_s3rsn")
|
script = ExtResource("1_s3rsn")
|
||||||
starting_width = 400.0
|
starting_width = 400.0
|
||||||
shrink_factor = 5.0
|
shrink_factor = 5.0
|
||||||
|
max_distance_offset = 5.0
|
||||||
path = NodePath("TrackPath")
|
path = NodePath("TrackPath")
|
||||||
line = NodePath("TrackLine")
|
line = NodePath("TrackLine")
|
||||||
player = NodePath("player")
|
player = NodePath("player")
|
||||||
|
@ -33,10 +34,10 @@ menu = NodePath("CanvasLayer/menu_box")
|
||||||
|
|
||||||
[node name="EditingBG" type="TextureRect" parent="."]
|
[node name="EditingBG" type="TextureRect" parent="."]
|
||||||
self_modulate = Color(0.0313726, 0.737255, 0, 1)
|
self_modulate = Color(0.0313726, 0.737255, 0, 1)
|
||||||
offset_left = -13640.0
|
offset_left = -13625.0
|
||||||
offset_top = -10315.0
|
offset_top = -10313.0
|
||||||
offset_right = 43910.0
|
offset_right = 43925.0
|
||||||
offset_bottom = 33829.0
|
offset_bottom = 33831.0
|
||||||
scale = Vector2(0.5, 0.5)
|
scale = Vector2(0.5, 0.5)
|
||||||
texture = ExtResource("2_4qg8j")
|
texture = ExtResource("2_4qg8j")
|
||||||
stretch_mode = 1
|
stretch_mode = 1
|
||||||
|
@ -102,10 +103,8 @@ layout_mode = 1
|
||||||
|
|
||||||
[node name="Sign" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
[node name="Sign" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
light_mask = 7
|
light_mask = 7
|
||||||
position = Vector2(-7592, -6933)
|
position = Vector2(-2102, 196)
|
||||||
rotation = -0.451921
|
rotation = 0.439265
|
||||||
scale = Vector2(36.1222, 29.4521)
|
|
||||||
energy = 8.0
|
|
||||||
|
|
||||||
[node name="Arrow_light_1" parent="Node2D2" instance=ExtResource("9_om2g6")]
|
[node name="Arrow_light_1" parent="Node2D2" instance=ExtResource("9_om2g6")]
|
||||||
position = Vector2(-4310.93, -5419.8)
|
position = Vector2(-4310.93, -5419.8)
|
||||||
|
@ -119,6 +118,36 @@ rotation = 1.27233
|
||||||
position = Vector2(-6857.93, -4664.8)
|
position = Vector2(-6857.93, -4664.8)
|
||||||
rotation = 1.53565
|
rotation = 1.53565
|
||||||
|
|
||||||
|
[node name="Sign2" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(-2019, 9)
|
||||||
|
rotation = 0.439265
|
||||||
|
|
||||||
|
[node name="Sign3" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(-1582, 2034)
|
||||||
|
rotation = -1.25741
|
||||||
|
|
||||||
|
[node name="Sign4" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(-1297, 2113)
|
||||||
|
rotation = -1.31406
|
||||||
|
|
||||||
|
[node name="Sign5" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(2557, 132)
|
||||||
|
rotation = -4.01318
|
||||||
|
|
||||||
|
[node name="Sign6" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(2760, 306)
|
||||||
|
rotation = -3.87817
|
||||||
|
|
||||||
|
[node name="Sign7" parent="Node2D2" instance=ExtResource("8_i27bq")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(-2181, 391)
|
||||||
|
rotation = 0.413662
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D" parent="."]
|
[node name="Node2D" type="Node2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="4_1w2e5"]
|
[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://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://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="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://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"]
|
[ext_resource type="PackedScene" uid="uid://ebmku7hq0mxi" path="res://assets/arrow_light_1.tscn" id="10_pjhii"]
|
||||||
|
@ -20,7 +20,7 @@ _data = {
|
||||||
}
|
}
|
||||||
point_count = 10
|
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")
|
script = ExtResource("1_ijrq0")
|
||||||
starting_width = 400.0
|
starting_width = 400.0
|
||||||
shrink_factor = 5.0
|
shrink_factor = 5.0
|
||||||
|
@ -34,10 +34,11 @@ menu = NodePath("CanvasLayer/menu_box")
|
||||||
|
|
||||||
[node name="EditingBG" type="TextureRect" parent="."]
|
[node name="EditingBG" type="TextureRect" parent="."]
|
||||||
self_modulate = Color(0.0313726, 0.737255, 0, 1)
|
self_modulate = Color(0.0313726, 0.737255, 0, 1)
|
||||||
offset_left = -10462.0
|
offset_left = -10477.0
|
||||||
offset_top = -14103.0
|
offset_top = -14268.0
|
||||||
offset_right = 47088.0
|
offset_right = 47073.0
|
||||||
offset_bottom = 30041.0
|
offset_bottom = 29876.0
|
||||||
|
rotation = -6.66384e-05
|
||||||
scale = Vector2(0.5, 0.5)
|
scale = Vector2(0.5, 0.5)
|
||||||
texture = ExtResource("2_ugncc")
|
texture = ExtResource("2_ugncc")
|
||||||
stretch_mode = 1
|
stretch_mode = 1
|
||||||
|
@ -108,17 +109,45 @@ rotation = -0.451921
|
||||||
scale = Vector2(36.1222, 29.4521)
|
scale = Vector2(36.1222, 29.4521)
|
||||||
energy = 8.0
|
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)
|
position = Vector2(2813, -771)
|
||||||
rotation = 0.982893
|
rotation = 0.982893
|
||||||
|
|
||||||
[node name="Arrow_light_2" parent="Node2D" instance=ExtResource("10_k8jma")]
|
[node name="Arrow_light_1x2" parent="Node2D" instance=ExtResource("10_pjhii")]
|
||||||
position = Vector2(1730, -250)
|
position = Vector2(4929, -6130)
|
||||||
rotation = 1.27233
|
rotation = 0.0637213
|
||||||
|
|
||||||
[node name="Arrow_light_3" parent="Node2D" instance=ExtResource("11_t72nj")]
|
[node name="Arrow_light_1x3" parent="Node2D" instance=ExtResource("10_pjhii")]
|
||||||
position = Vector2(266, -16)
|
position = Vector2(8353, -2654)
|
||||||
rotation = 1.53565
|
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="."]
|
[node name="level_music" type="AudioStreamPlayer" parent="."]
|
||||||
stream = ExtResource("9_vi54e")
|
stream = ExtResource("9_vi54e")
|
||||||
|
|
173
src/game/levels/level_3.tscn
Normal file
173
src/game/levels/level_3.tscn
Normal file
|
@ -0,0 +1,173 @@
|
||||||
|
[gd_scene load_steps=15 format=3 uid="uid://cnumqjk16txi8"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://src/game/levels/level.gd" id="1_nto0b"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://gjr7tbyrdo6e" path="res://assets/bkbg.png" id="2_wrsa7"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg_90_bk.png" id="3_wk5nu"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track_90_bk.png" id="4_von4u"]
|
||||||
|
[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://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"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c0v3ix36w45d3" path="res://assets/arrow_light_3.tscn" id="12_8hmne"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="14_l3kca"]
|
||||||
|
|
||||||
|
[sub_resource type="Curve2D" id="Curve2D_ll8bj"]
|
||||||
|
_data = {
|
||||||
|
"points": PackedVector2Array(-266.985, 4.23785, 266.985, -4.23785, 109.978, -70.3514, -513.815, 18.9911, 513.815, -18.9911, 1857.14, -93.007, -369.12, -11.9501, 369.12, 11.9501, 2802.14, -548.007, -427.449, 4.45711, 427.449, -4.45711, 4279.14, 483.993, -176.023, 336.585, 176.023, -336.585, 5375.14, 120.993, 95.3432, 714.279, -95.3432, -714.279, 5591.14, -1478.01, 452.857, 245.161, -452.857, -245.161, 4646.14, -2887.01, 539.983, 67.2156, -539.983, -67.2156, 2444.14, -3657.01, 548.897, -21.3095, -548.897, 21.3095, 270.142, -3728.01, 558.343, -328.604, -558.343, 328.604, -1672.86, -3239.01, 130.438, -383.199, -130.438, 383.199, -2578.86, -1684.01, -290.494, -376.102, 290.494, 376.102, -2102.86, -438.007, -274.272, 8.4734, 274.272, -8.4734, -608.498, -80.6266, 0, 0, 0, 0, 109.978, -70.3514)
|
||||||
|
}
|
||||||
|
point_count = 14
|
||||||
|
|
||||||
|
[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
|
||||||
|
max_distance_offset = 5.0
|
||||||
|
level_nr = 3
|
||||||
|
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 = -13662.0
|
||||||
|
offset_top = -10349.0
|
||||||
|
offset_right = 43888.0
|
||||||
|
offset_bottom = 33795.0
|
||||||
|
scale = Vector2(0.5, 0.5)
|
||||||
|
texture = ExtResource("2_wrsa7")
|
||||||
|
stretch_mode = 1
|
||||||
|
|
||||||
|
[node name="Background" type="TextureRect" parent="."]
|
||||||
|
self_modulate = Color(0.827451, 0.521569, 0.713726, 1)
|
||||||
|
offset_left = -10392.0
|
||||||
|
offset_top = -8149.0
|
||||||
|
offset_right = 34096.0
|
||||||
|
offset_bottom = 24335.0
|
||||||
|
scale = Vector2(0.5, 0.5)
|
||||||
|
texture = ExtResource("3_wk5nu")
|
||||||
|
stretch_mode = 1
|
||||||
|
|
||||||
|
[node name="TrackPath" type="Path2D" parent="."]
|
||||||
|
curve = SubResource("Curve2D_ll8bj")
|
||||||
|
|
||||||
|
[node name="TrackLine" type="Line2D" parent="."]
|
||||||
|
self_modulate = Color(0.321569, 0.145098, 0.858824, 1)
|
||||||
|
texture_repeat = 2
|
||||||
|
texture = ExtResource("4_von4u")
|
||||||
|
texture_mode = 2
|
||||||
|
begin_cap_mode = 2
|
||||||
|
|
||||||
|
[node name="FinishLine" type="Line2D" parent="."]
|
||||||
|
texture_repeat = 2
|
||||||
|
width = 40.0
|
||||||
|
texture = ExtResource("5_3dae3")
|
||||||
|
texture_mode = 1
|
||||||
|
begin_cap_mode = 2
|
||||||
|
end_cap_mode = 2
|
||||||
|
round_precision = 32
|
||||||
|
antialiased = true
|
||||||
|
|
||||||
|
[node name="player" parent="." instance=ExtResource("6_s3m1a")]
|
||||||
|
position = Vector2(27, -55)
|
||||||
|
brake_strength = 800.0
|
||||||
|
|
||||||
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
|
[node name="hud" parent="CanvasLayer" instance=ExtResource("7_wvwuj")]
|
||||||
|
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_s6qwc")]
|
||||||
|
layout_mode = 1
|
||||||
|
|
||||||
|
[node name="Node2D2" type="Node2D" parent="."]
|
||||||
|
position = Vector2(117, -85)
|
||||||
|
|
||||||
|
[node name="Sign" parent="Node2D2" instance=ExtResource("9_j8hxc")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(-7592, -6933)
|
||||||
|
rotation = -0.451921
|
||||||
|
scale = Vector2(36.1222, 29.4521)
|
||||||
|
energy = 8.0
|
||||||
|
|
||||||
|
[node name="Arrow_light_1x" parent="Node2D2" instance=ExtResource("10_hylbo")]
|
||||||
|
position = Vector2(1451, -19)
|
||||||
|
rotation = 1.54091
|
||||||
|
|
||||||
|
[node name="Arrow_light_2x" parent="Node2D2" instance=ExtResource("11_wq72b")]
|
||||||
|
position = Vector2(4817, 495)
|
||||||
|
rotation = 1.16486
|
||||||
|
|
||||||
|
[node name="Arrow_light_3x" parent="Node2D2" instance=ExtResource("12_8hmne")]
|
||||||
|
position = Vector2(3926, -3065)
|
||||||
|
rotation = -1.06685
|
||||||
|
|
||||||
|
[node name="Sign2" parent="Node2D2" instance=ExtResource("9_j8hxc")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(2073, -131)
|
||||||
|
rotation = -2.15817
|
||||||
|
|
||||||
|
[node name="Sign3" parent="Node2D2" instance=ExtResource("9_j8hxc")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(2619, -474)
|
||||||
|
rotation = -4.78017
|
||||||
|
|
||||||
|
[node name="Sign4" parent="Node2D2" instance=ExtResource("9_j8hxc")]
|
||||||
|
light_mask = 7
|
||||||
|
position = Vector2(3428, 72.0001)
|
||||||
|
rotation = -0.789446
|
||||||
|
|
||||||
|
[node name="Arrow_light_2x2" parent="Node2D2" instance=ExtResource("11_wq72b")]
|
||||||
|
position = Vector2(5490, -1061)
|
||||||
|
rotation = -0.0642122
|
||||||
|
|
||||||
|
[node name="Arrow_light_2x3" parent="Node2D2" instance=ExtResource("11_wq72b")]
|
||||||
|
position = Vector2(5135, -2277)
|
||||||
|
rotation = -0.655069
|
||||||
|
|
||||||
|
[node name="Arrow_light_3x2" parent="Node2D2" instance=ExtResource("12_8hmne")]
|
||||||
|
position = Vector2(2394, -3578)
|
||||||
|
rotation = -1.43785
|
||||||
|
|
||||||
|
[node name="Arrow_light_2x4" parent="Node2D2" instance=ExtResource("11_wq72b")]
|
||||||
|
position = Vector2(206, -3659)
|
||||||
|
rotation = -1.58244
|
||||||
|
|
||||||
|
[node name="Arrow_light_2x5" parent="Node2D2" instance=ExtResource("11_wq72b")]
|
||||||
|
position = Vector2(-1802, -3167)
|
||||||
|
rotation = -2.30423
|
||||||
|
|
||||||
|
[node name="Arrow_light_2x6" parent="Node2D2" instance=ExtResource("11_wq72b")]
|
||||||
|
position = Vector2(-2728, -1371)
|
||||||
|
rotation = -3.09825
|
||||||
|
|
||||||
|
[node name="level_music" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource("14_l3kca")
|
||||||
|
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"]
|
135
src/game/levels/level_6.tscn
Normal file
135
src/game/levels/level_6.tscn
Normal file
|
@ -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"]
|
135
src/game/levels/level_9.tscn
Normal file
135
src/game/levels/level_9.tscn
Normal file
|
@ -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"]
|
|
@ -12,3 +12,10 @@ func _ready():
|
||||||
func _on_sumbit_button_pressed():
|
func _on_sumbit_button_pressed():
|
||||||
pass #insert score sumbitting function here
|
pass #insert score sumbitting function here
|
||||||
#then proceed to highscore screen
|
#then proceed to highscore screen
|
||||||
|
|
||||||
|
func _on_retry_button_pressed():
|
||||||
|
get_tree().reload_current_scene()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_submit_button_pressed():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
|
@ -50,9 +50,9 @@ anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -49.5
|
offset_left = -49.5
|
||||||
offset_top = -81.0
|
offset_top = -107.0
|
||||||
offset_right = 49.5
|
offset_right = 49.5
|
||||||
offset_bottom = 7.0
|
offset_bottom = -19.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ layout_mode = 2
|
||||||
placeholder_text = "enter name"
|
placeholder_text = "enter name"
|
||||||
expand_to_text_length = true
|
expand_to_text_length = true
|
||||||
|
|
||||||
[node name="SubmitButton" type="Button" parent="Panel"]
|
[node name="RetryButton" type="Button" parent="Panel"]
|
||||||
custom_minimum_size = Vector2(120, 40)
|
custom_minimum_size = Vector2(120, 40)
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 7
|
anchors_preset = 7
|
||||||
|
@ -87,4 +87,26 @@ grow_vertical = 0
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
size_flags_vertical = 8
|
size_flags_vertical = 8
|
||||||
focus_neighbor_bottom = NodePath("../StartButton")
|
focus_neighbor_bottom = NodePath("../StartButton")
|
||||||
|
text = "RETRY"
|
||||||
|
|
||||||
|
[node name="SubmitButton" type="Button" parent="Panel"]
|
||||||
|
custom_minimum_size = Vector2(120, 40)
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 7
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = -60.0
|
||||||
|
offset_top = -204.0
|
||||||
|
offset_right = 60.0
|
||||||
|
offset_bottom = -164.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 8
|
||||||
|
focus_neighbor_bottom = NodePath("../StartButton")
|
||||||
text = "SUBMIT"
|
text = "SUBMIT"
|
||||||
|
|
||||||
|
[connection signal="pressed" from="Panel/RetryButton" to="." method="_on_retry_button_pressed"]
|
||||||
|
[connection signal="pressed" from="Panel/SubmitButton" to="." method="_on_submit_button_pressed"]
|
||||||
|
|
30
src/gui/menu/scores.gd
Normal file
30
src/gui/menu/scores.gd
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
extends Control
|
||||||
|
|
||||||
|
@export var level_select: Control
|
||||||
|
@export var first_selection: Control
|
||||||
|
@export var level_first_selection: Control
|
||||||
|
@export var leaderboard: Control
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
first_selection.grab_focus()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _on_quit_button_pressed():
|
||||||
|
get_tree().quit()
|
||||||
|
|
||||||
|
func _on_back_button_pressed():
|
||||||
|
level_select.hide()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_level_button_pressed(level:int):
|
||||||
|
load_level("res://src/game/levels/level_%s.tscn" % level)
|
||||||
|
|
||||||
|
func load_level(path: String):
|
||||||
|
leaderboard.show()
|
||||||
|
load_leaderboard_content()
|
||||||
|
|
||||||
|
func load_leaderboard_content(level: String):
|
||||||
|
|
380
src/gui/menu/scores.tscn
Normal file
380
src/gui/menu/scores.tscn
Normal file
|
@ -0,0 +1,380 @@
|
||||||
|
[gd_scene load_steps=8 format=3 uid="uid://daki40cyvwaoy"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://src/gui/menu/main.gd" id="1_1gfw2"]
|
||||||
|
[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="2_t8ixe"]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2u7je"]
|
||||||
|
bg_color = Color(1, 1, 1, 1)
|
||||||
|
border_width_left = 2
|
||||||
|
border_width_top = 2
|
||||||
|
border_width_right = 2
|
||||||
|
border_width_bottom = 2
|
||||||
|
border_color = Color(0, 0, 0, 1)
|
||||||
|
border_blend = true
|
||||||
|
corner_radius_top_left = 5
|
||||||
|
corner_radius_top_right = 5
|
||||||
|
corner_radius_bottom_right = 5
|
||||||
|
corner_radius_bottom_left = 5
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uo2yv"]
|
||||||
|
bg_color = Color(1, 1, 1, 1)
|
||||||
|
corner_radius_top_left = 5
|
||||||
|
corner_radius_top_right = 5
|
||||||
|
corner_radius_bottom_right = 5
|
||||||
|
corner_radius_bottom_left = 5
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sjhib"]
|
||||||
|
bg_color = Color(0, 0, 0, 1)
|
||||||
|
border_width_left = 2
|
||||||
|
border_width_top = 2
|
||||||
|
border_width_right = 2
|
||||||
|
border_width_bottom = 2
|
||||||
|
border_color = Color(1, 1, 1, 1)
|
||||||
|
border_blend = true
|
||||||
|
corner_radius_top_left = 5
|
||||||
|
corner_radius_top_right = 5
|
||||||
|
corner_radius_bottom_right = 5
|
||||||
|
corner_radius_bottom_left = 5
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5it3g"]
|
||||||
|
bg_color = Color(0, 0, 0, 1)
|
||||||
|
corner_radius_top_left = 10
|
||||||
|
corner_radius_top_right = 10
|
||||||
|
corner_radius_bottom_right = 10
|
||||||
|
corner_radius_bottom_left = 10
|
||||||
|
|
||||||
|
[sub_resource type="Theme" id="Theme_67fiq"]
|
||||||
|
Button/colors/font_color = Color(0, 0, 0, 1)
|
||||||
|
Button/colors/font_focus_color = Color(0, 0, 0, 1)
|
||||||
|
Button/colors/font_hover_color = Color(0, 0, 0, 1)
|
||||||
|
Button/colors/font_hover_pressed_color = Color(1, 1, 1, 1)
|
||||||
|
Button/colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||||
|
Button/styles/hover = SubResource("StyleBoxFlat_2u7je")
|
||||||
|
Button/styles/normal = SubResource("StyleBoxFlat_uo2yv")
|
||||||
|
Button/styles/pressed = SubResource("StyleBoxFlat_sjhib")
|
||||||
|
Panel/styles/panel = SubResource("StyleBoxFlat_5it3g")
|
||||||
|
|
||||||
|
[node name="Menu" type="Control" node_paths=PackedStringArray("level_select", "level_first_selection")]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_top = 1.0
|
||||||
|
offset_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
theme = SubResource("Theme_67fiq")
|
||||||
|
script = ExtResource("1_1gfw2")
|
||||||
|
level_select = NodePath("LevelSelect")
|
||||||
|
level_first_selection = NodePath("LevelSelect/VBoxContainer/VBoxContainer2/Row1/1")
|
||||||
|
|
||||||
|
[node name="LevelSelect" type="Panel" parent="."]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -131.0
|
||||||
|
offset_top = -231.0
|
||||||
|
offset_right = 132.0
|
||||||
|
offset_bottom = 169.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="LevelSelect"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -86.5
|
||||||
|
offset_top = -65.0
|
||||||
|
offset_right = 85.5
|
||||||
|
offset_bottom = 127.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer2" type="VBoxContainer" parent="LevelSelect/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Row1" type="BoxContainer" parent="LevelSelect/VBoxContainer/VBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="1" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row1"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "1"
|
||||||
|
|
||||||
|
[node name="2" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row1"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "2"
|
||||||
|
|
||||||
|
[node name="3" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row1"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "3"
|
||||||
|
|
||||||
|
[node name="4" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row1"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "4"
|
||||||
|
|
||||||
|
[node name="Row2" type="BoxContainer" parent="LevelSelect/VBoxContainer/VBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="5" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row2"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "5"
|
||||||
|
|
||||||
|
[node name="6" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row2"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "6"
|
||||||
|
|
||||||
|
[node name="7" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row2"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "7"
|
||||||
|
|
||||||
|
[node name="8" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row2"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "8"
|
||||||
|
|
||||||
|
[node name="Row3" type="BoxContainer" parent="LevelSelect/VBoxContainer/VBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="9" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row3"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "9"
|
||||||
|
|
||||||
|
[node name="10" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row3"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "10"
|
||||||
|
|
||||||
|
[node name="11" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row3"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "11"
|
||||||
|
|
||||||
|
[node name="12" type="Button" parent="LevelSelect/VBoxContainer/VBoxContainer2/Row3"]
|
||||||
|
custom_minimum_size = Vector2(40, 40)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "12"
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="LevelSelect"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 5
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
offset_left = -52.0
|
||||||
|
offset_top = 24.0
|
||||||
|
offset_right = 52.0
|
||||||
|
offset_bottom = 50.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
text = "LEVEL SELECT"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="BackButton" type="Button" parent="LevelSelect"]
|
||||||
|
custom_minimum_size = Vector2(120, 40)
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 7
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = -60.0
|
||||||
|
offset_top = -109.0
|
||||||
|
offset_right = 60.0
|
||||||
|
offset_bottom = -69.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 8
|
||||||
|
focus_neighbor_bottom = NodePath("../StartButton")
|
||||||
|
text = "BACK"
|
||||||
|
|
||||||
|
[node name="MenuMusic" type="AudioStreamPlayer" parent="."]
|
||||||
|
stream = ExtResource("2_t8ixe")
|
||||||
|
volume_db = -29.953
|
||||||
|
autoplay = true
|
||||||
|
bus = &"Music"
|
||||||
|
|
||||||
|
[node name="menubox" type="Control" parent="."]
|
||||||
|
anchors_preset = 0
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 40.0
|
||||||
|
|
||||||
|
[node name="LevelSelect2" type="Panel" parent="."]
|
||||||
|
visible = false
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = -1
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -249.5
|
||||||
|
offset_top = -281.0
|
||||||
|
offset_right = 250.5
|
||||||
|
offset_bottom = 219.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="ScrollContainer" type="ScrollContainer" parent="LevelSelect2"]
|
||||||
|
layout_mode = 2
|
||||||
|
offset_left = 50.0
|
||||||
|
offset_top = 100.0
|
||||||
|
offset_right = 450.0
|
||||||
|
offset_bottom = 400.0
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="LevelSelect2/ScrollContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="LevelSelect2/ScrollContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="LevelSelect2/ScrollContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
custom_minimum_size = Vector2(50, 2.08165e-12)
|
||||||
|
layout_mode = 2
|
||||||
|
text = "1"
|
||||||
|
|
||||||
|
[node name="Label2" type="Label" parent="LevelSelect2/ScrollContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
custom_minimum_size = Vector2(170, 2.08165e-12)
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Username"
|
||||||
|
|
||||||
|
[node name="Label3" type="Label" parent="LevelSelect2/ScrollContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Username"
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="LevelSelect2"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 5
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
offset_left = -52.0
|
||||||
|
offset_top = 24.0
|
||||||
|
offset_right = 52.0
|
||||||
|
offset_bottom = 50.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
text = "LEADERBOARD"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="BackButton" type="Button" parent="LevelSelect2"]
|
||||||
|
custom_minimum_size = Vector2(120, 40)
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 7
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = -60.0
|
||||||
|
offset_top = -65.0
|
||||||
|
offset_right = 60.0
|
||||||
|
offset_bottom = -25.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 8
|
||||||
|
focus_neighbor_bottom = NodePath("../StartButton")
|
||||||
|
text = "BACK"
|
||||||
|
|
||||||
|
[node name="BackButton" type="Button" parent="LevelSelect2/BackButton"]
|
||||||
|
custom_minimum_size = Vector2(120, 40)
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 7
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = 81.5
|
||||||
|
offset_top = -40.0
|
||||||
|
offset_right = 201.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 8
|
||||||
|
focus_neighbor_bottom = NodePath("../StartButton")
|
||||||
|
text = "NEXT
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="BackButton" type="Button" parent="LevelSelect2/BackButton/BackButton"]
|
||||||
|
custom_minimum_size = Vector2(120, 40)
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 7
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = -344.0
|
||||||
|
offset_top = -41.0
|
||||||
|
offset_right = -224.0
|
||||||
|
offset_bottom = -1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 8
|
||||||
|
focus_neighbor_bottom = NodePath("../StartButton")
|
||||||
|
text = "PREVIOUS
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="Label2" type="Label" parent="LevelSelect2"]
|
||||||
|
layout_mode = 0
|
||||||
|
offset_left = 50.0
|
||||||
|
offset_top = 66.0
|
||||||
|
offset_right = 107.0
|
||||||
|
offset_bottom = 92.0
|
||||||
|
text = "Rank"
|
||||||
|
|
||||||
|
[node name="Label3" type="Label" parent="LevelSelect2"]
|
||||||
|
layout_mode = 0
|
||||||
|
offset_left = 106.0
|
||||||
|
offset_top = 66.0
|
||||||
|
offset_right = 163.0
|
||||||
|
offset_bottom = 92.0
|
||||||
|
text = "Name
|
||||||
|
"
|
||||||
|
|
||||||
|
[node name="Label4" type="Label" parent="LevelSelect2"]
|
||||||
|
layout_mode = 0
|
||||||
|
offset_left = 277.0
|
||||||
|
offset_top = 66.0
|
||||||
|
offset_right = 334.0
|
||||||
|
offset_bottom = 92.0
|
||||||
|
text = "Score
|
||||||
|
"
|
||||||
|
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row1/1" to="." method="_on_level_button_pressed" binds= [1]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row1/2" to="." method="_on_level_button_pressed" binds= [2]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row1/3" to="." method="_on_level_button_pressed" binds= [3]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row1/4" to="." method="_on_level_button_pressed" binds= [4]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row2/5" to="." method="_on_level_button_pressed" binds= [5]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row2/6" to="." method="_on_level_button_pressed" binds= [6]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row2/7" to="." method="_on_level_button_pressed" binds= [7]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row2/8" to="." method="_on_level_button_pressed" binds= [8]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row3/9" to="." method="_on_level_button_pressed" binds= [9]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row3/10" to="." method="_on_level_button_pressed" binds= [10]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row3/11" to="." method="_on_level_button_pressed" binds= [11]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/VBoxContainer/VBoxContainer2/Row3/12" to="." method="_on_level_button_pressed" binds= [12]]
|
||||||
|
[connection signal="pressed" from="LevelSelect/BackButton" to="." method="_on_back_button_pressed"]
|
||||||
|
[connection signal="pressed" from="LevelSelect2/BackButton" to="." method="_on_back_button_pressed"]
|
||||||
|
[connection signal="pressed" from="LevelSelect2/BackButton/BackButton" to="." method="_on_back_button_pressed"]
|
||||||
|
[connection signal="pressed" from="LevelSelect2/BackButton/BackButton/BackButton" to="." method="_on_back_button_pressed"]
|
|
@ -1,5 +1,4 @@
|
||||||
class_name Config
|
class_name Config
|
||||||
extends Node
|
|
||||||
|
|
||||||
const Secrets = preload("secrets.gd")
|
const Secrets = preload("secrets.gd")
|
||||||
const Path = "config.cfg"
|
const Path = "config.cfg"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
class_name RequestFactory
|
class_name RequestFactory
|
||||||
extends Object
|
|
||||||
|
|
||||||
const headers = [
|
const headers = [
|
||||||
"Content-Type: application/json",
|
"Content-Type: application/json",
|
||||||
|
|
Loading…
Reference in a new issue