MainMenu.tscn is now project.godot's entry point: Play / Map Editor (disabled, explains itself - #48 wires it up) / Quit (hidden in web builds), styled like the rest of the game's menus and reusing the starfield shader for its background. Play calls GameState.reset_new_game(), so a second playthrough in the same process starts fresh instead of inheriting whatever the previous run left in the autoload - existing tests still load Main.tscn directly and are unaffected. Part of the #40 conquest-mechanic breakdown.
42 lines
891 B
Text
42 lines
891 B
Text
; Engine configuration file.
|
|
; It's best edited using the editor UI and not directly,
|
|
; since the parameters that go here are not all obvious.
|
|
;
|
|
; Format:
|
|
; [section] ; section goes between []
|
|
; param=value ; assign values to parameters
|
|
|
|
config_version=5
|
|
|
|
[application]
|
|
|
|
config/name="Spaceship Test"
|
|
run/main_scene="res://MainMenu.tscn"
|
|
config/features=PackedStringArray("4.7")
|
|
config/icon="res://icon.svg"
|
|
|
|
[autoload]
|
|
|
|
GameState="*res://GameState.gd"
|
|
|
|
[display]
|
|
|
|
window/size/viewport_width=720
|
|
window/size/viewport_height=1280
|
|
window/stretch/mode="canvas_items"
|
|
window/stretch/aspect="expand"
|
|
window/handheld/orientation="portrait"
|
|
|
|
[gui]
|
|
|
|
theme/custom="res://ui_theme.tres"
|
|
theme/default_font_size=78
|
|
|
|
[input_devices]
|
|
|
|
pointing/emulate_touch_from_mouse=true
|
|
|
|
[rendering]
|
|
|
|
renderer/rendering_method="gl_compatibility"
|
|
environment/defaults/default_clear_color=Color(0.02, 0.02, 0.08, 1)
|