feat: improve spawning, victory logic, and camera controls

This commit is contained in:
2026-05-22 01:37:41 +09:00
parent 75f65e7918
commit 1d0d791001
8 changed files with 223 additions and 44 deletions
+5 -3
View File
@@ -3,7 +3,7 @@ const nicknameLength = 18;
export function createMatchForm() {
const form = getElement("#fighter-form");
const namesInput = getElement("#player-names");
const statusNode = getElement("#match-status");
const statusNode = document.querySelector("#match-status");
const teamSizeInput = getElement("#team-size");
const teamSizeOutput = getElement("#team-size-value");
@@ -26,7 +26,9 @@ export function createMatchForm() {
},
readMatchConfig,
setStatus(message) {
statusNode.textContent = message;
if (statusNode) {
statusNode.textContent = message;
}
},
};
}
@@ -49,5 +51,5 @@ function nicknameValues(value) {
}
function syncTeamSizeOutput(input, output) {
output.textContent = `${input.value} vs ${input.value}`;
output.textContent = input.value;
}