1
0
Fork 0
spacetac/main.tscn

49 lines
2.5 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://c6omib6txy3qh"]
[ext_resource type="PackedScene" uid="uid://ck41r2je85sm3" path="res://core/ui/camera.tscn" id="1_7evrt"]
[ext_resource type="PackedScene" uid="uid://brbtq46uk18gg" path="res://core/battlefield.tscn" id="1_x63ik"]
[ext_resource type="PackedScene" uid="uid://dqaabctftkakr" path="res://core/player.tscn" id="2_o4smw"]
[ext_resource type="PackedScene" uid="uid://boo6ta2m7e55o" path="res://core/ui/inputs.tscn" id="2_wkcj2"]
[ext_resource type="PackedScene" uid="uid://b8uik6q4v35o3" path="res://tac/units/factory.tscn" id="2_wnc50"]
[ext_resource type="PackedScene" uid="uid://xoup4vukp3ni" path="res://core/ui/commands.tscn" id="4_1gkbi"]
[ext_resource type="PackedScene" uid="uid://dr1e0h27nuam" path="res://tac/commands/delivery.tscn" id="5_fi2mi"]
[ext_resource type="PackedScene" uid="uid://cmaup0f5ud8vr" path="res://tac/commands/defend.tscn" id="5_fmegp"]
[node name="main" type="Node2D"]
[node name="camera" parent="." instance=ExtResource("1_7evrt")]
[node name="inputs" parent="." instance=ExtResource("2_wkcj2")]
[node name="commands" parent="." node_paths=PackedStringArray("player", "camera") instance=ExtResource("4_1gkbi")]
player = NodePath("../world/player1")
camera = NodePath("../camera")
available_commands = [ExtResource("5_fi2mi"), ExtResource("5_fmegp")]
[node name="world" type="Node2D" parent="."]
[node name="player1" parent="world" instance=ExtResource("2_o4smw")]
color = Color(0, 0, 1, 1)
code = "p1"
[node name="player2" parent="world" instance=ExtResource("2_o4smw")]
color = Color(1, 0, 0, 1)
code = "p2"
[node name="battlefield" parent="world" node_paths=PackedStringArray("commands") instance=ExtResource("1_x63ik")]
commands = NodePath("../../commands")
[node name="factory1" parent="world/battlefield" node_paths=PackedStringArray("player") instance=ExtResource("2_wnc50")]
position = Vector2(270, 222)
player = NodePath("../../player1")
[node name="factory2" parent="world/battlefield" node_paths=PackedStringArray("player") instance=ExtResource("2_wnc50")]
position = Vector2(929, 429)
player = NodePath("../../player2")
[connection signal="clicked" from="inputs" to="commands" method="background_clicked"]
[connection signal="scrolled" from="inputs" to="camera" method="scroll"]
[connection signal="zoomed" from="inputs" to="camera" method="change_zoom"]
[connection signal="commands_changed" from="commands" to="world/battlefield" method="_on_commands_changed"]
[connection signal="child_entered_tree" from="world/battlefield" to="world/battlefield" method="_on_child_entered_tree"]