boss start, some enemies

This commit is contained in:
Daniel Kauss Serna 2026-04-16 18:53:36 +02:00
parent 93968ff9fb
commit 66ecb04bd1
123 changed files with 1884 additions and 499 deletions

View file

@ -0,0 +1,24 @@
class_name MaskProjectile extends MaskAbility
@export var speed := 500.
@export var spawn_sfx : AudioStream
var dir : Vector2 = Vector2.RIGHT
var rot_speed = 30
func mask_ready():
super.mask_ready()
dir = to_local(target_position).normalized()
SoundManager.play_sfx(spawn_sfx)
get_tree().create_timer(20).timeout.connect(queue_free)
create_tween().tween_property(self, "rot_speed", 3, 0.3)
func _physics_process(delta: float) -> void:
rotation += rot_speed * delta
position += dir * speed * delta
func _on_hitbox_hit_obstacle() -> void:
queue_free()
func _on_hitbox_hit_entity(entity: Entity) -> void:
queue_free()