Add planet scanner and octopus biome
This commit is contained in:
parent
2ecd61de98
commit
8fbcc340ce
21 changed files with 784 additions and 30 deletions
26
buildings/ScannerBuildingVisual.gd
Normal file
26
buildings/ScannerBuildingVisual.gd
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
extends Node2D
|
||||
|
||||
const COLOR: Color = Color(0.35, 0.88, 1.0)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
set_process(false)
|
||||
queue_redraw()
|
||||
|
||||
|
||||
func _draw() -> void:
|
||||
# A broad dish on an open orbital truss. Static by design: scanning is a
|
||||
# deliberate menu action, so a permanent sweep animation would promise
|
||||
# background work that the building does not perform.
|
||||
NeonDraw.draw_glowing_path(self, PackedVector2Array([
|
||||
Vector2(-58, -34), Vector2(-34, 12), Vector2(12, 30),
|
||||
]), COLOR, 0.9, 0.7)
|
||||
NeonDraw.draw_glowing_line(self, Vector2(-31, 12), Vector2(-12, 62),
|
||||
COLOR, 0.9, 0.7)
|
||||
NeonDraw.draw_glowing_line(self, Vector2(-52, 62), Vector2(30, 62),
|
||||
COLOR, 0.9, 0.7)
|
||||
NeonDraw.draw_glowing_circle(self, Vector2(-25, 4), 7.0,
|
||||
Color(0.95, 0.3, 0.72), 1.0, Color(0.06, 0.02, 0.12))
|
||||
for radius in [34.0, 52.0, 70.0]:
|
||||
draw_arc(Vector2(-30, 3), radius, -1.15, -0.18, 18,
|
||||
COLOR, 2.2, true)
|
||||
Loading…
Reference in a new issue