implemented y-wing main cannon and effects.
This commit is contained in:
@@ -6,6 +6,7 @@ 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_main = preload("res://Scenes/y_wing_main_cannon_laser.tscn")
|
||||
|
||||
var enemy_y_wing_turret_laser = preload("res://Scenes/turret_laser.tscn")
|
||||
var enemy_y_wing_main_laser = null
|
||||
@@ -68,6 +69,11 @@ func firey_wingturret(location,firing_solution,target):
|
||||
add_child(l)
|
||||
#l.initialize(rotation,target)
|
||||
|
||||
func fire_y_wing_main(location):
|
||||
print("fired")
|
||||
var l = enemy_y_wing_main.instantiate()
|
||||
l.global_position = location
|
||||
add_child(l)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user