Updated mirror wave; tweaked CRT movement
This commit is contained in:
parent
7e75a96795
commit
78472ee95c
28 changed files with 938 additions and 32 deletions
|
|
@ -24,7 +24,7 @@ const TILE = 32
|
|||
|
||||
@onready var screensize = get_viewport_rect().size
|
||||
@onready var timer = $MoveTimer
|
||||
@onready var crt = $EnemyCRT/CRT
|
||||
@onready var crt = get_node("CRT")
|
||||
|
||||
func _ready():
|
||||
timer.start()
|
||||
|
|
@ -50,7 +50,7 @@ func _on_timer_timeout():
|
|||
$DirectionTimer.start()
|
||||
|
||||
func _on_direction_timer_timeout():
|
||||
var move_direction = int(randf_range(0,2))
|
||||
var move_direction = int(randf_range(0,3))
|
||||
match move_direction:
|
||||
0:
|
||||
$CRT.frame = 0
|
||||
|
|
@ -95,7 +95,7 @@ func _process(delta):
|
|||
start(start_pos)
|
||||
|
||||
|
||||
func explode():
|
||||
func hit_detection():
|
||||
if exploding: return
|
||||
exploding = true
|
||||
EventBus.enemy_hit.emit(5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue