bullets bullets bullets bullets

This commit is contained in:
Haze Weathers 2025-12-31 14:09:06 -06:00
parent 846040c0e4
commit 55059788b2
25 changed files with 139 additions and 91 deletions

View file

@ -10,12 +10,12 @@ extends BulletSpawnPattern
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 angle = (float(i) / float(bullet_count)) * TAU + angle_offset + bullet_set.spawn_rotation
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.position = bullet_set.spawn_offset + Vector2.from_angle(angle) * distance_offset
bullet_set.add_bullet(bullet)