docs: create agent.md and CONTEXT.md with full project structure

- Add agent.md for high-level project overview and feature list
- Add CONTEXT.md for detailed development guide and logic explanation
- Refactor project structure: move config.js to constants.js and update references
- Improve camera tracking logic with Lerp and jittering prevention
- Update ArenaScene to support intelligent combat observation and minimap viewport
- Fine-tune combat mechanics: optimize projectile spawn points and hit detection
This commit is contained in:
2026-05-22 09:13:49 +09:00
parent 1d0d791001
commit 104bf4fe48
12 changed files with 421 additions and 83 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
const nicknameLength = 18;
import { NICKNAME_LENGTH } from "../constants.js";
export function createMatchForm() {
const form = getElement("#fighter-form");
@@ -46,7 +46,7 @@ function getElement(selector) {
function nicknameValues(value) {
return value
.split(/\r?\n|,/)
.map((name) => name.trim().slice(0, nicknameLength))
.map((name) => name.trim().slice(0, NICKNAME_LENGTH))
.filter(Boolean);
}