bullets bullets bullets bullets
This commit is contained in:
parent
846040c0e4
commit
55059788b2
25 changed files with 139 additions and 91 deletions
|
|
@ -16,11 +16,11 @@ func spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void:
|
|||
preset.face_direction
|
||||
)
|
||||
|
||||
var line = line_normal.orthogonal()
|
||||
var line = line_normal.orthogonal().rotated(bullet_set.spawn_rotation)
|
||||
var weight = float(i) / float(bullet_count - 1)
|
||||
weight -= 0.5
|
||||
if bullet_count == 1:
|
||||
weight = 0.0
|
||||
bullet.position = line * weight * line_width
|
||||
bullet.position = bullet_set.spawn_offset + line * weight * line_width
|
||||
|
||||
bullet_set.add_bullet(bullet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue