Center blips
This commit is contained in:
parent
fe551437e0
commit
8f3ca4dada
@ -33,7 +33,7 @@ public partial class GameManager : Node
|
||||
}
|
||||
else
|
||||
{
|
||||
CurrentState = State.IDLE;
|
||||
//CurrentState = State.IDLE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ public partial class PaddlePivotTest : Node2D
|
||||
{
|
||||
UpdateRotationSpeed();
|
||||
direction = !direction;
|
||||
|
||||
hits_left--;
|
||||
HitsLeft.Text = hits_left.ToString();
|
||||
|
||||
}
|
||||
|
||||
394
main.tscn
394
main.tscn
@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=23 format=3 uid="uid://dc7mdcm45gwcm"]
|
||||
[gd_scene load_steps=24 format=3 uid="uid://dc7mdcm45gwcm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://837wj2bp417t" path="res://addons/primitives2d/circle2d.gd" id="1_ig7tw"]
|
||||
[ext_resource type="Script" uid="uid://bspmrib6cl6qc" path="res://addons/primitives2d/rectangle2d.gd" id="2_0xm2m"]
|
||||
[ext_resource type="Script" uid="uid://cqccd451iqfti" path="res://PaddlePivotTest.cs" id="3_h2yge"]
|
||||
[ext_resource type="Script" uid="uid://c6v3ersnx3svd" path="res://addons/primitives2d/arc2d.gd" id="4_7mycd"]
|
||||
[ext_resource type="Script" uid="uid://csmfx22swajfs" path="res://GameManager.cs" id="4_lquwl"]
|
||||
[ext_resource type="Script" uid="uid://dw1twisa1uie6" path="res://CenterDisplayController.cs" id="5_7mycd"]
|
||||
|
||||
@ -413,6 +414,395 @@ size = Vector2(12, 44.92)
|
||||
centered = true
|
||||
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
|
||||
|
||||
[node name="CenterBlips" type="Node2D" parent="PaddlePivot"]
|
||||
|
||||
[node name="Arc2D" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(0, -109)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D2" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(22.6624, -106.618)
|
||||
rotation = 0.20944
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D3" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(44.3343, -99.5765)
|
||||
rotation = 0.418879
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D4" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(64.0686, -88.1829)
|
||||
rotation = 0.628318
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D5" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(81.0028, -72.9353)
|
||||
rotation = 0.837758
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D6" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(94.3968, -54.5)
|
||||
rotation = 1.0472
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D7" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(103.665, -33.6829)
|
||||
rotation = 1.25664
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D8" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(108.403, -11.3936)
|
||||
rotation = 1.46608
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D9" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(108.403, 11.3936)
|
||||
rotation = 1.67552
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D10" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(103.665, 33.6829)
|
||||
rotation = 1.88496
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D11" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(94.3969, 54.5001)
|
||||
rotation = 2.0944
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D12" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(81.0029, 72.9353)
|
||||
rotation = 2.30383
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D13" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(64.0686, 88.1829)
|
||||
rotation = 2.51327
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D14" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(44.3343, 99.5766)
|
||||
rotation = 2.72271
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D15" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(22.6624, 106.618)
|
||||
rotation = 2.93215
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D16" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-9.52909e-06, 109)
|
||||
rotation = -3.14159
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D17" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-22.6624, 106.618)
|
||||
rotation = -2.93215
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D18" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-44.3343, 99.5765)
|
||||
rotation = -2.72271
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D19" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-64.0687, 88.1829)
|
||||
rotation = -2.51327
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D20" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-81.0029, 72.9353)
|
||||
rotation = -2.30383
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D21" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-94.3969, 54.5)
|
||||
rotation = -2.09439
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D22" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-103.665, 33.6829)
|
||||
rotation = -1.88496
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D23" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-108.403, 11.3936)
|
||||
rotation = -1.67552
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D24" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-108.403, -11.3936)
|
||||
rotation = -1.46608
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D25" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-103.665, -33.6829)
|
||||
rotation = -1.25664
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D26" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-94.3969, -54.5)
|
||||
rotation = -1.0472
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D27" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-81.0029, -72.9353)
|
||||
rotation = -0.837758
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D28" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-64.0687, -88.1829)
|
||||
rotation = -0.628319
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D29" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-44.3343, -99.5766)
|
||||
rotation = -0.418879
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Arc2D30" type="Node2D" parent="PaddlePivot/CenterBlips"]
|
||||
z_index = 2
|
||||
position = Vector2(-22.6624, -106.618)
|
||||
rotation = -0.20944
|
||||
scale = Vector2(1, 1)
|
||||
script = ExtResource("4_7mycd")
|
||||
color = Color(0, 0, 0, 1)
|
||||
radius = 4.73
|
||||
start_degrees = 4.02
|
||||
end_degrees = -184.335
|
||||
line_width = 5.265
|
||||
metadata/_custom_type_script = "uid://c6v3ersnx3svd"
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
offset_left = -332.0
|
||||
offset_top = -708.0
|
||||
@ -435,7 +825,7 @@ metadata/_custom_type_script = "uid://837wj2bp417t"
|
||||
z_index = -100
|
||||
script = ExtResource("2_0xm2m")
|
||||
color = Color(0, 0, 0, 1)
|
||||
size = Vector2(1000, 10000)
|
||||
size = Vector2(1000, 2000)
|
||||
centered = true
|
||||
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user