summaryrefslogtreecommitdiff
path: root/Levels/game.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Levels/game.tscn')
-rw-r--r--Levels/game.tscn75
1 files changed, 70 insertions, 5 deletions
diff --git a/Levels/game.tscn b/Levels/game.tscn
index e624884..248bdab 100644
--- a/Levels/game.tscn
+++ b/Levels/game.tscn
@@ -1,33 +1,43 @@
-[gd_scene load_steps=6 format=3 uid="uid://rd1m2fu22g1s"]
+[gd_scene load_steps=10 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="Script" path="res://Scripts/ModifierLabel.gd" id="5_lj1b3"]
+[ext_resource type="Script" path="res://Scripts/AI.gd" id="6_ncui2"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ludyn"]
size = Vector2(38, 38)
+[sub_resource type="CircleShape2D" id="CircleShape2D_ml6nm"]
+radius = 260.83
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_4p6y7"]
+radius = 120.0
+
[node name="MainNode2D" type="Node2D"]
[node name="Generator" type="Node" parent="."]
script = ExtResource("1_uaslf")
numbernode = ExtResource("1_j877y")
-min_nodes = 100
+min_nodes = 50
max_nodes = 100
-[node name="GameLoop" type="Node" parent="."]
+[node name="GameLoop" type="Node" parent="." node_paths=PackedStringArray("label")]
script = ExtResource("3_u7xnc")
+turns = 100
+label = NodePath("../Label")
[node name="Player" parent="." instance=ExtResource("1_j877y")]
z_index = 4096
-position = Vector2(63, 658)
+position = Vector2(68, 661)
do_scanning = false
color = Color(0, 0.329412, 0, 1)
[node name="Player" type="Node" parent="Player" node_paths=PackedStringArray("line")]
script = ExtResource("3_j3fp5")
-max_distance = 300.0
+max_distance = 160.0
line = NodePath("../Line2D")
[node name="Line2D" type="Line2D" parent="Player"]
@@ -46,4 +56,59 @@ collision_priority = 9999.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player/PlayerArea2D"]
shape = SubResource("RectangleShape2D_ludyn")
+[node name="ModifierLabel" type="Label" parent="Player"]
+visible = false
+anchors_preset = 7
+anchor_left = 0.5
+anchor_top = 1.0
+anchor_right = 0.5
+anchor_bottom = 1.0
+offset_left = -31.0
+offset_top = -59.0
+offset_right = 31.0
+offset_bottom = -36.0
+grow_horizontal = 2
+grow_vertical = 0
+text = "+ X"
+horizontal_alignment = 1
+vertical_alignment = 1
+script = ExtResource("5_lj1b3")
+
+[node name="Timer" type="Timer" parent="Player/ModifierLabel"]
+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)
+
+[node name="AI" type="Node" parent="AI" node_paths=PackedStringArray("shape_cast_original", "shape_cast_skill_issue")]
+script = ExtResource("6_ncui2")
+shape_cast_original = NodePath("../AIShapeCast2D")
+shape_cast_skill_issue = NodePath("../ThisAIHasSkillIssue")
+
+[node name="ThisAIHasSkillIssue" type="ShapeCast2D" parent="AI"]
+modulate = Color(1, 0, 0, 1)
+shape = SubResource("CircleShape2D_ml6nm")
+target_position = Vector2(0, 0)
+collide_with_areas = true
+
+[node name="AIShapeCast2D" type="ShapeCast2D" parent="AI"]
+modulate = Color(1, 0, 1, 1)
+shape = SubResource("CircleShape2D_4p6y7")
+target_position = Vector2(0, 0)
+collide_with_areas = true
+
+[node name="NumberNode" parent="." instance=ExtResource("1_j877y")]
+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"
+
[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"]