documentation pass before moving on
This commit is contained in:
parent
c6923a3133
commit
ddf3590c96
17 changed files with 84 additions and 44 deletions
|
|
@ -1,6 +1,7 @@
|
|||
@abstract
|
||||
class_name BulletSetBehavior
|
||||
extends Resource
|
||||
## Controls the movement and actions of a [BulletSet].
|
||||
|
||||
|
||||
## Process one physics tick for a [BulletSet].
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ extends BulletSetBehavior
|
|||
## Processes multiple [BulletSetBehavior]s in order for the [BulletSet].
|
||||
|
||||
|
||||
## Behaviors to process for the [BulletSet].
|
||||
@export var behaviors: Array[BulletSetBehavior] = []
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +1,29 @@
|
|||
@tool
|
||||
class_name RandomSpawnSetBehavior
|
||||
extends BulletSetBehavior
|
||||
## Randomizes the spawn position for each round of spawning.
|
||||
|
||||
|
||||
## Minimum possible value of [code]spawn_offset[/code].
|
||||
@export var spawn_offset_min: Vector2:
|
||||
set(value):
|
||||
if spawn_offset_min != value:
|
||||
spawn_offset_min = value
|
||||
spawn_offset_max = spawn_offset_max.max(spawn_offset_min)
|
||||
## Maximum possible value of [code]spawn_offset[/code].
|
||||
@export var spawn_offset_max: Vector2:
|
||||
set(value):
|
||||
if spawn_offset_max != value:
|
||||
spawn_offset_max = value
|
||||
spawn_offset_min = spawn_offset_min.min(spawn_offset_max)
|
||||
|
||||
## Minimum possible value of [code]spawn_rotation[/code].
|
||||
@export_custom(0, "radians_as_degrees") var spawn_rotation_min: float:
|
||||
set(value):
|
||||
spawn_rotation_min = value
|
||||
if spawn_rotation_max < spawn_rotation_min:
|
||||
spawn_rotation_max = maxf(spawn_rotation_min, spawn_rotation_max)
|
||||
## Maximum possible value of [code]spawn_rotation[/code].
|
||||
@export_custom(0, "radians_as_degrees") var spawn_rotation_max: float:
|
||||
set(value):
|
||||
spawn_rotation_max = value
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
class_name RotationSetBehavior
|
||||
extends BulletSetBehavior
|
||||
## Applies rotational motion to a [BulletSet].
|
||||
|
||||
|
||||
## Speed at which the set rotates, including existing child [Bullet]s and [BulletSet]s.
|
||||
@export_custom(0, "radians_as_degrees,suffix:°/s") var rotation_speed: float = 0.0
|
||||
## Speed at which the rotation offset of spawned bullet patterns will change.
|
||||
@export_custom(0, "radians_as_degrees,suffix:°/s") var spawn_rotation_speed: float = 0.0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue