10 lines
360 B
GDScript3
10 lines
360 B
GDScript3
|
|
extends NeonNumber
|
||
|
|
|
||
|
|
# Top-of-screen ore readout. All the drawing lives in NeonNumber; this only
|
||
|
|
# keeps the displayed amount in step with GameState, which it reads directly
|
||
|
|
# so it stays correct across the space <-> planet-surface scene swap without
|
||
|
|
# anyone having to push updates into it.
|
||
|
|
|
||
|
|
|
||
|
|
func _process(_delta: float) -> void:
|
||
|
|
set_amount(GameState.rocks)
|