Fixed turret rotation for y-wing, added test function for attacking, do not run as asset for blaster bolts is not added it WILL Crash!
This commit is contained in:
@@ -6,6 +6,9 @@ var Laser = preload("res://Scenes/PlayerLaser.tscn")
|
||||
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_main_laser = null
|
||||
@onready var player = $player
|
||||
|
||||
#mixed variables for hud
|
||||
@@ -57,7 +60,11 @@ 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)
|
||||
l.global_position = location
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user