Updated mirror wave; tweaked CRT movement

This commit is contained in:
Henry 2026-02-27 01:05:55 +00:00
parent 7e75a96795
commit 78472ee95c
28 changed files with 938 additions and 32 deletions

27
scenes/enemy_mirror.gd Normal file
View file

@ -0,0 +1,27 @@
extends Node2D
#var enemy_type: String = "mirror"
var tween_speed: float = 1.4
var start_pos = Vector2.ZERO
var exploding = false
var health: int = 3
@onready var screensize = get_viewport_rect().size
@onready var sink_player = $EnemyMirror/AnimationPlayer
func _ready() -> void:
start_all_animations()
func start(pos):
position = Vector2(pos.x, -pos.y)
start_pos = pos
var tween = create_tween().set_trans(Tween.TRANS_BACK)
tween.tween_property(self, "position:y", start_pos.y, tween_speed)
func start_all_animations():
for child in get_children():
if child is AnimationPlayer:
child.play("patrol")