diff options
Diffstat (limited to 'Levels')
-rw-r--r-- | Levels/game.tscn | 467 |
1 files changed, 463 insertions, 4 deletions
diff --git a/Levels/game.tscn b/Levels/game.tscn index 6e11d2a..c3df8e6 100644 --- a/Levels/game.tscn +++ b/Levels/game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=17 format=3 uid="uid://rd1m2fu22g1s"] +[gd_scene load_steps=24 format=3 uid="uid://rd1m2fu22g1s"] [ext_resource type="PackedScene" uid="uid://ccvoi0qmvlxmj" path="res://Reusable Scenes/number_node.tscn" id="1_j877y"] [ext_resource type="Script" path="res://Scripts/Generator.gd" id="1_uaslf"] @@ -6,6 +6,7 @@ [ext_resource type="Script" path="res://Scripts/GameLoop.gd" id="3_u7xnc"] [ext_resource type="FontFile" uid="uid://bhybdqwdcpywa" path="res://Assets/Fonts/Quicksand-Bold.ttf" id="4_5ifsc"] [ext_resource type="FontFile" uid="uid://df0pr57kqfmcr" path="res://Assets/Fonts/Quicksand-SemiBold.ttf" id="4_cjrjl"] +[ext_resource type="Script" path="res://Scripts/Tutorial.gd" id="4_fqetg"] [ext_resource type="Script" path="res://Levels/IncreaseSize.gd" id="5_8xpc8"] [ext_resource type="Script" path="res://Scripts/ModifierLabel.gd" id="5_lj1b3"] [ext_resource type="Script" path="res://Scripts/AI.gd" id="6_ncui2"] @@ -13,6 +14,9 @@ [ext_resource type="Texture2D" uid="uid://hinhcem271jc" path="res://Assets/Visuals/blob1.png" id="8_u1qbb"] [ext_resource type="Texture2D" uid="uid://022ury5knnn" path="res://Assets/Visuals/blob2.png" id="9_13brs"] [ext_resource type="Texture2D" uid="uid://cgirl46k2wyxe" path="res://Assets/Visuals/squircle.png" id="13_8aorr"] +[ext_resource type="AudioStream" uid="uid://cgoxk43t03yqt" path="res://Assets/Audio/win.wav" id="14_62x5v"] +[ext_resource type="AudioStream" uid="uid://bt22xn53ylcg" path="res://Assets/Audio/lose.wav" id="15_q08y5"] +[ext_resource type="Texture2D" uid="uid://bumq6rg220orv" path="res://Assets/Visuals/hole.png" id="17_tl6rx"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ludyn"] size = Vector2(38, 38) @@ -23,6 +27,92 @@ radius = 260.83 [sub_resource type="CircleShape2D" id="CircleShape2D_4p6y7"] radius = 160.0 +[sub_resource type="Animation" id="Animation_3chpf"] +length = 0.001 +loop_mode = 1 + +[sub_resource type="Animation" id="Animation_ugcil"] +resource_name = "win" +length = 7.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("TextureRect2:scale") +tracks/0/interp = 2 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(1.00255, 1.11788, 1.45173), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Vector2(0, 0), Vector2(0.003, 0.003), Vector2(0.42251, 0.392513)] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("TextureRect:scale") +tracks/1/interp = 2 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(1.11412, 1.17928, 1.50156), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 0, +"values": [Vector2(0, 0), Vector2(0.1, 0.1), Vector2(0.4, 0.4)] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("WonLabel:scale") +tracks/2/interp = 2 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(1.32477, 2.07709), +"transitions": PackedFloat32Array(0.258816, 2.12929), +"update": 0, +"values": [Vector2(0, 0), Vector2(1, 1)] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("WonLabel:position") +tracks/3/interp = 2 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(1.38495, 2.07709), +"transitions": PackedFloat32Array(0.210224, 0.659754), +"update": 0, +"values": [Vector2(530, 300), Vector2(0, 0)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("ResetLabel2:theme_override_colors/font_color") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(2.65637, 3.63815), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(0.717647, 0.717647, 0.717647, 0), Color(0.717647, 0.717647, 0.717647, 1)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("ResetLabel2:theme_override_colors/font_outline_color") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(2.66013, 3.62686), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(0.113725, 0.184314, 0.541176, 0), Color(0.113725, 0.184314, 0.541176, 1)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_1r2yy"] +_data = { +"RESET": SubResource("Animation_3chpf"), +"win": SubResource("Animation_ugcil") +} + [node name="MainNode2D" type="Node2D"] [node name="Generator" type="Node" parent="."] @@ -31,16 +121,26 @@ numbernode = ExtResource("1_j877y") min_nodes = 60 max_nodes = 90 -[node name="GameLoop" type="Node" parent="." node_paths=PackedStringArray("label", "turn_label")] +[node name="GameLoop" type="Node" parent="." node_paths=PackedStringArray("label", "turn_label", "win_control", "anim", "anim_label")] script = ExtResource("3_u7xnc") turns = 10 label = NodePath("../Control/HBoxContainer/Label") turn_label = NodePath("../Control/TurnLabel") level = "res://Levels/game.tscn" +win_control = NodePath("../Control/Won") +anim = NodePath("../Control/Won/AnimationPlayer") +anim_label = NodePath("../Control/Won/WonLabel") [node name="BetweenPlayerAndAI" type="Timer" parent="GameLoop"] one_shot = true +[node name="AudioDelay" type="Timer" parent="GameLoop"] +one_shot = true + +[node name="Tutorial" type="Node" parent="." node_paths=PackedStringArray("step_controls")] +script = ExtResource("4_fqetg") +step_controls = [NodePath("../Control/Tutorial0"), NodePath("../Control/Tutorial1"), NodePath("../Control/Tutorial2"), NodePath("../Control/Tutorial3"), NodePath("../Control/Tutorial4")] + [node name="Player" parent="." instance=ExtResource("1_j877y")] z_index = 4096 position = Vector2(68, 661) @@ -282,7 +382,7 @@ offset_top = 297.0 offset_right = 1424.0 offset_bottom = 809.0 rotation = -0.170645 -scale = Vector2(0.42251, 0.392513) +scale = Vector2(1e-05, 1e-05) texture = ExtResource("13_8aorr") [node name="TextureRect" type="TextureRect" parent="Control/Won"] @@ -292,7 +392,7 @@ offset_left = 435.0 offset_top = 255.0 offset_right = 1459.0 offset_bottom = 767.0 -scale = Vector2(0.4, 0.4) +scale = Vector2(1e-05, 1e-05) texture = ExtResource("13_8aorr") [node name="WonLabel" type="Label" parent="Control/Won"] @@ -300,8 +400,13 @@ layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +offset_left = 530.0 +offset_top = 300.0 +offset_right = 530.0 +offset_bottom = 300.0 grow_horizontal = 2 grow_vertical = 2 +scale = Vector2(1e-05, 1e-05) theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_colors/font_outline_color = Color(0.113725, 0.184314, 0.541176, 1) theme_override_constants/outline_size = 15 @@ -311,7 +416,361 @@ text = "YOU won!" horizontal_alignment = 1 vertical_alignment = 1 +[node name="ResetLabel2" type="Label" parent="Control/Won"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -700.0 +offset_top = -316.0 +offset_right = -562.0 +offset_bottom = -288.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0.717647, 0.717647, 0.717647, 0) +theme_override_colors/font_outline_color = Color(0.113725, 0.184314, 0.541176, 0) +theme_override_constants/outline_size = 7 +theme_override_fonts/font = ExtResource("4_5ifsc") +theme_override_font_sizes/font_size = 18 +text = "press R to reset" +horizontal_alignment = 1 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Control/Won"] +libraries = { +"": SubResource("AnimationLibrary_1r2yy") +} + +[node name="Win" type="AudioStreamPlayer2D" parent="Control/Won"] +stream = ExtResource("14_62x5v") + +[node name="Lose" type="AudioStreamPlayer2D" parent="Control/Won"] +stream = ExtResource("15_q08y5") + +[node name="Tutorial0" type="Control" parent="Control"] +visible = false +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 + +[node name="TextureRect" type="TextureRect" parent="Control/Tutorial0"] +modulate = Color(1, 1, 1, 0.439216) +layout_mode = 0 +offset_left = -572.0 +offset_top = 295.0 +offset_right = 1988.0 +offset_bottom = 1735.0 +scale = Vector2(0.5, 0.5) +texture = ExtResource("17_tl6rx") + +[node name="ColorRect" type="ColorRect" parent="Control/Tutorial0"] +layout_mode = 0 +offset_left = -128.0 +offset_top = -98.0 +offset_right = 1459.0 +offset_bottom = 295.0 +color = Color(0, 0, 0, 0.439216) + +[node name="ColorRect2" type="ColorRect" parent="Control/Tutorial0"] +layout_mode = 0 +offset_left = 708.0 +offset_top = 295.0 +offset_right = 1459.0 +offset_bottom = 1357.0 +color = Color(0, 0, 0, 0.439216) + +[node name="Label" type="Label" parent="Control/Tutorial0"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 123.0 +offset_top = 535.0 +offset_right = 371.0 +offset_bottom = 584.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 5 +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "hey +this is you, you are a number" + +[node name="Label2" type="Label" parent="Control/Tutorial0"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 150.0 +offset_top = 594.0 +offset_right = 289.0 +offset_bottom = 622.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0.713726, 0.713726, 0.713726, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 5 +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "[space] for next" + +[node name="Tutorial1" type="Control" parent="Control"] +visible = false +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 + +[node name="TextureRect" type="TextureRect" parent="Control/Tutorial1"] +modulate = Color(1, 1, 1, 0.439216) +layout_mode = 0 +offset_left = 570.0 +offset_top = -297.0 +offset_right = 3130.0 +offset_bottom = 1143.0 +scale = Vector2(0.5, 0.5) +texture = ExtResource("17_tl6rx") + +[node name="ColorRect" type="ColorRect" parent="Control/Tutorial1"] +layout_mode = 0 +offset_left = -128.0 +offset_top = -98.0 +offset_right = 570.0 +offset_bottom = 1086.0 +color = Color(0, 0, 0, 0.439216) + +[node name="ColorRect2" type="ColorRect" parent="Control/Tutorial1"] +layout_mode = 0 +offset_left = 570.0 +offset_top = 423.0 +offset_right = 1397.0 +offset_bottom = 882.0 +color = Color(0, 0, 0, 0.439216) + +[node name="Label" type="Label" parent="Control/Tutorial1"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 740.0 +offset_top = -21.0 +offset_right = 1072.0 +offset_bottom = 54.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 5 +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "that, is an ai. +defeat him by getting a +larger number" +horizontal_alignment = 2 + +[node name="Label2" type="Label" parent="Control/Tutorial1"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 1070.0 +offset_top = 128.0 +offset_right = 1209.0 +offset_bottom = 156.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0.713726, 0.713726, 0.713726, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 5 +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "[space] for next" + +[node name="Tutorial2" type="Control" parent="Control"] +visible = false +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 +mouse_filter = 1 + +[node name="TextureRect" type="TextureRect" parent="Control/Tutorial2"] +modulate = Color(0, 0, 0, 0.662745) +layout_mode = 0 +offset_left = 244.0 +offset_top = 534.0 +offset_right = 1372.0 +offset_bottom = 1110.0 +scale = Vector2(0.25, 0.25) +texture = ExtResource("13_8aorr") + +[node name="Label" type="Label" parent="Control/Tutorial2"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 230.0 +offset_top = 539.0 +offset_right = 457.0 +offset_bottom = 588.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "join numbers together +by dragging and dropping. +you take turns with the ai." + +[node name="Label2" type="Label" parent="Control/Tutorial2"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 322.0 +offset_top = 596.0 +offset_right = 461.0 +offset_bottom = 624.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0.713726, 0.713726, 0.713726, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "[space] for next" + +[node name="Tutorial3" type="Control" parent="Control"] +visible = false +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 +mouse_filter = 1 + +[node name="TextureRect" type="TextureRect" parent="Control/Tutorial3"] +modulate = Color(0, 0, 0, 0.662745) +layout_mode = 0 +offset_left = 316.0 +offset_top = 425.0 +offset_right = 1340.0 +offset_bottom = 937.0 +scale = Vector2(0.3, 0.3) +texture = ExtResource("13_8aorr") + +[node name="Label" type="Label" parent="Control/Tutorial3"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 295.0 +offset_top = 401.0 +offset_right = 555.0 +offset_bottom = 502.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "some numbers have modifiers +in them, they can do extra +operations after you join a +number." + +[node name="Label2" type="Label" parent="Control/Tutorial3"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 421.0 +offset_top = 498.0 +offset_right = 560.0 +offset_bottom = 526.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0.713726, 0.713726, 0.713726, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "[space] for next" + +[node name="Tutorial4" type="Control" parent="Control"] +visible = false +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 +mouse_filter = 1 + +[node name="TextureRect" type="TextureRect" parent="Control/Tutorial4"] +modulate = Color(0, 0, 0, 0.662745) +layout_mode = 0 +offset_left = 316.0 +offset_top = 425.0 +offset_right = 1340.0 +offset_bottom = 937.0 +scale = Vector2(0.32, 0.32) +texture = ExtResource("13_8aorr") + +[node name="Label" type="Label" parent="Control/Tutorial4"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 306.0 +offset_top = 411.0 +offset_right = 541.0 +offset_bottom = 512.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(1, 1, 1, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "easy, right? +well, good luck! +(oh right, [R] to reset if you +got stuck)" + +[node name="Label2" type="Label" parent="Control/Tutorial4"] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 424.0 +offset_top = 508.0 +offset_right = 569.0 +offset_bottom = 536.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0.713726, 0.713726, 0.713726, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "[space] for done" + [connection signal="timeout" from="GameLoop/BetweenPlayerAndAI" to="GameLoop" method="_on_between_player_and_ai_timeout"] +[connection signal="timeout" from="GameLoop/AudioDelay" to="GameLoop" method="_on_audio_delay_timeout"] [connection signal="input_event" from="Player/PlayerArea2D" to="Player/Player" method="_on_player_area_2d_input_event"] [connection signal="timeout" from="Player/ModifierLabel/Timer" to="Player/ModifierLabel" method="_on_timer_timeout"] [connection signal="timeout" from="AI/ModifierLabel/Timer" to="AI/ModifierLabel" method="_on_timer_timeout"] |