From 24f5e910dd8f575adc483f768422ab51fdf905cc Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sat, 13 Apr 2024 14:55:31 +0700 Subject: Initial commit. Exists: NumberNode, Player, dragging and dropping, joining NumberNodes --- Levels/game.tscn | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Levels/game.tscn (limited to 'Levels/game.tscn') diff --git a/Levels/game.tscn b/Levels/game.tscn new file mode 100644 index 0000000..66640f9 --- /dev/null +++ b/Levels/game.tscn @@ -0,0 +1,71 @@ +[gd_scene load_steps=4 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/Player.gd" id="3_j3fp5"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_ludyn"] +size = Vector2(38, 38) + +[node name="MainNode2D" type="Node2D"] +position = Vector2(162, 105) + +[node name="Player" parent="." instance=ExtResource("1_j877y")] +position = Vector2(393, 42) +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 +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) +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="Node" type="Node" parent="."] + +[connection signal="input_event" from="Player/PlayerArea2D" to="Player/Player" method="_on_player_area_2d_input_event"] -- cgit v1.2.3