Tune and optimize boss encounter
This commit is contained in:
parent
40f284dcdd
commit
68985316e5
16 changed files with 316 additions and 88 deletions
|
|
@ -8,6 +8,9 @@ const VEIN_COLOR := Color(0.25, 0.9, 1.0)
|
|||
const CORE_COLOR := Color(0.11, 0.015, 0.08)
|
||||
|
||||
var phase: float = 0.0
|
||||
var redraw_left: float = 0.0
|
||||
|
||||
const REDRAW_INTERVAL: float = 1.0 / 12.0
|
||||
|
||||
|
||||
func configure(shape_seed: int) -> void:
|
||||
|
|
@ -21,7 +24,10 @@ func extractor_anchor() -> Vector2:
|
|||
|
||||
func _process(delta: float) -> void:
|
||||
phase += delta
|
||||
queue_redraw()
|
||||
redraw_left -= delta
|
||||
if redraw_left <= 0.0:
|
||||
redraw_left = REDRAW_INTERVAL
|
||||
queue_redraw()
|
||||
|
||||
|
||||
func _draw() -> void:
|
||||
|
|
|
|||
Loading…
Reference in a new issue