implemented y-wing main cannon and effects.

This commit is contained in:
zerothelootrat
2024-06-06 03:24:17 -04:00
parent 869ad92e5a
commit 62f6b4d873
6 changed files with 88 additions and 1 deletions

View File

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