rand bullets
This commit is contained in:
parent
55c2aeac80
commit
4ff19610d3
12 changed files with 126 additions and 56 deletions
|
|
@ -3,4 +3,15 @@ class_name BulletSpawnPattern
|
|||
extends Resource
|
||||
|
||||
|
||||
@abstract func spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void
|
||||
## The amount of times to spawning this pattern for one "round".
|
||||
## This is mostly useful if the pattern or behavior introduces some
|
||||
## form of randomness.
|
||||
@export_range(1, 1, 1, "or_greater") var iterations: int = 1
|
||||
|
||||
|
||||
func spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void:
|
||||
for _n in iterations:
|
||||
_spawn_bullets(bullet_set, preset)
|
||||
|
||||
|
||||
@abstract func _spawn_bullets(bullet_set: BulletSet, preset: BulletPreset) -> void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue