2022-10-20 23:16:48 +00:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://c6omib6txy3qh"]
|
2022-10-06 13:41:45 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://ck41r2je85sm3" path="res://core/ui/camera.tscn" id="1_7evrt"]
|
2022-10-06 13:41:45 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://brbtq46uk18gg" path="res://core/battlefield.tscn" id="1_x63ik"]
|
2022-10-05 23:21:40 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dqaabctftkakr" path="res://core/player.tscn" id="2_o4smw"]
|
2022-10-23 22:50:48 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://boo6ta2m7e55o" path="res://core/ui/inputs.tscn" id="2_wkcj2"]
|
2022-10-06 13:41:45 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://b8uik6q4v35o3" path="res://tac/units/factory.tscn" id="2_wnc50"]
|
2022-10-20 23:16:48 +00:00
|
|
|
[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"]
|
2022-10-06 13:41:45 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="main" type="Node2D"]
|
2022-10-06 04:23:41 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="camera" parent="." instance=ExtResource("1_7evrt")]
|
2022-10-19 22:02:02 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="backui" type="CanvasLayer" parent="."]
|
|
|
|
layer = -1
|
2022-10-06 13:41:45 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="inputs" parent="backui" instance=ExtResource("2_wkcj2")]
|
2022-10-06 04:23:41 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="world" type="CanvasLayer" parent="."]
|
|
|
|
follow_viewport_enabled = true
|
2022-10-06 13:41:45 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="player1" parent="world" instance=ExtResource("2_o4smw")]
|
2022-10-05 23:21:40 +00:00
|
|
|
color = Color(0, 0, 1, 1)
|
|
|
|
code = "p1"
|
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="player2" parent="world" instance=ExtResource("2_o4smw")]
|
2022-10-05 23:21:40 +00:00
|
|
|
color = Color(1, 0, 0, 1)
|
|
|
|
code = "p2"
|
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="battlefield" parent="world" instance=ExtResource("1_x63ik")]
|
|
|
|
|
|
|
|
[node name="factory1" parent="world/battlefield" node_paths=PackedStringArray("player") instance=ExtResource("2_wnc50")]
|
2022-10-05 23:21:40 +00:00
|
|
|
position = Vector2(270, 222)
|
2022-10-23 22:50:48 +00:00
|
|
|
player = NodePath("../../player1")
|
2022-10-05 23:21:40 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="factory2" parent="world/battlefield" node_paths=PackedStringArray("player") instance=ExtResource("2_wnc50")]
|
2022-10-05 23:21:40 +00:00
|
|
|
position = Vector2(929, 429)
|
2022-10-23 22:50:48 +00:00
|
|
|
player = NodePath("../../player2")
|
2022-10-06 13:41:45 +00:00
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[node name="commands" parent="world" node_paths=PackedStringArray("player", "camera") instance=ExtResource("4_1gkbi")]
|
|
|
|
player = NodePath("../player1")
|
|
|
|
camera = NodePath("../../camera")
|
2022-10-20 23:16:48 +00:00
|
|
|
available_commands = [ExtResource("5_fi2mi")]
|
|
|
|
|
2022-10-23 22:50:48 +00:00
|
|
|
[connection signal="clicked" from="backui/inputs" to="world/commands" method="background_clicked"]
|
|
|
|
[connection signal="scrolled" from="backui/inputs" to="camera" method="scroll"]
|
|
|
|
[connection signal="zoomed" from="backui/inputs" to="camera" method="change_zoom"]
|
|
|
|
[connection signal="commands_changed" from="world/commands" to="world/battlefield" method="_on_commands_changed"]
|