Add planet scanner and octopus biome
This commit is contained in:
parent
2ecd61de98
commit
8fbcc340ce
21 changed files with 784 additions and 30 deletions
22
tests/_scanner_menu_preview.gd
Normal file
22
tests/_scanner_menu_preview.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends Node2D
|
||||
|
||||
# Phone-sized visual fixture for the scene-owned scanner panel.
|
||||
# bash tests/screenshot.sh res://tests/_scanner_menu_preview.tscn /tmp/scanner.png 20 720x1280
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
GameState.reset_new_game()
|
||||
GameState.intro_active = false
|
||||
GameState.reset_quests(false)
|
||||
GameState.unlocked.append("deep_space_scanning")
|
||||
GameState.add_building(GameState.BUILDING_PLANET_SCANNER, Vector2.ZERO)
|
||||
for definition_id in GameState.SCANNER_SURVEY_TYPES:
|
||||
GameState.note_planet_visited("preview:%s" % definition_id, definition_id)
|
||||
# The panel owns a full-screen backdrop, so loading the entire live world
|
||||
# only adds software-renderer work and no pixels that can be seen.
|
||||
var menu: Control = load("res://ui/menus/ScannerMenu.tscn").instantiate()
|
||||
add_child(menu)
|
||||
menu.set_anchors_preset(Control.PRESET_TOP_LEFT)
|
||||
menu.position = Vector2.ZERO
|
||||
menu.size = get_viewport_rect().size
|
||||
menu.open_menu()
|
||||
Loading…
Reference in a new issue