Wired up boss heart behaviour
This commit is contained in:
parent
bee8cf77f1
commit
a13f274767
7 changed files with 95 additions and 15 deletions
|
|
@ -10,7 +10,8 @@ var tween_speed: float = 1.4
|
|||
var exploding = false
|
||||
|
||||
var rotate_speed: int = 100
|
||||
var shoot_timer_wait_time: float = 0.2
|
||||
var rotate_direction: int = 0
|
||||
var shoot_timer_wait_time: float = 0.1
|
||||
var spawn_point_count: int = 4
|
||||
var spawn_radius = 100
|
||||
|
||||
|
|
@ -44,6 +45,7 @@ var horse_phase: bool = false
|
|||
|
||||
func start():
|
||||
shoot_timer.start()
|
||||
rotate_direction = randi_range(0,1)
|
||||
print("Shoot timer started!")
|
||||
|
||||
func end():
|
||||
|
|
@ -51,7 +53,11 @@ func end():
|
|||
|
||||
|
||||
func _process(delta):
|
||||
rotater.rotation_degrees += 2 # Adjust rotation speed
|
||||
|
||||
if rotate_direction == 0:
|
||||
rotater.rotation_degrees += 2.5 # Adjust rotation speed
|
||||
if rotate_direction == 1:
|
||||
rotater.rotation_degrees -= 2.5 # Adjust rotation speed
|
||||
|
||||
func spawn_bullet():
|
||||
print("I'm spawning bullets!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue