feat: improve spawning, victory logic, and camera controls
This commit is contained in:
+5
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user