Add planet scanner and octopus biome
This commit is contained in:
parent
2ecd61de98
commit
8fbcc340ce
21 changed files with 784 additions and 30 deletions
|
|
@ -66,6 +66,9 @@ enum Icon {
|
|||
# Development tools: three sliders, used only by the editor-only sandbox
|
||||
# button. Appended to preserve every serialized icon number above.
|
||||
DEV_TOOLS,
|
||||
# #193: a directional sensor dish. Appended: scene files store these as
|
||||
# integers, so insertion would change every icon after it.
|
||||
SCANNER,
|
||||
}
|
||||
|
||||
# Size the glyphs were originally drawn against. Every glyph dimension is
|
||||
|
|
@ -328,6 +331,27 @@ func _draw() -> void:
|
|||
_draw_dash_icon(center, pulse, s)
|
||||
Icon.DEV_TOOLS:
|
||||
_draw_dev_tools_icon(center, pulse, s)
|
||||
Icon.SCANNER:
|
||||
_draw_scanner_icon(center, pulse, s)
|
||||
|
||||
|
||||
func _draw_scanner_icon(center: Vector2, pulse: float, s: float) -> void:
|
||||
# Dish, mast and three outward wavefronts: distinct from MAP (a folded
|
||||
# sheet) and RESEARCH (the mothership's archive).
|
||||
NeonDraw.draw_glowing_path(self, PackedVector2Array([
|
||||
center + Vector2(-12, -3) * s,
|
||||
center + Vector2(-5, 7) * s,
|
||||
center + Vector2(5, 4) * s,
|
||||
]), _active_color(), pulse, 0.6 * s, core_color)
|
||||
NeonDraw.draw_glowing_line(self, center + Vector2(-4, 7) * s,
|
||||
center + Vector2(-4, 14) * s, _active_color(), pulse, 0.6 * s,
|
||||
core_color)
|
||||
NeonDraw.draw_glowing_line(self, center + Vector2(-11, 14) * s,
|
||||
center + Vector2(3, 14) * s, _active_color(), pulse, 0.6 * s,
|
||||
core_color)
|
||||
for radius in [7.0, 13.0, 19.0]:
|
||||
draw_arc(center + Vector2(-7, 1) * s, radius * s, -1.1, -0.15, 10,
|
||||
_active_color(), maxf(1.0, 1.3 * s), true)
|
||||
|
||||
|
||||
func _draw_dev_tools_icon(center: Vector2, pulse: float, s: float) -> void:
|
||||
|
|
|
|||
Loading…
Reference in a new issue