Main menu

This commit is contained in:
2026-09-25 16:51:23 -03:00
parent d107405f62
commit c750321ced
11 changed files with 646 additions and 152 deletions
+6 -1
View File
@@ -40,8 +40,13 @@ export class Connection {
send(message: ClientMessage) {
this.#server.send(message);
}
close() {
this.#server.close();
}
}
export function get_player_name(): string {
// what the name field starts as, from ?name=
export function default_player_name(): string {
return new URLSearchParams(location.search).get("name") ?? "";
}