New case cs-dust2 (kind:react): a from-scratch React + three.js 5v5 Dust2 FPS. Two takes registered: Claude Fable 5 / Claude Code / High (with a hand fix for a 64Hz fixed-step firing bug on high-refresh displays) and Claude Opus 4.8 / Claude Code / Max (dust2-arena, one-shot). React cases commit source only; the single file is built from source at deploy time. validate-data.ts now accepts a React project directory as the declared artifact. AGENTS.md rewritten English-only with React-case, bare-harness (no skills/plugins) and artifact-anonymity rules. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
329 B
TypeScript
11 lines
329 B
TypeScript
import { RefObject } from 'react';
|
|
|
|
export function Minimap({ canvasRef }: { canvasRef: RefObject<HTMLCanvasElement | null> }) {
|
|
return (
|
|
<div className="minimap">
|
|
<canvas ref={canvasRef as RefObject<HTMLCanvasElement>} width={200} height={200} />
|
|
<div className="minimap-label">DUST II</div>
|
|
</div>
|
|
);
|
|
}
|