summaryrefslogtreecommitdiff
path: root/Levels/game.tscn
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-04-13 18:49:03 +0700
committeraltaf-creator <dev@altafcreator.com>2024-04-13 18:49:03 +0700
commitc5a806528af8a4de5f903d26cd33edb7e0bb6597 (patch)
tree619f07a7a7f8b2e65fc97e9f04212d2c7c8c686e /Levels/game.tscn
parent24f5e910dd8f575adc483f768422ab51fdf905cc (diff)
unfinished map generator
Diffstat (limited to 'Levels/game.tscn')
-rw-r--r--Levels/game.tscn64
1 files changed, 21 insertions, 43 deletions
diff --git a/Levels/game.tscn b/Levels/game.tscn
index 66640f9..e624884 100644
--- a/Levels/game.tscn
+++ b/Levels/game.tscn
@@ -1,16 +1,27 @@
-[gd_scene load_steps=4 format=3 uid="uid://rd1m2fu22g1s"]
+[gd_scene load_steps=6 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"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ludyn"]
size = Vector2(38, 38)
[node name="MainNode2D" type="Node2D"]
-position = Vector2(162, 105)
+
+[node name="Generator" type="Node" parent="."]
+script = ExtResource("1_uaslf")
+numbernode = ExtResource("1_j877y")
+min_nodes = 100
+max_nodes = 100
+
+[node name="GameLoop" type="Node" parent="."]
+script = ExtResource("3_u7xnc")
[node name="Player" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(393, 42)
+z_index = 4096
+position = Vector2(63, 658)
do_scanning = false
color = Color(0, 0.329412, 0, 1)
@@ -19,53 +30,20 @@ script = ExtResource("3_j3fp5")
max_distance = 300.0
line = NodePath("../Line2D")
-[node name="PlayerArea2D" type="Area2D" parent="Player"]
-
-[node name="CollisionShape2D" type="CollisionShape2D" parent="Player/PlayerArea2D"]
-shape = SubResource("RectangleShape2D_ludyn")
-
[node name="Line2D" type="Line2D" parent="Player"]
z_index = -1
-points = PackedVector2Array(0, 0, 100, 0)
+points = PackedVector2Array(0, 0, 0, 0)
width = 20.0
default_color = Color(0, 0, 0, 1)
begin_cap_mode = 2
end_cap_mode = 2
-[node name="NumberNode" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(-4, 82)
-value = 5
-
-[node name="NumberNode2" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(248, 474)
-value = 10
-
-[node name="NumberNode3" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(753, 59)
-value = 100
-
-[node name="NumberNode4" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(360, 241)
-
-[node name="NumberNode5" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(620, 280)
-
-[node name="NumberNode6" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(50, 338)
-
-[node name="NumberNode7" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(260, -4)
-
-[node name="NumberNode8" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(994, 4)
-value = 5
-modifier = 2
-modifier_operation = 4
-
-[node name="NumberNode9" parent="." instance=ExtResource("1_j877y")]
-position = Vector2(639, 476)
-value = 5
+[node name="PlayerArea2D" type="Area2D" parent="Player"]
+collision_layer = 2
+collision_mask = 2
+collision_priority = 9999.0
-[node name="Node" type="Node" parent="."]
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Player/PlayerArea2D"]
+shape = SubResource("RectangleShape2D_ludyn")
[connection signal="input_event" from="Player/PlayerArea2D" to="Player/Player" method="_on_player_area_2d_input_event"]