Y wing turret and laser update
This commit is contained in:
@@ -19,3 +19,5 @@ texture = ExtResource("1_8xaek")
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 2)
|
||||
shape = SubResource("CapsuleShape2D_kjs2o")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
|
||||
@@ -7,7 +7,7 @@ var missile = preload("res://Scenes/missile.tscn")
|
||||
var missile_refil = preload("res://Scenes/missile_pickup.tscn")
|
||||
var enemy_laser = preload("res://Scenes/enemy_laser.tscn")
|
||||
|
||||
var enemy_y_wing_turret_laser = null
|
||||
var enemy_y_wing_turret_laser = preload("res://Scenes/turret_laser.tscn")
|
||||
var enemy_y_wing_main_laser = null
|
||||
@onready var player = $player
|
||||
|
||||
@@ -60,11 +60,13 @@ func fire_enemy_laser(location):
|
||||
e.global_position = location
|
||||
add_child(e)
|
||||
|
||||
func firey_wingturret(location,rotation,target):
|
||||
print(str(rotation))
|
||||
print(str(target))
|
||||
var l = enemy_y_wing_turret_laser.initialize(rotation,target)
|
||||
func firey_wingturret(location,firing_solution,target):
|
||||
var l = enemy_y_wing_turret_laser.instantiate()
|
||||
l.global_position = location
|
||||
l.initialize(firing_solution,target)
|
||||
#print(str(firing_solution))
|
||||
add_child(l)
|
||||
#l.initialize(rotation,target)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user