A10: Menus and settings
The game now opens on a main menu when it has a window: practice against bots (count and skill), join a server (by address, or from a LAN search list), settings, and quit. In a match, Escape brings up a pause menu (the match goes on) with settings and leave; when a match the player was in ends, a results screen shows their place, eliminations and the last of the feed. - KeyBindings: every action rebindable to a key or mouse button. bind() refuses an input another action uses and names it; Escape is reserved. ClientInput reads keys through the bindings. - GameSettings: bindings, mouse, graphics (quality preset and the print pass), audio (master, music and effects buses), display (window mode, vsync, frame cap), name, last server and practice choices, saved in user://settings.cfg. Missing, unreadable or corrupt files and bad values fall back to defaults, value by value; hand-edited key clashes are repaired on load. - Menus (src/ui): paper-and-ink panels, brass focus edge, keyboard navigable; a drawn sea-and-tide-post backdrop, or an ink wash over a match. AppShell runs menus and the session. - LocalServer takes a bot difficulty. - make menu-captures renders every screen. Closes #50 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
## What the client was asked to do on the command line.
|
||||
##
|
||||
## tidewall an offline match against bots
|
||||
## tidewall the main menu (with a window)
|
||||
## tidewall --offline an offline match against bots
|
||||
## tidewall --connect=HOST[:PORT] join a server
|
||||
## options: --name=NAME --seed=N --bots=N (offline) --autoplay
|
||||
## --client-seconds=N quit after N seconds, saying what happened
|
||||
@@ -8,8 +9,9 @@
|
||||
## print the servers found on the LAN and in list
|
||||
## servers as one JSON line, then quit
|
||||
##
|
||||
## Menus replace most of this later. Under tools/godot.sh, which has no window, a mode
|
||||
## has to be asked for: --offline or --connect.
|
||||
## With a window and none of these, the game opens on its menus (AppShell). Under
|
||||
## tools/godot.sh, which has no window, a mode has to be asked for: --offline or
|
||||
## --connect.
|
||||
class_name ClientConfig
|
||||
extends RefCounted
|
||||
|
||||
|
||||
Reference in New Issue
Block a user