Y-wing update, target validation and tabbycode testing
This commit is contained in:
@@ -51,7 +51,6 @@ offset = Vector2(0, 5.2)
|
|||||||
position = Vector2(0, 21)
|
position = Vector2(0, 21)
|
||||||
|
|
||||||
[node name="target_confirm" type="RayCast2D" parent="Turret"]
|
[node name="target_confirm" type="RayCast2D" parent="Turret"]
|
||||||
position = Vector2(0, -1)
|
|
||||||
target_position = Vector2(-1, 873)
|
target_position = Vector2(-1, 873)
|
||||||
collision_mask = 11
|
collision_mask = 11
|
||||||
collide_with_areas = true
|
collide_with_areas = true
|
||||||
|
|||||||
@@ -108,7 +108,10 @@ func aim_turret(delta):
|
|||||||
target_area = target_pos
|
target_area = target_pos
|
||||||
|
|
||||||
func fire_turret(location,firing_solution,target_area):
|
func fire_turret(location,firing_solution,target_area):
|
||||||
|
|
||||||
get_tree().current_scene.firey_wingturret(location,firing_solution,target_area)
|
get_tree().current_scene.firey_wingturret(location,firing_solution,target_area)
|
||||||
|
var test = $Turret/target_confirm.to_global(Vector2(0,0))
|
||||||
|
|
||||||
#print(str(location))
|
#print(str(location))
|
||||||
#print(str(firing_solution))
|
#print(str(firing_solution))
|
||||||
#print(str(target_area))
|
#print(str(target_area))
|
||||||
|
|||||||
Reference in New Issue
Block a user