fixed double drawing on round 2

This commit is contained in:
2023-07-07 17:46:11 +10:00
parent 613c89bea6
commit 01eb4e494f
21 changed files with 87 additions and 710 deletions

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://gxofrq3ug6qe"]
[ext_resource type="Script" path="res://Scripts/PlayerStateMachine/bot_controller.gd" id="1_rr26g"]
[ext_resource type="Script" path="res://Scripts/bot_controller.gd" id="1_rr26g"]
[node name="BotPlayer" type="Node2D"]
script = ExtResource("1_rr26g")

View File

@ -37,6 +37,15 @@ position = Vector2(-125, -175)
[node name="Client" type="Node2D" parent="."]
position = Vector2(-175, -125)
[node name="Label" type="Label" parent="."]
offset_left = 145.0
offset_top = 145.0
offset_right = 185.0
offset_bottom = 171.0
text = "0"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="input_event" from="Area2D" to="." method="_on_area_2d_input_event"]
[connection signal="mouse_entered" from="Area2D" to="." method="_on_area_2d_mouse_entered"]
[connection signal="mouse_exited" from="Area2D" to="." method="_on_area_2d_mouse_exited"]

View File

@ -1,10 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://cpl32lvhwd5da"]
[ext_resource type="Script" path="res://Scripts/PlayerStateMachine/human_controller.gd" id="1_4thxs"]
[ext_resource type="Script" path="res://Scripts/human_controller.gd" id="1_qtukm"]
[ext_resource type="Theme" uid="uid://d26ldkm1br1bo" path="res://UI_Theme.tres" id="2_ja0q8"]
[node name="HumanPlayer" type="Node2D" node_paths=PackedStringArray("hand_position", "player_cam")]
script = ExtResource("1_4thxs")
script = ExtResource("1_qtukm")
hand_position = NodePath("Node2D")
player_cam = NodePath("Camera2D")