yes, they canjj st!

This commit is contained in:
Haze Weathers 2025-12-14 17:06:42 -06:00
parent 6b92473eeb
commit a6421235f8
22 changed files with 510 additions and 14 deletions

View file

@ -0,0 +1,21 @@
class_name RingPattern
extends BulletSpawnPattern
@export var bullet_count: int
@export var distance_offset: float
@export_custom(0, "radians_as_degrees") var angle_offset: float
@export_custom(0, "radians_as_degrees") var direction_rotation: float
func spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void:
for i in bullet_count:
var angle = (float(i) / float(bullet_count)) * TAU + angle_offset
var bullet = Bullet.create(
preset.textures.pick_random(),
preset.hitbox_size,
Vector2.from_angle(angle + direction_rotation),
preset.face_direction
)
bullet.position = Vector2.from_angle(angle) * distance_offset
bullet_set.add_bullet(bullet)