From f1b4d6034c937c89b2750bc209684a4e19896177 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 14 Apr 2024 23:00:45 +0700 Subject: Art overhaul --- Levels/game.tscn | 197 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 180 insertions(+), 17 deletions(-) (limited to 'Levels/game.tscn') diff --git a/Levels/game.tscn b/Levels/game.tscn index c64175f..852378c 100644 --- a/Levels/game.tscn +++ b/Levels/game.tscn @@ -1,12 +1,18 @@ -[gd_scene load_steps=11 format=3 uid="uid://rd1m2fu22g1s"] +[gd_scene load_steps=17 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"] [ext_resource type="Script" path="res://Scripts/Player.gd" id="3_j3fp5"] [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://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"] +[ext_resource type="Texture2D" uid="uid://cci7pus1kdxjj" path="res://Assets/Visuals/blob0.png" id="8_esilc"] +[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"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ludyn"] size = Vector2(38, 38) @@ -15,27 +21,31 @@ size = Vector2(38, 38) radius = 260.83 [sub_resource type="CircleShape2D" id="CircleShape2D_4p6y7"] -radius = 120.0 +radius = 160.0 [node name="MainNode2D" type="Node2D"] [node name="Generator" type="Node" parent="."] script = ExtResource("1_uaslf") numbernode = ExtResource("1_j877y") -min_nodes = 70 -max_nodes = 100 +min_nodes = 60 +max_nodes = 90 -[node name="GameLoop" type="Node" parent="." node_paths=PackedStringArray("label")] +[node name="GameLoop" type="Node" parent="." node_paths=PackedStringArray("label", "turn_label")] script = ExtResource("3_u7xnc") turns = 10 -label = NodePath("../Label") +label = NodePath("../Control/HBoxContainer/Label") +turn_label = NodePath("../Control/TurnLabel") level = "res://Levels/game.tscn" +[node name="BetweenPlayerAndAI" type="Timer" parent="GameLoop"] +one_shot = true + [node name="Player" parent="." instance=ExtResource("1_j877y")] z_index = 4096 position = Vector2(68, 661) do_scanning = false -color = Color(0, 0.329412, 0, 1) +color = Color(0.156863, 0.298039, 0.929412, 1) [node name="Player" type="Node" parent="Player" node_paths=PackedStringArray("line")] script = ExtResource("3_j3fp5") @@ -47,14 +57,18 @@ script = ExtResource("5_8xpc8") me = NodePath("..") player = NodePath("../Player") max_value = 100 -min_size = 1.0 -max_size = 2.0 +min_size = 0.08 +max_size = 0.2 +min_range = 160.0 +max_range = 350.0 [node name="Line2D" type="Line2D" parent="Player"] z_index = -1 +z_as_relative = false points = PackedVector2Array(0, 0, 0, 0) width = 20.0 -default_color = Color(0, 0, 0, 1) +default_color = Color(0.156863, 0.298039, 0.929412, 1) +texture_mode = 2 begin_cap_mode = 2 end_cap_mode = 2 @@ -79,6 +93,8 @@ offset_right = 31.0 offset_bottom = -36.0 grow_horizontal = 2 grow_vertical = 0 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_5ifsc") text = "+ X" horizontal_alignment = 1 vertical_alignment = 1 @@ -90,7 +106,7 @@ wait_time = 2.0 [node name="AI" parent="." instance=ExtResource("1_j877y")] position = Vector2(1207, 52) do_scanning = false -color = Color(0.917647, 0, 0, 1) +color = Color(0.921569, 0.403922, 0.627451, 1) [node name="AI" type="Node" parent="AI" node_paths=PackedStringArray("shape_cast_original", "shape_cast_skill_issue")] script = ExtResource("6_ncui2") @@ -102,8 +118,10 @@ script = ExtResource("5_8xpc8") me = NodePath("..") player = NodePath("../AI") max_value = 100 -min_size = 1.0 -max_size = 2.0 +min_size = 0.08 +max_size = 0.2 +min_range = 160.0 +max_range = 340.0 [node name="ThisAIHasSkillIssue" type="ShapeCast2D" parent="AI"] modulate = Color(1, 0, 0, 1) @@ -130,6 +148,8 @@ offset_right = 31.0 offset_bottom = -36.0 grow_horizontal = 2 grow_vertical = 0 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_fonts/font = ExtResource("4_5ifsc") text = "+ X" horizontal_alignment = 1 vertical_alignment = 1 @@ -144,11 +164,154 @@ position = Vector2(95, 551) [node name="NumberNode2" parent="." instance=ExtResource("1_j877y")] position = Vector2(1214, 127) -[node name="Label" type="Label" parent="."] -offset_right = 40.0 -offset_bottom = 23.0 -text = "Turns Left: X" +[node name="Blob0" type="Sprite2D" parent="."] +modulate = Color(0.615686, 0.792157, 1, 0.933333) +z_index = -999 +position = Vector2(252, 169) +texture = ExtResource("8_esilc") + +[node name="Blob2" type="Sprite2D" parent="."] +modulate = Color(0.72549, 0.639216, 0.858824, 0.631373) +z_index = -999 +position = Vector2(1051, 191) +scale = Vector2(0.866211, 0.779297) +texture = ExtResource("9_13brs") + +[node name="Blob1" type="Sprite2D" parent="."] +modulate = Color(0.839216, 0.623529, 1, 0.533333) +z_index = -999 +position = Vector2(702, 656) +texture = ExtResource("8_u1qbb") + +[node name="ColorRect" type="ColorRect" parent="."] +z_index = -1000 +custom_minimum_size = Vector2(1280, 720) +offset_right = 1280.0 +offset_bottom = 720.0 +mouse_filter = 1 +color = Color(0.835294, 0.956863, 1, 1) + +[node name="Control" type="Control" parent="."] +z_index = 4096 +layout_mode = 3 +anchors_preset = 0 +offset_right = 1280.0 +offset_bottom = 720.0 +mouse_filter = 1 + +[node name="HBoxContainer" type="HBoxContainer" parent="Control"] +layout_mode = 1 +anchors_preset = 10 +anchor_right = 1.0 +offset_bottom = 91.515 +grow_horizontal = 2 +alignment = 1 + +[node name="Label" type="Label" parent="Control/HBoxContainer"] +layout_mode = 2 +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 = 13 +theme_override_fonts/font = ExtResource("4_5ifsc") +theme_override_font_sizes/font_size = 48 +text = "X" +horizontal_alignment = 1 +vertical_alignment = 2 + +[node name="Label2" type="Label" parent="Control/HBoxContainer"] +layout_mode = 2 +theme_override_colors/font_color = Color(0.835294, 0.835294, 0.835294, 1) +theme_override_colors/font_outline_color = Color(0, 0, 0, 1) +theme_override_constants/outline_size = 13 +theme_override_fonts/font = ExtResource("4_5ifsc") +theme_override_font_sizes/font_size = 22 +text = " turn(s) left" +horizontal_alignment = 1 +vertical_alignment = 2 + +[node name="TurnLabel" type="Label" parent="Control"] +layout_mode = 1 +anchors_preset = 10 +anchor_right = 1.0 +offset_top = 89.335 +offset_bottom = 117.335 +grow_horizontal = 2 +rotation = -0.0349066 +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 = 8 +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 18 +text = "your turn!" +horizontal_alignment = 1 + +[node name="ResetLabel" type="Label" parent="Control"] +visible = false +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -164.0 +offset_top = -62.0 +offset_right = -26.0 +offset_bottom = -34.0 +grow_horizontal = 0 +grow_vertical = 0 +rotation = 0.101229 +theme_override_colors/font_color = Color(0, 0, 0, 0.223529) +theme_override_colors/font_outline_color = Color(1, 1, 1, 0.317647) +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="Won" type="Control" parent="Control"] +visible = false +anchors_preset = 0 +offset_right = 1280.0 +offset_bottom = 720.0 + +[node name="TextureRect2" type="TextureRect" parent="Control/Won"] +modulate = Color(0.113725, 0.184314, 0.541176, 1) +layout_mode = 0 +offset_left = 400.0 +offset_top = 297.0 +offset_right = 1424.0 +offset_bottom = 809.0 +rotation = -0.170645 +scale = Vector2(0.42251, 0.392513) +texture = ExtResource("13_8aorr") + +[node name="TextureRect" type="TextureRect" parent="Control/Won"] +modulate = Color(0.172549, 0.419608, 1, 1) +layout_mode = 0 +offset_left = 435.0 +offset_top = 255.0 +offset_right = 1459.0 +offset_bottom = 767.0 +scale = Vector2(0.4, 0.4) +texture = ExtResource("13_8aorr") + +[node name="WonLabel" type="Label" parent="Control/Won"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +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 +theme_override_fonts/font = ExtResource("4_cjrjl") +theme_override_font_sizes/font_size = 78 +text = "YOU won!" +horizontal_alignment = 1 +vertical_alignment = 1 +[connection signal="timeout" from="GameLoop/BetweenPlayerAndAI" to="GameLoop" method="_on_between_player_and_ai_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"] -- cgit v1.2.3