feat(@projects/@magic-civilization): ✨ add theme asset setup for headless rendering
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
a257a6fbc5
commit
c00c53a15d
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ func _setup_game() -> void:
|
|||
print("iter_7q: Loading theme...")
|
||||
DataLoader.load_theme("age-of-dwarves")
|
||||
DataLoader.load_world("earth")
|
||||
# Without ThemeAssets.set_theme the renderer's per-sprite ThemeAssets
|
||||
# lookups all fail and the world_map paints black under headless
|
||||
# llvmpipe. main.gd already calls this on app boot; proof scenes that
|
||||
# bypass main.gd must do it themselves.
|
||||
ThemeAssets.set_theme("age-of-dwarves")
|
||||
|
||||
var settings: Dictionary = {
|
||||
"seed": 42,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue