Y wing turret and laser update

This commit is contained in:
zerothelootrat
2024-06-05 17:37:46 -04:00
parent 781ccba218
commit 869ad92e5a
5 changed files with 37 additions and 17 deletions

View File

@@ -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)