From 52e0f88e17d46cce4589848ad8c42fbe29a598d7 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 18:18:09 +0100 Subject: [PATCH 01/53] chore: add the examples layout, shared code check and ci --- .github/workflows/tests.yml | 47 +++++++ .gitignore | 5 + .prettierignore | 11 ++ .prettierrc | 3 + README.md | 50 +++++-- docs/shared-components.md | 31 +++++ package.json | 20 +++ pnpm-lock.yaml | 125 ++++++++++++++++++ scripts/check.ts | 83 ++++++++++++ .../components/acceleration-2d.component.ts | 18 +++ .../drawable-circle-2d.component.ts | 62 +++++++++ .../components/drawable-rect-2d.component.ts | 69 ++++++++++ .../components/drawable-text-2d.component.ts | 62 +++++++++ .../move-controller-2d.component.ts | 33 +++++ shared/2d/components/position-2d.component.ts | 20 +++ shared/2d/components/velocity-2d.component.ts | 20 +++ shared/2d/image-fill.ts | 43 ++++++ shared/2d/systems/draw-2d.system.ts | 45 +++++++ shared/2d/systems/move-2d.system.ts | 26 ++++ shared/2d/systems/move-control-2d.system.ts | 23 ++++ 20 files changed, 785 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/tests.yml create mode 100644 .gitignore create mode 100644 .prettierignore create mode 100644 .prettierrc create mode 100644 docs/shared-components.md create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 scripts/check.ts create mode 100644 shared/2d/components/acceleration-2d.component.ts create mode 100644 shared/2d/components/drawable-circle-2d.component.ts create mode 100644 shared/2d/components/drawable-rect-2d.component.ts create mode 100644 shared/2d/components/drawable-text-2d.component.ts create mode 100644 shared/2d/components/move-controller-2d.component.ts create mode 100644 shared/2d/components/position-2d.component.ts create mode 100644 shared/2d/components/velocity-2d.component.ts create mode 100644 shared/2d/image-fill.ts create mode 100644 shared/2d/systems/draw-2d.system.ts create mode 100644 shared/2d/systems/move-2d.system.ts create mode 100644 shared/2d/systems/move-control-2d.system.ts diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..253fc5d --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,47 @@ +name: Tests + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + lint: + name: Lint and shared code + runs-on: ubuntu-latest + outputs: + examples: ${{ steps.list.outputs.examples }} + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 26 + - run: pnpm install --frozen-lockfile + - run: pnpm lint + - id: list + run: echo "examples=$(node scripts/check.ts --list)" >> "$GITHUB_OUTPUT" + + build: + name: Build ${{ matrix.example }} + needs: lint + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + example: ${{ fromJSON(needs.lint.outputs.examples) }} + defaults: + run: + working-directory: ${{ matrix.example }} + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 26 + - run: pnpm install --frozen-lockfile + - run: pnpm exec tsc --noEmit -p . + - run: pnpm build diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..bc6752a --- /dev/null +++ b/.prettierignore @@ -0,0 +1,11 @@ +node_modules/ +pnpm-lock.yaml +dist/ +.nanoforge/ +nf_modules/ +# Old layout, until each game is remade (each remake removes its line) +flappy-bird/ +pong-network/ +raid-survival/ +tic-tac-toe/ +.idea/ diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..de753c5 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "printWidth": 100 +} diff --git a/README.md b/README.md index 6ea6c2a..d2e465f 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,46 @@
-
-

- NanoForge -

-
+ NanoForge +

NanoForge examples

-## About +Games made with [NanoForge](https://nanoforge.eu). Each one is a project of its own, laid out as +`nf new` writes it, and opens in the editor (`nf editor `). -This repository contains the examples for NanoForge. +| Folder | What | +| --------- | ---------------------------------------------------------------------- | +| `basics/` | One engine feature each: the smallest game that shows it. | +| `demos/` | Small games around one idea (the pong family): local, networked, 3D. | +| `games/` | Complete games. | +| `shared/` | Components and systems several examples use, copied into each of them. | -## Examples in the repository +## Run an example -- flappy-bird -- pong-network -- tic-tac-toe +```sh +cd basics/input-keyboard +pnpm install +pnpm dev # or pnpm build && pnpm start +pnpm editor # open it in the NanoForge editor +``` +Node 26 and pnpm 12. The examples depend on the latest NanoForge packages. + +## Rules + +- **One item per file**: each file of `components/` holds one component, each file of `systems/` + one system, each file of `scenes/` one scene. Items carry the editor's TSDoc tags + (`@component`, `@system`, `@scene`, `@side`). +- **Shared code is copied, never imported**: an example must work on its own once copied out of + this repository. A file at `src/` whose `` exists in `shared//` must be an + exact copy of it. `pnpm check` fails on a copy that drifted; `pnpm fix` copies the shared version + over it. Change the file in `shared/`, then run `pnpm fix`. +- The shared files are temporary: [`docs/shared-components.md`](docs/shared-components.md) lists + them and the library package that should replace each one. + +## Checks + +```sh +pnpm install +pnpm lint # prettier + one item per file + shared copies +``` + +CI also type-checks and builds every example (`.github/workflows/tests.yml`). diff --git a/docs/shared-components.md b/docs/shared-components.md new file mode 100644 index 0000000..3cd57bd --- /dev/null +++ b/docs/shared-components.md @@ -0,0 +1,31 @@ +# Shared components and systems + +Code that several examples need, kept **identical** in each of them (`pnpm check` enforces it). +It is temporary: each entry names the package of the +[components-systems](https://github.com/NanoForge-dev/components-systems) registry that should +provide it. Once an example can install that package (`nf install`), delete its copies and import +the package instead. + +The `2d` group is a copy of the library (registry 2.0.0) with its imports made relative, its +systems written as arrow functions, and each file renamed with the CLI's `.component.ts` / +`.system.ts` suffix. Replacing it changes no game logic. + +## `shared/2d`: already in the library + +| File | Library package | Used by | +| -------------------------------------------- | ------------------------ | --------------------- | +| `components/position-2d.component.ts` | `@nanoforge/basics` | basics/input-keyboard | +| `components/velocity-2d.component.ts` | `@nanoforge/basics` | basics/input-keyboard | +| `components/acceleration-2d.component.ts` | `@nanoforge/basics` | basics/input-keyboard | +| `systems/move-2d.system.ts` | `@nanoforge/basics` | basics/input-keyboard | +| `components/drawable-rect-2d.component.ts` | `@nanoforge/graphics-2d` | basics/input-keyboard | +| `components/drawable-circle-2d.component.ts` | `@nanoforge/graphics-2d` | basics/input-keyboard | +| `components/drawable-text-2d.component.ts` | `@nanoforge/graphics-2d` | basics/input-keyboard | +| `image-fill.ts` (helper) | `@nanoforge/graphics-2d` | basics/input-keyboard | +| `systems/draw-2d.system.ts` | `@nanoforge/graphics-2d` | basics/input-keyboard | +| `components/move-controller-2d.component.ts` | `@nanoforge/controls-2d` | basics/input-keyboard | +| `systems/move-control-2d.system.ts` | `@nanoforge/controls-2d` | basics/input-keyboard | + +## Not in the library yet: candidates + +(Filled as the examples are remade.) diff --git a/package.json b/package.json new file mode 100644 index 0000000..740840c --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "@nanoforge-dev/examples", + "description": "Example games made with NanoForge", + "type": "module", + "scripts": { + "check": "node scripts/check.ts", + "fix": "node scripts/check.ts --fix", + "format": "prettier --write .", + "lint": "prettier --check . && node scripts/check.ts" + }, + "devDependencies": { + "prettier": "^3.6.2" + }, + "packageManager": "pnpm@12.0.0", + "engines": { + "node": ">=26" + }, + "private": true +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..ee8f8eb --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,125 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.0.0 + version: 12.0.0 + +packages: + + '@pnpm/exe.darwin-arm64@12.0.0': + resolution: {integrity: sha512-sqeoPfVMIfQhbwzDrKraXY2ynyuWClFqzvfImzAS/yczEru1m5SGvQ9kgFPDvQzJZ9AetedgJeDZC6qYvH8/tQ==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.0.0': + resolution: {integrity: sha512-Quc3J6c9cGTy+LDgz1cLVgCNOU9IERuyAlDoEj0DCilKqvo50Jx1GV8k74iwn4J9fFSKkm8JrwNvtTDj3uWnUA==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.linux-arm64-musl@12.0.0': + resolution: {integrity: sha512-EVWd3OTmgsMFhXx69b5JxIzoabG9Ma7m4OeTaf0ZKBzMnfYi8u21NDQo92ToMrdYL5dYDDCHsyYIjXzk+d0HhA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.0.0': + resolution: {integrity: sha512-cXHHW8M4rAPsYNkKZO9WVcpLLK55i9EaIsZPfIqUuY2eopd5LqnFyBge54HCh1GC0yCX8ySn0hYIi+4OyAEoDg==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.0.0': + resolution: {integrity: sha512-UcXwMdFjly0mpddkGigHKTxe27IMv2fUK4IWW/MHmJ3yMguxXmkwNlEI4aE+G1HO2TLo20uNEUWD4ymLe/DaCQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.0.0': + resolution: {integrity: sha512-6Rsl+zEWMOmus7v7/9J3OE8EMvHyNAfxYmDfmhQG4J0985OuT3G3Ho9NSGHjkBn4aU4bgklWifRhe1HX8dUSyw==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.win32-arm64@12.0.0': + resolution: {integrity: sha512-O5F76A4oVFrpDGdFxEszRIThOSBfjHdH5c006gR+7UTCfiXrukr1XfqPungUI1DXcSR5gb9jBsPQqQZOAoOOxw==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.0.0': + resolution: {integrity: sha512-5dKFajIEWJ1ai+KHXFJvskY6vchbunmLwSUV2ywbLymcmJjfY5XJVpgzPCyIoVCMVG0zHorr66+hM8h8b3aRfQ==} + cpu: [x64] + os: [win32] + + pnpm@12.0.0: + resolution: {integrity: sha512-ni49w5EZlYaNyUuBdcIXwn6VQI+gO0oidJd48rNPdzt3zdOznt6BcbIvzVO+ajU0Lp+smUimjvWN9kiM6Jp+Zw==} + engines: {node: '>=18.*'} + hasBin: true + +snapshots: + + '@pnpm/exe.darwin-arm64@12.0.0': + optional: true + + '@pnpm/exe.darwin-x64@12.0.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.0.0': + optional: true + + '@pnpm/exe.linux-arm64@12.0.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.0.0': + optional: true + + '@pnpm/exe.linux-x64@12.0.0': + optional: true + + '@pnpm/exe.win32-arm64@12.0.0': + optional: true + + '@pnpm/exe.win32-x64@12.0.0': + optional: true + + pnpm@12.0.0: + optionalDependencies: + '@pnpm/exe.darwin-arm64': 12.0.0 + '@pnpm/exe.darwin-x64': 12.0.0 + '@pnpm/exe.linux-arm64': 12.0.0 + '@pnpm/exe.linux-arm64-musl': 12.0.0 + '@pnpm/exe.linux-x64': 12.0.0 + '@pnpm/exe.linux-x64-musl': 12.0.0 + '@pnpm/exe.win32-arm64': 12.0.0 + '@pnpm/exe.win32-x64': 12.0.0 + +--- +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + prettier: + specifier: ^3.6.2 + version: 3.10.1 + +packages: + + prettier@3.10.1: + resolution: {integrity: sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==} + engines: {node: '>=14'} + hasBin: true + +snapshots: + + prettier@3.10.1: {} diff --git a/scripts/check.ts b/scripts/check.ts new file mode 100644 index 0000000..eec9ca6 --- /dev/null +++ b/scripts/check.ts @@ -0,0 +1,83 @@ +// Checks every example against the repository's rules. `node scripts/check.ts [--fix] [--list]` +// - shared code: a game file at `src/` whose `` is in `shared//` must be a +// byte-identical copy (`--fix` copies the shared version over it); +// - one item per file: each file of `components/` and `systems/` exports one item, each file of +// `scenes/` one scene. +// `--list` prints the example folders as JSON (the CI matrix). +import { existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs"; +import { join, relative } from "node:path"; + +const ROOT = join(import.meta.dirname, ".."); +const GROUPS = ["basics", "demos", "games"]; +const SKIP = new Set(["node_modules", "dist", ".nanoforge", "nf_modules"]); + +const walk = (dir: string): string[] => + readdirSync(dir).flatMap((name) => { + if (SKIP.has(name)) return []; + const path = join(dir, name); + return statSync(path).isDirectory() ? walk(path) : [path]; + }); + +const examples = (): string[] => + GROUPS.filter((group) => existsSync(join(ROOT, group))).flatMap((group) => + readdirSync(join(ROOT, group)) + .filter((name) => existsSync(join(ROOT, group, name, "package.json"))) + .map((name) => `${group}/${name}`), + ); + +/** `shared//` by ``; a path in two groups is an error. */ +const sharedFiles = (errors: string[]): Map => { + const files = new Map(); + for (const file of walk(join(ROOT, "shared"))) { + const path = relative(join(ROOT, "shared"), file).split("/").slice(1).join("/"); + const other = files.get(path); + if (other) errors.push(`shared: ${path} is in two groups (${relative(ROOT, other)})`); + files.set(path, file); + } + return files; +}; + +const ITEM = /^export (?:abstract )?(?:class|const|function) /gm; +const SCENE = /^export class \w+ extends /gm; + +export const check = (fix = false): string[] => { + const errors: string[] = []; + const shared = sharedFiles(errors); + for (const example of examples()) { + for (const file of walk(join(ROOT, example))) { + const path = relative(join(ROOT, example), file); + const inSrc = /(?:^|\/)src\/(.+)$/.exec(path)?.[1]; + if (!inSrc) continue; + const text = readFileSync(file, "utf8"); + const source = shared.get(inSrc); + if (source && readFileSync(source, "utf8") !== text) { + if (fix) writeFileSync(file, readFileSync(source, "utf8")); + else + errors.push( + `${example}/${path}: differs from ${relative(ROOT, source)} (run with --fix)`, + ); + } + const folder = inSrc.split("/").at(-2); + if (folder === "components" || folder === "systems") { + const count = text.match(ITEM)?.length ?? 0; + if (count !== 1) errors.push(`${example}/${path}: ${count} exported items, one expected`); + } + if (folder === "scenes") { + const count = text.match(SCENE)?.length ?? 0; + if (count !== 1) errors.push(`${example}/${path}: ${count} scenes, one expected`); + } + } + } + return errors; +}; + +if (import.meta.main) { + if (process.argv.includes("--list")) { + console.log(JSON.stringify(examples())); + } else { + const errors = check(process.argv.includes("--fix")); + for (const error of errors) console.error(error); + if (errors.length) process.exit(1); + console.log(`${examples().length} examples checked.`); + } +} diff --git a/shared/2d/components/acceleration-2d.component.ts b/shared/2d/components/acceleration-2d.component.ts new file mode 100644 index 0000000..5d4097f --- /dev/null +++ b/shared/2d/components/acceleration-2d.component.ts @@ -0,0 +1,18 @@ +/** + * How fast the velocity of an entity changes, in pixels per second, per second. Needs + * `Velocity2D` and the `move2D` system. + * + * @component + * @side shared + * @group Acceleration color=#f0a33a - Pixels per second, per second. + */ +export class Acceleration2D { + name = "Acceleration2D"; + + constructor( + /** Added to the horizontal velocity every second. @group Acceleration @preset vector.x */ + public x = 0, + /** Added to the vertical velocity every second. @group Acceleration @preset vector.y */ + public y = 0, + ) {} +} diff --git a/shared/2d/components/drawable-circle-2d.component.ts b/shared/2d/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/shared/2d/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/shared/2d/components/drawable-rect-2d.component.ts b/shared/2d/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/shared/2d/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/shared/2d/components/drawable-text-2d.component.ts b/shared/2d/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/shared/2d/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/shared/2d/components/move-controller-2d.component.ts b/shared/2d/components/move-controller-2d.component.ts new file mode 100644 index 0000000..75ffcf0 --- /dev/null +++ b/shared/2d/components/move-controller-2d.component.ts @@ -0,0 +1,33 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Moves an entity with the keyboard, by setting its `Velocity2D`. Needs the `moveControl2D` + * system. + * + * @example + * For a platformer, set `axes` to `horizontal`: the vertical velocity is left to gravity and + * jumps. + * + * @component + * @side client + * @group Movement color=#9d7bff - How the entity moves. + * @group Keys color=#f0a33a - The keys that move it. + */ +export class MoveController2D { + name = "MoveController2D"; + + constructor( + /** In pixels per second. @group Movement */ + public speed = 200, + /** Which directions the keys move it in. @group Movement */ + public axes: "both" | "horizontal" | "vertical" = "both", + /** @group Keys */ + public left: InputEnum = InputEnum.ArrowLeft, + /** @group Keys */ + public right: InputEnum = InputEnum.ArrowRight, + /** @group Keys */ + public up: InputEnum = InputEnum.ArrowUp, + /** @group Keys */ + public down: InputEnum = InputEnum.ArrowDown, + ) {} +} diff --git a/shared/2d/components/position-2d.component.ts b/shared/2d/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/shared/2d/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/shared/2d/components/velocity-2d.component.ts b/shared/2d/components/velocity-2d.component.ts new file mode 100644 index 0000000..3b93d4e --- /dev/null +++ b/shared/2d/components/velocity-2d.component.ts @@ -0,0 +1,20 @@ +/** + * How fast an entity moves, in pixels per second. Needs `Position2D` and the `move2D` system. + * + * @example + * `new Velocity2D(100, 0)` moves 100 pixels to the right every second. + * + * @component + * @side shared + * @group Velocity color=#36c5a0 - Pixels per second. + */ +export class Velocity2D { + name = "Velocity2D"; + + constructor( + /** Pixels per second to the right (negative: to the left). @group Velocity @preset vector.x */ + public x = 0, + /** Pixels per second downward (negative: upward). @group Velocity @preset vector.y */ + public y = 0, + ) {} +} diff --git a/shared/2d/image-fill.ts b/shared/2d/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/shared/2d/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/shared/2d/systems/draw-2d.system.ts b/shared/2d/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/shared/2d/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/shared/2d/systems/move-2d.system.ts b/shared/2d/systems/move-2d.system.ts new file mode 100644 index 0000000..514766a --- /dev/null +++ b/shared/2d/systems/move-2d.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Acceleration2D } from "../components/acceleration-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +/** + * Moves entities: their `Acceleration2D` changes their `Velocity2D`, then their `Velocity2D` + * changes their `Position2D`, by the time elapsed since the last frame. + * + * @system + * @side shared + */ +export const move2D = (registry: Registry, ctx: Context) => { + const seconds = ctx.app.delta / 1000; + + registry.getZipper([Acceleration2D, Velocity2D]).forEach(({ Acceleration2D, Velocity2D }) => { + Velocity2D.x += Acceleration2D.x * seconds; + Velocity2D.y += Acceleration2D.y * seconds; + }); + registry.getZipper([Position2D, Velocity2D]).forEach(({ Position2D, Velocity2D }) => { + Position2D.x += Velocity2D.x * seconds; + Position2D.y += Velocity2D.y * seconds; + }); +}; diff --git a/shared/2d/systems/move-control-2d.system.ts b/shared/2d/systems/move-control-2d.system.ts new file mode 100644 index 0000000..71ad4f7 --- /dev/null +++ b/shared/2d/systems/move-control-2d.system.ts @@ -0,0 +1,23 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import { Velocity2D } from "../components/velocity-2d.component"; + +import { MoveController2D } from "../components/move-controller-2d.component"; + +/** + * Sets the `Velocity2D` of `MoveController2D` entities from the keys held down. Add it before + * `move2D`. + * + * @system + * @side client + */ +export const moveControl2D = (registry: Registry, ctx: Context) => { + const held = (key: MoveController2D["left"]) => Number(ctx.input.isKeyPressed(key) === true); + + registry.getZipper([MoveController2D, Velocity2D]).forEach(({ MoveController2D, Velocity2D }) => { + const { speed, axes, left, right, up, down } = MoveController2D as MoveController2D; + if (axes !== "vertical") Velocity2D.x = (held(right) - held(left)) * speed; + if (axes !== "horizontal") Velocity2D.y = (held(down) - held(up)) * speed; + }); +}; From cee71f20648b22d78932b5d3629f2e978a84d8ce Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 18:18:09 +0100 Subject: [PATCH 02/53] feat(input-keyboard): add the keyboard input basic --- basics/input-keyboard/.gitignore | 5 + basics/input-keyboard/README.md | 16 + basics/input-keyboard/assets/.gitkeep | 0 basics/input-keyboard/nanoforge.config.ts | 5 + basics/input-keyboard/package.json | 26 + basics/input-keyboard/pnpm-lock.yaml | 1512 +++++++++++++++++ basics/input-keyboard/pnpm-workspace.yaml | 5 + .../components/acceleration-2d.component.ts | 18 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../move-controller-2d.component.ts | 33 + .../src/components/position-2d.component.ts | 20 + .../src/components/velocity-2d.component.ts | 20 + basics/input-keyboard/src/image-fill.ts | 43 + basics/input-keyboard/src/main.ts | 68 + .../src/systems/draw-2d.system.ts | 45 + .../src/systems/move-2d.system.ts | 26 + .../src/systems/move-control-2d.system.ts | 23 + basics/input-keyboard/tsconfig.json | 39 + 20 files changed, 2097 insertions(+) create mode 100644 basics/input-keyboard/.gitignore create mode 100644 basics/input-keyboard/README.md create mode 100644 basics/input-keyboard/assets/.gitkeep create mode 100644 basics/input-keyboard/nanoforge.config.ts create mode 100644 basics/input-keyboard/package.json create mode 100644 basics/input-keyboard/pnpm-lock.yaml create mode 100644 basics/input-keyboard/pnpm-workspace.yaml create mode 100644 basics/input-keyboard/src/components/acceleration-2d.component.ts create mode 100644 basics/input-keyboard/src/components/drawable-circle-2d.component.ts create mode 100644 basics/input-keyboard/src/components/drawable-rect-2d.component.ts create mode 100644 basics/input-keyboard/src/components/drawable-text-2d.component.ts create mode 100644 basics/input-keyboard/src/components/move-controller-2d.component.ts create mode 100644 basics/input-keyboard/src/components/position-2d.component.ts create mode 100644 basics/input-keyboard/src/components/velocity-2d.component.ts create mode 100644 basics/input-keyboard/src/image-fill.ts create mode 100644 basics/input-keyboard/src/main.ts create mode 100644 basics/input-keyboard/src/systems/draw-2d.system.ts create mode 100644 basics/input-keyboard/src/systems/move-2d.system.ts create mode 100644 basics/input-keyboard/src/systems/move-control-2d.system.ts create mode 100644 basics/input-keyboard/tsconfig.json diff --git a/basics/input-keyboard/.gitignore b/basics/input-keyboard/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/input-keyboard/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/input-keyboard/README.md b/basics/input-keyboard/README.md new file mode 100644 index 0000000..6484b5c --- /dev/null +++ b/basics/input-keyboard/README.md @@ -0,0 +1,16 @@ +# input-keyboard + +Two squares, moved with the keyboard: the arrows move the red one, WASD the green one. + +It shows the `input` engine library: `MoveController2D` names the keys that move an entity, and +the `moveControl2D` system reads them with `ctx.input.isKeyPressed` and sets the entity's +`Velocity2D`. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +The files of `src/components` and `src/systems` are copies of `shared/2d` (see the repository's +README). diff --git a/basics/input-keyboard/assets/.gitkeep b/basics/input-keyboard/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/input-keyboard/nanoforge.config.ts b/basics/input-keyboard/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/input-keyboard/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/input-keyboard/package.json b/basics/input-keyboard/package.json new file mode 100644 index 0000000..50dc63a --- /dev/null +++ b/basics/input-keyboard/package.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "input-keyboard", + "description": "Move a square with the keyboard: the smallest NanoForge game reading input", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/basics/input-keyboard/pnpm-lock.yaml b/basics/input-keyboard/pnpm-lock.yaml new file mode 100644 index 0000000..9aca6d9 --- /dev/null +++ b/basics/input-keyboard/pnpm-lock.yaml @@ -0,0 +1,1512 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/input-keyboard/pnpm-workspace.yaml b/basics/input-keyboard/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/input-keyboard/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/input-keyboard/src/components/acceleration-2d.component.ts b/basics/input-keyboard/src/components/acceleration-2d.component.ts new file mode 100644 index 0000000..5d4097f --- /dev/null +++ b/basics/input-keyboard/src/components/acceleration-2d.component.ts @@ -0,0 +1,18 @@ +/** + * How fast the velocity of an entity changes, in pixels per second, per second. Needs + * `Velocity2D` and the `move2D` system. + * + * @component + * @side shared + * @group Acceleration color=#f0a33a - Pixels per second, per second. + */ +export class Acceleration2D { + name = "Acceleration2D"; + + constructor( + /** Added to the horizontal velocity every second. @group Acceleration @preset vector.x */ + public x = 0, + /** Added to the vertical velocity every second. @group Acceleration @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-keyboard/src/components/drawable-circle-2d.component.ts b/basics/input-keyboard/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/input-keyboard/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-keyboard/src/components/drawable-rect-2d.component.ts b/basics/input-keyboard/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/input-keyboard/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-keyboard/src/components/drawable-text-2d.component.ts b/basics/input-keyboard/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/input-keyboard/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-keyboard/src/components/move-controller-2d.component.ts b/basics/input-keyboard/src/components/move-controller-2d.component.ts new file mode 100644 index 0000000..75ffcf0 --- /dev/null +++ b/basics/input-keyboard/src/components/move-controller-2d.component.ts @@ -0,0 +1,33 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Moves an entity with the keyboard, by setting its `Velocity2D`. Needs the `moveControl2D` + * system. + * + * @example + * For a platformer, set `axes` to `horizontal`: the vertical velocity is left to gravity and + * jumps. + * + * @component + * @side client + * @group Movement color=#9d7bff - How the entity moves. + * @group Keys color=#f0a33a - The keys that move it. + */ +export class MoveController2D { + name = "MoveController2D"; + + constructor( + /** In pixels per second. @group Movement */ + public speed = 200, + /** Which directions the keys move it in. @group Movement */ + public axes: "both" | "horizontal" | "vertical" = "both", + /** @group Keys */ + public left: InputEnum = InputEnum.ArrowLeft, + /** @group Keys */ + public right: InputEnum = InputEnum.ArrowRight, + /** @group Keys */ + public up: InputEnum = InputEnum.ArrowUp, + /** @group Keys */ + public down: InputEnum = InputEnum.ArrowDown, + ) {} +} diff --git a/basics/input-keyboard/src/components/position-2d.component.ts b/basics/input-keyboard/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/input-keyboard/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-keyboard/src/components/velocity-2d.component.ts b/basics/input-keyboard/src/components/velocity-2d.component.ts new file mode 100644 index 0000000..3b93d4e --- /dev/null +++ b/basics/input-keyboard/src/components/velocity-2d.component.ts @@ -0,0 +1,20 @@ +/** + * How fast an entity moves, in pixels per second. Needs `Position2D` and the `move2D` system. + * + * @example + * `new Velocity2D(100, 0)` moves 100 pixels to the right every second. + * + * @component + * @side shared + * @group Velocity color=#36c5a0 - Pixels per second. + */ +export class Velocity2D { + name = "Velocity2D"; + + constructor( + /** Pixels per second to the right (negative: to the left). @group Velocity @preset vector.x */ + public x = 0, + /** Pixels per second downward (negative: upward). @group Velocity @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-keyboard/src/image-fill.ts b/basics/input-keyboard/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/input-keyboard/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/input-keyboard/src/main.ts b/basics/input-keyboard/src/main.ts new file mode 100644 index 0000000..9315b5b --- /dev/null +++ b/basics/input-keyboard/src/main.ts @@ -0,0 +1,68 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputEnum, InputLibrary } from "@nanoforge-dev/input"; + +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { MoveController2D } from "./components/move-controller-2d.component"; +import { Position2D } from "./components/position-2d.component"; +import { Velocity2D } from "./components/velocity-2d.component"; +import { draw2D } from "./systems/draw-2d.system"; +import { move2D } from "./systems/move-2d.system"; +import { moveControl2D } from "./systems/move-control-2d.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent(help, new DrawableText2D("Arrows or WASD to move", 24, "#cdd6f4")); + + const arrows = registry.spawnEntity(); + registry.addComponent(arrows, new Position2D(250, 270)); + registry.addComponent(arrows, new Velocity2D(0, 0)); + registry.addComponent(arrows, new MoveController2D(300, "both")); + registry.addComponent(arrows, new DrawableRect2D(60, 60, "#f38ba8")); + + const wasd = registry.spawnEntity(); + registry.addComponent(wasd, new Position2D(490, 270)); + registry.addComponent(wasd, new Velocity2D(0, 0)); + registry.addComponent( + wasd, + new MoveController2D( + 300, + "both", + InputEnum.KeyA, + InputEnum.KeyD, + InputEnum.KeyW, + InputEnum.KeyS, + ), + ); + registry.addComponent(wasd, new DrawableRect2D(60, 60, "#a6e3a1")); + + registry.addSystem(moveControl2D); + registry.addSystem(move2D); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/input-keyboard/src/systems/draw-2d.system.ts b/basics/input-keyboard/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/input-keyboard/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/input-keyboard/src/systems/move-2d.system.ts b/basics/input-keyboard/src/systems/move-2d.system.ts new file mode 100644 index 0000000..514766a --- /dev/null +++ b/basics/input-keyboard/src/systems/move-2d.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Acceleration2D } from "../components/acceleration-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +/** + * Moves entities: their `Acceleration2D` changes their `Velocity2D`, then their `Velocity2D` + * changes their `Position2D`, by the time elapsed since the last frame. + * + * @system + * @side shared + */ +export const move2D = (registry: Registry, ctx: Context) => { + const seconds = ctx.app.delta / 1000; + + registry.getZipper([Acceleration2D, Velocity2D]).forEach(({ Acceleration2D, Velocity2D }) => { + Velocity2D.x += Acceleration2D.x * seconds; + Velocity2D.y += Acceleration2D.y * seconds; + }); + registry.getZipper([Position2D, Velocity2D]).forEach(({ Position2D, Velocity2D }) => { + Position2D.x += Velocity2D.x * seconds; + Position2D.y += Velocity2D.y * seconds; + }); +}; diff --git a/basics/input-keyboard/src/systems/move-control-2d.system.ts b/basics/input-keyboard/src/systems/move-control-2d.system.ts new file mode 100644 index 0000000..71ad4f7 --- /dev/null +++ b/basics/input-keyboard/src/systems/move-control-2d.system.ts @@ -0,0 +1,23 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import { Velocity2D } from "../components/velocity-2d.component"; + +import { MoveController2D } from "../components/move-controller-2d.component"; + +/** + * Sets the `Velocity2D` of `MoveController2D` entities from the keys held down. Add it before + * `move2D`. + * + * @system + * @side client + */ +export const moveControl2D = (registry: Registry, ctx: Context) => { + const held = (key: MoveController2D["left"]) => Number(ctx.input.isKeyPressed(key) === true); + + registry.getZipper([MoveController2D, Velocity2D]).forEach(({ MoveController2D, Velocity2D }) => { + const { speed, axes, left, right, up, down } = MoveController2D as MoveController2D; + if (axes !== "vertical") Velocity2D.x = (held(right) - held(left)) * speed; + if (axes !== "horizontal") Velocity2D.y = (held(down) - held(up)) * speed; + }); +}; diff --git a/basics/input-keyboard/tsconfig.json b/basics/input-keyboard/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/input-keyboard/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From 3186282c25ac2010d99590b160e82e9d79bd9558 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:16:23 +0100 Subject: [PATCH 03/53] feat(input-mouse): add the mouse input basic --- basics/input-mouse/.gitignore | 5 + basics/input-mouse/README.md | 20 + basics/input-mouse/assets/.gitkeep | 0 basics/input-mouse/nanoforge.config.ts | 5 + basics/input-mouse/package.json | 26 + basics/input-mouse/pnpm-lock.yaml | 1512 +++++++++++++++++ basics/input-mouse/pnpm-workspace.yaml | 5 + .../src/components/draggable-2d.component.ts | 27 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../components/follow-mouse-2d.component.ts | 9 + .../src/components/mouse-readout.component.ts | 15 + .../src/components/position-2d.component.ts | 20 + basics/input-mouse/src/image-fill.ts | 43 + basics/input-mouse/src/main.ts | 73 + .../input-mouse/src/systems/drag-2d.system.ts | 41 + .../input-mouse/src/systems/draw-2d.system.ts | 45 + .../src/systems/follow-mouse-2d.system.ts | 21 + .../src/systems/show-mouse-readout.system.ts | 24 + basics/input-mouse/tsconfig.json | 39 + 21 files changed, 2123 insertions(+) create mode 100644 basics/input-mouse/.gitignore create mode 100644 basics/input-mouse/README.md create mode 100644 basics/input-mouse/assets/.gitkeep create mode 100644 basics/input-mouse/nanoforge.config.ts create mode 100644 basics/input-mouse/package.json create mode 100644 basics/input-mouse/pnpm-lock.yaml create mode 100644 basics/input-mouse/pnpm-workspace.yaml create mode 100644 basics/input-mouse/src/components/draggable-2d.component.ts create mode 100644 basics/input-mouse/src/components/drawable-circle-2d.component.ts create mode 100644 basics/input-mouse/src/components/drawable-rect-2d.component.ts create mode 100644 basics/input-mouse/src/components/drawable-text-2d.component.ts create mode 100644 basics/input-mouse/src/components/follow-mouse-2d.component.ts create mode 100644 basics/input-mouse/src/components/mouse-readout.component.ts create mode 100644 basics/input-mouse/src/components/position-2d.component.ts create mode 100644 basics/input-mouse/src/image-fill.ts create mode 100644 basics/input-mouse/src/main.ts create mode 100644 basics/input-mouse/src/systems/drag-2d.system.ts create mode 100644 basics/input-mouse/src/systems/draw-2d.system.ts create mode 100644 basics/input-mouse/src/systems/follow-mouse-2d.system.ts create mode 100644 basics/input-mouse/src/systems/show-mouse-readout.system.ts create mode 100644 basics/input-mouse/tsconfig.json diff --git a/basics/input-mouse/.gitignore b/basics/input-mouse/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/input-mouse/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/input-mouse/README.md b/basics/input-mouse/README.md new file mode 100644 index 0000000..a62b24e --- /dev/null +++ b/basics/input-mouse/README.md @@ -0,0 +1,20 @@ +# input-mouse + +A dot follows the mouse, two squares can be dragged with the left button, and a line at the +bottom shows the cursor position and the number of left clicks. + +It shows the mouse side of the `input` engine library: + +- `followMouse2D` reads `ctx.input.getMousePosition()` (in game coordinates); +- `drag2D` reads `ctx.input.getDragState()`: a drag that starts on a `Draggable2D` rectangle + carries it until the button is released; +- `showMouseReadout` counts clicks with `ctx.input.isKeyPressed(InputEnum.MouseLeft)`. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +`image-fill.ts`, the `Position2D`, `DrawableRect2D`, `DrawableCircle2D` and `DrawableText2D` +components and the `draw2D` system are copies of `shared/2d` (see the repository's README). diff --git a/basics/input-mouse/assets/.gitkeep b/basics/input-mouse/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/input-mouse/nanoforge.config.ts b/basics/input-mouse/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/input-mouse/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/input-mouse/package.json b/basics/input-mouse/package.json new file mode 100644 index 0000000..e4974f7 --- /dev/null +++ b/basics/input-mouse/package.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "input-mouse", + "description": "Follow, click and drag with the mouse: the smallest NanoForge game reading the mouse", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/basics/input-mouse/pnpm-lock.yaml b/basics/input-mouse/pnpm-lock.yaml new file mode 100644 index 0000000..9aca6d9 --- /dev/null +++ b/basics/input-mouse/pnpm-lock.yaml @@ -0,0 +1,1512 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/input-mouse/pnpm-workspace.yaml b/basics/input-mouse/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/input-mouse/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/input-mouse/src/components/draggable-2d.component.ts b/basics/input-mouse/src/components/draggable-2d.component.ts new file mode 100644 index 0000000..96762e2 --- /dev/null +++ b/basics/input-mouse/src/components/draggable-2d.component.ts @@ -0,0 +1,27 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Lets the mouse drag a rectangle: press a button on its `DrawableRect2D`, move, release. Needs + * the `drag2D` system. + * + * @component + * @side client + * @group Drag color=#9d7bff - How the entity is dragged. + */ +export class Draggable2D { + name = "Draggable2D"; + + /** Whether the current drag started on the entity, set by `drag2D`. */ + grabbed = false; + /** Whether the current drag was already checked, set by `drag2D`. */ + checked = false; + /** Where the entity was when the drag started, set by `drag2D`. */ + fromX = 0; + /** Where the entity was when the drag started, set by `drag2D`. */ + fromY = 0; + + constructor( + /** The mouse button that drags it. @group Drag */ + public button: InputEnum = InputEnum.MouseLeft, + ) {} +} diff --git a/basics/input-mouse/src/components/drawable-circle-2d.component.ts b/basics/input-mouse/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/input-mouse/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-mouse/src/components/drawable-rect-2d.component.ts b/basics/input-mouse/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/input-mouse/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-mouse/src/components/drawable-text-2d.component.ts b/basics/input-mouse/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/input-mouse/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-mouse/src/components/follow-mouse-2d.component.ts b/basics/input-mouse/src/components/follow-mouse-2d.component.ts new file mode 100644 index 0000000..f41a177 --- /dev/null +++ b/basics/input-mouse/src/components/follow-mouse-2d.component.ts @@ -0,0 +1,9 @@ +/** + * Keeps an entity's `Position2D` on the mouse cursor. Needs the `followMouse2D` system. + * + * @component + * @side client + */ +export class FollowMouse2D { + name = "FollowMouse2D"; +} diff --git a/basics/input-mouse/src/components/mouse-readout.component.ts b/basics/input-mouse/src/components/mouse-readout.component.ts new file mode 100644 index 0000000..8eb9b5a --- /dev/null +++ b/basics/input-mouse/src/components/mouse-readout.component.ts @@ -0,0 +1,15 @@ +/** + * Writes the mouse position and the number of clicks in the entity's `DrawableText2D`. Needs the + * `showMouseReadout` system. + * + * @component + * @side client + */ +export class MouseReadout { + name = "MouseReadout"; + + /** Left clicks so far, counted by `showMouseReadout`. */ + clicks = 0; + /** Whether the left button was down last frame, set by `showMouseReadout`. */ + held = false; +} diff --git a/basics/input-mouse/src/components/position-2d.component.ts b/basics/input-mouse/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/input-mouse/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-mouse/src/image-fill.ts b/basics/input-mouse/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/input-mouse/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/input-mouse/src/main.ts b/basics/input-mouse/src/main.ts new file mode 100644 index 0000000..c9ca23a --- /dev/null +++ b/basics/input-mouse/src/main.ts @@ -0,0 +1,73 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputLibrary } from "@nanoforge-dev/input"; + +import { Draggable2D } from "./components/draggable-2d.component"; +import { DrawableCircle2D } from "./components/drawable-circle-2d.component"; +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { FollowMouse2D } from "./components/follow-mouse-2d.component"; +import { MouseReadout } from "./components/mouse-readout.component"; +import { Position2D } from "./components/position-2d.component"; +import { drag2D } from "./systems/drag-2d.system"; +import { draw2D } from "./systems/draw-2d.system"; +import { followMouse2D } from "./systems/follow-mouse-2d.system"; +import { showMouseReadout } from "./systems/show-mouse-readout.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent( + help, + new DrawableText2D("Drag the squares with the left button", 22, "#cdd6f4"), + ); + + const readout = registry.spawnEntity(); + registry.addComponent(readout, new Position2D(20, 560)); + registry.addComponent(readout, new DrawableText2D("", 20, "#a6adc8")); + registry.addComponent(readout, new MouseReadout()); + + const red = registry.spawnEntity(); + registry.addComponent(red, new Position2D(250, 270)); + registry.addComponent(red, new DrawableRect2D(80, 80, "#f38ba8")); + registry.addComponent(red, new Draggable2D()); + + const green = registry.spawnEntity(); + registry.addComponent(green, new Position2D(470, 270)); + registry.addComponent(green, new DrawableRect2D(80, 80, "#a6e3a1")); + registry.addComponent(green, new Draggable2D()); + + const cursor = registry.spawnEntity(); + registry.addComponent(cursor, new Position2D(0, 0)); + registry.addComponent(cursor, new DrawableCircle2D(8, "#f9e2af")); + registry.addComponent(cursor, new FollowMouse2D()); + + registry.addSystem(followMouse2D); + registry.addSystem(drag2D); + registry.addSystem(showMouseReadout); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/input-mouse/src/systems/drag-2d.system.ts b/basics/input-mouse/src/systems/drag-2d.system.ts new file mode 100644 index 0000000..c963749 --- /dev/null +++ b/basics/input-mouse/src/systems/drag-2d.system.ts @@ -0,0 +1,41 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; + +import { Draggable2D } from "../components/draggable-2d.component"; + +/** + * Moves the `Draggable2D` rectangles the mouse drags: a drag that starts on a rectangle carries it + * until the button is released. + * + * @system + * @side client + */ +export const drag2D = (registry: Registry, ctx: Context) => { + const drag = ctx.input.getDragState(); + + registry + .getZipper([Draggable2D, Position2D, DrawableRect2D]) + .forEach(({ Draggable2D, Position2D, DrawableRect2D }) => { + if (!drag.active || drag.button !== Draggable2D.button) { + Draggable2D.checked = false; + Draggable2D.grabbed = false; + return; + } + if (!Draggable2D.checked) { + Draggable2D.checked = true; + Draggable2D.grabbed = + drag.startX >= Position2D.x && + drag.startX <= Position2D.x + DrawableRect2D.width && + drag.startY >= Position2D.y && + drag.startY <= Position2D.y + DrawableRect2D.height; + Draggable2D.fromX = Position2D.x; + Draggable2D.fromY = Position2D.y; + } + if (!Draggable2D.grabbed) return; + Position2D.x = Draggable2D.fromX + drag.deltaX; + Position2D.y = Draggable2D.fromY + drag.deltaY; + }); +}; diff --git a/basics/input-mouse/src/systems/draw-2d.system.ts b/basics/input-mouse/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/input-mouse/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/input-mouse/src/systems/follow-mouse-2d.system.ts b/basics/input-mouse/src/systems/follow-mouse-2d.system.ts new file mode 100644 index 0000000..3f90180 --- /dev/null +++ b/basics/input-mouse/src/systems/follow-mouse-2d.system.ts @@ -0,0 +1,21 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import { Position2D } from "../components/position-2d.component"; + +import { FollowMouse2D } from "../components/follow-mouse-2d.component"; + +/** + * Moves every `FollowMouse2D` entity to the mouse cursor. + * + * @system + * @side client + */ +export const followMouse2D = (registry: Registry, ctx: Context) => { + const { x, y } = ctx.input.getMousePosition(); + + registry.getZipper([FollowMouse2D, Position2D]).forEach(({ Position2D }) => { + Position2D.x = x; + Position2D.y = y; + }); +}; diff --git a/basics/input-mouse/src/systems/show-mouse-readout.system.ts b/basics/input-mouse/src/systems/show-mouse-readout.system.ts new file mode 100644 index 0000000..8aa9d10 --- /dev/null +++ b/basics/input-mouse/src/systems/show-mouse-readout.system.ts @@ -0,0 +1,24 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { InputEnum } from "@nanoforge-dev/input"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +import { MouseReadout } from "../components/mouse-readout.component"; + +/** + * Counts the left clicks and writes them, with the mouse position, in the text of every + * `MouseReadout` entity. + * + * @system + * @side client + */ +export const showMouseReadout = (registry: Registry, ctx: Context) => { + const { x, y } = ctx.input.getMousePosition(); + const down = ctx.input.isKeyPressed(InputEnum.MouseLeft) === true; + + registry.getZipper([MouseReadout, DrawableText2D]).forEach(({ MouseReadout, DrawableText2D }) => { + if (down && !MouseReadout.held) MouseReadout.clicks++; + MouseReadout.held = down; + DrawableText2D.text = `Mouse ${Math.round(x)}, ${Math.round(y)} Clicks ${MouseReadout.clicks}`; + }); +}; diff --git a/basics/input-mouse/tsconfig.json b/basics/input-mouse/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/input-mouse/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From b62068e19403a2b67e3764f34e238564c69ae787 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:17:27 +0100 Subject: [PATCH 04/53] feat(graphics-3d): add the 3d graphics basic --- basics/graphics-3d/.gitignore | 5 + basics/graphics-3d/README.md | 17 + basics/graphics-3d/assets/.gitkeep | 0 basics/graphics-3d/nanoforge.config.ts | 5 + basics/graphics-3d/package.json | 26 + basics/graphics-3d/pnpm-lock.yaml | 1539 +++++++++++++++++ basics/graphics-3d/pnpm-workspace.yaml | 5 + .../src/components/box-3d.component.ts | 60 + .../src/components/spin-3d.component.ts | 19 + .../src/components/transform-3d.component.ts | 26 + basics/graphics-3d/src/main.ts | 48 + .../graphics-3d/src/systems/draw-3d.system.ts | 31 + .../graphics-3d/src/systems/spin-3d.system.ts | 21 + basics/graphics-3d/tsconfig.json | 39 + 14 files changed, 1841 insertions(+) create mode 100644 basics/graphics-3d/.gitignore create mode 100644 basics/graphics-3d/README.md create mode 100644 basics/graphics-3d/assets/.gitkeep create mode 100644 basics/graphics-3d/nanoforge.config.ts create mode 100644 basics/graphics-3d/package.json create mode 100644 basics/graphics-3d/pnpm-lock.yaml create mode 100644 basics/graphics-3d/pnpm-workspace.yaml create mode 100644 basics/graphics-3d/src/components/box-3d.component.ts create mode 100644 basics/graphics-3d/src/components/spin-3d.component.ts create mode 100644 basics/graphics-3d/src/components/transform-3d.component.ts create mode 100644 basics/graphics-3d/src/main.ts create mode 100644 basics/graphics-3d/src/systems/draw-3d.system.ts create mode 100644 basics/graphics-3d/src/systems/spin-3d.system.ts create mode 100644 basics/graphics-3d/tsconfig.json diff --git a/basics/graphics-3d/.gitignore b/basics/graphics-3d/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/graphics-3d/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/graphics-3d/README.md b/basics/graphics-3d/README.md new file mode 100644 index 0000000..0bd76e1 --- /dev/null +++ b/basics/graphics-3d/README.md @@ -0,0 +1,17 @@ +# graphics-3d + +A cube spinning in 3D, lit by a sun and the sky. + +It shows the `graphics-3d` engine library (Three.js): `main` sets up the scene's background, +camera and lights through `Graphics3DLibrary`, and the cube is an entity: `Transform3D` places it, +`Box3D` draws it (the `draw3D` system adds its mesh to `ctx.graphics.scene`) and `Spin3D` turns +it (the `spin3D` system). graphics-3d renders the scene after the systems, every tick. + +Three.js is a peer dependency of graphics-3d: import its classes from +`@nanoforge-dev/graphics-3d/three`. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` diff --git a/basics/graphics-3d/assets/.gitkeep b/basics/graphics-3d/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/graphics-3d/nanoforge.config.ts b/basics/graphics-3d/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/graphics-3d/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/graphics-3d/package.json b/basics/graphics-3d/package.json new file mode 100644 index 0000000..0b1ce92 --- /dev/null +++ b/basics/graphics-3d/package.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "graphics-3d", + "description": "A spinning cube: the smallest NanoForge game drawn in 3D", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-3d": "^3.0.0", + "three": "^0.187.0", + "typescript": "^6.0.0" + } +} diff --git a/basics/graphics-3d/pnpm-lock.yaml b/basics/graphics-3d/pnpm-lock.yaml new file mode 100644 index 0000000..e54d940 --- /dev/null +++ b/basics/graphics-3d/pnpm-lock.yaml @@ -0,0 +1,1539 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-3d': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0)(three@0.187.0) + three: + specifier: ^0.187.0 + version: 0.187.0 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@dimforge/rapier3d-compat@0.12.0': + resolution: {integrity: sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-3d@3.0.0': + resolution: {integrity: sha512-yRY2ktlzgHQS0fdrdj+k5FjrBMGPQ3vFnw+Ag3vMv2mRRrFCwFBDzofpf1tSzluOyyTpJkgD2tmRpQZqC5CsLg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + three: ^0.187.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tweenjs/tween.js@23.1.3': + resolution: {integrity: sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/stats.js@0.17.4': + resolution: {integrity: sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==} + + '@types/three@0.187.0': + resolution: {integrity: sha512-v+vKNarUtk4n2QRZ4+CN5ygMM0ARUjXjIQl0R/unMUfmStFeVqGbgqarbrpoGTXRZoulSH16ePrVJVxPJEbMUA==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + '@types/webxr@0.5.24': + resolution: {integrity: sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + meshoptimizer@1.1.1: + resolution: {integrity: sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + three@0.187.0: + resolution: {integrity: sha512-Qiu7R+Cmh8CstZsY1uJOSWnVlfo7ZtNLV7mF8Jltk3LB3AtDu9cRZlcnRKkAk8Y4z6KKw35z7Y7Urd7jWY8etA==} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@dimforge/rapier3d-compat@0.12.0': {} + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-3d@3.0.0(@nanoforge-dev/editor-lib@3.0.0)(three@0.187.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + '@types/three': 0.187.0 + three: 0.187.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tweenjs/tween.js@23.1.3': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/stats.js@0.17.4': {} + + '@types/three@0.187.0': + dependencies: + '@dimforge/rapier3d-compat': 0.12.0 + '@tweenjs/tween.js': 23.1.3 + '@types/stats.js': 0.17.4 + '@types/webxr': 0.5.24 + fflate: 0.8.3 + meshoptimizer: 1.1.1 + + '@types/validator@13.15.10': {} + + '@types/webxr@0.5.24': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + meshoptimizer@1.1.1: {} + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + three@0.187.0: {} + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/graphics-3d/pnpm-workspace.yaml b/basics/graphics-3d/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/graphics-3d/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/graphics-3d/src/components/box-3d.component.ts b/basics/graphics-3d/src/components/box-3d.component.ts new file mode 100644 index 0000000..4d926a1 --- /dev/null +++ b/basics/graphics-3d/src/components/box-3d.component.ts @@ -0,0 +1,60 @@ +import { + BoxGeometry, + MathUtils, + Mesh, + MeshStandardMaterial, + type Scene, +} from "@nanoforge-dev/graphics-3d/three"; +import type { Transform3D } from "./transform-3d.component"; + +/** + * Draws a box at the entity's `Transform3D` (its center). Needs the `draw3D` system. + * + * @remarks + * `mesh` is the Three.js `Mesh` in the scene: change it from code for anything the parameters + * don't offer. + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the box, in world units. + * @group Look color=#b18cff - What the box looks like. + */ +export class Box3D { + name = "Box3D"; + + /** The box in the scene, made by `draw3D` the first time it draws it. */ + mesh?: Mesh; + + constructor( + /** @group Shape */ + public width = 1, + /** @group Shape */ + public height = 1, + /** @group Shape */ + public depth = 1, + /** A CSS color: `red`, `#ff0000`... @group Look @preset color */ + public color = "#44aa88", + ) {} + + /** Puts the box in `scene` at `transform`, up to date with the parameters. */ + draw(scene: Scene, transform: Transform3D): void { + this.mesh ??= new Mesh(new BoxGeometry(), new MeshStandardMaterial()); + if (this.mesh.parent !== scene) scene.add(this.mesh); + this.mesh.scale.set(this.width, this.height, this.depth); + this.mesh.material.color.set(this.color); + this.mesh.position.set(transform.x, transform.y, transform.z); + this.mesh.rotation.set( + MathUtils.degToRad(transform.rotationX), + MathUtils.degToRad(transform.rotationY), + MathUtils.degToRad(transform.rotationZ), + ); + } + + /** Removes the box from the scene and frees its GPU memory. */ + destroy(): void { + this.mesh?.removeFromParent(); + this.mesh?.geometry.dispose(); + this.mesh?.material.dispose(); + this.mesh = undefined; + } +} diff --git a/basics/graphics-3d/src/components/spin-3d.component.ts b/basics/graphics-3d/src/components/spin-3d.component.ts new file mode 100644 index 0000000..5405478 --- /dev/null +++ b/basics/graphics-3d/src/components/spin-3d.component.ts @@ -0,0 +1,19 @@ +/** + * Turns an entity's `Transform3D` on its own. Needs the `spin3D` system. + * + * @component + * @side shared + * @group Speed color=#f0a33a - Degrees per second around each axis. + */ +export class Spin3D { + name = "Spin3D"; + + constructor( + /** @group Speed */ + public x = 0, + /** @group Speed */ + public y = 0, + /** @group Speed */ + public z = 0, + ) {} +} diff --git a/basics/graphics-3d/src/components/transform-3d.component.ts b/basics/graphics-3d/src/components/transform-3d.component.ts new file mode 100644 index 0000000..1d2f8d0 --- /dev/null +++ b/basics/graphics-3d/src/components/transform-3d.component.ts @@ -0,0 +1,26 @@ +/** + * Where an entity is in the 3D world, and how it is turned. + * + * @component + * @side shared + * @group Position color=#4aa3ff - World units from the origin. + * @group Rotation color=#36c5a0 - Degrees around each axis. + */ +export class Transform3D { + name = "Transform3D"; + + constructor( + /** @group Position @preset vector.x */ + public x = 0, + /** @group Position @preset vector.y */ + public y = 0, + /** @group Position */ + public z = 0, + /** @group Rotation */ + public rotationX = 0, + /** @group Rotation */ + public rotationY = 0, + /** @group Rotation */ + public rotationZ = 0, + ) {} +} diff --git a/basics/graphics-3d/src/main.ts b/basics/graphics-3d/src/main.ts new file mode 100644 index 0000000..7581ac9 --- /dev/null +++ b/basics/graphics-3d/src/main.ts @@ -0,0 +1,48 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics3DLibrary } from "@nanoforge-dev/graphics-3d"; +import { Color, DirectionalLight, HemisphereLight } from "@nanoforge-dev/graphics-3d/three"; + +import { Box3D } from "./components/box-3d.component"; +import { Spin3D } from "./components/spin-3d.component"; +import { Transform3D } from "./components/transform-3d.component"; +import { draw3D } from "./systems/draw-3d.system"; +import { spin3D } from "./systems/spin-3d.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 1280, height: 720, fit: "contain" }, + }); + const graphics = new Graphics3DLibrary(); + const ecs = new EcsLibrary(); + + app.use(graphics); + app.use(ecs); + app.use(new EditorLibrary()); + + await app.init(options); + + // The world around the entities: a background, a camera looking at the origin, and lights. + const { scene, camera } = graphics; + scene.background = new Color("#20232a"); + camera.position.set(0, 1.5, 4); + camera.lookAt(0, 0, 0); + const sun = new DirectionalLight("white", 3); + sun.position.set(3, 5, 4); + scene.add(new HemisphereLight("white", "#445566", 1), sun); + + const registry = ecs.registry; + + const cube = registry.spawnEntity(); + registry.addComponent(cube, new Transform3D(0, 0, 0)); + registry.addComponent(cube, new Box3D(1, 1, 1, "#44aa88")); + registry.addComponent(cube, new Spin3D(20, 90, 0)); + + registry.addSystem(spin3D); + registry.addSystem(draw3D); + + await app.run(); +}; diff --git a/basics/graphics-3d/src/systems/draw-3d.system.ts b/basics/graphics-3d/src/systems/draw-3d.system.ts new file mode 100644 index 0000000..5b715a4 --- /dev/null +++ b/basics/graphics-3d/src/systems/draw-3d.system.ts @@ -0,0 +1,31 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-3d"; +import { Transform3D } from "../components/transform-3d.component"; + +import { Box3D } from "../components/box-3d.component"; + +/** The boxes shown by the last frame. */ +let shown = new Set(); + +/** + * Puts every entity that has a `Transform3D` and a `Box3D` in the 3D scene, where it is. Add it + * last: graphics-3d renders the scene after the systems. + * + * @remarks + * The box of a killed entity, or of a removed `Box3D`, is removed from the scene. + * + * @system + * @side client + */ +export const draw3D = (registry: Registry, ctx: Context) => { + const drawn = new Set(); + + registry.getZipper([Box3D, Transform3D]).forEach(({ Box3D, Transform3D }) => { + Box3D.draw(ctx.graphics.scene, Transform3D); + drawn.add(Box3D); + }); + + for (const box of shown) if (!drawn.has(box)) box.destroy(); + shown = drawn; +}; diff --git a/basics/graphics-3d/src/systems/spin-3d.system.ts b/basics/graphics-3d/src/systems/spin-3d.system.ts new file mode 100644 index 0000000..81d6b8d --- /dev/null +++ b/basics/graphics-3d/src/systems/spin-3d.system.ts @@ -0,0 +1,21 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Spin3D } from "../components/spin-3d.component"; +import { Transform3D } from "../components/transform-3d.component"; + +/** + * Turns every `Spin3D` entity by its speed, for the time elapsed since the last frame. + * + * @system + * @side shared + */ +export const spin3D = (registry: Registry, ctx: Context) => { + const seconds = ctx.app.delta / 1000; + + registry.getZipper([Spin3D, Transform3D]).forEach(({ Spin3D, Transform3D }) => { + Transform3D.rotationX = (Transform3D.rotationX + Spin3D.x * seconds) % 360; + Transform3D.rotationY = (Transform3D.rotationY + Spin3D.y * seconds) % 360; + Transform3D.rotationZ = (Transform3D.rotationZ + Spin3D.z * seconds) % 360; + }); +}; diff --git a/basics/graphics-3d/tsconfig.json b/basics/graphics-3d/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/graphics-3d/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From 8f8e8d18c18874246dd81a677115266ec12ef24b Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:27:51 +0100 Subject: [PATCH 05/53] feat(raid-survival): add the workspace and the shared library of the remake --- games/raid-survival/.env.example | 8 + games/raid-survival/.gitignore | 5 + .../apps/client/nanoforge.config.ts | 6 + games/raid-survival/apps/client/package.json | 20 + games/raid-survival/apps/client/tsconfig.json | 5 + .../apps/server/nanoforge.config.ts | 6 + games/raid-survival/apps/server/package.json | 19 + games/raid-survival/apps/server/tsconfig.json | 5 + .../libs/shared/nanoforge.config.ts | 6 + games/raid-survival/libs/shared/package.json | 13 + .../libs/shared/src}/building-catalog.ts | 43 +- .../libs/shared/src}/map-collision.json | 0 games/raid-survival/libs/shared/src/map.ts | 23 + .../libs/shared/src/player-class-catalog.ts | 38 + .../raid-survival/libs/shared/src/protocol.ts | 160 ++ games/raid-survival/libs/shared/src/tower.ts | 11 + .../libs/shared/src/weapon-catalog.ts | 134 ++ games/raid-survival/nanoforge.config.ts | 6 + games/raid-survival/package.json | 18 + games/raid-survival/pnpm-lock.yaml | 1697 +++++++++++++++++ games/raid-survival/pnpm-workspace.yaml | 12 + games/raid-survival/tsconfig.json | 42 + raid-survival/server/player-class-catalog.ts | 33 - raid-survival/server/weapon-catalog.ts | 80 - 24 files changed, 2261 insertions(+), 129 deletions(-) create mode 100644 games/raid-survival/.env.example create mode 100644 games/raid-survival/.gitignore create mode 100644 games/raid-survival/apps/client/nanoforge.config.ts create mode 100644 games/raid-survival/apps/client/package.json create mode 100644 games/raid-survival/apps/client/tsconfig.json create mode 100644 games/raid-survival/apps/server/nanoforge.config.ts create mode 100644 games/raid-survival/apps/server/package.json create mode 100644 games/raid-survival/apps/server/tsconfig.json create mode 100644 games/raid-survival/libs/shared/nanoforge.config.ts create mode 100644 games/raid-survival/libs/shared/package.json rename {raid-survival/server => games/raid-survival/libs/shared/src}/building-catalog.ts (53%) rename {raid-survival/server/static => games/raid-survival/libs/shared/src}/map-collision.json (100%) create mode 100644 games/raid-survival/libs/shared/src/map.ts create mode 100644 games/raid-survival/libs/shared/src/player-class-catalog.ts create mode 100644 games/raid-survival/libs/shared/src/protocol.ts create mode 100644 games/raid-survival/libs/shared/src/tower.ts create mode 100644 games/raid-survival/libs/shared/src/weapon-catalog.ts create mode 100644 games/raid-survival/nanoforge.config.ts create mode 100644 games/raid-survival/package.json create mode 100644 games/raid-survival/pnpm-lock.yaml create mode 100644 games/raid-survival/pnpm-workspace.yaml create mode 100644 games/raid-survival/tsconfig.json delete mode 100644 raid-survival/server/player-class-catalog.ts delete mode 100644 raid-survival/server/weapon-catalog.ts diff --git a/games/raid-survival/.env.example b/games/raid-survival/.env.example new file mode 100644 index 0000000..2a2caa6 --- /dev/null +++ b/games/raid-survival/.env.example @@ -0,0 +1,8 @@ +# Copy to .env. nf start gives NANOFORGE_CLIENT_X to the client and NANOFORGE_SERVER_X to the +# server, as X. Everything the client gets reaches the browser. +NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1 +NANOFORGE_CLIENT_SERVER_TCP_PORT=4945 +NANOFORGE_CLIENT_SERVER_UDP_PORT=4944 + +NANOFORGE_SERVER_LISTENING_TCP_PORT=4945 +NANOFORGE_SERVER_LISTENING_UDP_PORT=4944 diff --git a/games/raid-survival/.gitignore b/games/raid-survival/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/games/raid-survival/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/games/raid-survival/apps/client/nanoforge.config.ts b/games/raid-survival/apps/client/nanoforge.config.ts new file mode 100644 index 0000000..5690555 --- /dev/null +++ b/games/raid-survival/apps/client/nanoforge.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", + libs: ["../../libs/shared"], +}); diff --git a/games/raid-survival/apps/client/package.json b/games/raid-survival/apps/client/package.json new file mode 100644 index 0000000..529a867 --- /dev/null +++ b/games/raid-survival/apps/client/package.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "raid-survival-client", + "private": true, + "type": "module", + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "@nanoforge-dev/network": "^3.0.0", + "@nanoforge-dev/scene": "^3.0.0", + "@raid-survival/shared": "workspace:*", + "typescript": "^6.0.0" + } +} diff --git a/games/raid-survival/apps/client/tsconfig.json b/games/raid-survival/apps/client/tsconfig.json new file mode 100644 index 0000000..9c06682 --- /dev/null +++ b/games/raid-survival/apps/client/tsconfig.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + "extends": "../../tsconfig.json", + "include": ["src"] +} diff --git a/games/raid-survival/apps/server/nanoforge.config.ts b/games/raid-survival/apps/server/nanoforge.config.ts new file mode 100644 index 0000000..51ad161 --- /dev/null +++ b/games/raid-survival/apps/server/nanoforge.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "server", + libs: ["../../libs/shared"], +}); diff --git a/games/raid-survival/apps/server/package.json b/games/raid-survival/apps/server/package.json new file mode 100644 index 0000000..c15cb38 --- /dev/null +++ b/games/raid-survival/apps/server/package.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "raid-survival-server", + "private": true, + "type": "module", + "dependencies": { + "@nanoforge-dev/network": "^3.0.0" + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@raid-survival/shared": "workspace:*", + "typescript": "^6.0.0" + } +} diff --git a/games/raid-survival/apps/server/tsconfig.json b/games/raid-survival/apps/server/tsconfig.json new file mode 100644 index 0000000..9c06682 --- /dev/null +++ b/games/raid-survival/apps/server/tsconfig.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + "extends": "../../tsconfig.json", + "include": ["src"] +} diff --git a/games/raid-survival/libs/shared/nanoforge.config.ts b/games/raid-survival/libs/shared/nanoforge.config.ts new file mode 100644 index 0000000..00eccaa --- /dev/null +++ b/games/raid-survival/libs/shared/nanoforge.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "lib", + dir: { shared: "src" }, +}); diff --git a/games/raid-survival/libs/shared/package.json b/games/raid-survival/libs/shared/package.json new file mode 100644 index 0000000..a36832f --- /dev/null +++ b/games/raid-survival/libs/shared/package.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "@raid-survival/shared", + "description": "What both raid-survival apps share: the packets and the game catalogs", + "private": true, + "type": "module", + "exports": { + "./*": "./src/*.ts" + }, + "devDependencies": { + "@nanoforge-dev/network": "^3.0.0" + } +} diff --git a/raid-survival/server/building-catalog.ts b/games/raid-survival/libs/shared/src/building-catalog.ts similarity index 53% rename from raid-survival/server/building-catalog.ts rename to games/raid-survival/libs/shared/src/building-catalog.ts index af14d04..fec2292 100644 --- a/raid-survival/server/building-catalog.ts +++ b/games/raid-survival/libs/shared/src/building-catalog.ts @@ -1,19 +1,28 @@ -// `maxHealth` is level-1 (just-built) HP; tower.component.ts owns level/HP/fire-rate progression -// from there. `footprintTiles` is tiles wide/tall - kept in sync manually with -// client/building-catalog.ts. +// `maxHealth` is the level-1 (just built) HP: the tower constants in `tower.ts` drive its level, +// HP and fire rate from there. `footprintTiles` is in tiles. export const BUILDING_CATALOG = { - wall: { cost: 20, maxHealth: 200, footprintTiles: { width: 1, height: 1 } }, - tower: { cost: 100, maxHealth: 100, footprintTiles: { width: 3, height: 3 } }, + wall: { + cost: 20, + maxHealth: 200, + color: "#6B5B4A", + label: "Wall", + footprintTiles: { width: 1, height: 1 }, + }, + tower: { + cost: 100, + maxHealth: 100, + color: "#4A5D3A", + label: "Tower", + footprintTiles: { width: 3, height: 3 }, + }, } as const; export type BuildingType = keyof typeof BUILDING_CATALOG; -export function isBuildingType(value: unknown): value is BuildingType { - return typeof value === "string" && Object.prototype.hasOwnProperty.call(BUILDING_CATALOG, value); -} +export const isBuildingType = (value: unknown): value is BuildingType => + typeof value === "string" && Object.prototype.hasOwnProperty.call(BUILDING_CATALOG, value); -// World-space axis-aligned box - used generically for anything that can block a placement -// (the lobby, an existing building). +/** World-space axis-aligned box: anything that can block a placement (the lobby, a building). */ export interface OccupiedBox { x: number; y: number; @@ -21,10 +30,12 @@ export interface OccupiedBox { height: number; } -// Pure, and duplicated verbatim client-side (client/building-catalog.ts) so the placement preview -// can't drift from what the server actually allows. Checks real box overlap rather than tile-index -// equality because the lobby's own footprint isn't tile-aligned. -export function canPlaceBuilding( +/** + * Whether a building fits at a tile: the server's check, and the client's placement preview. + * Checks real box overlap rather than tile-index equality, because the lobby's footprint isn't + * tile-aligned. + */ +export const canPlaceBuilding = ( tileX: number, tileY: number, tileSize: number, @@ -33,7 +44,7 @@ export function canPlaceBuilding( isTreeCell: (col: number, row: number) => boolean, obstacles: OccupiedBox[], footprintTiles: { width: number; height: number } = { width: 1, height: 1 }, -): boolean { +): boolean => { if (!Number.isInteger(tileX) || !Number.isInteger(tileY)) return false; if (tileX < 0 || tileY < 0) return false; if (tileX + footprintTiles.width > cols || tileY + footprintTiles.height > rows) return false; @@ -53,4 +64,4 @@ export function canPlaceBuilding( (box) => x < box.x + box.width && x + width > box.x && y < box.y + box.height && y + height > box.y, ); -} +}; diff --git a/raid-survival/server/static/map-collision.json b/games/raid-survival/libs/shared/src/map-collision.json similarity index 100% rename from raid-survival/server/static/map-collision.json rename to games/raid-survival/libs/shared/src/map-collision.json diff --git a/games/raid-survival/libs/shared/src/map.ts b/games/raid-survival/libs/shared/src/map.ts new file mode 100644 index 0000000..8f8a63e --- /dev/null +++ b/games/raid-survival/libs/shared/src/map.ts @@ -0,0 +1,23 @@ +import mapCollision from "./map-collision.json"; + +/** A tile of the map, in tiles from the top-left corner. */ +export interface TreeLocation { + x: number; + y: number; +} + +/** Size of a map tile, in world pixels. */ +export const TILE_SIZE = mapCollision.tileSize; +/** Width of the map, in tiles. */ +export const MAP_COLS = mapCollision.cols; +/** Height of the map, in tiles. */ +export const MAP_ROWS = mapCollision.rows; + +/** Whether a tile is a tree: it blocks players, bullets and buildings, and zombies spawn there. */ +export const isTreeCell = (col: number, row: number): boolean => + mapCollision.collision[row]?.[col] === 1; + +/** Every tree tile of the map. */ +export const TREE_LOCATIONS: TreeLocation[] = mapCollision.collision.flatMap((row, y) => + row.flatMap((blocked, x) => (blocked ? [{ x, y }] : [])), +); diff --git a/games/raid-survival/libs/shared/src/player-class-catalog.ts b/games/raid-survival/libs/shared/src/player-class-catalog.ts new file mode 100644 index 0000000..c696d99 --- /dev/null +++ b/games/raid-survival/libs/shared/src/player-class-catalog.ts @@ -0,0 +1,38 @@ +// A player's class comes from the skin picked in the menu (1-3): the skin picker is the class +// picker. +export type PlayerClass = "healer" | "ninja" | "fighter"; + +export const classForSkin = (skin: number): PlayerClass => { + if (skin === 2) return "ninja"; + if (skin === 3) return "fighter"; + return "healer"; // skin 1, and any unexpected value +}; + +export const PLAYER_CLASS_CATALOG = { + // A heal box heals fully instead of the flat amount; revives a teammate in 3s instead of 5s. + healer: { + name: "Healer", + description: "Heal boxes fully restore you. Revives teammates in 3s instead of 5s.", + maxHealth: 100, + speedMultiplier: 1, + reviveDurationSeconds: 3, + healBoxFullHeal: true, + }, + ninja: { + name: "Ninja", + description: "Moves 30% faster than everyone else.", + maxHealth: 100, + speedMultiplier: 1.3, + reviveDurationSeconds: 5, + healBoxFullHeal: false, + }, + // Spawns with a shotgun instead of the small gun (the server's start-game handler). + fighter: { + name: "Fighter", + description: "120 max HP. Starts with a shotgun (2 magazines) instead of the small gun.", + maxHealth: 120, + speedMultiplier: 1, + reviveDurationSeconds: 5, + healBoxFullHeal: false, + }, +} as const; diff --git a/games/raid-survival/libs/shared/src/protocol.ts b/games/raid-survival/libs/shared/src/protocol.ts new file mode 100644 index 0000000..8ad679d --- /dev/null +++ b/games/raid-survival/libs/shared/src/protocol.ts @@ -0,0 +1,160 @@ +import { definePacket } from "@nanoforge-dev/network"; + +import type { BuildingType } from "./building-catalog"; +import type { WeaponType } from "./weapon-catalog"; + +// Every message of the game. Each direction has one packet type carrying a `type` union, so the +// messages of a tick are handled in the order they were sent (a spawn before its kill, the start +// of a game before its first zombies). Ids are the server's entity ids. + +export interface Vector { + x: number; + y: number; +} + +export interface HealthValue { + current: number; + max: number; +} + +export interface LobbyPlayer { + id: number; + username: string; + skin: number; +} + +export interface OwnedWeaponAmmo { + weaponType: WeaponType; + reserveAmmo: number; +} + +export interface StartingPlayer extends LobbyPlayer { + position: Vector; + health: HealthValue; + weapons: OwnedWeaponAmmo[]; + weaponType: WeaponType | null; + magazineAmmo: number; +} + +export type LootType = "heal" | "gold" | "ammo"; + +export type ZombieState = "idle" | "attack" | "dying"; + +/** What a client sends. The server checks every field: a client can send anything. */ +export type ClientMessage = + | { type: "joinLobby"; username: string; skin: number } + | { type: "startGame" } + | { + type: "input"; + direction?: Vector; + mousePosition?: Vector; + moveKeys?: ("up" | "down" | "left" | "right")[]; + shooting?: boolean; + reload?: boolean; + reviveKeyHeld?: boolean; + interactRequested?: boolean; + } + | { type: "build"; buildingType: BuildingType; tileX: number; tileY: number } + | { type: "buyWeapon"; weaponType: WeaponType } + | { type: "buyAmmo"; weaponType: WeaponType } + | { type: "equipWeapon"; weaponType: WeaponType | null } + | { type: "destroyBuilding"; id: number }; + +/** What the server sends. */ +export type ServerMessage = + | { + type: "joinLobby"; + result: "success" | "full" | "in game" | "username taken"; + players?: LobbyPlayer[]; + } + | { type: "lobbyInfo"; players: LobbyPlayer[] } + | { + type: "startGame"; + players: StartingPlayer[]; + lobby: { id: number; position: Vector; health: HealthValue }; + money: number; + } + | { + type: "spawn"; + entityType: "building"; + buildingType: BuildingType; + id: number; + position: Vector; + health: HealthValue; + } + | { + type: "spawn"; + entityType: "zombie"; + id: number; + position: Vector; + velocity: Vector; + direction: Vector; + health: HealthValue; + } + | { type: "spawn"; entityType: "bullet"; id: number; position: Vector; velocity: Vector } + | { type: "spawn"; entityType: "lootBox"; id: number; lootType: LootType; position: Vector } + | { type: "move"; id: number; position: Vector; velocity: Vector } + | { type: "direction"; id: number; direction: Vector } + | { type: "kill"; id: number } + | { type: "hit"; id: number; damage: number } + | { type: "heal"; id: number; health: HealthValue } + | { type: "towerUpdate"; id: number; level: number; health: HealthValue } + | { type: "zombieState"; id: number; state: ZombieState; position: Vector; velocity: Vector } + | { + type: "waveInfo"; + wave: number; + maxWaves: number; + subWave: number; + subWaveCount: number; + aliveZombies: number; + phase: "spawning" | "cooldown" | "finished"; + cooldownRemaining: number; + } + | { type: "money"; amount: number } + | { type: "loot"; position: Vector; amount: number; text?: string; color?: string } + | { + type: "revive"; + state: "started"; + targetId: number; + durationSeconds: number; + } + | { type: "revive"; state: "completed"; targetId: number; health: number } + | { type: "revive"; state: "cancelled"; targetId: number } + | { + type: "weaponState"; + id: number; + weaponType: WeaponType; + state: "idle" | "reloading"; + reloadSeconds?: number; + } + | { type: "weaponFired"; id: number; weaponType: WeaponType } + | { + type: "ammo"; + id: number; + weaponType: WeaponType; + magazineAmmo: number; + reserveAmmo: number; + } + | { + type: "weaponInventory"; + id: number; + weaponType: WeaponType | null; + weapons: OwnedWeaponAmmo[]; + } + | { type: "build" | "buyWeapon" | "buyAmmo" | "equipWeapon"; result: "rejected"; reason: string } + | { type: "gameOver"; result: "victory" | "defeat"; zombiesKilled: number }; + +/** The `ServerMessage` of a type. */ +export type ServerMessageOf = Extract; + +/** The `ClientMessage` of a type. */ +export type ClientMessageOf = Extract; + +/** Client to server. Only the `type` is checked here: each handler checks its own fields. */ +export const ClientPacket = definePacket("raid-client", { + validate: (data): data is ClientMessage => + typeof data === "object" && data !== null && typeof (data as { type?: unknown }).type === "string", +}); + +/** Server to client. */ +export const ServerPacket = definePacket("raid-server"); diff --git a/games/raid-survival/libs/shared/src/tower.ts b/games/raid-survival/libs/shared/src/tower.ts new file mode 100644 index 0000000..762dcc9 --- /dev/null +++ b/games/raid-survival/libs/shared/src/tower.ts @@ -0,0 +1,11 @@ +// Tower and repair economy, applied by the server and shown ahead of time by the client. +export const TOWER_RANGE = 120; +export const TOWER_MAX_LEVEL = 6; +export const TOWER_HP_PER_LEVEL = 50; +export const TOWER_UPGRADE_COST = 50; +// Flat repair-to-full cost, same as one upgrade: a per-missing-HP rate would make repairing a +// heavily damaged level-6 tower cost far more than upgrading it ever did. +export const TOWER_HEAL_COST = 50; +// Repair economics of the other targets. +export const LOBBY_HEAL_COST_PER_HP = 1; +export const WALL_HEAL_COST_PER_HP = 1 / 3; diff --git a/games/raid-survival/libs/shared/src/weapon-catalog.ts b/games/raid-survival/libs/shared/src/weapon-catalog.ts new file mode 100644 index 0000000..2859a74 --- /dev/null +++ b/games/raid-survival/libs/shared/src/weapon-catalog.ts @@ -0,0 +1,134 @@ +// Gameplay numbers (applied by the server) and render and shop data (used by the client). +// `alwaysOwned` grants a weapon free at spawn, never buyable or refillable: unused today, kept for +// a future weapon. Render data: sprite key and crop sheet, native icon size (HUD fit-scaling), +// world-space scale, an optional pivot (grip point, when not the frame's center) with the +// matching `handOffsetDelta` (a pivot alone only fixes rotation, not position), and the rest-angle +// rotation offset. +export const WEAPON_CATALOG = { + smallGun: { + label: "Small Gun", + spriteKey: "weapons.png", + animationsKey: "weapons-animations.txt", + iconAnimation: "idle", + iconSize: { width: 16, height: 16 }, + scale: 1, + rotationOffset: 0, + // Free at spawn to every class but the fighter, buyable as a backup by everyone else. + alwaysOwned: false, + cost: 40, + magazineSize: 8, + infiniteReserve: true, + startingReserve: -1, + maxReserve: -1, + ammoRefillAmount: 0, + ammoRefillCost: 0, + fireRatePerSecond: 5, // 1 shot every .2s + reloadSeconds: 3, + damage: 2, + // Single pellet, zero spread: plain single-bullet fire. + pellets: 1, + spreadDegrees: 0, + bulletSpeed: 500, + }, + shotgun: { + label: "Shotgun", + spriteKey: "Shotgun-Shot.png", + animationsKey: "shotgun-shot-animations.txt", + iconAnimation: "idle", + iconSize: { width: 52, height: 32 }, // native frame size, for the HUD icon's fit-scale + scale: 0.5, + // Grip point within the frame (native, unscaled px): what the gun rotates and flips around. + pivot: { x: 7, y: 21 }, + // The gun shares the hand's transform: unless the pivot equals the hand's own center (8,8), + // the two sprites land at different points. Retune both together if the gun leaves the hand. + handOffsetDelta: { x: 1, y: -13 }, + rotationOffset: 0, + alwaysOwned: false, + cost: 150, + magazineSize: 5, + infiniteReserve: false, + startingReserve: 10, + maxReserve: 40, + ammoRefillAmount: 5, + ammoRefillCost: 15, + fireRatePerSecond: 1.5, + reloadSeconds: 2, + damage: 5, // per pellet + pellets: 5, + spreadDegrees: 25, // total cone width: 5 pellets evenly spaced across ±12.5° + bulletSpeed: 500, + // The reload animation is a separate overlay toggled visible, not a swap of the main sprite's + // image (that reloads asynchronously and flickers). + reloadSpriteKey: "Shotgun-Reload.png", + reloadAnimationsKey: "shotgun-reload-animations.txt", + reloadFrameCount: 37, + // Client-only visual duration: it stays under the fire-rate interval (0.667s) so a quick + // second shot restarts the animation cleanly. + shootFrameCount: 37, + shootSeconds: 0.5, + }, + // Highest fire rate and magazine, low damage per shot, wide spread: sprays rather than aims. + uzi: { + label: "Uzi", + spriteKey: "Uzi-Shot.png", + animationsKey: "uzi-shot-animations.txt", + iconAnimation: "idle", + iconSize: { width: 48, height: 32 }, + scale: 0.5, + rotationOffset: 0, + alwaysOwned: false, + cost: 200, + magazineSize: 30, + infiniteReserve: false, + startingReserve: 60, + maxReserve: 180, + ammoRefillAmount: 30, + ammoRefillCost: 20, + fireRatePerSecond: 12, + reloadSeconds: 2, + damage: 3, + pellets: 1, + spreadDegrees: 18, + bulletSpeed: 500, + reloadSpriteKey: "Uzi-Reload.png", + reloadAnimationsKey: "uzi-reload-animations.txt", + reloadFrameCount: 16, + shootFrameCount: 6, + shootSeconds: 0.2, + }, + // Slowest fire rate, smallest magazine, highest damage per shot, zero spread. No sniper art + // exists: the AK sheets stand in for it. + sniper: { + label: "Sniper", + spriteKey: "AK-Shot.png", + animationsKey: "ak-shot-animations.txt", + iconAnimation: "idle", + iconSize: { width: 52, height: 32 }, + scale: 0.5, + rotationOffset: 0, + alwaysOwned: false, + cost: 300, + magazineSize: 4, + infiniteReserve: false, + startingReserve: 8, + maxReserve: 24, + ammoRefillAmount: 4, + ammoRefillCost: 40, + fireRatePerSecond: 0.8, + reloadSeconds: 3, + damage: 40, + pellets: 1, + spreadDegrees: 0, + bulletSpeed: 900, + reloadSpriteKey: "AK-Reload.png", + reloadAnimationsKey: "ak-reload-animations.txt", + reloadFrameCount: 19, + shootFrameCount: 14, + shootSeconds: 0.6, + }, +} as const; + +export type WeaponType = keyof typeof WEAPON_CATALOG; + +export const isWeaponType = (value: unknown): value is WeaponType => + typeof value === "string" && Object.prototype.hasOwnProperty.call(WEAPON_CATALOG, value); diff --git a/games/raid-survival/nanoforge.config.ts b/games/raid-survival/nanoforge.config.ts new file mode 100644 index 0000000..6f9f285 --- /dev/null +++ b/games/raid-survival/nanoforge.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "workspace", + packages: ["apps/*", "libs/*"], +}); diff --git a/games/raid-survival/package.json b/games/raid-survival/package.json new file mode 100644 index 0000000..f2ca27a --- /dev/null +++ b/games/raid-survival/package.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "raid-survival", + "description": "Co-op zombie waves for up to 4 players: a NanoForge client and server sharing one library", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev -r", + "build": "nf build -r", + "start": "nf start -r", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/config": "^3.0.1", + "typescript": "^6.0.0" + } +} diff --git a/games/raid-survival/pnpm-lock.yaml b/games/raid-survival/pnpm-lock.yaml new file mode 100644 index 0000000..b96019f --- /dev/null +++ b/games/raid-survival/pnpm-lock.yaml @@ -0,0 +1,1697 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + + apps/client: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/network': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/scene': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@raid-survival/shared': + specifier: workspace:* + version: link:../../libs/shared + typescript: + specifier: ^6.0.0 + version: 6.0.3 + + apps/server: + dependencies: + '@nanoforge-dev/network': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@raid-survival/shared': + specifier: workspace:* + version: link:../../libs/shared + typescript: + specifier: ^6.0.0 + version: 6.0.3 + + libs/shared: + devDependencies: + '@nanoforge-dev/network': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/network@3.0.0': + resolution: {integrity: sha512-T0+s6vmiBuY3/KPK8s4wYcqQju6YDpoIJgpJy6eTelUD2+cHkWjav4WjfXxfVsE89JVu7ariXoRD+VuozhjUpA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/scene@3.0.0': + resolution: {integrity: sha512-4+QajCZCW8eVdQPZeSoLDQ/ueQOFwAoFvd0pRL06FeuzWJMxCVNTCeZp9UHZLTMqmEJKAC29OnBQuHvhGkuBVg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@node-datachannel/android-arm64@0.33.6': + resolution: {integrity: sha512-UzSnd1vSN//3pqyvuufbaIQemvRfIHn/7DAy7wjoYk9tzkJp4SMk1FrNhkhmev89SH/h7yTac6PlGxGe5oHcKw==} + cpu: [arm64] + os: [android] + + '@node-datachannel/darwin-arm64@0.33.6': + resolution: {integrity: sha512-vE2fN6D0BJJ3yZo5guJo2j1q7JeQbl+VyIs6vbkjEp654tQtTo3y7a4l3xB0bwDD27TOlkOlaSLJQRj6ZXqQdQ==} + cpu: [arm64] + os: [darwin] + + '@node-datachannel/darwin-x64@0.33.6': + resolution: {integrity: sha512-EtRB2THMR11XMzbNhMEwaZtipaUxFz+PgeVx7hE+er6Ai1Fzzv7XexrMWDG11ahdpEZ8fAxlxuyELs33/WH1Cg==} + cpu: [x64] + os: [darwin] + + '@node-datachannel/linux-arm64-gnu@0.33.6': + resolution: {integrity: sha512-phMRjx8NEfW70i768LCQDEF2C6Q2vtYsS4DPXv/zbb2cJClaU5fjKFQfQ1XBCNIi1ClfpSd3Cl/rn/7SS+paTQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@node-datachannel/linux-arm64-musl@0.33.6': + resolution: {integrity: sha512-T9bqllJ9YkpgqgRFEfsPpfgfMDXdA7CIiJ4c1XXGPLSeqVFgDbf/WCewkE7q4xA+tKRLoOOtc2XgMGwVnlxXVQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@node-datachannel/linux-x64-gnu@0.33.6': + resolution: {integrity: sha512-NUTbne64++ZxwEJ9uppAAmYnFAfJAggf7gboioPdhr13P17GTQRCUgmipYrh1V0D4333x6NCBZyQaNv0n4WmpQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@node-datachannel/linux-x64-musl@0.33.6': + resolution: {integrity: sha512-dlWP4ycOJrTAl9UvxGofq0zwPhl6iAr1b0ZcBUgDfb2CXmbcJWCvg6OsJ6u8BVSV41eNXALmaRpU0wttas/f1g==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@node-datachannel/win32-arm64-msvc@0.33.6': + resolution: {integrity: sha512-ttly7XRUrSOcOOGJvtm9gh2beAPUNOBOUc3Hk82LfMHHP7jJMkXNDns/ML+UVGommAcNyPhoZkRH62O7tSVQYw==} + cpu: [arm64] + os: [win32] + + '@node-datachannel/win32-x64-msvc@0.33.6': + resolution: {integrity: sha512-N5GW6XH11Iuu+kyHLTiCMcCHdwWwpKqvtYril0LzQm6xBgmGQN3JXxFmgi4g4usw1nLy6WhBWADjbhSXJiiEMA==} + cpu: [x64] + os: [win32] + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-datachannel@0.33.6: + resolution: {integrity: sha512-n7RzImzysrOVFx/lXfkQQ4fL0wsuPXBFc8KM69V29iyIor/UX7Ej+edzNGWJm+3mApZG9nkLi7FsGAZhQCDA4w==} + engines: {node: '>=18.20.0'} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0))': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/network@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + '@nanoforge-dev/env': 3.0.0 + node-datachannel: 0.33.6 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@node-datachannel/android-arm64@0.33.6': + optional: true + + '@node-datachannel/darwin-arm64@0.33.6': + optional: true + + '@node-datachannel/darwin-x64@0.33.6': + optional: true + + '@node-datachannel/linux-arm64-gnu@0.33.6': + optional: true + + '@node-datachannel/linux-arm64-musl@0.33.6': + optional: true + + '@node-datachannel/linux-x64-gnu@0.33.6': + optional: true + + '@node-datachannel/linux-x64-musl@0.33.6': + optional: true + + '@node-datachannel/win32-arm64-msvc@0.33.6': + optional: true + + '@node-datachannel/win32-x64-msvc@0.33.6': + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + detect-libc@2.1.2: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-datachannel@0.33.6: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + '@node-datachannel/android-arm64': 0.33.6 + '@node-datachannel/darwin-arm64': 0.33.6 + '@node-datachannel/darwin-x64': 0.33.6 + '@node-datachannel/linux-arm64-gnu': 0.33.6 + '@node-datachannel/linux-arm64-musl': 0.33.6 + '@node-datachannel/linux-x64-gnu': 0.33.6 + '@node-datachannel/linux-x64-musl': 0.33.6 + '@node-datachannel/win32-arm64-msvc': 0.33.6 + '@node-datachannel/win32-x64-msvc': 0.33.6 + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/games/raid-survival/pnpm-workspace.yaml b/games/raid-survival/pnpm-workspace.yaml new file mode 100644 index 0000000..5ddc782 --- /dev/null +++ b/games/raid-survival/pnpm-workspace.yaml @@ -0,0 +1,12 @@ +packages: + - "apps/*" + - "libs/*" +allowBuilds: + bun: true + node-datachannel: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" +# The server bundle loads node-datachannel's native addon by its bare name (network README). +publicHoistPattern: + - "@node-datachannel/*" diff --git a/games/raid-survival/tsconfig.json b/games/raid-survival/tsconfig.json new file mode 100644 index 0000000..ab7f519 --- /dev/null +++ b/games/raid-survival/tsconfig.json @@ -0,0 +1,42 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true, + + // The shared library, imported by package name (editor ADR 0004) + "paths": { "@raid-survival/shared/*": ["./libs/shared/src/*"] } + }, + "include": [], + "exclude": ["node_modules", ".nanoforge", "dist"] +} diff --git a/raid-survival/server/player-class-catalog.ts b/raid-survival/server/player-class-catalog.ts deleted file mode 100644 index 120d1a3..0000000 --- a/raid-survival/server/player-class-catalog.ts +++ /dev/null @@ -1,33 +0,0 @@ -// A player's class is derived entirely from their chosen skin (MenuScene's skin swatches, -// carried through joinLobby as `client.skin`, 1-3) - the skin picker IS the class picker. -export type PlayerClass = "healer" | "ninja" | "fighter"; - -export function classForSkin(skin: number): PlayerClass { - if (skin === 2) return "ninja"; - if (skin === 3) return "fighter"; - return "healer"; // skin 1, and any unexpected value, defaults to healer -} - -export const PLAYER_CLASS_CATALOG = { - // Heal box fully heals instead of the flat amount (loot-box-pickup.system.ts); revives a - // teammate in 3s instead of 5s (revive.system.ts, reviver's class sets the duration). - healer: { - maxHealth: 100, - speedMultiplier: 1, - reviveDurationSeconds: 3, - healBoxFullHeal: true, - }, - ninja: { - maxHealth: 100, - speedMultiplier: 1.3, - reviveDurationSeconds: 5, - healBoxFullHeal: false, - }, - // Spawns with a shotgun instead of smallGun - see start-game-packet.handler.ts's spawn code. - fighter: { - maxHealth: 120, - speedMultiplier: 1, - reviveDurationSeconds: 5, - healBoxFullHeal: false, - }, -} as const; diff --git a/raid-survival/server/weapon-catalog.ts b/raid-survival/server/weapon-catalog.ts deleted file mode 100644 index 238981d..0000000 --- a/raid-survival/server/weapon-catalog.ts +++ /dev/null @@ -1,80 +0,0 @@ -// `alwaysOwned` grants a weapon free at spawn, never buyable/refillable; unused today but kept -// for a future weapon that needs it. Kept in sync manually with client/weapon-catalog.ts. -export const WEAPON_CATALOG = { - smallGun: { - // Free at spawn to every class except fighter (see start-game-packet.handler.ts), buyable as - // a backup for everyone else. - alwaysOwned: false, - cost: 40, - magazineSize: 8, - infiniteReserve: true, - startingReserve: -1, - maxReserve: -1, - ammoRefillAmount: 0, - ammoRefillCost: 0, - fireRatePerSecond: 5, // 1 shot every .2s - reloadSeconds: 3, - damage: 2, - // Single pellet, zero spread - firePellets() collapses to plain single-bullet fire at these - // values (see weapon.system.ts). - pellets: 1, - spreadDegrees: 0, - bulletSpeed: 500, - }, - shotgun: { - alwaysOwned: false, - cost: 150, - magazineSize: 5, - infiniteReserve: false, - startingReserve: 10, - maxReserve: 40, - ammoRefillAmount: 5, - ammoRefillCost: 15, - fireRatePerSecond: 1.5, - reloadSeconds: 2, - damage: 5, // per pellet - pellets: 5, - spreadDegrees: 25, // total cone width - 5 pellets evenly spaced across ±12.5° - bulletSpeed: 500, - }, - // Highest fire rate/magazine, low per-shot damage, wide spread - sprays rather than aims. - uzi: { - alwaysOwned: false, - cost: 200, - magazineSize: 30, - infiniteReserve: false, - startingReserve: 60, - maxReserve: 180, - ammoRefillAmount: 30, - ammoRefillCost: 20, - fireRatePerSecond: 12, - reloadSeconds: 2, - damage: 3, - pellets: 1, - spreadDegrees: 18, - bulletSpeed: 500, - }, - // Slowest fire rate/smallest magazine, highest per-shot damage, zero spread. - sniper: { - alwaysOwned: false, - cost: 300, - magazineSize: 4, - infiniteReserve: false, - startingReserve: 8, - maxReserve: 24, - ammoRefillAmount: 4, - ammoRefillCost: 40, - fireRatePerSecond: 0.8, - reloadSeconds: 3, - damage: 40, - pellets: 1, - spreadDegrees: 0, - bulletSpeed: 900, - }, -} as const; - -export type WeaponType = keyof typeof WEAPON_CATALOG; - -export function isWeaponType(value: unknown): value is WeaponType { - return typeof value === "string" && Object.prototype.hasOwnProperty.call(WEAPON_CATALOG, value); -} From 289098795e9a47cf1850739997cce13b621812f1 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:27:55 +0100 Subject: [PATCH 06/53] feat(raid-survival): port the server to engine 3 --- .../apps/server/src/broadcast.ts | 17 ++ .../apps/server/src}/collision-resolve.ts | 21 +- .../components/acceleration-2d.component.ts | 18 ++ .../src/components/building.component.ts | 17 ++ .../server/src/components/bullet.component.ts | 15 ++ .../server/src/components/client.component.ts | 21 ++ .../src/components/collision-box.component.ts | 17 ++ .../src/components/direction.component.ts | 16 ++ .../src/components/game-state.component.ts | 18 ++ .../server/src/components/health.component.ts | 16 ++ .../server/src/components/hitbox.component.ts | 21 ++ .../server/src/components/ia.component.ts | 22 ++ .../server/src/components/lobby.component.ts | 10 + .../server/src/components/login.component.ts | 14 + .../src/components/loot-box.component.ts | 17 ++ .../components/map-collisions.component.ts | 30 +++ .../server/src/components/money.component.ts | 14 + .../src/components/move-input.component.ts | 20 ++ .../src/components/player-class.component.ts | 16 ++ .../src/components/position-2d.component.ts | 20 ++ .../src}/components/revive-input.component.ts | 16 +- .../src/components/shoot-input.component.ts | 17 ++ .../server/src/components/tower.component.ts | 15 ++ .../src/components/velocity-2d.component.ts | 20 ++ .../src}/components/wave-state.component.ts | 21 +- .../components/weapon-inventory.component.ts | 18 +- .../src}/components/zombie.component.ts | 20 +- .../apps/server/src/fire-pellets.ts | 57 ++++ .../apps/server/src/handlers/build.handler.ts | 83 +++--- .../server/src/handlers/buy-ammo.handler.ts | 71 +++++ .../server/src/handlers/buy-weapon.handler.ts | 61 +++++ .../src/handlers/destroy-building.handler.ts | 48 ++-- .../src/handlers/equip-weapon.handler.ts | 57 ++-- .../apps/server/src/handlers/handlers.ts | 33 +++ .../apps/server/src/handlers/input.handler.ts | 47 ++-- .../server/src/handlers/join-lobby.handler.ts | 68 +++++ .../server/src/handlers/start-game.handler.ts | 189 +++++++++++++ games/raid-survival/apps/server/src/main.ts | 64 +++++ .../raid-survival/apps/server/src/queries.ts | 27 ++ .../apps/server/src/spawn-zombie.ts | 50 ++++ .../apps/server/src/systems/ai.system.ts | 18 ++ .../src/systems/building-death.system.ts | 23 ++ .../src}/systems/building-interact.system.ts | 66 +++-- .../apps/server/src}/systems/bullet.system.ts | 49 ++-- .../server/src}/systems/game-over.system.ts | 46 ++-- .../src}/systems/loot-box-pickup.system.ts | 62 ++--- .../src}/systems/map-collision.system.ts | 35 +-- .../apps/server/src/systems/move-2d.system.ts | 26 ++ .../server/src}/systems/move-input.system.ts | 33 +-- .../server/src/systems/move-sync.system.ts | 33 +++ .../src/systems/obstacle-collision.system.ts | 54 ++++ .../src/systems/packet-dispatch.system.ts | 35 +++ .../apps/server/src}/systems/revive.system.ts | 68 ++--- .../apps/server/src}/systems/tower.system.ts | 63 ++--- .../apps/server/src}/systems/weapon.system.ts | 124 +++------ .../src}/systems/zombie-death.system.ts | 61 ++--- .../server/src}/systems/zombie-wave.system.ts | 70 ++--- .../apps/server/src}/zombie-ai.ts | 97 ++++--- .../apps/server/src/zombie-waves.ts | 12 + .../server/components/building.component.ts | 11 - .../server/components/bullet.component.ts | 10 - .../components/collision-box.component.ts | 11 - .../server/components/direction.component.ts | 11 - .../server/components/health.component.ts | 11 - .../server/components/hitbox.component.ts | 15 -- .../server/components/ia.component.ts | 15 -- .../server/components/lobby.component.ts | 6 - .../server/components/login.component.ts | 8 - .../server/components/loot-box.component.ts | 12 - .../components/map-collisions.component.ts | 26 -- .../server/components/money.component.ts | 9 - .../server/components/move-input.component.ts | 18 -- .../components/player-class.component.ts | 12 - .../server/components/position.component.ts | 11 - .../components/shoot-input.component.ts | 15 -- .../server/components/tower.component.ts | 13 - .../server/components/velocity.component.ts | 11 - .../server/components/weapon.component.ts | 23 -- raid-survival/server/main.ts | 95 ------- raid-survival/server/network-utils.ts | 13 - raid-survival/server/static/zombie-waves.txt | 6 - raid-survival/server/systems/ai.system.ts | 16 -- .../server/systems/building-death.system.ts | 24 -- .../server/systems/move-sync.system.ts | 34 --- raid-survival/server/systems/move.system.ts | 16 -- .../systems/obstacle-collision.system.ts | 51 ---- .../server/systems/packet-handler.system.ts | 49 ---- .../buy-ammo-packet.handler.ts | 78 ------ .../buy-weapon-packet.handler.ts | 68 ----- .../join-lobby-packet.handler.ts | 98 ------- .../start-game-packet.handler.ts | 248 ------------------ 91 files changed, 1716 insertions(+), 1645 deletions(-) create mode 100644 games/raid-survival/apps/server/src/broadcast.ts rename {raid-survival/server/systems => games/raid-survival/apps/server/src}/collision-resolve.ts (72%) create mode 100644 games/raid-survival/apps/server/src/components/acceleration-2d.component.ts create mode 100644 games/raid-survival/apps/server/src/components/building.component.ts create mode 100644 games/raid-survival/apps/server/src/components/bullet.component.ts create mode 100644 games/raid-survival/apps/server/src/components/client.component.ts create mode 100644 games/raid-survival/apps/server/src/components/collision-box.component.ts create mode 100644 games/raid-survival/apps/server/src/components/direction.component.ts create mode 100644 games/raid-survival/apps/server/src/components/game-state.component.ts create mode 100644 games/raid-survival/apps/server/src/components/health.component.ts create mode 100644 games/raid-survival/apps/server/src/components/hitbox.component.ts create mode 100644 games/raid-survival/apps/server/src/components/ia.component.ts create mode 100644 games/raid-survival/apps/server/src/components/lobby.component.ts create mode 100644 games/raid-survival/apps/server/src/components/login.component.ts create mode 100644 games/raid-survival/apps/server/src/components/loot-box.component.ts create mode 100644 games/raid-survival/apps/server/src/components/map-collisions.component.ts create mode 100644 games/raid-survival/apps/server/src/components/money.component.ts create mode 100644 games/raid-survival/apps/server/src/components/move-input.component.ts create mode 100644 games/raid-survival/apps/server/src/components/player-class.component.ts create mode 100644 games/raid-survival/apps/server/src/components/position-2d.component.ts rename {raid-survival/server => games/raid-survival/apps/server/src}/components/revive-input.component.ts (53%) create mode 100644 games/raid-survival/apps/server/src/components/shoot-input.component.ts create mode 100644 games/raid-survival/apps/server/src/components/tower.component.ts create mode 100644 games/raid-survival/apps/server/src/components/velocity-2d.component.ts rename {raid-survival/server => games/raid-survival/apps/server/src}/components/wave-state.component.ts (54%) rename {raid-survival/server => games/raid-survival/apps/server/src}/components/weapon-inventory.component.ts (66%) rename {raid-survival/server => games/raid-survival/apps/server/src}/components/zombie.component.ts (74%) create mode 100644 games/raid-survival/apps/server/src/fire-pellets.ts rename raid-survival/server/systems/packet-handlers/build-packet.handler.ts => games/raid-survival/apps/server/src/handlers/build.handler.ts (55%) create mode 100644 games/raid-survival/apps/server/src/handlers/buy-ammo.handler.ts create mode 100644 games/raid-survival/apps/server/src/handlers/buy-weapon.handler.ts rename raid-survival/server/systems/packet-handlers/destroy-building-packet.handler.ts => games/raid-survival/apps/server/src/handlers/destroy-building.handler.ts (56%) rename raid-survival/server/systems/packet-handlers/equip-weapon-packet.handler.ts => games/raid-survival/apps/server/src/handlers/equip-weapon.handler.ts (66%) create mode 100644 games/raid-survival/apps/server/src/handlers/handlers.ts rename raid-survival/server/systems/packet-handlers/input-packet.handler.ts => games/raid-survival/apps/server/src/handlers/input.handler.ts (62%) create mode 100644 games/raid-survival/apps/server/src/handlers/join-lobby.handler.ts create mode 100644 games/raid-survival/apps/server/src/handlers/start-game.handler.ts create mode 100644 games/raid-survival/apps/server/src/main.ts create mode 100644 games/raid-survival/apps/server/src/queries.ts create mode 100644 games/raid-survival/apps/server/src/spawn-zombie.ts create mode 100644 games/raid-survival/apps/server/src/systems/ai.system.ts create mode 100644 games/raid-survival/apps/server/src/systems/building-death.system.ts rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/building-interact.system.ts (71%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/bullet.system.ts (54%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/game-over.system.ts (58%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/loot-box-pickup.system.ts (66%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/map-collision.system.ts (57%) create mode 100644 games/raid-survival/apps/server/src/systems/move-2d.system.ts rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/move-input.system.ts (59%) create mode 100644 games/raid-survival/apps/server/src/systems/move-sync.system.ts create mode 100644 games/raid-survival/apps/server/src/systems/obstacle-collision.system.ts create mode 100644 games/raid-survival/apps/server/src/systems/packet-dispatch.system.ts rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/revive.system.ts (65%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/tower.system.ts (54%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/weapon.system.ts (57%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/zombie-death.system.ts (62%) rename {raid-survival/server => games/raid-survival/apps/server/src}/systems/zombie-wave.system.ts (54%) rename {raid-survival/server/systems => games/raid-survival/apps/server/src}/zombie-ai.ts (79%) create mode 100644 games/raid-survival/apps/server/src/zombie-waves.ts delete mode 100644 raid-survival/server/components/building.component.ts delete mode 100644 raid-survival/server/components/bullet.component.ts delete mode 100644 raid-survival/server/components/collision-box.component.ts delete mode 100644 raid-survival/server/components/direction.component.ts delete mode 100644 raid-survival/server/components/health.component.ts delete mode 100644 raid-survival/server/components/hitbox.component.ts delete mode 100644 raid-survival/server/components/ia.component.ts delete mode 100644 raid-survival/server/components/lobby.component.ts delete mode 100644 raid-survival/server/components/login.component.ts delete mode 100644 raid-survival/server/components/loot-box.component.ts delete mode 100644 raid-survival/server/components/map-collisions.component.ts delete mode 100644 raid-survival/server/components/money.component.ts delete mode 100644 raid-survival/server/components/move-input.component.ts delete mode 100644 raid-survival/server/components/player-class.component.ts delete mode 100644 raid-survival/server/components/position.component.ts delete mode 100644 raid-survival/server/components/shoot-input.component.ts delete mode 100644 raid-survival/server/components/tower.component.ts delete mode 100644 raid-survival/server/components/velocity.component.ts delete mode 100644 raid-survival/server/components/weapon.component.ts delete mode 100644 raid-survival/server/main.ts delete mode 100644 raid-survival/server/network-utils.ts delete mode 100644 raid-survival/server/static/zombie-waves.txt delete mode 100644 raid-survival/server/systems/ai.system.ts delete mode 100644 raid-survival/server/systems/building-death.system.ts delete mode 100644 raid-survival/server/systems/move-sync.system.ts delete mode 100644 raid-survival/server/systems/move.system.ts delete mode 100644 raid-survival/server/systems/obstacle-collision.system.ts delete mode 100644 raid-survival/server/systems/packet-handler.system.ts delete mode 100644 raid-survival/server/systems/packet-handlers/buy-ammo-packet.handler.ts delete mode 100644 raid-survival/server/systems/packet-handlers/buy-weapon-packet.handler.ts delete mode 100644 raid-survival/server/systems/packet-handlers/join-lobby-packet.handler.ts delete mode 100644 raid-survival/server/systems/packet-handlers/start-game-packet.handler.ts diff --git a/games/raid-survival/apps/server/src/broadcast.ts b/games/raid-survival/apps/server/src/broadcast.ts new file mode 100644 index 0000000..1c2c198 --- /dev/null +++ b/games/raid-survival/apps/server/src/broadcast.ts @@ -0,0 +1,17 @@ +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/network/server"; +import { type ServerMessage, ServerPacket } from "@raid-survival/shared/protocol"; + +import { Client } from "./components/client.component"; + +/** Sends a message to every connected player of the lobby or the game. */ +export const broadcast = (ctx: Context, message: ServerMessage): void => { + // Disconnected players stay in the lobby until the game ends: sending to a dead session only + // logs, but at bullet frequency the log alone stalls the tick loop. + for (const { Client: client } of ctx.ecs.registry.getZipper([Client]) as { Client: Client }[]) + if (client.connected) ctx.network.packets.sendToClient(client.clientId, ServerPacket, message); +}; + +/** Sends a message to one player. */ +export const sendTo = (ctx: Context, clientId: string, message: ServerMessage): void => + ctx.network.packets.sendToClient(clientId, ServerPacket, message); diff --git a/raid-survival/server/systems/collision-resolve.ts b/games/raid-survival/apps/server/src/collision-resolve.ts similarity index 72% rename from raid-survival/server/systems/collision-resolve.ts rename to games/raid-survival/apps/server/src/collision-resolve.ts index 08bf0d4..5f4d467 100644 --- a/raid-survival/server/systems/collision-resolve.ts +++ b/games/raid-survival/apps/server/src/collision-resolve.ts @@ -1,22 +1,21 @@ -import { type Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; -import { sendToInGamePlayers } from "../network-utils"; +import { Position2D } from "./components/position-2d.component"; +import { Velocity2D } from "./components/velocity-2d.component"; +import { broadcast } from "./broadcast"; // Shared by every server-side collision system: resolves a moving entity's overlap with a static // obstacle by reverting just the axis that caused it, so it keeps sliding along the other axis // instead of hard-stopping, then broadcasts the corrected position/velocity. `isBlocked` tests // whether a given (x, y) overlaps the obstacle. -export function resolveCollision( +export const resolveCollision = ( ctx: Context, entityId: number, - position: Position, - velocity: Velocity, + position: Position2D, + velocity: Velocity2D, delta: number, isBlocked: (x: number, y: number) => boolean, -): void { +): void => { const prevX = position.x - velocity.x * delta; const prevY = position.y - velocity.y * delta; @@ -36,10 +35,10 @@ export function resolveCollision( velocity.y = 0; } - sendToInGamePlayers(ctx.libs.getNetwork(), { + broadcast(ctx, { type: "move", id: entityId, velocity: { x: velocity.x, y: velocity.y }, position: { x: position.x, y: position.y }, }); -} +}; diff --git a/games/raid-survival/apps/server/src/components/acceleration-2d.component.ts b/games/raid-survival/apps/server/src/components/acceleration-2d.component.ts new file mode 100644 index 0000000..5d4097f --- /dev/null +++ b/games/raid-survival/apps/server/src/components/acceleration-2d.component.ts @@ -0,0 +1,18 @@ +/** + * How fast the velocity of an entity changes, in pixels per second, per second. Needs + * `Velocity2D` and the `move2D` system. + * + * @component + * @side shared + * @group Acceleration color=#f0a33a - Pixels per second, per second. + */ +export class Acceleration2D { + name = "Acceleration2D"; + + constructor( + /** Added to the horizontal velocity every second. @group Acceleration @preset vector.x */ + public x = 0, + /** Added to the vertical velocity every second. @group Acceleration @preset vector.y */ + public y = 0, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/building.component.ts b/games/raid-survival/apps/server/src/components/building.component.ts new file mode 100644 index 0000000..8339463 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/building.component.ts @@ -0,0 +1,17 @@ +import type { BuildingType } from "@raid-survival/shared/building-catalog"; + +/** + * A wall or a tower built by the players. Blocking, combat and HP are on its `CollisionBox`, + * `Hitbox` and `Health`. + * + * @component + * @side server + */ +export class Building { + name = "Building"; + + constructor( + /** Its entry in the building catalog. */ + public buildingType: BuildingType = "wall", + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/bullet.component.ts b/games/raid-survival/apps/server/src/components/bullet.component.ts new file mode 100644 index 0000000..fafbab5 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/bullet.component.ts @@ -0,0 +1,15 @@ +/** + * A bullet in flight. `bulletSystem` stops it on a tree, the map edge or a zombie; `move2D` moves + * it. + * + * @component + * @side server + */ +export class Bullet { + name = "Bullet"; + + constructor( + /** Damage dealt to the zombie it hits, set when fired so a weapon switch can't change it. */ + public damage = 1, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/client.component.ts b/games/raid-survival/apps/server/src/components/client.component.ts new file mode 100644 index 0000000..395254b --- /dev/null +++ b/games/raid-survival/apps/server/src/components/client.component.ts @@ -0,0 +1,21 @@ +/** + * A player who joined the lobby, on the entity that becomes their character when the game starts. + * Kept while they are disconnected, so they can rejoin under the same name. + * + * @component + * @side server + */ +export class Client { + name = "Client"; + + constructor( + /** The network session of the player (`ClientId`). */ + public clientId = "", + /** The name they joined with, unique in the lobby. */ + public username = "", + /** Their character, from 1 to 3: it also sets their class. */ + public skin = 1, + /** Whether their session is still open. */ + public connected = true, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/collision-box.component.ts b/games/raid-survival/apps/server/src/components/collision-box.component.ts new file mode 100644 index 0000000..7c2d9ca --- /dev/null +++ b/games/raid-survival/apps/server/src/components/collision-box.component.ts @@ -0,0 +1,17 @@ +/** + * Blocks other moving boxes (players, walls, the lobby), from the entity's `Position2D` (its + * top-left corner). Different from `Hitbox`, the combat range. + * + * @component + * @side server + */ +export class CollisionBox { + name = "CollisionBox"; + + constructor( + /** In pixels. */ + public width = 16, + /** In pixels. */ + public height = 16, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/direction.component.ts b/games/raid-survival/apps/server/src/components/direction.component.ts new file mode 100644 index 0000000..6ab731a --- /dev/null +++ b/games/raid-survival/apps/server/src/components/direction.component.ts @@ -0,0 +1,16 @@ +/** + * Where an entity faces, as a vector. Visual only: shots aim at the mouse position. + * + * @component + * @side server + */ +export class Direction { + name = "Direction"; + + constructor( + /** Horizontal part. */ + public x = 1, + /** Vertical part. */ + public y = 0, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/game-state.component.ts b/games/raid-survival/apps/server/src/components/game-state.component.ts new file mode 100644 index 0000000..8392e97 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/game-state.component.ts @@ -0,0 +1,18 @@ +/** Where the server is: players gather in the lobby, play, then see the end screen. */ +export type GameStatus = "lobby" | "inGame" | "endScreen"; + +/** + * The server's state, on one entity. A game starts from `lobby` or `endScreen`, never while one + * is running. + * + * @component + * @side server + */ +export class GameState { + name = "GameState"; + + constructor( + /** Lobby, in game or end screen. */ + public status: GameStatus = "lobby", + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/health.component.ts b/games/raid-survival/apps/server/src/components/health.component.ts new file mode 100644 index 0000000..21dbe64 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/health.component.ts @@ -0,0 +1,16 @@ +/** + * Hit points of a player, a zombie, a building or the lobby. + * + * @component + * @side server + */ +export class Health { + name = "Health"; + + constructor( + /** Hit points left. */ + public current = 100, + /** Hit points when full. */ + public max = 100, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/hitbox.component.ts b/games/raid-survival/apps/server/src/components/hitbox.component.ts new file mode 100644 index 0000000..9aed231 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/hitbox.component.ts @@ -0,0 +1,21 @@ +/** + * Combat range (what attacks, bullets and pickups reach), distinct from `CollisionBox` (physical + * blocking). + * + * @component + * @side server + */ +export class Hitbox { + name = "Hitbox"; + + constructor( + /** In pixels. */ + public width = 16, + /** In pixels. */ + public height = 16, + /** From the `Position2D` (top-left corner), in pixels. */ + public offsetX = 0, + /** From the `Position2D` (top-left corner), in pixels. */ + public offsetY = 0, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/ia.component.ts b/games/raid-survival/apps/server/src/components/ia.component.ts new file mode 100644 index 0000000..9e57007 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/ia.component.ts @@ -0,0 +1,22 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; + +/** Runs every tick for the entity that owns it, reading and writing its own components. */ +export type AIBehavior = (registry: Registry, ctx: Context, entityId: number) => void; + +const idle: AIBehavior = () => {}; + +/** + * Gives an entity a behavior, run every tick by `aiSystem` (the zombies' one is in `zombie-ai.ts`). + * + * @component + * @side server + */ +export class IAComponent { + name = "IAComponent"; + + constructor( + /** What the entity does each tick. */ + public behavior: AIBehavior = idle, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/lobby.component.ts b/games/raid-survival/apps/server/src/components/lobby.component.ts new file mode 100644 index 0000000..b594b15 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/lobby.component.ts @@ -0,0 +1,10 @@ +/** + * Marks the depot the players defend: zombies always walk to it, and the game is lost when it + * falls. + * + * @component + * @side server + */ +export class Lobby { + name = "Lobby"; +} diff --git a/games/raid-survival/apps/server/src/components/login.component.ts b/games/raid-survival/apps/server/src/components/login.component.ts new file mode 100644 index 0000000..e1bd2f0 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/login.component.ts @@ -0,0 +1,14 @@ +/** + * Marks a player in the game, with the name they joined with. + * + * @component + * @side server + */ +export class Login { + name = "Login"; + + constructor( + /** The player's username. */ + public id = "", + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/loot-box.component.ts b/games/raid-survival/apps/server/src/components/loot-box.component.ts new file mode 100644 index 0000000..98af9c3 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/loot-box.component.ts @@ -0,0 +1,17 @@ +import type { LootType } from "@raid-survival/shared/protocol"; + +/** + * A box dropped by a zombie (`zombieDeathSystem`), picked up by the first player that walks on it + * (`lootBoxPickupSystem`). + * + * @component + * @side server + */ +export class LootBox { + name = "LootBox"; + + constructor( + /** What it gives. */ + public lootType: LootType = "gold", + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/map-collisions.component.ts b/games/raid-survival/apps/server/src/components/map-collisions.component.ts new file mode 100644 index 0000000..93af62b --- /dev/null +++ b/games/raid-survival/apps/server/src/components/map-collisions.component.ts @@ -0,0 +1,30 @@ +import type { TreeLocation } from "@raid-survival/shared/map"; + +/** + * The trees of the map, which block players and bullets. One per game. + * + * @component + * @side server + */ +export class MapCollisions { + name = "MapCollisions"; + + private readonly treeCells: Set; + + constructor( + /** Size of a tile, in pixels. */ + public tileSize = 16, + /** Width of the map, in tiles. */ + public cols = 0, + /** Height of the map, in tiles. */ + public rows = 0, + /** The tree tiles. */ + public treeLocations: TreeLocation[] = [], + ) { + this.treeCells = new Set(treeLocations.map(({ x, y }) => `${x},${y}`)); + } + + isTreeCell(cellX: number, cellY: number): boolean { + return this.treeCells.has(`${cellX},${cellY}`); + } +} diff --git a/games/raid-survival/apps/server/src/components/money.component.ts b/games/raid-survival/apps/server/src/components/money.component.ts new file mode 100644 index 0000000..c1d7271 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/money.component.ts @@ -0,0 +1,14 @@ +/** + * The team's coins: one shared pool, not one per player. + * + * @component + * @side server + */ +export class Money { + name = "Money"; + + constructor( + /** Coins in the pool. */ + public amount = 0, + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/move-input.component.ts b/games/raid-survival/apps/server/src/components/move-input.component.ts new file mode 100644 index 0000000..a41ca54 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/move-input.component.ts @@ -0,0 +1,20 @@ +/** + * Held-key intent, kept separate from Velocity: move-input system recomputes Velocity from + * this every tick, so a wall-collision-zeroed axis (collision-resolve.ts) isn't stuck once + * unblocked. + * + * @component + * @side server + */ +export class MoveInput { + name = "MoveInput"; + + up: boolean = false; + down: boolean = false; + left: boolean = false; + right: boolean = false; + + // Last velocity broadcast (move-sync system) - used to detect a blocked axis becoming free + // again. + lastBroadcastVelocity: { x: number; y: number } = { x: 0, y: 0 }; +} diff --git a/games/raid-survival/apps/server/src/components/player-class.component.ts b/games/raid-survival/apps/server/src/components/player-class.component.ts new file mode 100644 index 0000000..7b82954 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/player-class.component.ts @@ -0,0 +1,16 @@ +import type { PlayerClass as PlayerClassType } from "@raid-survival/shared/player-class-catalog"; + +/** + * A player's class, from the skin they picked. Read by the movement, revive and loot systems. + * + * @component + * @side server + */ +export class PlayerClass { + name = "PlayerClass"; + + constructor( + /** Healer, ninja or fighter. */ + public playerClass: PlayerClassType = "healer", + ) {} +} diff --git a/games/raid-survival/apps/server/src/components/position-2d.component.ts b/games/raid-survival/apps/server/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/raid-survival/server/components/revive-input.component.ts b/games/raid-survival/apps/server/src/components/revive-input.component.ts similarity index 53% rename from raid-survival/server/components/revive-input.component.ts rename to games/raid-survival/apps/server/src/components/revive-input.component.ts index cfc706c..456aede 100644 --- a/raid-survival/server/components/revive-input.component.ts +++ b/games/raid-survival/apps/server/src/components/revive-input.component.ts @@ -1,17 +1,19 @@ -// Revive channel state lives on the REVIVER, not the downed target. Interrupting (release E, -// lose range, switch target) resets progress to 0 - see revive.system.ts. +/** + * Revive channel state lives on the REVIVER, not the downed target. Interrupting (release E, + * lose range, switch target) resets progress to 0 - see revive system. + * + * @component + * @side server + */ export class ReviveInput { - name = this.constructor.name; + name = "ReviveInput"; held: boolean = false; // Seconds channeled toward `targetId`; reset on interrupt/switch. progressSeconds: number = 0; targetId: number | null = null; // One-shot E-press flag (distinct from `held`'s multi-second channel) - consumed by - // building-interact.system.ts, which defers to an active revive channel (`targetId !== null`) + // building-interact system, which defers to an active revive channel (`targetId !== null`) // so one keypress never triggers both. interactRequested: boolean = false; } - -// * Required to generate code -export default ReviveInput.name; diff --git a/games/raid-survival/apps/server/src/components/shoot-input.component.ts b/games/raid-survival/apps/server/src/components/shoot-input.component.ts new file mode 100644 index 0000000..69b881a --- /dev/null +++ b/games/raid-survival/apps/server/src/components/shoot-input.component.ts @@ -0,0 +1,17 @@ +/** + * Held-input state; weapon system recomputes firing/reloading from this every tick, not from + * packet frequency. + * + * @component + * @side server + */ +export class ShootInput { + name = "ShootInput"; + + shooting: boolean = false; // left-click - the single equipped weapon + // One-shot; consumed by weapon system next tick regardless of whether a reload started. + reloadRequested: boolean = false; + // World-space mouse position; weapon system computes aim fresh from this at fire time rather + // than the (visual-only) Direction component. Null until the first input packet arrives. + mousePosition: { x: number; y: number } | null = null; +} diff --git a/games/raid-survival/apps/server/src/components/tower.component.ts b/games/raid-survival/apps/server/src/components/tower.component.ts new file mode 100644 index 0000000..4e9cc40 --- /dev/null +++ b/games/raid-survival/apps/server/src/components/tower.component.ts @@ -0,0 +1,15 @@ +/** + * A tower's level and fire cooldown, on top of its `Building`, `Hitbox` and `Health`. The level + * goes up with an E press (`buildingInteractSystem`); `towerSystem` derives its fire rate and + * damage from it. + * + * @component + * @side server + */ +export class Tower { + name = "Tower"; + + level = 1; + /** Seconds before the next shot. */ + cooldownRemaining = 0; +} diff --git a/games/raid-survival/apps/server/src/components/velocity-2d.component.ts b/games/raid-survival/apps/server/src/components/velocity-2d.component.ts new file mode 100644 index 0000000..3b93d4e --- /dev/null +++ b/games/raid-survival/apps/server/src/components/velocity-2d.component.ts @@ -0,0 +1,20 @@ +/** + * How fast an entity moves, in pixels per second. Needs `Position2D` and the `move2D` system. + * + * @example + * `new Velocity2D(100, 0)` moves 100 pixels to the right every second. + * + * @component + * @side shared + * @group Velocity color=#36c5a0 - Pixels per second. + */ +export class Velocity2D { + name = "Velocity2D"; + + constructor( + /** Pixels per second to the right (negative: to the left). @group Velocity @preset vector.x */ + public x = 0, + /** Pixels per second downward (negative: upward). @group Velocity @preset vector.y */ + public y = 0, + ) {} +} diff --git a/raid-survival/server/components/wave-state.component.ts b/games/raid-survival/apps/server/src/components/wave-state.component.ts similarity index 54% rename from raid-survival/server/components/wave-state.component.ts rename to games/raid-survival/apps/server/src/components/wave-state.component.ts index adbc809..e659600 100644 --- a/raid-survival/server/components/wave-state.component.ts +++ b/games/raid-survival/apps/server/src/components/wave-state.component.ts @@ -1,23 +1,28 @@ export type WavePhase = "spawning" | "cooldown" | "finished"; -// Singleton (spawned alongside the lobby) - owned entirely by zombie-wave.system.ts. +/** + * Singleton (spawned alongside the lobby) - owned entirely by zombie-wave system. + * + * @component + * @side server + */ export class WaveState { - name = this.constructor.name; + name = "WaveState"; - constructor(public lobbyEntityId: number) {} + constructor( + /** Entity id of the lobby the zombies walk to. */ + public lobbyEntityId = 0, + ) {} waveIndex: number = 0; subWaveIndex: number = 0; phase: WavePhase = "spawning"; // Seconds since the current sub-wave/cooldown phase started. timer: number = 0; - // Total zombies spawned this game; game-over.system.ts uses it with the live alive-count to + // Total zombies spawned this game; game-over system uses it with the live alive-count to // report a kill tally. totalSpawned: number = 0; - // Last whole-second countdown value broadcast during cooldown, so zombie-wave.system.ts only + // Last whole-second countdown value broadcast during cooldown, so zombie-wave system only // re-sends on a visible change. lastCountdownSecond: number = -1; } - -// * Required to generate code -export default WaveState.name; diff --git a/raid-survival/server/components/weapon-inventory.component.ts b/games/raid-survival/apps/server/src/components/weapon-inventory.component.ts similarity index 66% rename from raid-survival/server/components/weapon-inventory.component.ts rename to games/raid-survival/apps/server/src/components/weapon-inventory.component.ts index 8c9a181..bb6154d 100644 --- a/raid-survival/server/components/weapon-inventory.component.ts +++ b/games/raid-survival/apps/server/src/components/weapon-inventory.component.ts @@ -1,4 +1,4 @@ -import { type WeaponType } from "../weapon-catalog"; +import { type WeaponType } from "@raid-survival/shared/weapon-catalog"; export type WeaponState = "idle" | "reloading"; @@ -10,7 +10,7 @@ export interface OwnedWeapon { } // Single equipped weapon's live firing state, separate from OwnedWeapon so switching weapons -// doesn't touch ownership. weapon.system.ts creates/tears this down on equip/unequip, always +// doesn't touch ownership. weapon system creates/tears this down on equip/unequip, always // ammo-neutral (magazine drawn from / returned to reserve). export interface WeaponFireState { magazineAmmo: number; @@ -19,15 +19,17 @@ export interface WeaponFireState { cooldownRemaining: number; } -// A player can own several weapons but only equips one at a time (no dual wielding). -// `equippedWeaponType`/`state` are null while nothing's equipped. +/** + * A player can own several weapons but only equips one at a time (no dual wielding). + * `equippedWeaponType`/`state` are null while nothing's equipped. + * + * @component + * @side server + */ export class WeaponInventory { - name = this.constructor.name; + name = "WeaponInventory"; owned: OwnedWeapon[] = []; equippedWeaponType: WeaponType | null = null; state: WeaponFireState | null = null; } - -// * Required to generate code -export default WeaponInventory.name; diff --git a/raid-survival/server/components/zombie.component.ts b/games/raid-survival/apps/server/src/components/zombie.component.ts similarity index 74% rename from raid-survival/server/components/zombie.component.ts rename to games/raid-survival/apps/server/src/components/zombie.component.ts index 5a1f065..a618449 100644 --- a/raid-survival/server/components/zombie.component.ts +++ b/games/raid-survival/apps/server/src/components/zombie.component.ts @@ -1,11 +1,20 @@ export type ZombieAnimationState = "idle" | "attack"; +/** + * TODO Zombie + * + * @component + * @side server + */ export class Zombie { - name = this.constructor.name; + name = "Zombie"; - // Coins awarded on death (zombie-death.system.ts); currently always ZOMBIE_COIN_VALUE + // Coins awarded on death (zombie-death system); currently always ZOMBIE_COIN_VALUE // (start-game-packet.handler.ts). - constructor(public coinValue: number) {} + constructor( + /** Coins given to the team when it dies. */ + public coinValue = 10, + ) {} // Null until the AI's first tick, so that first resolution always broadcasts as a transition. animationState: ZombieAnimationState | null = null; @@ -22,10 +31,7 @@ export class Zombie { lastMoveTargetId: number | null = null; // Set when Health hits 0, so the death animation plays before removal. While true, zombie-ai.ts - // treats the zombie as inert and bullet.system.ts won't re-hit it. + // treats the zombie as inert and bullet system won't re-hit it. dying: boolean = false; dyingRemaining: number = 0; } - -// * Required to generate code -export default Zombie.name; diff --git a/games/raid-survival/apps/server/src/fire-pellets.ts b/games/raid-survival/apps/server/src/fire-pellets.ts new file mode 100644 index 0000000..b039e19 --- /dev/null +++ b/games/raid-survival/apps/server/src/fire-pellets.ts @@ -0,0 +1,57 @@ +import type { Context } from "@nanoforge-dev/common"; + +import { broadcast } from "./broadcast"; +import { Bullet } from "./components/bullet.component"; +import { Position2D } from "./components/position-2d.component"; +import { Velocity2D } from "./components/velocity-2d.component"; + +// Just the fields firePellets actually reads, so the tower system can hand it a computed +// per-level stat block without needing a real catalog entry of its own. +export interface PelletStats { + pellets: number; + spreadDegrees: number; + bulletSpeed: number; + damage: number; +} + +/** + * Fires a weapon's bullets from a point. `direction` is a fresh, already-normalized aim vector computed at the moment of firing (see + * computeAimDirection) - not the persisted Direction component, which is purely visual. Shared + * with the tower system can fire the same bullet pipeline autonomously. + */ +export const firePellets = ( + ctx: Context, + centerX: number, + centerY: number, + direction: { x: number; y: number }, + catalog: PelletStats, +) => { + const registry = ctx.ecs.registry; + const pellets = catalog.pellets; + const spreadRad = (catalog.spreadDegrees * Math.PI) / 180; + + for (let i = 0; i < pellets; i++) { + // Spans [-0.5, 0.5] across the pellets, 0 for a single pellet - i.e. dead center, matching + // today's single-bullet aim exactly. + const t = pellets === 1 ? 0 : i / (pellets - 1) - 0.5; + const angle = t * spreadRad; + const cos = Math.cos(angle); + const sin = Math.sin(angle); + + const vx = (direction.x * cos - direction.y * sin) * catalog.bulletSpeed; + const vy = (direction.x * sin + direction.y * cos) * catalog.bulletSpeed; + + const bullet = registry.spawnEntity(); + registry.addComponent(bullet, new Position2D(centerX, centerY)); + registry.addComponent(bullet, new Velocity2D(vx, vy)); + registry.addComponent(bullet, new Bullet(catalog.damage)); + + broadcast(ctx, { + type: "spawn", + entityType: "bullet", + id: bullet.getId(), + position: { x: centerX, y: centerY }, + velocity: { x: vx, y: vy }, + }); + } +}; diff --git a/raid-survival/server/systems/packet-handlers/build-packet.handler.ts b/games/raid-survival/apps/server/src/handlers/build.handler.ts similarity index 55% rename from raid-survival/server/systems/packet-handlers/build-packet.handler.ts rename to games/raid-survival/apps/server/src/handlers/build.handler.ts index 2790a52..4aa893d 100644 --- a/raid-survival/server/systems/packet-handlers/build-packet.handler.ts +++ b/games/raid-survival/apps/server/src/handlers/build.handler.ts @@ -1,56 +1,50 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { Vector2d } from "@nanoforge-dev/graphics-2d"; - -import { gameStatus, GameStatusEnum } from "../../main"; -import { sendToInGamePlayers } from "../../network-utils"; -import { Position } from "../../components/position.component"; -import { CollisionBox } from "../../components/collision-box.component"; -import { Hitbox } from "../../components/hitbox.component"; -import { Health } from "../../components/health.component"; -import { Building } from "../../components/building.component"; -import { Tower } from "../../components/tower.component"; -import { Money } from "../../components/money.component"; -import { MapCollisions } from "../../components/map-collisions.component"; +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { inGame, teamMoney } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Vector } from "@raid-survival/shared/protocol"; + +import { broadcast, sendTo } from "../broadcast"; +import { Position2D } from "../components/position-2d.component"; +import { CollisionBox } from "../components/collision-box.component"; +import { Hitbox } from "../components/hitbox.component"; +import { Health } from "../components/health.component"; +import { Building } from "../components/building.component"; +import { Tower } from "../components/tower.component"; +import { MapCollisions } from "../components/map-collisions.component"; import { BUILDING_CATALOG, canPlaceBuilding, isBuildingType, type OccupiedBox, -} from "../../building-catalog"; +} from "@raid-survival/shared/building-catalog"; -function reject(network: NetworkServerLibrary, clientId: number, reason: string): void { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "build", result: "rejected", reason })), - ); -} +const reject = (ctx: Context, clientId: string, reason: string): void => + sendTo(ctx, clientId, { type: "build", result: "rejected", reason }); // A tower's combat Hitbox (what zombies attack) is deliberately smaller than its full 3x3 // CollisionBox/placement footprint, centered within it - otherwise a zombie anywhere along the // bigger box's edge could attack it, making a fresh tower an easier target than intended. -const TOWER_HITBOX_SIZE: Vector2d = { x: 24, y: 24 }; +const TOWER_HITBOX_SIZE: Vector = { x: 24, y: 24 }; -function towerHitboxOffset(footprintWidth: number, footprintHeight: number): Vector2d { +const towerHitboxOffset = (footprintWidth: number, footprintHeight: number): Vector => { return { x: (footprintWidth - TOWER_HITBOX_SIZE.x) / 2, y: (footprintHeight - TOWER_HITBOX_SIZE.y) / 2, }; -} +}; -export function buildPacketHandler( - clientId: number, - packet: any, +export const buildHandler = ( + clientId: string, + packet: ClientMessageOf<"build">, registry: Registry, ctx: Context, -): void { - const network = ctx.libs.getNetwork(); +): void => { - if (gameStatus.status !== GameStatusEnum.InGame) return; + if (!inGame(registry)) return; const buildingType = packet.buildingType; - if (!isBuildingType(buildingType)) return reject(network, clientId, "unknown building type"); + if (!isBuildingType(buildingType)) return reject(ctx, clientId, "unknown building type"); const tileX = packet.tileX; const tileY = packet.tileY; @@ -62,21 +56,20 @@ export function buildPacketHandler( const map = maps[0]?.MapCollisions; if (!map) return; - const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); - const money = moneyEntities[0]?.Money; + const money = teamMoney(registry); if (!money) return; - if (money.amount < catalogEntry.cost) return reject(network, clientId, "not enough money"); + if (money.amount < catalogEntry.cost) return reject(ctx, clientId, "not enough money"); // The lobby, every building, and every player all carry a CollisionBox, so one generic query // blocks placement on all three - players are included so a wall/tower can't trap one in place. - const obstacleEntities: { Position: Position; CollisionBox: CollisionBox }[] = registry.getZipper( - [Position, CollisionBox], + const obstacleEntities: { Position2D: Position2D; CollisionBox: CollisionBox }[] = registry.getZipper( + [Position2D, CollisionBox], ); - const obstacles: OccupiedBox[] = obstacleEntities.map(({ Position, CollisionBox }) => ({ - x: Position.x, - y: Position.y, + const obstacles: OccupiedBox[] = obstacleEntities.map(({ Position2D, CollisionBox }) => ({ + x: Position2D.x, + y: Position2D.y, width: CollisionBox.width, height: CollisionBox.height, })); @@ -91,7 +84,7 @@ export function buildPacketHandler( obstacles, catalogEntry.footprintTiles, ); - if (!canPlace) return reject(network, clientId, "tile unavailable"); + if (!canPlace) return reject(ctx, clientId, "tile unavailable"); money.amount -= catalogEntry.cost; @@ -99,7 +92,7 @@ export function buildPacketHandler( const footprintWidth = map.tileSize * catalogEntry.footprintTiles.width; const footprintHeight = map.tileSize * catalogEntry.footprintTiles.height; const building = registry.spawnEntity(); - registry.addComponent(building, new Position(position.x, position.y)); + registry.addComponent(building, new Position2D(position.x, position.y)); registry.addComponent(building, new CollisionBox(footprintWidth, footprintHeight)); // A tower's Hitbox is smaller than its full footprint (see TOWER_HITBOX_SIZE); a wall's equals // its own footprint. @@ -118,7 +111,7 @@ export function buildPacketHandler( registry.addComponent(building, new Tower()); } - sendToInGamePlayers(network, { + broadcast(ctx, { type: "spawn", entityType: "building", buildingType, @@ -127,5 +120,5 @@ export function buildPacketHandler( health: { current: catalogEntry.maxHealth, max: catalogEntry.maxHealth }, }); - sendToInGamePlayers(network, { type: "money", amount: money.amount }); -} + broadcast(ctx, { type: "money", amount: money.amount }); +}; diff --git a/games/raid-survival/apps/server/src/handlers/buy-ammo.handler.ts b/games/raid-survival/apps/server/src/handlers/buy-ammo.handler.ts new file mode 100644 index 0000000..543084f --- /dev/null +++ b/games/raid-survival/apps/server/src/handlers/buy-ammo.handler.ts @@ -0,0 +1,71 @@ +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { clientOf, inGame, teamMoney } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; + +import { broadcast, sendTo } from "../broadcast"; +import { WeaponInventory } from "../components/weapon-inventory.component"; +import { WEAPON_CATALOG, isWeaponType } from "@raid-survival/shared/weapon-catalog"; + +const reject = (ctx: Context, clientId: string, reason: string): void => + sendTo(ctx, clientId, { type: "buyAmmo", result: "rejected", reason }); + +// Buys a reserve-ammo refill for an already-owned weapon - the server decides buyAmmo vs +// buyWeapon based on ownership. +export const buyAmmoHandler = ( + clientId: string, + packet: ClientMessageOf<"buyAmmo">, + registry: Registry, + ctx: Context, +): void => { + + if (!inGame(registry)) return; + + const weaponType = packet.weaponType; + if (!isWeaponType(weaponType)) return reject(ctx, clientId, "unknown weapon type"); + + const client = clientOf(registry, clientId); + if (!client) return; + + const inventory: WeaponInventory | undefined = registry.getEntityComponent( + registry.entityFromIndex(client.id), + WeaponInventory, + ); + if (!inventory) return; + + const owned = inventory.owned.find((w) => w.weaponType === weaponType); + if (!owned) return reject(ctx, clientId, "not owned"); + + const catalog = WEAPON_CATALOG[weaponType]; + if (catalog.alwaysOwned || catalog.infiniteReserve) + return reject(ctx, clientId, "no ammo to buy"); + if (owned.reserveAmmo >= catalog.maxReserve) return reject(ctx, clientId, "ammo full"); + + const money = teamMoney(registry); + if (!money) return; + + if (money.amount < catalog.ammoRefillCost) return reject(ctx, clientId, "not enough money"); + + money.amount -= catalog.ammoRefillCost; + owned.reserveAmmo = Math.min(owned.reserveAmmo + catalog.ammoRefillAmount, catalog.maxReserve); + + broadcast(ctx, { + type: "weaponInventory", + id: client.id, + weaponType: inventory.equippedWeaponType, + weapons: inventory.owned.map((w) => ({ weaponType: w.weaponType, reserveAmmo: w.reserveAmmo })), + }); + broadcast(ctx, { type: "money", amount: money.amount }); + + // The ammo HUD is driven only by "ammo" packets, not weaponInventory - send one too, but only + // when the refilled weapon is the one currently equipped. + if (inventory.equippedWeaponType === weaponType && inventory.state) { + broadcast(ctx, { + type: "ammo", + id: client.id, + weaponType, + magazineAmmo: inventory.state.magazineAmmo, + reserveAmmo: owned.reserveAmmo, + }); + } +}; diff --git a/games/raid-survival/apps/server/src/handlers/buy-weapon.handler.ts b/games/raid-survival/apps/server/src/handlers/buy-weapon.handler.ts new file mode 100644 index 0000000..8e467c3 --- /dev/null +++ b/games/raid-survival/apps/server/src/handlers/buy-weapon.handler.ts @@ -0,0 +1,61 @@ +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { clientOf, inGame, teamMoney } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; + +import { broadcast, sendTo } from "../broadcast"; +import { WeaponInventory } from "../components/weapon-inventory.component"; +import { WEAPON_CATALOG, isWeaponType } from "@raid-survival/shared/weapon-catalog"; + +const reject = (ctx: Context, clientId: string, reason: string): void => + sendTo(ctx, clientId, { type: "buyWeapon", result: "rejected", reason }); + +// Buys an unowned weapon. +export const buyWeaponHandler = ( + clientId: string, + packet: ClientMessageOf<"buyWeapon">, + registry: Registry, + ctx: Context, +): void => { + + if (!inGame(registry)) return; + + const weaponType = packet.weaponType; + if (!isWeaponType(weaponType)) return reject(ctx, clientId, "unknown weapon type"); + + const client = clientOf(registry, clientId); + if (!client) return; + + const inventory: WeaponInventory | undefined = registry.getEntityComponent( + registry.entityFromIndex(client.id), + WeaponInventory, + ); + if (!inventory) return; + + const catalog = WEAPON_CATALOG[weaponType]; + if (catalog.alwaysOwned) return reject(ctx, clientId, "not purchasable"); + if (inventory.owned.some((w) => w.weaponType === weaponType)) + return reject(ctx, clientId, "already owned"); + + const money = teamMoney(registry); + if (!money) return; + + if (money.amount < catalog.cost) return reject(ctx, clientId, "not enough money"); + + money.amount -= catalog.cost; + // Ownership alone doesn't equip it - equipWeaponHandler pulls a magazine out of reserve + // when it's actually equipped, so reserve is seeded with a full magazine on top of the starting + // amount. infiniteReserve weapons keep the catalog's -1 sentinel instead. + const startingReserve = catalog.infiniteReserve + ? catalog.startingReserve + : catalog.startingReserve + catalog.magazineSize; + inventory.owned.push({ weaponType, reserveAmmo: startingReserve }); + + broadcast(ctx, { + type: "weaponInventory", + id: client.id, + weaponType: inventory.equippedWeaponType, + weapons: inventory.owned.map((w) => ({ weaponType: w.weaponType, reserveAmmo: w.reserveAmmo })), + }); + broadcast(ctx, { type: "money", amount: money.amount }); +}; diff --git a/raid-survival/server/systems/packet-handlers/destroy-building-packet.handler.ts b/games/raid-survival/apps/server/src/handlers/destroy-building.handler.ts similarity index 56% rename from raid-survival/server/systems/packet-handlers/destroy-building-packet.handler.ts rename to games/raid-survival/apps/server/src/handlers/destroy-building.handler.ts index f65e6d4..2948c2e 100644 --- a/raid-survival/server/systems/packet-handlers/destroy-building-packet.handler.ts +++ b/games/raid-survival/apps/server/src/handlers/destroy-building.handler.ts @@ -1,34 +1,33 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; - -import { gameStatus, GameStatusEnum } from "../../main"; -import { sendToInGamePlayers } from "../../network-utils"; -import { Building } from "../../components/building.component"; -import { Tower } from "../../components/tower.component"; -import { Health } from "../../components/health.component"; -import { Money } from "../../components/money.component"; -import { BUILDING_CATALOG } from "../../building-catalog"; -import { TOWER_UPGRADE_COST } from "../tower.system"; +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { inGame, teamMoney } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; + +import { broadcast } from "../broadcast"; +import { Building } from "../components/building.component"; +import { Tower } from "../components/tower.component"; +import { Health } from "../components/health.component"; +import { BUILDING_CATALOG } from "@raid-survival/shared/building-catalog"; +import { TOWER_UPGRADE_COST } from "@raid-survival/shared/tower"; const REFUND_FRACTION = 0.5; // A tower's value grows with every upgrade paid for; a wall's value is just its build cost. -function buildingValue(building: Building, tower: Tower | undefined): number { +const buildingValue = (building: Building, tower: Tower | undefined): number => { const baseCost = BUILDING_CATALOG[building.buildingType].cost; if (!tower) return baseCost; return baseCost + TOWER_UPGRADE_COST * (tower.level - 1); -} +}; // Removes a player-built wall/tower, refunding half its value. Not ownership-gated - buildings // are a shared team asset. -export function destroyBuildingPacketHandler( - _clientId: number, - packet: any, +export const destroyBuildingHandler = ( + _clientId: string, + packet: ClientMessageOf<"destroyBuilding">, registry: Registry, ctx: Context, -): void { - if (gameStatus.status !== GameStatusEnum.InGame) return; +): void => { + if (!inGame(registry)) return; const id = packet.id; if (typeof id !== "number") return; @@ -49,12 +48,9 @@ export function destroyBuildingPacketHandler( const tower = registry.getEntityComponent(entity, Tower) ?? undefined; const refund = Math.floor(buildingValue(building, tower) * REFUND_FRACTION); - const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); - const money = moneyEntities[0]?.Money; + const money = teamMoney(registry); if (money) money.amount += refund; - - const network = ctx.libs.getNetwork(); - sendToInGamePlayers(network, { type: "kill", id }); - if (money) sendToInGamePlayers(network, { type: "money", amount: money.amount }); + broadcast(ctx, { type: "kill", id }); + if (money) broadcast(ctx, { type: "money", amount: money.amount }); registry.killEntity(entity); -} +}; diff --git a/raid-survival/server/systems/packet-handlers/equip-weapon-packet.handler.ts b/games/raid-survival/apps/server/src/handlers/equip-weapon.handler.ts similarity index 66% rename from raid-survival/server/systems/packet-handlers/equip-weapon-packet.handler.ts rename to games/raid-survival/apps/server/src/handlers/equip-weapon.handler.ts index a585234..554ca62 100644 --- a/raid-survival/server/systems/packet-handlers/equip-weapon-packet.handler.ts +++ b/games/raid-survival/apps/server/src/handlers/equip-weapon.handler.ts @@ -1,23 +1,19 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { clientOf, inGame } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; -import { clients, gameStatus, GameStatusEnum } from "../../main"; -import { sendToInGamePlayers } from "../../network-utils"; -import { WeaponInventory, type WeaponFireState } from "../../components/weapon-inventory.component"; -import { WEAPON_CATALOG, isWeaponType, type WeaponType } from "../../weapon-catalog"; +import { broadcast, sendTo } from "../broadcast"; +import { WeaponInventory, type WeaponFireState } from "../components/weapon-inventory.component"; +import { WEAPON_CATALOG, isWeaponType, type WeaponType } from "@raid-survival/shared/weapon-catalog"; -function reject(network: NetworkServerLibrary, clientId: number, reason: string): void { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "equipWeapon", result: "rejected", reason })), - ); -} +const reject = (ctx: Context, clientId: string, reason: string): void => + sendTo(ctx, clientId, { type: "equipWeapon", result: "rejected", reason }); // Clears the equipped weapon's fire state, returning whatever's left in its magazine to that // weapon's shared reserve (skipped for infiniteReserve weapons). Makes equip/unequip // ammo-neutral - nothing is gained by switching weapons back and forth. -function releaseEquipped(inventory: WeaponInventory): void { +const releaseEquipped = (inventory: WeaponInventory): void => { if (inventory.equippedWeaponType && inventory.state) { const catalog = WEAPON_CATALOG[inventory.equippedWeaponType]; if (!catalog.infiniteReserve) { @@ -27,11 +23,11 @@ function releaseEquipped(inventory: WeaponInventory): void { } inventory.equippedWeaponType = null; inventory.state = null; -} +}; // Equips weaponType, pulling a fresh magazine out of its shared reserve (clamped to what's // actually available). Caller must releaseEquipped first if something else was already equipped. -function claimWeapon(inventory: WeaponInventory, weaponType: WeaponType): void { +const claimWeapon = (inventory: WeaponInventory, weaponType: WeaponType): void => { const catalog = WEAPON_CATALOG[weaponType]; const owned = inventory.owned.find((w) => w.weaponType === weaponType); const taken = catalog.infiniteReserve @@ -46,43 +42,42 @@ function claimWeapon(inventory: WeaponInventory, weaponType: WeaponType): void { reloadRemaining: 0, cooldownRemaining: 0, }; -} +}; // Equips (or, with weaponType:null, unequips) an owned weapon - only one at a time. Broadcast to // everyone, since every client needs to render every player's hands, not just their own. -export function equipWeaponPacketHandler( - clientId: number, - packet: any, +export const equipWeaponHandler = ( + clientId: string, + packet: ClientMessageOf<"equipWeapon">, registry: Registry, ctx: Context, -): void { - const network = ctx.libs.getNetwork(); +): void => { - if (gameStatus.status !== GameStatusEnum.InGame) return; + if (!inGame(registry)) return; const weaponType = packet.weaponType; if (weaponType !== null && !isWeaponType(weaponType)) return; // malformed - const client = clients.find((c) => c.clientId === clientId); + const client = clientOf(registry, clientId); if (!client) return; const inventory: WeaponInventory | undefined = registry.getEntityComponent( - registry.entityFromIndex(client.entityId), + registry.entityFromIndex(client.id), WeaponInventory, ); if (!inventory) return; if (weaponType !== null && !inventory.owned.some((w) => w.weaponType === weaponType)) { - return reject(network, clientId, "not owned"); + return reject(ctx, clientId, "not owned"); } releaseEquipped(inventory); if (weaponType !== null) claimWeapon(inventory, weaponType); - sendToInGamePlayers(network, { + broadcast(ctx, { type: "weaponInventory", - id: client.entityId, + id: client.id, weaponType: inventory.equippedWeaponType, weapons: inventory.owned.map((w) => ({ weaponType: w.weaponType, reserveAmmo: w.reserveAmmo })), }); @@ -92,12 +87,12 @@ export function equipWeaponPacketHandler( if (weaponType !== null) { const newState: WeaponFireState | null = inventory.state; const ownedForType = inventory.owned.find((w) => w.weaponType === weaponType); - sendToInGamePlayers(network, { + broadcast(ctx, { type: "ammo", - id: client.entityId, + id: client.id, weaponType, magazineAmmo: newState?.magazineAmmo ?? 0, reserveAmmo: ownedForType?.reserveAmmo ?? 0, }); } -} +}; diff --git a/games/raid-survival/apps/server/src/handlers/handlers.ts b/games/raid-survival/apps/server/src/handlers/handlers.ts new file mode 100644 index 0000000..0c559f0 --- /dev/null +++ b/games/raid-survival/apps/server/src/handlers/handlers.ts @@ -0,0 +1,33 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { ClientMessage, ClientMessageOf } from "@raid-survival/shared/protocol"; + +import { buildHandler } from "./build.handler"; +import { buyAmmoHandler } from "./buy-ammo.handler"; +import { buyWeaponHandler } from "./buy-weapon.handler"; +import { destroyBuildingHandler } from "./destroy-building.handler"; +import { equipWeaponHandler } from "./equip-weapon.handler"; +import { inputHandler } from "./input.handler"; +import { joinLobbyHandler } from "./join-lobby.handler"; +import { startGameHandler } from "./start-game.handler"; + +type Handlers = { + [T in ClientMessage["type"]]: ( + clientId: string, + message: ClientMessageOf, + registry: Registry, + ctx: Context, + ) => void; +}; + +/** What the server does with each message a client sends, by its `type`. */ +export const CLIENT_HANDLERS: Handlers = { + input: inputHandler, + joinLobby: joinLobbyHandler, + startGame: startGameHandler, + build: buildHandler, + buyWeapon: buyWeaponHandler, + buyAmmo: buyAmmoHandler, + equipWeapon: equipWeaponHandler, + destroyBuilding: destroyBuildingHandler, +}; diff --git a/raid-survival/server/systems/packet-handlers/input-packet.handler.ts b/games/raid-survival/apps/server/src/handlers/input.handler.ts similarity index 62% rename from raid-survival/server/systems/packet-handlers/input-packet.handler.ts rename to games/raid-survival/apps/server/src/handlers/input.handler.ts index b3862c5..9edb7dc 100644 --- a/raid-survival/server/systems/packet-handlers/input-packet.handler.ts +++ b/games/raid-survival/apps/server/src/handlers/input.handler.ts @@ -1,31 +1,30 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { Velocity } from "../../components/velocity.component"; -import { Position } from "../../components/position.component"; -import { MoveInput } from "../../components/move-input.component"; -import { ShootInput } from "../../components/shoot-input.component"; -import { ReviveInput } from "../../components/revive-input.component"; -import { clients } from "../../main"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { sendToInGamePlayers } from "../../network-utils"; -import { Direction } from "../../components/direction.component"; +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { clientOf } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import { Velocity2D } from "../components/velocity-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { MoveInput } from "../components/move-input.component"; +import { ShootInput } from "../components/shoot-input.component"; +import { ReviveInput } from "../components/revive-input.component"; +import type { Context } from "@nanoforge-dev/common"; +import { broadcast } from "../broadcast"; +import { Direction } from "../components/direction.component"; -export function inputPacketHandler( - clientId: number, - packet: any, +export const inputHandler = ( + clientId: string, + packet: ClientMessageOf<"input">, registry: Registry, ctx: Context, -): void { - const network = ctx.libs.getNetwork(); +): void => { // Resolved by clientId -> entityId, not by matching a username - usernames aren't unique, so // matching by name previously let one player's input packets drive another player's character. - const client = clients.find((c) => c.clientId === clientId); + const client = clientOf(registry, clientId); if (!client) return; - const entity = registry.entityFromIndex(client.entityId); - const velocity = registry.getEntityComponent(entity, Velocity); - const position = registry.getEntityComponent(entity, Position); + const entity = registry.entityFromIndex(client.id); + const velocity = registry.getEntityComponent(entity, Velocity2D); + const position = registry.getEntityComponent(entity, Position2D); const direction = registry.getEntityComponent(entity, Direction); const moveInput = registry.getEntityComponent(entity, MoveInput); const shootInput = registry.getEntityComponent(entity, ShootInput); @@ -36,14 +35,14 @@ export function inputPacketHandler( if (packet.direction) { direction.x = packet.direction.x; direction.y = packet.direction.y; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "direction", - id: client.entityId, + id: client.id, direction: { x: direction.x, y: direction.y }, }); } - // Just records held-key intent - move-input.system.ts recomputes Velocity from this every tick. + // Just records held-key intent - move-input.system.ts recomputes Velocity2D from this every tick. if (packet.moveKeys) { moveInput.up = packet.moveKeys.includes("up"); moveInput.down = packet.moveKeys.includes("down"); @@ -74,4 +73,4 @@ export function inputPacketHandler( if (packet.interactRequested) { reviveInput.interactRequested = true; } -} +}; diff --git a/games/raid-survival/apps/server/src/handlers/join-lobby.handler.ts b/games/raid-survival/apps/server/src/handlers/join-lobby.handler.ts new file mode 100644 index 0000000..c0e0185 --- /dev/null +++ b/games/raid-survival/apps/server/src/handlers/join-lobby.handler.ts @@ -0,0 +1,68 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; + +import { broadcast, sendTo } from "../broadcast"; +import { Client } from "../components/client.component"; +import { inGame, lobbyClients } from "../queries"; + +const MAX_PLAYERS = 4; +const MAX_USERNAME_LENGTH = 24; + +/** Adds a player to the lobby, or takes back the place of one who left under the same name. */ +export const joinLobbyHandler = ( + clientId: string, + packet: ClientMessageOf<"joinLobby">, + registry: Registry, + ctx: Context, +): void => { + const skin = + Number.isInteger(packet.skin) && packet.skin >= 1 && packet.skin <= 3 ? packet.skin : 1; + if (typeof packet.username !== "string") return; + const username = packet.username.trim().slice(0, MAX_USERNAME_LENGTH); + if (!username) return; + + // A game in progress never accepts joins: there's no way to hand a joiner a character until + // the next start. + if (inGame(registry)) { + sendTo(ctx, clientId, { type: "joinLobby", result: "in game" }); + return; + } + + const clients = lobbyClients(registry); + const known = clients.find(({ Client: client }) => client.username === username); + + // A username match only means "reconnect" when that player's session is actually gone, checked + // against the live sessions rather than the `connected` flag, which lags a tick behind. A second + // open session under the same name is refused: taking the place over would orphan the first. + const connected = ctx.network.getConnectedClients(); + if ( + known && + known.Client.clientId !== clientId && + connected.includes(known.Client.clientId) + ) { + sendTo(ctx, clientId, { type: "joinLobby", result: "username taken" }); + return; + } + + if (!known && clients.length >= MAX_PLAYERS) { + sendTo(ctx, clientId, { type: "joinLobby", result: "full" }); + return; + } + + if (known) { + known.Client.clientId = clientId; + known.Client.connected = true; + known.Client.skin = skin; + } else { + registry.addComponent(registry.spawnEntity(), new Client(clientId, username, skin)); + } + + const players = lobbyClients(registry).map(({ id, Client: client }) => ({ + id, + username: client.username, + skin: client.skin, + })); + sendTo(ctx, clientId, { type: "joinLobby", result: "success", players }); + broadcast(ctx, { type: "lobbyInfo", players }); +}; diff --git a/games/raid-survival/apps/server/src/handlers/start-game.handler.ts b/games/raid-survival/apps/server/src/handlers/start-game.handler.ts new file mode 100644 index 0000000..d3544cd --- /dev/null +++ b/games/raid-survival/apps/server/src/handlers/start-game.handler.ts @@ -0,0 +1,189 @@ +import type { ClientMessageOf } from "@raid-survival/shared/protocol"; +import { clientOf, gameState, lobbyClients } from "../queries"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; +import { broadcast } from "../broadcast"; +import { Position2D } from "../components/position-2d.component"; +import { Direction } from "../components/direction.component"; +import { Velocity2D } from "../components/velocity-2d.component"; +import { Login } from "../components/login.component"; +import { MapCollisions } from "../components/map-collisions.component"; +import { CollisionBox } from "../components/collision-box.component"; +import { Hitbox } from "../components/hitbox.component"; +import { Lobby } from "../components/lobby.component"; +import { Health } from "../components/health.component"; +import { WaveState } from "../components/wave-state.component"; +import { Money } from "../components/money.component"; +import { MoveInput } from "../components/move-input.component"; +import { WeaponInventory, type OwnedWeapon } from "../components/weapon-inventory.component"; +import { ShootInput } from "../components/shoot-input.component"; +import { ReviveInput } from "../components/revive-input.component"; +import { PlayerClass as PlayerClassComponent } from "../components/player-class.component"; +import { classForSkin, PLAYER_CLASS_CATALOG } from "@raid-survival/shared/player-class-catalog"; +import { WEAPON_CATALOG, type WeaponType } from "@raid-survival/shared/weapon-catalog"; +import type { StartingPlayer, Vector } from "@raid-survival/shared/protocol"; +import { MAP_COLS, MAP_ROWS, TILE_SIZE, TREE_LOCATIONS } from "@raid-survival/shared/map"; + +const MAX_PLAYERS = 4; + +const LOBBY_MAX_HEALTH = 500; +const STARTING_MONEY = 150; +const STARTING_WEAPON_TYPE: WeaponType = "smallGun"; + +const MAP_CENTER: Vector = { + x: (MAP_COLS * TILE_SIZE) / 2, + y: (MAP_ROWS * TILE_SIZE) / 2, +}; + +const PLAYER_COLLISION_BOX: Vector = { x: 24, y: 24 }; +// Slightly smaller than the collision box and centered inside it - Hitbox (combat range) is a +// different concept from CollisionBox (physical blocking). +const PLAYER_HITBOX_SIZE: Vector = { x: 20, y: 20 }; +const PLAYER_HITBOX_OFFSET: Vector = { + x: (PLAYER_COLLISION_BOX.x - PLAYER_HITBOX_SIZE.x) / 2, + y: (PLAYER_COLLISION_BOX.y - PLAYER_HITBOX_SIZE.y) / 2, +}; + +const LOBBY_SPRITE_SIZE: Vector = { x: 187, y: 143 }; + +const tilesFor = (size: number) => + Math.ceil(size / TILE_SIZE) * TILE_SIZE; +const LOBBY_COLLISION_BOX: Vector = { + x: tilesFor(LOBBY_SPRITE_SIZE.x), + y: tilesFor(LOBBY_SPRITE_SIZE.y), +}; + +const LOBBY_POSITION: Vector = { + x: MAP_CENTER.x - LOBBY_COLLISION_BOX.x / 2, + y: MAP_CENTER.y - LOBBY_COLLISION_BOX.y / 2, +}; + +const PLAYER_SPAWN_CENTER_OFFSET = + LOBBY_COLLISION_BOX.x / 2 + PLAYER_COLLISION_BOX.x / 2 + TILE_SIZE; +const PLAYER_SPAWN_CENTERS: Vector[] = [ + { x: MAP_CENTER.x - PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y - PLAYER_SPAWN_CENTER_OFFSET }, + { x: MAP_CENTER.x + PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y - PLAYER_SPAWN_CENTER_OFFSET }, + { x: MAP_CENTER.x - PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y + PLAYER_SPAWN_CENTER_OFFSET }, + { x: MAP_CENTER.x + PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y + PLAYER_SPAWN_CENTER_OFFSET }, +]; +const PLAYERS_SPAWNERS: Vector[] = PLAYER_SPAWN_CENTERS.map((center) => ({ + x: center.x - PLAYER_COLLISION_BOX.x / 2, + y: center.y - PLAYER_COLLISION_BOX.y / 2, +})); + +export const startGameHandler = ( + clientId: string, + _packet: ClientMessageOf<"startGame">, + registry: Registry, + ctx: Context, +): void => { + const state = gameState(registry); + // Only a player of the lobby starts a game, and never while one runs. + if (!state || state.status === "inGame" || !clientOf(registry, clientId)) return; + state.status = "inGame"; + + const map = registry.spawnEntity(); + registry.addComponent( + map, + new MapCollisions( + TILE_SIZE, + MAP_COLS, + MAP_ROWS, + TREE_LOCATIONS, + ), + ); + + const lobby = registry.spawnEntity(); + registry.addComponent(lobby, new Position2D(LOBBY_POSITION.x, LOBBY_POSITION.y)); + registry.addComponent(lobby, new CollisionBox(LOBBY_COLLISION_BOX.x, LOBBY_COLLISION_BOX.y)); + // Same size as the collision box - zombies attack this, not the collision box. + registry.addComponent(lobby, new Hitbox(LOBBY_COLLISION_BOX.x, LOBBY_COLLISION_BOX.y)); + registry.addComponent(lobby, new Health(LOBBY_MAX_HEALTH, LOBBY_MAX_HEALTH)); + registry.addComponent(lobby, new Lobby()); + + const playersInformation: StartingPlayer[] = []; + + lobbyClients(registry).forEach(({ id, Client: client }, index) => { + const spawner = PLAYERS_SPAWNERS[index]; + if (index >= MAX_PLAYERS || !spawner) return; + + const player = registry.entityFromIndex(id); + registry.addComponent(player, new Direction(1, 0)); + registry.addComponent(player, new Login(client.username)); + registry.addComponent( + player, + new Position2D(spawner.x, spawner.y), + ); + registry.addComponent(player, new Velocity2D(0, 0)); + registry.addComponent(player, new MoveInput()); + registry.addComponent(player, new CollisionBox(PLAYER_COLLISION_BOX.x, PLAYER_COLLISION_BOX.y)); + registry.addComponent( + player, + new Hitbox( + PLAYER_HITBOX_SIZE.x, + PLAYER_HITBOX_SIZE.y, + PLAYER_HITBOX_OFFSET.x, + PLAYER_HITBOX_OFFSET.y, + ), + ); + // Class is derived entirely from the chosen skin (see player-class-catalog.ts) - no separate + // class-selection UI, the skin picker IS the class picker. + const playerClass = classForSkin(client.skin); + const classCatalog = PLAYER_CLASS_CATALOG[playerClass]; + const maxHealth = classCatalog.maxHealth; + registry.addComponent(player, new Health(maxHealth, maxHealth)); + registry.addComponent(player, new PlayerClassComponent(playerClass)); + + // Every player starts owning and equipping smallGun, except a fighter, who starts with a + // shotgun instead. + const startingWeaponType = playerClass === "fighter" ? "shotgun" : STARTING_WEAPON_TYPE; + const startingCatalog = WEAPON_CATALOG[startingWeaponType]; + const startingWeapon: OwnedWeapon = { + weaponType: startingWeaponType, + reserveAmmo: startingCatalog.infiniteReserve + ? startingCatalog.startingReserve + : startingCatalog.magazineSize, + }; + const inventory = new WeaponInventory(); + inventory.owned.push(startingWeapon); + inventory.equippedWeaponType = startingWeaponType; + inventory.state = { + magazineAmmo: startingCatalog.magazineSize, + state: "idle", + reloadRemaining: 0, + cooldownRemaining: 0, + }; + registry.addComponent(player, inventory); + registry.addComponent(player, new ShootInput()); + registry.addComponent(player, new ReviveInput()); + playersInformation.push({ + id, + username: client.username, + skin: client.skin, + position: spawner, + health: { current: maxHealth, max: maxHealth }, + weapons: [{ weaponType: startingWeapon.weaponType, reserveAmmo: startingWeapon.reserveAmmo }], + weaponType: inventory.equippedWeaponType, + magazineAmmo: inventory.state.magazineAmmo, + }); + }); + + const money = registry.spawnEntity(); + registry.addComponent(money, new Money(STARTING_MONEY)); + + broadcast(ctx, { + type: "startGame", + players: playersInformation, + lobby: { + id: lobby.getId(), + position: LOBBY_POSITION, + health: { current: LOBBY_MAX_HEALTH, max: LOBBY_MAX_HEALTH }, + }, + money: STARTING_MONEY, + }); + + // Zombie spawning from here on is entirely driven by zombie-wave.system.ts, ticking off this + // singleton state entity - see server/static/zombie-waves.txt for the wave config. + const waveState = registry.spawnEntity(); + registry.addComponent(waveState, new WaveState(lobby.getId())); +}; diff --git a/games/raid-survival/apps/server/src/main.ts b/games/raid-survival/apps/server/src/main.ts new file mode 100644 index 0000000..8fee893 --- /dev/null +++ b/games/raid-survival/apps/server/src/main.ts @@ -0,0 +1,64 @@ +import type { RunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/server"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { NetworkServerLibrary } from "@nanoforge-dev/network/server"; + +import { GameState } from "./components/game-state.component"; +import { aiSystem } from "./systems/ai.system"; +import { buildingDeathSystem } from "./systems/building-death.system"; +import { buildingInteractSystem } from "./systems/building-interact.system"; +import { bulletSystem } from "./systems/bullet.system"; +import { gameOverSystem } from "./systems/game-over.system"; +import { lootBoxPickupSystem } from "./systems/loot-box-pickup.system"; +import { mapCollisionSystem } from "./systems/map-collision.system"; +import { move2D } from "./systems/move-2d.system"; +import { moveInputSystem } from "./systems/move-input.system"; +import { moveSyncSystem } from "./systems/move-sync.system"; +import { obstacleCollisionSystem } from "./systems/obstacle-collision.system"; +import { packetDispatch } from "./systems/packet-dispatch.system"; +import { reviveSystem } from "./systems/revive.system"; +import { towerSystem } from "./systems/tower.system"; +import { weaponSystem } from "./systems/weapon.system"; +import { zombieDeathSystem } from "./systems/zombie-death.system"; +import { zombieWaveSystem } from "./systems/zombie-wave.system"; + +export const main = async (options: RunOptions): Promise => { + const app = NanoforgeFactory.createServer({ tickRate: 60 }); + const ecs = new EcsLibrary(); + + app.use(ecs); + app.use(new NetworkServerLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const game = registry.spawnEntity(); + registry.addComponent(game, new GameState("lobby")); + + registry.addSystem(packetDispatch); + registry.addSystem(moveInputSystem); + registry.addSystem(weaponSystem); + // Fires its own bullets like weaponSystem, before bulletSystem resolves this tick's spawns. + registry.addSystem(towerSystem); + registry.addSystem(move2D); + registry.addSystem(mapCollisionSystem); + registry.addSystem(obstacleCollisionSystem); + registry.addSystem(moveSyncSystem); + registry.addSystem(bulletSystem); + registry.addSystem(aiSystem); + registry.addSystem(zombieWaveSystem); + registry.addSystem(zombieDeathSystem); + // After zombieDeathSystem, so a box dropped this tick can be picked up the same tick. + registry.addSystem(lootBoxPickupSystem); + registry.addSystem(buildingDeathSystem); + // Before gameOverSystem, so a revive completed this tick counts in its "all players dead" check. + registry.addSystem(reviveSystem); + // After reviveSystem, so an active revive channel wins the same tick's E press over an interact. + registry.addSystem(buildingInteractSystem); + registry.addSystem(gameOverSystem); + + await app.run(); +}; diff --git a/games/raid-survival/apps/server/src/queries.ts b/games/raid-survival/apps/server/src/queries.ts new file mode 100644 index 0000000..6f82f19 --- /dev/null +++ b/games/raid-survival/apps/server/src/queries.ts @@ -0,0 +1,27 @@ +import type { Registry } from "@nanoforge-dev/ecs/server"; + +import { Client } from "./components/client.component"; +import { GameState } from "./components/game-state.component"; +import { Money } from "./components/money.component"; + +/** The server's state (one entity holds it). */ +export const gameState = (registry: Registry): GameState | undefined => + (registry.getZipper([GameState]) as { GameState: GameState }[])[0]?.GameState; + +/** Whether a game is running. */ +export const inGame = (registry: Registry): boolean => gameState(registry)?.status === "inGame"; + +/** Every player of the lobby, by join order, with their entity id. */ +export const lobbyClients = (registry: Registry): { id: number; Client: Client }[] => + registry.getIndexedZipper([Client]); + +/** The player of a network session, with their entity id. */ +export const clientOf = ( + registry: Registry, + clientId: string, +): { id: number; Client: Client } | undefined => + lobbyClients(registry).find(({ Client: client }) => client.clientId === clientId); + +/** The team's coin pool, while a game runs. */ +export const teamMoney = (registry: Registry): Money | undefined => + (registry.getZipper([Money]) as { Money: Money }[])[0]?.Money; diff --git a/games/raid-survival/apps/server/src/spawn-zombie.ts b/games/raid-survival/apps/server/src/spawn-zombie.ts new file mode 100644 index 0000000..905850c --- /dev/null +++ b/games/raid-survival/apps/server/src/spawn-zombie.ts @@ -0,0 +1,50 @@ +import type { Context } from "@nanoforge-dev/common"; +import { TILE_SIZE, TREE_LOCATIONS } from "@raid-survival/shared/map"; +import type { Vector } from "@raid-survival/shared/protocol"; + +import { broadcast } from "./broadcast"; +import { Direction } from "./components/direction.component"; +import { Health } from "./components/health.component"; +import { Hitbox } from "./components/hitbox.component"; +import { IAComponent } from "./components/ia.component"; +import { Position2D } from "./components/position-2d.component"; +import { Velocity2D } from "./components/velocity-2d.component"; +import { Zombie } from "./components/zombie.component"; +import { ZOMBIE_MAX_HEALTH, createZombieBehavior } from "./zombie-ai"; + +// Combat footprint used for zombie-vs-target range checks (zombie-ai). +const ZOMBIE_HITBOX: Vector = { x: 24, y: 24 }; + +const ZOMBIE_COIN_VALUE = 10; + +// Spawns a single zombie from a random tree cell, hunting via its own IAComponent. How many to +// spawn and when is the zombie wave system's concern - this just spawns one. +export const spawnZombie = (ctx: Context, lobbyEntityId: number): void => { + const registry = ctx.ecs.registry; + const cell = TREE_LOCATIONS[Math.floor(Math.random() * TREE_LOCATIONS.length)]; + if (!cell) return; + + const position: Vector = { + x: cell.x * TILE_SIZE + TILE_SIZE / 2, + y: cell.y * TILE_SIZE + TILE_SIZE / 2, + }; + + const zombie = registry.spawnEntity(); + registry.addComponent(zombie, new Position2D(position.x, position.y)); + registry.addComponent(zombie, new Velocity2D(0, 0)); + registry.addComponent(zombie, new Direction(1, 0)); + registry.addComponent(zombie, new Health(ZOMBIE_MAX_HEALTH, ZOMBIE_MAX_HEALTH)); + registry.addComponent(zombie, new Hitbox(ZOMBIE_HITBOX.x, ZOMBIE_HITBOX.y)); + registry.addComponent(zombie, new Zombie(ZOMBIE_COIN_VALUE)); + registry.addComponent(zombie, new IAComponent(createZombieBehavior(lobbyEntityId))); + + broadcast(ctx, { + type: "spawn", + entityType: "zombie", + id: zombie.getId(), + position, + velocity: { x: 0, y: 0 }, + direction: { x: 1, y: 0 }, + health: { current: ZOMBIE_MAX_HEALTH, max: ZOMBIE_MAX_HEALTH }, + }); +}; diff --git a/games/raid-survival/apps/server/src/systems/ai.system.ts b/games/raid-survival/apps/server/src/systems/ai.system.ts new file mode 100644 index 0000000..de1c67c --- /dev/null +++ b/games/raid-survival/apps/server/src/systems/ai.system.ts @@ -0,0 +1,18 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; + +import { IAComponent } from "../components/ia.component"; + +/** + * Generic dispatcher: calls each entity's own behavior lambda (see zombie-ai.ts). + * + * @system + * @side server + */ +export const aiSystem = (registry: Registry, ctx: Context) => { + const entities: { id: number; IAComponent: IAComponent }[] = registry.getIndexedZipper([IAComponent]); + + for (const entity of entities) { + entity.IAComponent.behavior(registry, ctx, entity.id); + } +}; diff --git a/games/raid-survival/apps/server/src/systems/building-death.system.ts b/games/raid-survival/apps/server/src/systems/building-death.system.ts new file mode 100644 index 0000000..25df711 --- /dev/null +++ b/games/raid-survival/apps/server/src/systems/building-death.system.ts @@ -0,0 +1,23 @@ +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; + +import { Building } from "../components/building.component"; +import { Health } from "../components/health.component"; +import { broadcast } from "../broadcast"; + +/** + * Removes a building once its HP hits 0, freeing its tile for build-packet.handler.ts's + * occupancy check and for zombies to walk through. + * + * @system + * @side server + */ +export const buildingDeathSystem = (registry: Registry, ctx: Context) => { + const buildings: { id: number; Health: Health }[] = registry.getIndexedZipper([Building, Health]); + const dead = buildings.filter((b) => b.Health.current <= 0); + if (dead.length === 0) return; + for (const building of dead) { + broadcast(ctx, { type: "kill", id: building.id }); + registry.killEntity(registry.entityFromIndex(building.id)); + } +}; diff --git a/raid-survival/server/systems/building-interact.system.ts b/games/raid-survival/apps/server/src/systems/building-interact.system.ts similarity index 71% rename from raid-survival/server/systems/building-interact.system.ts rename to games/raid-survival/apps/server/src/systems/building-interact.system.ts index 1d81d77..2a85e33 100644 --- a/raid-survival/server/systems/building-interact.system.ts +++ b/games/raid-survival/apps/server/src/systems/building-interact.system.ts @@ -1,9 +1,8 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { Login } from "../components/login.component"; -import { Position } from "../components/position.component"; +import { Position2D } from "../components/position-2d.component"; import { Hitbox } from "../components/hitbox.component"; import { Health } from "../components/health.component"; import { ReviveInput } from "../components/revive-input.component"; @@ -11,25 +10,23 @@ import { Building } from "../components/building.component"; import { Tower } from "../components/tower.component"; import { Lobby } from "../components/lobby.component"; import { Money } from "../components/money.component"; -import { distanceBetweenHitboxes } from "./zombie-ai"; +import { distanceBetweenHitboxes } from "../zombie-ai"; import { TOWER_HEAL_COST, TOWER_HP_PER_LEVEL, TOWER_MAX_LEVEL, TOWER_UPGRADE_COST, -} from "./tower.system"; -import { sendToInGamePlayers } from "../network-utils"; + LOBBY_HEAL_COST_PER_HP, + WALL_HEAL_COST_PER_HP, +} from "@raid-survival/shared/tower"; +import { broadcast } from "../broadcast"; -export const INTERACT_RANGE = 20; +const INTERACT_RANGE = 20; -// Repair economics for non-tower targets - towers have their own flat heal/upgrade cost (see -// tower.system.ts). -const LOBBY_HEAL_COST_PER_HP = 1; -const WALL_HEAL_COST_PER_HP = 1 / 3; interface Candidate { id: number; - position: Position; + position: Position2D; hitbox: Hitbox; health: Health; // Present only for a tower - selects the upgrade branch vs. a wall/lobby's heal-only branch. @@ -37,34 +34,39 @@ interface Candidate { healCostPerHp: number; } -// Instant E-press interaction: heal a damaged building/lobby to full, or (a tower already at -// full HP) spend money to upgrade it one level - never both from the same press. Reuses -// ReviveInput's `interactRequested` one-shot, the same E key as the hold-to-revive channel. -export function buildingInteractSystem(registry: Registry, ctx: Context) { +/** + * Instant E-press interaction: heal a damaged building/lobby to full, or (a tower already at + * full HP) spend money to upgrade it one level - never both from the same press. Reuses + * ReviveInput's `interactRequested` one-shot, the same E key as the hold-to-revive channel. + * + * @system + * @side server + */ +export const buildingInteractSystem = (registry: Registry, ctx: Context) => { const players: { id: number; Login: Login; - Position: Position; + Position2D: Position2D; Hitbox: Hitbox; Health: Health; ReviveInput: ReviveInput; - }[] = registry.getIndexedZipper([Login, Position, Hitbox, Health, ReviveInput]); + }[] = registry.getIndexedZipper([Login, Position2D, Hitbox, Health, ReviveInput]); if (players.length === 0) return; const buildings: { id: number; Building: Building; - Position: Position; + Position2D: Position2D; Hitbox: Hitbox; Health: Health; - }[] = registry.getIndexedZipper([Building, Position, Hitbox, Health]); - const lobbies: { id: number; Position: Position; Hitbox: Hitbox; Health: Health }[] = - registry.getIndexedZipper([Lobby, Position, Hitbox, Health]); + }[] = registry.getIndexedZipper([Building, Position2D, Hitbox, Health]); + const lobbies: { id: number; Position2D: Position2D; Hitbox: Hitbox; Health: Health }[] = + registry.getIndexedZipper([Lobby, Position2D, Hitbox, Health]); const candidates: Candidate[] = [ ...buildings.map((b) => ({ id: b.id, - position: b.Position, + position: b.Position2D, hitbox: b.Hitbox, health: b.Health, tower: registry.getEntityComponent(registry.entityFromIndex(b.id), Tower) ?? undefined, @@ -72,7 +74,7 @@ export function buildingInteractSystem(registry: Registry, ctx: Context) { })), ...lobbies.map((l) => ({ id: l.id, - position: l.Position, + position: l.Position2D, hitbox: l.Hitbox, health: l.Health, tower: undefined, @@ -82,7 +84,6 @@ export function buildingInteractSystem(registry: Registry, ctx: Context) { const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); const money = moneyEntities[0]?.Money; - const network = ctx.libs.getNetwork(); for (const player of players) { const input = player.ReviveInput; @@ -100,7 +101,7 @@ export function buildingInteractSystem(registry: Registry, ctx: Context) { let nearestDistance = INTERACT_RANGE; for (const candidate of candidates) { const distance = distanceBetweenHitboxes( - player.Position, + player.Position2D, player.Hitbox, candidate.position, candidate.hitbox, @@ -127,7 +128,7 @@ export function buildingInteractSystem(registry: Registry, ctx: Context) { continue; // already max level and already at full HP - nothing to do } - sendToInGamePlayers(network, { + broadcast(ctx, { type: "towerUpdate", id: nearest.id, level: nearest.tower.level, @@ -142,16 +143,13 @@ export function buildingInteractSystem(registry: Registry, ctx: Context) { money.amount -= cost; nearest.health.current = nearest.health.max; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "heal", id: nearest.id, health: { current: nearest.health.current, max: nearest.health.max }, }); } - sendToInGamePlayers(network, { type: "money", amount: money.amount }); + broadcast(ctx, { type: "money", amount: money.amount }); } -} - -// * Required to generate code -export default buildingInteractSystem.name; +}; diff --git a/raid-survival/server/systems/bullet.system.ts b/games/raid-survival/apps/server/src/systems/bullet.system.ts similarity index 54% rename from raid-survival/server/systems/bullet.system.ts rename to games/raid-survival/apps/server/src/systems/bullet.system.ts index 671a7f7..5381ad2 100644 --- a/raid-survival/server/systems/bullet.system.ts +++ b/games/raid-survival/apps/server/src/systems/bullet.system.ts @@ -1,44 +1,46 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { type Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; import { Bullet } from "../components/bullet.component"; -import { Position } from "../components/position.component"; +import { Position2D } from "../components/position-2d.component"; import { Hitbox } from "../components/hitbox.component"; import { Health } from "../components/health.component"; import { Zombie } from "../components/zombie.component"; import { MapCollisions } from "../components/map-collisions.component"; -import { sendToInGamePlayers } from "../network-utils"; +import { broadcast } from "../broadcast"; -function overlapsHitbox(x: number, y: number, position: Position, hitbox: Hitbox): boolean { +const overlapsHitbox = (x: number, y: number, position: Position2D, hitbox: Hitbox): boolean => { const left = position.x + hitbox.offsetX; const top = position.y + hitbox.offsetY; return x >= left && x <= left + hitbox.width && y >= top && y <= top + hitbox.height; -} +}; -// Runs after move.system.ts has advanced every bullet's Position this tick - this only owns what -// stops a bullet. A bullet is a point, not a box, so it's checked against other hitboxes directly. -export function bulletSystem(registry: Registry, ctx: Context) { - const bullets: { id: number; Bullet: Bullet; Position: Position }[] = registry.getIndexedZipper([Bullet, Position]); +/** + * Runs after move.system.ts has advanced every bullet's Position2D this tick - this only owns what + * stops a bullet. A bullet is a point, not a box, so it's checked against other hitboxes directly. + * + * @system + * @side server + */ +export const bulletSystem = (registry: Registry, ctx: Context) => { + const bullets: { id: number; Bullet: Bullet; Position2D: Position2D }[] = registry.getIndexedZipper([Bullet, Position2D]); if (bullets.length === 0) return; const maps: { MapCollisions: MapCollisions }[] = registry.getZipper([MapCollisions]); const map = maps[0]?.MapCollisions; - const zombies: { id: number; Zombie: Zombie; Position: Position; Hitbox: Hitbox; Health: Health }[] = - registry.getIndexedZipper([Zombie, Position, Hitbox, Health]); - - const network = ctx.libs.getNetwork(); + const zombies: { id: number; Zombie: Zombie; Position2D: Position2D; Hitbox: Hitbox; Health: Health }[] = + registry.getIndexedZipper([Zombie, Position2D, Hitbox, Health]); for (const bullet of bullets) { - const { x, y } = bullet.Position; + const { x, y } = bullet.Position2D; if (map) { const mapWidth = map.cols * map.tileSize; const mapHeight = map.rows * map.tileSize; // Despawn at the map edge - otherwise a bullet that never hits anything would fly forever. if (x < 0 || y < 0 || x >= mapWidth || y >= mapHeight) { - sendToInGamePlayers(network, { type: "kill", id: bullet.id }); + broadcast(ctx, { type: "kill", id: bullet.id }); registry.killEntity(registry.entityFromIndex(bullet.id)); continue; } @@ -46,24 +48,21 @@ export function bulletSystem(registry: Registry, ctx: Context) { const cellX = Math.floor(x / map.tileSize); const cellY = Math.floor(y / map.tileSize); if (map.isTreeCell(cellX, cellY)) { - sendToInGamePlayers(network, { type: "kill", id: bullet.id }); + broadcast(ctx, { type: "kill", id: bullet.id }); registry.killEntity(registry.entityFromIndex(bullet.id)); continue; } } const hitZombie = zombies.find( - (z) => z.Health.current > 0 && !z.Zombie.dying && overlapsHitbox(x, y, z.Position, z.Hitbox), + (z) => z.Health.current > 0 && !z.Zombie.dying && overlapsHitbox(x, y, z.Position2D, z.Hitbox), ); if (hitZombie) { - sendToInGamePlayers(network, { type: "kill", id: bullet.id }); + broadcast(ctx, { type: "kill", id: bullet.id }); registry.killEntity(registry.entityFromIndex(bullet.id)); // Damage must be applied here, not just broadcast - the `hit` packet is display-only. hitZombie.Health.current = Math.max(0, hitZombie.Health.current - bullet.Bullet.damage); - sendToInGamePlayers(network, { type: "hit", id: hitZombie.id, damage: bullet.Bullet.damage }); + broadcast(ctx, { type: "hit", id: hitZombie.id, damage: bullet.Bullet.damage }); } } -} - -// * Required to generate code -export default bulletSystem.name; +}; diff --git a/raid-survival/server/systems/game-over.system.ts b/games/raid-survival/apps/server/src/systems/game-over.system.ts similarity index 58% rename from raid-survival/server/systems/game-over.system.ts rename to games/raid-survival/apps/server/src/systems/game-over.system.ts index ce6ca9d..97cbc02 100644 --- a/raid-survival/server/systems/game-over.system.ts +++ b/games/raid-survival/apps/server/src/systems/game-over.system.ts @@ -1,21 +1,26 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; -import { clients, gameStatus, GameStatusEnum } from "../main"; +import { GameState } from "../components/game-state.component"; +import { gameState } from "../queries"; import { Health } from "../components/health.component"; import { Login } from "../components/login.component"; import { Lobby } from "../components/lobby.component"; import { WaveState } from "../components/wave-state.component"; import { Zombie } from "../components/zombie.component"; -import { sendToInGamePlayers } from "../network-utils"; - -// Ends the game when the lobby or every player is dead (defeat), or the last wave has finished -// spawning with nothing left alive (victory): broadcasts the final tally, then wipes every -// entity. `gameStatus` switches away from InGame in the same tick, so this can't re-trigger later -// for the same game. -export function gameOverSystem(registry: Registry, ctx: Context) { - if (gameStatus.status !== GameStatusEnum.InGame) return; +import { broadcast } from "../broadcast"; + +/** + * Ends the game when the lobby or every player is dead (defeat), or the last wave has finished + * spawning with nothing left alive (victory): broadcasts the final tally, then wipes every + * entity. The game state switches away from `inGame` in the same tick, so this can't re-trigger later + * for the same game. + * + * @system + * @side server + */ +export const gameOverSystem = (registry: Registry, ctx: Context) => { + if (gameState(registry)?.status !== "inGame") return; const lobbies: { Health: Health }[] = registry.getZipper([Lobby, Health]); const lobbyDead = lobbies.some((l) => l.Health.current <= 0); @@ -36,9 +41,7 @@ export function gameOverSystem(registry: Registry, ctx: Context) { const allWavesCleared = waveState?.phase === "finished" && aliveZombies === 0 && totalSpawned > 0; if (!allWavesCleared && !lobbyDead && !allPlayersDead) return; - - const network = ctx.libs.getNetwork(); - sendToInGamePlayers(network, { + broadcast(ctx, { type: "gameOver", // A photo finish (last zombie and last player/lobby health hitting 0 the same tick) counts as // a win, not a loss. @@ -46,14 +49,7 @@ export function gameOverSystem(registry: Registry, ctx: Context) { zombiesKilled: totalSpawned - aliveZombies, }); - gameStatus.status = GameStatusEnum.EndScreen; + // Every player entity goes too: the next game only has the players who join again. registry.clearEntities(); - - // Every entityId in `clients` is now dangling (it pointed into the registry we just cleared). - // Emptying it means the next startGame only spawns players who rejoin through the normal flow - // with a fresh entityId - a player who never retries just isn't part of the next game. - clients.length = 0; -} - -// * Required to generate code -export default gameOverSystem.name; + registry.addComponent(registry.spawnEntity(), new GameState("endScreen")); +}; diff --git a/raid-survival/server/systems/loot-box-pickup.system.ts b/games/raid-survival/apps/server/src/systems/loot-box-pickup.system.ts similarity index 66% rename from raid-survival/server/systems/loot-box-pickup.system.ts rename to games/raid-survival/apps/server/src/systems/loot-box-pickup.system.ts index 01ebbe7..7bc330f 100644 --- a/raid-survival/server/systems/loot-box-pickup.system.ts +++ b/games/raid-survival/apps/server/src/systems/loot-box-pickup.system.ts @@ -1,44 +1,47 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { Login } from "../components/login.component"; -import { Position } from "../components/position.component"; +import { Position2D } from "../components/position-2d.component"; import { Hitbox } from "../components/hitbox.component"; import { Health } from "../components/health.component"; import { WeaponInventory } from "../components/weapon-inventory.component"; import { LootBox } from "../components/loot-box.component"; import { Money } from "../components/money.component"; import { PlayerClass } from "../components/player-class.component"; -import { PLAYER_CLASS_CATALOG } from "../player-class-catalog"; -import { WEAPON_CATALOG } from "../weapon-catalog"; -import { distanceBetweenHitboxes } from "./zombie-ai"; -import { sendToInGamePlayers } from "../network-utils"; +import { PLAYER_CLASS_CATALOG } from "@raid-survival/shared/player-class-catalog"; +import { WEAPON_CATALOG } from "@raid-survival/shared/weapon-catalog"; +import { distanceBetweenHitboxes } from "../zombie-ai"; +import { broadcast } from "../broadcast"; const PICKUP_RANGE = 10; const HEAL_BOX_AMOUNT = 50; const GOLD_BOX_AMOUNT = 50; -// Auto-pickup: the first alive player within PICKUP_RANGE of a dropped loot box (spawned by -// zombie-death.system.ts) claims it - no keypress needed. -export function lootBoxPickupSystem(registry: Registry, ctx: Context) { - const boxes: { id: number; LootBox: LootBox; Position: Position; Hitbox: Hitbox }[] = - registry.getIndexedZipper([LootBox, Position, Hitbox]); +/** + * Auto-pickup: the first alive player within PICKUP_RANGE of a dropped loot box (spawned by + * zombie-death.system.ts) claims it - no keypress needed. + * + * @system + * @side server + */ +export const lootBoxPickupSystem = (registry: Registry, ctx: Context) => { + const boxes: { id: number; LootBox: LootBox; Position2D: Position2D; Hitbox: Hitbox }[] = + registry.getIndexedZipper([LootBox, Position2D, Hitbox]); if (boxes.length === 0) return; const players: { id: number; Login: Login; - Position: Position; + Position2D: Position2D; Hitbox: Hitbox; Health: Health; WeaponInventory: WeaponInventory; PlayerClass: PlayerClass; - }[] = registry.getIndexedZipper([Login, Position, Hitbox, Health, WeaponInventory, PlayerClass]); + }[] = registry.getIndexedZipper([Login, Position2D, Hitbox, Health, WeaponInventory, PlayerClass]); const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); const money = moneyEntities[0]?.Money; - const network = ctx.libs.getNetwork(); for (const box of boxes) { // A downed player (0 HP) must never pick one up - a heal box would revive them outside @@ -46,7 +49,7 @@ export function lootBoxPickupSystem(registry: Registry, ctx: Context) { const picker = players.find( (p) => p.Health.current > 0 && - distanceBetweenHitboxes(p.Position, p.Hitbox, box.Position, box.Hitbox) <= PICKUP_RANGE, + distanceBetweenHitboxes(p.Position2D, p.Hitbox, box.Position2D, box.Hitbox) <= PICKUP_RANGE, ); if (!picker) continue; @@ -60,14 +63,14 @@ export function lootBoxPickupSystem(registry: Registry, ctx: Context) { ? picker.Health.max : Math.min(picker.Health.max, picker.Health.current + HEAL_BOX_AMOUNT); const healed = picker.Health.current - before; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "heal", id: picker.id, health: { current: picker.Health.current, max: picker.Health.max }, }); - sendToInGamePlayers(network, { + broadcast(ctx, { type: "loot", - position: { x: box.Position.x, y: box.Position.y }, + position: { x: box.Position2D.x, y: box.Position2D.y }, amount: healed, text: `+${healed} HP`, color: "#4CAF50", @@ -77,11 +80,11 @@ export function lootBoxPickupSystem(registry: Registry, ctx: Context) { case "gold": { if (money) { money.amount += GOLD_BOX_AMOUNT; - sendToInGamePlayers(network, { type: "money", amount: money.amount }); + broadcast(ctx, { type: "money", amount: money.amount }); } - sendToInGamePlayers(network, { + broadcast(ctx, { type: "loot", - position: { x: box.Position.x, y: box.Position.y }, + position: { x: box.Position2D.x, y: box.Position2D.y }, amount: GOLD_BOX_AMOUNT, }); break; @@ -99,7 +102,7 @@ export function lootBoxPickupSystem(registry: Registry, ctx: Context) { const catalog = WEAPON_CATALOG[weaponType]; state.magazineAmmo = catalog.magazineSize; const owned = picker.WeaponInventory.owned.find((w) => w.weaponType === weaponType); - sendToInGamePlayers(network, { + broadcast(ctx, { type: "ammo", id: picker.id, weaponType, @@ -107,9 +110,9 @@ export function lootBoxPickupSystem(registry: Registry, ctx: Context) { reserveAmmo: owned?.reserveAmmo ?? -1, }); } - sendToInGamePlayers(network, { + broadcast(ctx, { type: "loot", - position: { x: box.Position.x, y: box.Position.y }, + position: { x: box.Position2D.x, y: box.Position2D.y }, amount: 0, text: "Ammo refilled!", color: "#F5F2E9", @@ -118,10 +121,7 @@ export function lootBoxPickupSystem(registry: Registry, ctx: Context) { } } - sendToInGamePlayers(network, { type: "kill", id: box.id }); + broadcast(ctx, { type: "kill", id: box.id }); registry.killEntity(registry.entityFromIndex(box.id)); } -} - -// * Required to generate code -export default lootBoxPickupSystem.name; +}; diff --git a/raid-survival/server/systems/map-collision.system.ts b/games/raid-survival/apps/server/src/systems/map-collision.system.ts similarity index 57% rename from raid-survival/server/systems/map-collision.system.ts rename to games/raid-survival/apps/server/src/systems/map-collision.system.ts index 2d7737b..b91af37 100644 --- a/raid-survival/server/systems/map-collision.system.ts +++ b/games/raid-survival/apps/server/src/systems/map-collision.system.ts @@ -1,13 +1,13 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; import { CollisionBox } from "../components/collision-box.component"; import { MapCollisions } from "../components/map-collisions.component"; -import { resolveCollision } from "./collision-resolve"; +import { resolveCollision } from "../collision-resolve"; -function overlapsTree(map: MapCollisions, x: number, y: number, box: CollisionBox): boolean { +const overlapsTree = (map: MapCollisions, x: number, y: number, box: CollisionBox): boolean => { const corners: [number, number][] = [ [x, y], [x + box.width, y], @@ -20,20 +20,26 @@ function overlapsTree(map: MapCollisions, x: number, y: number, box: CollisionBo const cellY = Math.floor(cornerY / map.tileSize); return map.isTreeCell(cellX, cellY); }); -} - -export function mapCollisionSystem(registry: Registry, ctx: Context) { +}; + +/** + * TODO + * + * @system + * @side server + */ +export const mapCollisionSystem = (registry: Registry, ctx: Context) => { const maps = registry.getZipper([MapCollisions]); const map = maps[0]?.MapCollisions; if (!map) return; const delta = ctx.app.delta / 1000; - const entities = registry.getIndexedZipper([Position, Velocity, CollisionBox]); + const entities = registry.getIndexedZipper([Position2D, Velocity2D, CollisionBox]); for (const { id: entityId, - Position: position, - Velocity: velocity, + Position2D: position, + Velocity2D: velocity, CollisionBox: box, } of entities) { if (!overlapsTree(map, position.x, position.y, box)) continue; @@ -42,7 +48,4 @@ export function mapCollisionSystem(registry: Registry, ctx: Context) { overlapsTree(map, x, y, box), ); } -} - -// * Required to generate code -export default mapCollisionSystem.name; +}; diff --git a/games/raid-survival/apps/server/src/systems/move-2d.system.ts b/games/raid-survival/apps/server/src/systems/move-2d.system.ts new file mode 100644 index 0000000..514766a --- /dev/null +++ b/games/raid-survival/apps/server/src/systems/move-2d.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Acceleration2D } from "../components/acceleration-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +/** + * Moves entities: their `Acceleration2D` changes their `Velocity2D`, then their `Velocity2D` + * changes their `Position2D`, by the time elapsed since the last frame. + * + * @system + * @side shared + */ +export const move2D = (registry: Registry, ctx: Context) => { + const seconds = ctx.app.delta / 1000; + + registry.getZipper([Acceleration2D, Velocity2D]).forEach(({ Acceleration2D, Velocity2D }) => { + Velocity2D.x += Acceleration2D.x * seconds; + Velocity2D.y += Acceleration2D.y * seconds; + }); + registry.getZipper([Position2D, Velocity2D]).forEach(({ Position2D, Velocity2D }) => { + Position2D.x += Velocity2D.x * seconds; + Position2D.y += Velocity2D.y * seconds; + }); +}; diff --git a/raid-survival/server/systems/move-input.system.ts b/games/raid-survival/apps/server/src/systems/move-input.system.ts similarity index 59% rename from raid-survival/server/systems/move-input.system.ts rename to games/raid-survival/apps/server/src/systems/move-input.system.ts index 7b0da60..12995cd 100644 --- a/raid-survival/server/systems/move-input.system.ts +++ b/games/raid-survival/apps/server/src/systems/move-input.system.ts @@ -1,26 +1,32 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { MoveInput } from "../components/move-input.component"; -import { Velocity } from "../components/velocity.component"; +import { Velocity2D } from "../components/velocity-2d.component"; import { Health } from "../components/health.component"; import { PlayerClass } from "../components/player-class.component"; -import { PLAYER_CLASS_CATALOG } from "../player-class-catalog"; -import { PLAYER_SPEED } from "../main"; +import { PLAYER_CLASS_CATALOG } from "@raid-survival/shared/player-class-catalog"; -// Recomputes every player's Velocity from held-key intent every tick, not just when an input -// packet arrives - otherwise collision-resolve.ts zeroing an axis on a wall hit would stick even -// after the player is no longer blocked. -export function moveInputSystem(registry: Registry) { +const PLAYER_SPEED = 100; + +/** + * Recomputes every player's Velocity2D from held-key intent every tick, not just when an input + * packet arrives - otherwise collision-resolve.ts zeroing an axis on a wall hit would stick even + * after the player is no longer blocked. + * + * @system + * @side server + */ +export const moveInputSystem = (registry: Registry) => { const entities: { MoveInput: MoveInput; - Velocity: Velocity; + Velocity2D: Velocity2D; Health: Health; PlayerClass: PlayerClass; - }[] = registry.getZipper([MoveInput, Velocity, Health, PlayerClass]); + }[] = registry.getZipper([MoveInput, Velocity2D, Health, PlayerClass]); for (const { MoveInput: input, - Velocity: velocity, + Velocity2D: velocity, Health: health, PlayerClass: playerClass, } of entities) { @@ -43,7 +49,4 @@ export function moveInputSystem(registry: Registry) { velocity.x = (dx / length) * speed; velocity.y = (dy / length) * speed; } -} - -// * Required to generate code -export default moveInputSystem.name; +}; diff --git a/games/raid-survival/apps/server/src/systems/move-sync.system.ts b/games/raid-survival/apps/server/src/systems/move-sync.system.ts new file mode 100644 index 0000000..a23c04a --- /dev/null +++ b/games/raid-survival/apps/server/src/systems/move-sync.system.ts @@ -0,0 +1,33 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; + +import { MoveInput } from "../components/move-input.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; +import { broadcast } from "../broadcast"; + +/** + * collision-resolve.ts broadcasts the moment an axis becomes newly blocked, but not the reverse: + * an axis that's free again after being blocked. This catches that (and any other drift) by + * comparing against what was last actually sent to clients. + * + * @system + * @side server + */ +export const moveSyncSystem = (registry: Registry, ctx: Context) => { + const entities: { id: number; MoveInput: MoveInput; Position2D: Position2D; Velocity2D: Velocity2D }[] = + registry.getIndexedZipper([MoveInput, Position2D, Velocity2D]); + if (entities.length === 0) return; + + for (const { id, MoveInput: input, Position2D: position, Velocity2D: velocity } of entities) { + if (velocity.x === input.lastBroadcastVelocity.x && velocity.y === input.lastBroadcastVelocity.y) continue; + + input.lastBroadcastVelocity = { x: velocity.x, y: velocity.y }; + broadcast(ctx, { + type: "move", + id, + velocity: { x: velocity.x, y: velocity.y }, + position: { x: position.x, y: position.y }, + }); + } +}; diff --git a/games/raid-survival/apps/server/src/systems/obstacle-collision.system.ts b/games/raid-survival/apps/server/src/systems/obstacle-collision.system.ts new file mode 100644 index 0000000..09d6301 --- /dev/null +++ b/games/raid-survival/apps/server/src/systems/obstacle-collision.system.ts @@ -0,0 +1,54 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; + +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; +import { CollisionBox } from "../components/collision-box.component"; +import { resolveCollision } from "../collision-resolve"; + +const overlapsBox = ( + x1: number, + y1: number, + box1: CollisionBox, + x2: number, + y2: number, + box2: CollisionBox, +): boolean => { + return x1 < x2 + box2.width && x1 + box1.width > x2 && y1 < y2 + box2.height && y1 + box1.height > y2; +}; + +/** + * TODO + * + * @system + * @side server + */ +export const obstacleCollisionSystem = (registry: Registry, ctx: Context) => { + const boxed = registry.getIndexedZipper([Position2D, CollisionBox]); + const obstacles = boxed.filter( + ({ id }) => !registry.getEntityComponent(registry.entityFromIndex(id), Velocity2D), + ); + if (obstacles.length === 0) return; + + const delta = ctx.app.delta / 1000; + const movers = registry.getIndexedZipper([Position2D, Velocity2D, CollisionBox]); + + for (const { + id: entityId, + Position2D: position, + Velocity2D: velocity, + CollisionBox: box, + } of movers) { + for (const obstacle of obstacles) { + if ( + !overlapsBox(position.x, position.y, box, obstacle.Position2D.x, obstacle.Position2D.y, obstacle.CollisionBox) + ) + continue; + + resolveCollision(ctx, entityId, position, velocity, delta, (x, y) => + overlapsBox(x, y, box, obstacle.Position2D.x, obstacle.Position2D.y, obstacle.CollisionBox), + ); + break; + } + } +}; diff --git a/games/raid-survival/apps/server/src/systems/packet-dispatch.system.ts b/games/raid-survival/apps/server/src/systems/packet-dispatch.system.ts new file mode 100644 index 0000000..fd87ebd --- /dev/null +++ b/games/raid-survival/apps/server/src/systems/packet-dispatch.system.ts @@ -0,0 +1,35 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import "@nanoforge-dev/network/server"; +import { type ClientMessage, ClientPacket } from "@raid-survival/shared/protocol"; + +import { CLIENT_HANDLERS } from "../handlers/handlers"; +import { lobbyClients } from "../queries"; + +/** + * Handles the messages the clients sent since the last tick, in the order they arrived, and marks + * the players whose session closed as disconnected. + * + * @remarks + * A message is untrusted: each handler checks its fields, and one that throws is logged and + * skipped, so a malformed message never stops the tick. + * + * @system + * @side server + */ +export const packetDispatch = (registry: Registry, ctx: Context) => { + const connected = ctx.network.getConnectedClients(); + for (const { Client: client } of lobbyClients(registry)) + if (!connected.includes(client.clientId)) client.connected = false; + + for (const { clientId, data } of ctx.network.packets.read(ClientPacket)) { + const handler = CLIENT_HANDLERS[data.type] as + | ((clientId: string, message: ClientMessage, registry: Registry, ctx: Context) => void) + | undefined; + try { + handler?.(clientId, data, registry, ctx); + } catch (error) { + console.error(`[packet:${data.type}] from ${clientId}`, error); + } + } +}; diff --git a/raid-survival/server/systems/revive.system.ts b/games/raid-survival/apps/server/src/systems/revive.system.ts similarity index 65% rename from raid-survival/server/systems/revive.system.ts rename to games/raid-survival/apps/server/src/systems/revive.system.ts index 963bcfb..e786db5 100644 --- a/raid-survival/server/systems/revive.system.ts +++ b/games/raid-survival/apps/server/src/systems/revive.system.ts @@ -1,43 +1,46 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { Login } from "../components/login.component"; -import { Position } from "../components/position.component"; +import { Position2D } from "../components/position-2d.component"; import { Hitbox } from "../components/hitbox.component"; import { Health } from "../components/health.component"; import { ReviveInput } from "../components/revive-input.component"; import { PlayerClass } from "../components/player-class.component"; -import { PLAYER_CLASS_CATALOG } from "../player-class-catalog"; -import { distanceBetweenHitboxes } from "./zombie-ai"; -import { sendToInGamePlayers } from "../network-utils"; +import { PLAYER_CLASS_CATALOG } from "@raid-survival/shared/player-class-catalog"; +import { distanceBetweenHitboxes } from "../zombie-ai"; +import { broadcast } from "../broadcast"; -export const REVIVE_RANGE = 20; -export const REVIVE_HEALTH_FRACTION = 0.2; +const REVIVE_RANGE = 20; +const REVIVE_HEALTH_FRACTION = 0.2; interface PlayerEntity { id: number; Login: Login; - Position: Position; + Position2D: Position2D; Hitbox: Hitbox; Health: Health; ReviveInput: ReviveInput; PlayerClass: PlayerClass; } -// Server-authoritative hold-E-near-a-downed-teammate revive channel. Channel state lives on the -// REVIVER's own ReviveInput, not the target's - releasing E, moving out of range, switching -// targets, or the reviver's death all reset progress to 0. -// -// Registered before gameOverSystem (server/main.ts) so a revive completed this tick is already -// reflected in Health before that system's allPlayersDead check runs. -export function reviveSystem(registry: Registry, ctx: Context) { - const network = ctx.libs.getNetwork(); +/** + * Server-authoritative hold-E-near-a-downed-teammate revive channel. Channel state lives on the + * REVIVER's own ReviveInput, not the target's - releasing E, moving out of range, switching + * targets, or the reviver's death all reset progress to 0. + * + * Registered before gameOverSystem (server/main.ts) so a revive completed this tick is already + * reflected in Health before that system's allPlayersDead check runs. + * + * @system + * @side server + */ +export const reviveSystem = (registry: Registry, ctx: Context) => { const delta = ctx.app.delta / 1000; const players: PlayerEntity[] = registry.getIndexedZipper([ Login, - Position, + Position2D, Hitbox, Health, ReviveInput, @@ -53,7 +56,7 @@ export function reviveSystem(registry: Registry, ctx: Context) { const target = canChannel ? nearestDownedTeammate(players, reviver) : null; if (!target) { - cancelIfActive(network, input); + cancelIfActive(ctx, input); continue; } @@ -65,7 +68,7 @@ export function reviveSystem(registry: Registry, ctx: Context) { // Fresh start, or switched targets mid-channel - either way, not a continuation. input.progressSeconds = 0; input.targetId = target.id; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "revive", state: "started", targetId: target.id, @@ -80,27 +83,27 @@ export function reviveSystem(registry: Registry, ctx: Context) { target.Health.current = Math.round(target.Health.max * REVIVE_HEALTH_FRACTION); input.progressSeconds = 0; input.targetId = null; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "revive", state: "completed", targetId: target.id, health: target.Health.current, }); } -} +}; -function cancelIfActive(network: NetworkServerLibrary, input: ReviveInput) { +const cancelIfActive = (ctx: Context, input: ReviveInput) => { if (input.targetId === null) return; const targetId = input.targetId; input.progressSeconds = 0; input.targetId = null; - sendToInGamePlayers(network, { type: "revive", state: "cancelled", targetId }); -} + broadcast(ctx, { type: "revive", state: "cancelled", targetId }); +}; -function nearestDownedTeammate( +const nearestDownedTeammate = ( players: PlayerEntity[], reviver: PlayerEntity, -): PlayerEntity | null { +): PlayerEntity | null => { let closest: PlayerEntity | null = null; let closestDistance = REVIVE_RANGE; @@ -109,9 +112,9 @@ function nearestDownedTeammate( if (candidate.Health.current > 0) continue; const distance = distanceBetweenHitboxes( - reviver.Position, + reviver.Position2D, reviver.Hitbox, - candidate.Position, + candidate.Position2D, candidate.Hitbox, ); if (distance <= closestDistance) { @@ -121,7 +124,4 @@ function nearestDownedTeammate( } return closest; -} - -// * Required to generate code -export default reviveSystem.name; +}; diff --git a/raid-survival/server/systems/tower.system.ts b/games/raid-survival/apps/server/src/systems/tower.system.ts similarity index 54% rename from raid-survival/server/systems/tower.system.ts rename to games/raid-survival/apps/server/src/systems/tower.system.ts index 9b8f999..7d8ac7e 100644 --- a/raid-survival/server/systems/tower.system.ts +++ b/games/raid-survival/apps/server/src/systems/tower.system.ts @@ -1,37 +1,26 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { Building } from "../components/building.component"; import { Tower } from "../components/tower.component"; -import { Position } from "../components/position.component"; +import { Position2D } from "../components/position-2d.component"; import { Hitbox } from "../components/hitbox.component"; import { Health } from "../components/health.component"; import { Zombie } from "../components/zombie.component"; -import { WEAPON_CATALOG } from "../weapon-catalog"; -import { firePellets } from "./weapon.system"; -import { distanceBetweenHitboxes } from "./zombie-ai"; - -export const TOWER_RANGE = 120; -export const TOWER_MAX_LEVEL = 6; -export const TOWER_HP_PER_LEVEL = 50; -export const TOWER_UPGRADE_COST = 50; -// Flat repair-to-full cost, same as one upgrade - a per-missing-HP rate would make repairing a -// heavily-damaged level-6 tower cost far more than upgrading it ever did. -export const TOWER_HEAL_COST = 50; +import { WEAPON_CATALOG } from "@raid-survival/shared/weapon-catalog"; +import { firePellets } from "../fire-pellets"; +import { TOWER_RANGE } from "@raid-survival/shared/tower"; +import { distanceBetweenHitboxes } from "../zombie-ai"; // Level 1 fires at smallGun's own stats; each upgrade adds +1 shot/sec and +1 damage. -export function towerFireRatePerSecond(level: number): number { - return WEAPON_CATALOG.smallGun.fireRatePerSecond + (level - 1); -} -export function towerDamage(level: number): number { - return WEAPON_CATALOG.smallGun.damage + (level - 1); -} +const towerFireRatePerSecond = (level: number): number => + WEAPON_CATALOG.smallGun.fireRatePerSecond + (level - 1); +const towerDamage = (level: number): number => WEAPON_CATALOG.smallGun.damage + (level - 1); interface TowerEntity { id: number; Tower: Tower; - Position: Position; + Position2D: Position2D; Hitbox: Hitbox; Health: Health; } @@ -39,20 +28,18 @@ interface TowerEntity { // Autonomous turret: every alive tower fires at the nearest alive zombie within TOWER_RANGE on // its own level-derived cooldown, reusing weapon.system.ts's firePellets pipeline so a tower's // shots behave identically to a player's smallGun shots. -export function towerSystem(registry: Registry, ctx: Context) { +export const towerSystem = (registry: Registry, ctx: Context) => { const towers: TowerEntity[] = registry.getIndexedZipper([ Building, Tower, - Position, + Position2D, Hitbox, Health, ]); if (towers.length === 0) return; - const zombies: { Position: Position; Hitbox: Hitbox; Health: Health; Zombie: Zombie }[] = - registry.getZipper([Zombie, Position, Hitbox, Health]); - - const network = ctx.libs.getNetwork(); + const zombies: { Position2D: Position2D; Hitbox: Hitbox; Health: Health; Zombie: Zombie }[] = + registry.getZipper([Zombie, Position2D, Hitbox, Health]); const delta = ctx.app.delta / 1000; for (const tower of towers) { @@ -65,9 +52,9 @@ export function towerSystem(registry: Registry, ctx: Context) { for (const zombie of zombies) { if (zombie.Health.current <= 0 || zombie.Zombie.dying) continue; const distance = distanceBetweenHitboxes( - tower.Position, + tower.Position2D, tower.Hitbox, - zombie.Position, + zombie.Position2D, zombie.Hitbox, ); if (distance <= nearestDistance) { @@ -77,19 +64,18 @@ export function towerSystem(registry: Registry, ctx: Context) { } if (!nearestZombie) continue; - const centerX = tower.Position.x + tower.Hitbox.offsetX + tower.Hitbox.width / 2; - const centerY = tower.Position.y + tower.Hitbox.offsetY + tower.Hitbox.height / 2; + const centerX = tower.Position2D.x + tower.Hitbox.offsetX + tower.Hitbox.width / 2; + const centerY = tower.Position2D.y + tower.Hitbox.offsetY + tower.Hitbox.height / 2; const targetCenterX = - nearestZombie.Position.x + nearestZombie.Hitbox.offsetX + nearestZombie.Hitbox.width / 2; + nearestZombie.Position2D.x + nearestZombie.Hitbox.offsetX + nearestZombie.Hitbox.width / 2; const targetCenterY = - nearestZombie.Position.y + nearestZombie.Hitbox.offsetY + nearestZombie.Hitbox.height / 2; + nearestZombie.Position2D.y + nearestZombie.Hitbox.offsetY + nearestZombie.Hitbox.height / 2; const dx = targetCenterX - centerX; const dy = targetCenterY - centerY; const length = Math.hypot(dx, dy) || 1; firePellets( - registry, - network, + ctx, centerX, centerY, { x: dx / length, y: dy / length }, @@ -102,7 +88,4 @@ export function towerSystem(registry: Registry, ctx: Context) { ); tower.Tower.cooldownRemaining = 1 / towerFireRatePerSecond(tower.Tower.level); } -} - -// * Required to generate code -export default towerSystem.name; +}; diff --git a/raid-survival/server/systems/weapon.system.ts b/games/raid-survival/apps/server/src/systems/weapon.system.ts similarity index 57% rename from raid-survival/server/systems/weapon.system.ts rename to games/raid-survival/apps/server/src/systems/weapon.system.ts index 2cb135a..d8b8fb0 100644 --- a/raid-survival/server/systems/weapon.system.ts +++ b/games/raid-survival/apps/server/src/systems/weapon.system.ts @@ -1,108 +1,57 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { WeaponInventory, type WeaponFireState } from "../components/weapon-inventory.component"; import { ShootInput } from "../components/shoot-input.component"; -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; +import { Position2D } from "../components/position-2d.component"; import { Hitbox } from "../components/hitbox.component"; import { Direction } from "../components/direction.component"; import { Health } from "../components/health.component"; -import { Bullet } from "../components/bullet.component"; -import { WEAPON_CATALOG, type WeaponType } from "../weapon-catalog"; -import { sendToInGamePlayers } from "../network-utils"; +import { WEAPON_CATALOG, type WeaponType } from "@raid-survival/shared/weapon-catalog"; +import { broadcast } from "../broadcast"; +import { firePellets } from "../fire-pellets"; -function broadcastWeaponState( - network: NetworkServerLibrary, +const broadcastWeaponState = ( + ctx: Context, id: number, weaponType: WeaponType, state: "idle" | "reloading", reloadSeconds?: number, -) { - sendToInGamePlayers(network, { type: "weaponState", id, weaponType, state, reloadSeconds }); -} +) => { + broadcast(ctx, { type: "weaponState", id, weaponType, state, reloadSeconds }); +}; // A one-shot event, not a state - sent once per shot that actually leaves the gun, so clients can // play a recoil/muzzle-flash animation at the real moment of firing. -function broadcastWeaponFired(network: NetworkServerLibrary, id: number, weaponType: WeaponType) { - sendToInGamePlayers(network, { type: "weaponFired", id, weaponType }); -} +const broadcastWeaponFired = (ctx: Context, id: number, weaponType: WeaponType) => { + broadcast(ctx, { type: "weaponFired", id, weaponType }); +}; -function broadcastAmmo( - network: NetworkServerLibrary, +const broadcastAmmo = ( + ctx: Context, id: number, weaponType: WeaponType, fireState: WeaponFireState, reserveAmmo: number, -) { - sendToInGamePlayers(network, { +) => { + broadcast(ctx, { type: "ammo", id, weaponType, magazineAmmo: fireState.magazineAmmo, reserveAmmo, }); -} - -// Just the fields firePellets actually reads, so tower.system.ts can hand it a computed -// per-level stat block without needing a real catalog entry of its own. -export interface PelletStats { - pellets: number; - spreadDegrees: number; - bulletSpeed: number; - damage: number; -} - -// `direction` is a fresh, already-normalized aim vector computed at the moment of firing (see -// computeAimDirection) - not the persisted Direction component, which is purely visual. Exported -// so tower.system.ts can fire the same bullet pipeline autonomously. -export function firePellets( - registry: Registry, - network: NetworkServerLibrary, - centerX: number, - centerY: number, - direction: { x: number; y: number }, - catalog: PelletStats, -) { - const pellets = catalog.pellets; - const spreadRad = (catalog.spreadDegrees * Math.PI) / 180; - - for (let i = 0; i < pellets; i++) { - // Spans [-0.5, 0.5] across the pellets, 0 for a single pellet - i.e. dead center, matching - // today's single-bullet aim exactly. - const t = pellets === 1 ? 0 : i / (pellets - 1) - 0.5; - const angle = t * spreadRad; - const cos = Math.cos(angle); - const sin = Math.sin(angle); - - const vx = (direction.x * cos - direction.y * sin) * catalog.bulletSpeed; - const vy = (direction.x * sin + direction.y * cos) * catalog.bulletSpeed; - - const bullet = registry.spawnEntity(); - registry.addComponent(bullet, new Position(centerX, centerY)); - registry.addComponent(bullet, new Velocity(vx, vy)); - registry.addComponent(bullet, new Bullet(catalog.damage)); - - sendToInGamePlayers(network, { - type: "spawn", - entityType: "bullet", - id: bullet.getId(), - position: { x: centerX, y: centerY }, - velocity: { x: vx, y: vy }, - }); - } -} +}; // Fresh player->mouse aim vector, computed at the moment a shot fires - not derived from the // persisted Direction component, which can be one packet's latency behind the mouse. Falls back // to `direction` only if no mousePosition has arrived yet. -function computeAimDirection( +const computeAimDirection = ( centerX: number, centerY: number, mousePosition: { x: number; y: number } | null, direction: Direction, -): { x: number; y: number } { +): { x: number; y: number } => { if (mousePosition) { const dx = mousePosition.x - centerX; const dy = mousePosition.y - centerY; @@ -110,38 +59,36 @@ function computeAimDirection( if (length > 0) return { x: dx / length, y: dy / length }; } return { x: direction.x, y: direction.y }; -} +}; // Owns the weapon state machine (idle/reloading, cooldown, magazine) for the single equipped // weapon of every player - ShootInput just records what's held/requested, this decides what // happens and when, every tick, independent of packet frequency. -export function weaponSystem(registry: Registry, ctx: Context) { +export const weaponSystem = (registry: Registry, ctx: Context) => { const entities: { id: number; WeaponInventory: WeaponInventory; ShootInput: ShootInput; - Position: Position; + Position2D: Position2D; Hitbox: Hitbox; Direction: Direction; Health: Health; }[] = registry.getIndexedZipper([ WeaponInventory, ShootInput, - Position, + Position2D, Hitbox, Direction, Health, ]); if (entities.length === 0) return; - - const network = ctx.libs.getNetwork(); const delta = ctx.app.delta / 1000; for (const { id, WeaponInventory: inventory, ShootInput: input, - Position: position, + Position2D: position, Hitbox: hitbox, Direction: direction, Health: health, @@ -180,8 +127,8 @@ export function weaponSystem(registry: Registry, ctx: Context) { state.magazineAmmo += taken; if (!catalog.infiniteReserve) owned.reserveAmmo -= taken; state.state = "idle"; - broadcastWeaponState(network, id, weaponType, "idle"); - broadcastAmmo(network, id, weaponType, state, owned.reserveAmmo); + broadcastWeaponState(ctx, id, weaponType, "idle"); + broadcastAmmo(ctx, id, weaponType, state, owned.reserveAmmo); } continue; } @@ -194,17 +141,17 @@ export function weaponSystem(registry: Registry, ctx: Context) { if (reloadRequested && canReload) { state.state = "reloading"; state.reloadRemaining = catalog.reloadSeconds; - broadcastWeaponState(network, id, weaponType, "reloading", catalog.reloadSeconds); + broadcastWeaponState(ctx, id, weaponType, "reloading", catalog.reloadSeconds); continue; } if (input.shooting && state.cooldownRemaining <= 0) { if (state.magazineAmmo > 0) { - firePellets(registry, network, centerX, centerY, aimDirection, catalog); + firePellets(ctx, centerX, centerY, aimDirection, catalog); state.magazineAmmo -= 1; state.cooldownRemaining = 1 / catalog.fireRatePerSecond; - broadcastAmmo(network, id, weaponType, state, owned.reserveAmmo); - broadcastWeaponFired(network, id, weaponType); + broadcastAmmo(ctx, id, weaponType, state, owned.reserveAmmo); + broadcastWeaponFired(ctx, id, weaponType); } // Auto-reload the instant the magazine empties - but only if there's reserve left to @@ -214,11 +161,8 @@ export function weaponSystem(registry: Registry, ctx: Context) { if (canAutoReload) { state.state = "reloading"; state.reloadRemaining = catalog.reloadSeconds; - broadcastWeaponState(network, id, weaponType, "reloading", catalog.reloadSeconds); + broadcastWeaponState(ctx, id, weaponType, "reloading", catalog.reloadSeconds); } } } -} - -// * Required to generate code -export default weaponSystem.name; +}; diff --git a/raid-survival/server/systems/zombie-death.system.ts b/games/raid-survival/apps/server/src/systems/zombie-death.system.ts similarity index 62% rename from raid-survival/server/systems/zombie-death.system.ts rename to games/raid-survival/apps/server/src/systems/zombie-death.system.ts index 522c45b..079e72a 100644 --- a/raid-survival/server/systems/zombie-death.system.ts +++ b/games/raid-survival/apps/server/src/systems/zombie-death.system.ts @@ -1,15 +1,16 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { type Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Registry } from "@nanoforge-dev/ecs/server"; +import type { Context } from "@nanoforge-dev/common"; import { Zombie } from "../components/zombie.component"; import { Health } from "../components/health.component"; import { Money } from "../components/money.component"; -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; -import { LootBox, type LootType } from "../components/loot-box.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; +import type { LootType } from "@raid-survival/shared/protocol"; + +import { LootBox } from "../components/loot-box.component"; import { Hitbox } from "../components/hitbox.component"; -import { sendToInGamePlayers } from "../network-utils"; +import { broadcast } from "../broadcast"; const LOOT_BOX_DROP_CHANCE = 1 / 20; const LOOT_TYPES: LootType[] = ["heal", "gold", "ammo"]; @@ -19,19 +20,22 @@ const LOOT_BOX_HITBOX: [number, number] = [15, 12]; // Long enough for the "death" animation to play out client-side before the entity is removed. const DEATH_ANIM_SECONDS = 1; -// Splits a zombie's death into two moments: the instant its Health hits 0 (coins/loot awarded, -// "dying" animation triggered) and, DEATH_ANIM_SECONDS later, the actual removal. -export function zombieDeathSystem(registry: Registry, ctx: Context) { +/** + * Splits a zombie's death into two moments: the instant its Health hits 0 (coins/loot awarded, + * "dying" animation triggered) and, DEATH_ANIM_SECONDS later, the actual removal. + * + * @system + * @side server + */ +export const zombieDeathSystem = (registry: Registry, ctx: Context) => { const zombies: { id: number; Zombie: Zombie; Health: Health; - Position: Position; - Velocity: Velocity; - }[] = registry.getIndexedZipper([Zombie, Health, Position, Velocity]); + Position2D: Position2D; + Velocity2D: Velocity2D; + }[] = registry.getIndexedZipper([Zombie, Health, Position2D, Velocity2D]); if (zombies.length === 0) return; - - const network = ctx.libs.getNetwork(); const delta = ctx.app.delta / 1000; const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); @@ -56,14 +60,14 @@ export function zombieDeathSystem(registry: Registry, ctx: Context) { zombie.Zombie.dyingRemaining = DEATH_ANIM_SECONDS; // A nonzero velocity left on a "dying" zombie would keep dragging the corpse across the map. - zombie.Velocity.x = 0; - zombie.Velocity.y = 0; + zombie.Velocity2D.x = 0; + zombie.Velocity2D.y = 0; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "zombieState", id: zombie.id, state: "dying", - position: { x: zombie.Position.x, y: zombie.Position.y }, + position: { x: zombie.Position2D.x, y: zombie.Position2D.y }, velocity: { x: 0, y: 0 }, }); @@ -71,9 +75,9 @@ export function zombieDeathSystem(registry: Registry, ctx: Context) { money.amount += zombie.Zombie.coinValue; moneyChanged = true; } - sendToInGamePlayers(network, { + broadcast(ctx, { type: "loot", - position: { x: zombie.Position.x, y: zombie.Position.y }, + position: { x: zombie.Position2D.x, y: zombie.Position2D.y }, amount: zombie.Zombie.coinValue, }); @@ -81,28 +85,25 @@ export function zombieDeathSystem(registry: Registry, ctx: Context) { if (Math.random() < LOOT_BOX_DROP_CHANCE) { const lootType = LOOT_TYPES[Math.floor(Math.random() * LOOT_TYPES.length)] ?? "gold"; const lootBox = registry.spawnEntity(); - registry.addComponent(lootBox, new Position(zombie.Position.x, zombie.Position.y)); + registry.addComponent(lootBox, new Position2D(zombie.Position2D.x, zombie.Position2D.y)); registry.addComponent(lootBox, new Hitbox(...LOOT_BOX_HITBOX)); registry.addComponent(lootBox, new LootBox(lootType)); - sendToInGamePlayers(network, { + broadcast(ctx, { type: "spawn", entityType: "lootBox", id: lootBox.getId(), lootType, - position: { x: zombie.Position.x, y: zombie.Position.y }, + position: { x: zombie.Position2D.x, y: zombie.Position2D.y }, }); } } for (const zombie of readyToRemove) { - sendToInGamePlayers(network, { type: "kill", id: zombie.id }); + broadcast(ctx, { type: "kill", id: zombie.id }); registry.killEntity(registry.entityFromIndex(zombie.id)); } if (moneyChanged && money) { - sendToInGamePlayers(network, { type: "money", amount: money.amount }); + broadcast(ctx, { type: "money", amount: money.amount }); } -} - -// * Required to generate code -export default zombieDeathSystem.name; +}; diff --git a/raid-survival/server/systems/zombie-wave.system.ts b/games/raid-survival/apps/server/src/systems/zombie-wave.system.ts similarity index 54% rename from raid-survival/server/systems/zombie-wave.system.ts rename to games/raid-survival/apps/server/src/systems/zombie-wave.system.ts index 7f14443..426467b 100644 --- a/raid-survival/server/systems/zombie-wave.system.ts +++ b/games/raid-survival/apps/server/src/systems/zombie-wave.system.ts @@ -1,45 +1,30 @@ -import { readFileSync } from "node:fs"; -import { fileURLToPath } from "node:url"; -import { dirname, join } from "node:path"; -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; import { WaveState } from "../components/wave-state.component"; import { Zombie } from "../components/zombie.component"; import { Health } from "../components/health.component"; -import { spawnZombie } from "./packet-handlers/start-game-packet.handler"; -import { sendToInGamePlayers } from "../network-utils"; +import { spawnZombie } from "../spawn-zombie"; +import { ZOMBIE_WAVES } from "../zombie-waves"; +import { broadcast } from "../broadcast"; // Time between sub-wave spawns, and between one wave finishing and the next starting. const SUB_WAVE_INTERVAL_SECONDS = 3; const WAVE_COOLDOWN_SECONDS = 20; -// Static assets ship flattened next to the built server bundle, not nested under "static/", so -// this resolves relative to this module's own runtime location rather than "../static/". -const WAVES_CONFIG_PATH = join(dirname(fileURLToPath(import.meta.url)), "zombie-waves.txt"); -// One entry per wave (a line in the config file), each entry the zombie count of every sub-wave -// on that line, spawned SUB_WAVE_INTERVAL_SECONDS apart. -function loadZombieWaves(): number[][] { - const raw = readFileSync(WAVES_CONFIG_PATH, "utf-8"); - return raw - .split("\n") - .map((line) => line.trim()) - .filter((line) => line.length > 0) - .map((line) => line.split(/\s+/).map(Number)); -} - -const zombieWaves = loadZombieWaves(); - -export function zombieWaveSystem(registry: Registry, ctx: Context) { +/** + * TODO + * + * @system + * @side server + */ +export const zombieWaveSystem = (registry: Registry, ctx: Context) => { const entities: { WaveState: WaveState }[] = registry.getZipper([WaveState]); const state = entities[0]?.WaveState; if (!state || state.phase === "finished") return; - - const network = ctx.libs.getNetwork(); const delta = ctx.app.delta / 1000; - const wave = zombieWaves[state.waveIndex]; + const wave = ZOMBIE_WAVES[state.waveIndex]; let changed = false; if (state.phase === "spawning") { @@ -53,7 +38,7 @@ export function zombieWaveSystem(registry: Registry, ctx: Context) { // subWaveIndex 0 fires immediately on entering the wave - the interval only separates // sub-waves from each other. for (let i = 0; i < subWaveSize; i++) { - spawnZombie(registry, network, state.lobbyEntityId); + spawnZombie(ctx, state.lobbyEntityId); } state.totalSpawned += subWaveSize; state.subWaveIndex += 1; @@ -76,37 +61,34 @@ export function zombieWaveSystem(registry: Registry, ctx: Context) { state.waveIndex += 1; state.subWaveIndex = 0; state.timer = 0; - state.phase = state.waveIndex >= zombieWaves.length ? "finished" : "spawning"; + state.phase = state.waveIndex >= ZOMBIE_WAVES.length ? "finished" : "spawning"; changed = true; } } - if (changed) broadcastWaveInfo(network, registry, state); -} + if (changed) broadcastWaveInfo(ctx, state); +}; -function broadcastWaveInfo(network: NetworkServerLibrary, registry: Registry, state: WaveState) { - const displayWaveIndex = Math.min(state.waveIndex, zombieWaves.length - 1); - const wave = zombieWaves[displayWaveIndex] ?? []; +const broadcastWaveInfo = (ctx: Context, state: WaveState) => { + const displayWaveIndex = Math.min(state.waveIndex, ZOMBIE_WAVES.length - 1); + const wave = ZOMBIE_WAVES[displayWaveIndex] ?? []; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "waveInfo", wave: displayWaveIndex + 1, - maxWaves: zombieWaves.length, + maxWaves: ZOMBIE_WAVES.length, // Once finished, show the last wave's bar as full rather than frozen mid-progress. subWave: state.phase === "finished" ? wave.length : state.subWaveIndex, subWaveCount: wave.length, - aliveZombies: countAliveZombies(registry), + aliveZombies: countAliveZombies(ctx.ecs.registry), phase: state.phase, // Only meaningful while "cooldown" - hidden client-side otherwise. cooldownRemaining: state.phase === "cooldown" ? Math.max(0, Math.ceil(WAVE_COOLDOWN_SECONDS - state.timer)) : 0, }); -} +}; -function countAliveZombies(registry: Registry): number { +const countAliveZombies = (registry: Registry): number => { const zombies: { Health: Health }[] = registry.getZipper([Zombie, Health]); return zombies.filter((z) => z.Health.current > 0).length; -} - -// * Required to generate code -export default zombieWaveSystem.name; +}; diff --git a/raid-survival/server/systems/zombie-ai.ts b/games/raid-survival/apps/server/src/zombie-ai.ts similarity index 79% rename from raid-survival/server/systems/zombie-ai.ts rename to games/raid-survival/apps/server/src/zombie-ai.ts index 885a695..929cce9 100644 --- a/raid-survival/server/systems/zombie-ai.ts +++ b/games/raid-survival/apps/server/src/zombie-ai.ts @@ -1,16 +1,15 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; - -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; -import { Health } from "../components/health.component"; -import { Hitbox } from "../components/hitbox.component"; -import { Login } from "../components/login.component"; -import { Zombie } from "../components/zombie.component"; -import { Building } from "../components/building.component"; -import { type AIBehavior } from "../components/ia.component"; -import { sendToInGamePlayers } from "../network-utils"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/server"; + +import { Position2D } from "./components/position-2d.component"; +import { Velocity2D } from "./components/velocity-2d.component"; +import { Health } from "./components/health.component"; +import { Hitbox } from "./components/hitbox.component"; +import { Login } from "./components/login.component"; +import { Zombie } from "./components/zombie.component"; +import { Building } from "./components/building.component"; +import { type AIBehavior } from "./components/ia.component"; +import { broadcast } from "./broadcast"; export const ZOMBIE_SPEED = 40; export const ZOMBIE_MAX_HEALTH = 20; @@ -26,25 +25,23 @@ interface Attackable { // True only for the lobby - a valid move-toward target regardless of distance. Players and // buildings only count as a move target within ZOMBIE_AGGRO_RANGE. alwaysReachable: boolean; - position: Position; + position: Position2D; hitbox: Hitbox; health: Health; distance: number; } -export function createZombieBehavior(lobbyEntityId: number): AIBehavior { +export const createZombieBehavior = (lobbyEntityId: number): AIBehavior => { return (registry: Registry, ctx: Context, entityId: number) => { const zombieEntity = registry.entityFromIndex(entityId); - const position = registry.getEntityComponent(zombieEntity, Position); - const velocity = registry.getEntityComponent(zombieEntity, Velocity); + const position = registry.getEntityComponent(zombieEntity, Position2D); + const velocity = registry.getEntityComponent(zombieEntity, Velocity2D); const hitbox = registry.getEntityComponent(zombieEntity, Hitbox); const zombie = registry.getEntityComponent(zombieEntity, Zombie); if (!position || !velocity || !hitbox || !zombie) return; // A dying zombie is inert until it's actually removed. if (zombie.dying) return; - - const network = ctx.libs.getNetwork(); const delta = ctx.app.delta / 1000; const attackable = gatherAttackable(registry, lobbyEntityId, position, hitbox); @@ -74,7 +71,7 @@ export function createZombieBehavior(lobbyEntityId: number): AIBehavior { if (zombie.animationState !== "attack") { zombie.animationState = "attack"; - broadcastZombieState(network, entityId, "attack", position, velocity); + broadcastZombieState(ctx, entityId, "attack", position, velocity); } zombie.attackElapsed += delta; @@ -85,7 +82,7 @@ export function createZombieBehavior(lobbyEntityId: number): AIBehavior { if (!zombie.hasDealtDamageThisCycle && target.health.current > 0) { target.health.current = Math.max(0, target.health.current - ZOMBIE_ATTACK_DAMAGE); zombie.hasDealtDamageThisCycle = true; - sendToInGamePlayers(network, { + broadcast(ctx, { type: "hit", id: target.entityId, damage: ZOMBIE_ATTACK_DAMAGE, @@ -125,25 +122,25 @@ export function createZombieBehavior(lobbyEntityId: number): AIBehavior { zombie.lastMoveTargetId = target.entityId; zombie.animationState = "idle"; if (needsBroadcast) { - broadcastZombieState(network, entityId, "idle", position, velocity); + broadcastZombieState(ctx, entityId, "idle", position, velocity); } }; -} +}; // Every living/standing entity a zombie could target: the lobby, every logged-in player, and // every building, each with its edge-distance to the zombie's own hitbox precomputed. A building // in a zombie's path gets engaged via this attack-range check alone, well before the zombie's // box would physically overlap it - there's no separate "can't cross a building" physics system. -function gatherAttackable( +const gatherAttackable = ( registry: Registry, lobbyEntityId: number, - zombiePosition: Position, + zombiePosition: Position2D, zombieHitbox: Hitbox, -): Attackable[] { +): Attackable[] => { const result: Attackable[] = []; const lobbyEntity = registry.entityFromIndex(lobbyEntityId); - const lobbyPosition = registry.getEntityComponent(lobbyEntity, Position); + const lobbyPosition = registry.getEntityComponent(lobbyEntity, Position2D); const lobbyHitbox = registry.getEntityComponent(lobbyEntity, Hitbox); const lobbyHealth = registry.getEntityComponent(lobbyEntity, Health); if (lobbyPosition && lobbyHitbox && lobbyHealth && lobbyHealth.current > 0) { @@ -157,64 +154,64 @@ function gatherAttackable( }); } - const players: { id: number; Position: Position; Hitbox: Hitbox; Health: Health }[] = - registry.getIndexedZipper([Position, Hitbox, Health, Login]); + const players: { id: number; Position2D: Position2D; Hitbox: Hitbox; Health: Health }[] = + registry.getIndexedZipper([Position2D, Hitbox, Health, Login]); for (const player of players) { if (player.Health.current <= 0) continue; result.push({ entityId: player.id, alwaysReachable: false, - position: player.Position, + position: player.Position2D, hitbox: player.Hitbox, health: player.Health, distance: distanceBetweenHitboxes( zombiePosition, zombieHitbox, - player.Position, + player.Position2D, player.Hitbox, ), }); } - const buildings: { id: number; Position: Position; Hitbox: Hitbox; Health: Health }[] = - registry.getIndexedZipper([Position, Hitbox, Health, Building]); + const buildings: { id: number; Position2D: Position2D; Hitbox: Hitbox; Health: Health }[] = + registry.getIndexedZipper([Position2D, Hitbox, Health, Building]); for (const building of buildings) { if (building.Health.current <= 0) continue; result.push({ entityId: building.id, alwaysReachable: false, - position: building.Position, + position: building.Position2D, hitbox: building.Hitbox, health: building.Health, distance: distanceBetweenHitboxes( zombiePosition, zombieHitbox, - building.Position, + building.Position2D, building.Hitbox, ), }); } return result; -} +}; -function nearest(entities: Attackable[]): Attackable { +const nearest = (entities: Attackable[]): Attackable => { return entities.reduce((closest, entity) => entity.distance < closest.distance ? entity : closest, ); -} +}; // Minimum edge-to-edge distance between two axis-aligned boxes (0 when they overlap). A zero-size // box reduces this to plain point-to-box distance. Reused by revive.system.ts and others for the // same range checks. -export function distanceBetweenHitboxes( - aPosition: Position, +export const distanceBetweenHitboxes = ( + aPosition: Position2D, aHitbox: Hitbox, - bPosition: Position, + bPosition: Position2D, bHitbox: Hitbox, -): number { +): number => { const aLeft = aPosition.x + aHitbox.offsetX; const aTop = aPosition.y + aHitbox.offsetY; const aRight = aLeft + aHitbox.width; @@ -228,20 +225,20 @@ export function distanceBetweenHitboxes( const dx = Math.max(bLeft - aRight, aLeft - bRight, 0); const dy = Math.max(bTop - aBottom, aTop - bBottom, 0); return Math.hypot(dx, dy); -} +}; -function broadcastZombieState( - network: NetworkServerLibrary, +const broadcastZombieState = ( + ctx: Context, id: number, state: "idle" | "attack", - position: Position, - velocity: Velocity, -) { - sendToInGamePlayers(network, { + position: Position2D, + velocity: Velocity2D, +) => { + broadcast(ctx, { type: "zombieState", id, state, position: { x: position.x, y: position.y }, velocity: { x: velocity.x, y: velocity.y }, }); -} +}; diff --git a/games/raid-survival/apps/server/src/zombie-waves.ts b/games/raid-survival/apps/server/src/zombie-waves.ts new file mode 100644 index 0000000..42cac89 --- /dev/null +++ b/games/raid-survival/apps/server/src/zombie-waves.ts @@ -0,0 +1,12 @@ +/** + * The waves of a game, in order: each entry is one wave, each number the zombies of one of its + * sub-waves, spawned 3 seconds apart. + */ +export const ZOMBIE_WAVES: number[][] = [ + [1, 1, 1, 2, 1], + [2, 2, 2, 6, 2, 2, 2, 6], + [3, 3, 3, 6, 3, 3, 3, 6], + [4, 4, 4, 4, 4, 4, 4, 4], + [5, 5, 10, 5], + [50], +]; diff --git a/raid-survival/server/components/building.component.ts b/raid-survival/server/components/building.component.ts deleted file mode 100644 index 4afb8b6..0000000 --- a/raid-survival/server/components/building.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { type BuildingType } from "../building-catalog"; - -// Marker + catalog key; physics/combat/health live on CollisionBox/Hitbox/Health instead. -export class Building { - name = this.constructor.name; - - constructor(public buildingType: BuildingType) {} -} - -// * Required to generate code -export default Building.name; diff --git a/raid-survival/server/components/bullet.component.ts b/raid-survival/server/components/bullet.component.ts deleted file mode 100644 index 3fe03b0..0000000 --- a/raid-survival/server/components/bullet.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Damage is snapshotted at fire time so switching weapons mid-flight can't alter an already-fired -// bullet. Collision/lifetime is owned by bullet.system.ts; movement by move.system.ts generically. -export class Bullet { - name = this.constructor.name; - - constructor(public damage: number) {} -} - -// * Required to generate code -export default Bullet.name; diff --git a/raid-survival/server/components/collision-box.component.ts b/raid-survival/server/components/collision-box.component.ts deleted file mode 100644 index fa4ea43..0000000 --- a/raid-survival/server/components/collision-box.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class CollisionBox { - name = this.constructor.name; - - constructor( - public width: number, - public height: number, - ) {} -} - -// * Required to generate code -export default CollisionBox.name; diff --git a/raid-survival/server/components/direction.component.ts b/raid-survival/server/components/direction.component.ts deleted file mode 100644 index 2c14047..0000000 --- a/raid-survival/server/components/direction.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class Direction { - name = this.constructor.name; - - constructor( - public x: number, - public y: number, - ) {} -} - -// * Required to generate code -export default Direction.name; diff --git a/raid-survival/server/components/health.component.ts b/raid-survival/server/components/health.component.ts deleted file mode 100644 index fd2451d..0000000 --- a/raid-survival/server/components/health.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class Health { - name = this.constructor.name; - - constructor( - public current: number, - public max: number, - ) {} -} - -// * Required to generate code -export default Health.name; diff --git a/raid-survival/server/components/hitbox.component.ts b/raid-survival/server/components/hitbox.component.ts deleted file mode 100644 index 9c1a0cc..0000000 --- a/raid-survival/server/components/hitbox.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Combat range, distinct from CollisionBox (physical blocking). offsetX/offsetY are relative to -// Position's top-left origin. -export class Hitbox { - name = this.constructor.name; - - constructor( - public width: number, - public height: number, - public offsetX: number = 0, - public offsetY: number = 0, - ) {} -} - -// * Required to generate code -export default Hitbox.name; diff --git a/raid-survival/server/components/ia.component.ts b/raid-survival/server/components/ia.component.ts deleted file mode 100644 index df64ba7..0000000 --- a/raid-survival/server/components/ia.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; - -// Invoked every tick by ai.system.ts for the owning entity; reads/writes that entity's own -// components directly. -export type AIBehavior = (registry: Registry, ctx: Context, entityId: number) => void; - -export class IAComponent { - name = this.constructor.name; - - constructor(public behavior: AIBehavior) {} -} - -// * Required to generate code -export default IAComponent.name; diff --git a/raid-survival/server/components/lobby.component.ts b/raid-survival/server/components/lobby.component.ts deleted file mode 100644 index 87cc323..0000000 --- a/raid-survival/server/components/lobby.component.ts +++ /dev/null @@ -1,6 +0,0 @@ -export class Lobby { - name = this.constructor.name; -} - -// * Required to generate code -export default Lobby.name; diff --git a/raid-survival/server/components/login.component.ts b/raid-survival/server/components/login.component.ts deleted file mode 100644 index 55e9309..0000000 --- a/raid-survival/server/components/login.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -export class Login { - name = this.constructor.name; - - constructor(public id: string) {} -} - -// * Required to generate code -export default Login.name; diff --git a/raid-survival/server/components/loot-box.component.ts b/raid-survival/server/components/loot-box.component.ts deleted file mode 100644 index e59700a..0000000 --- a/raid-survival/server/components/loot-box.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type LootType = "heal" | "gold" | "ammo"; - -// Marker + effect granted on pickup; spawned by zombie-death.system.ts, applied by -// loot-box-pickup.system.ts. -export class LootBox { - name = this.constructor.name; - - constructor(public lootType: LootType) {} -} - -// * Required to generate code -export default LootBox.name; diff --git a/raid-survival/server/components/map-collisions.component.ts b/raid-survival/server/components/map-collisions.component.ts deleted file mode 100644 index 17b3df7..0000000 --- a/raid-survival/server/components/map-collisions.component.ts +++ /dev/null @@ -1,26 +0,0 @@ -export interface TreeLocation { - x: number; - y: number; -} - -export class MapCollisions { - name = this.constructor.name; - - private readonly treeCells: Set; - - constructor( - public tileSize: number, - public cols: number, - public rows: number, - public treeLocations: TreeLocation[], - ) { - this.treeCells = new Set(treeLocations.map(({ x, y }) => `${x},${y}`)); - } - - isTreeCell(cellX: number, cellY: number): boolean { - return this.treeCells.has(`${cellX},${cellY}`); - } -} - -// * Required to generate code -export default MapCollisions.name; diff --git a/raid-survival/server/components/money.component.ts b/raid-survival/server/components/money.component.ts deleted file mode 100644 index c2985d8..0000000 --- a/raid-survival/server/components/money.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Singleton shared money pool (spawned in start-game-packet.handler.ts) - not per-player. -export class Money { - name = this.constructor.name; - - constructor(public amount: number) {} -} - -// * Required to generate code -export default Money.name; diff --git a/raid-survival/server/components/move-input.component.ts b/raid-survival/server/components/move-input.component.ts deleted file mode 100644 index 9201710..0000000 --- a/raid-survival/server/components/move-input.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Held-key intent, kept separate from Velocity: move-input.system.ts recomputes Velocity from -// this every tick, so a wall-collision-zeroed axis (collision-resolve.ts) isn't stuck once -// unblocked. -export class MoveInput { - name = this.constructor.name; - - up: boolean = false; - down: boolean = false; - left: boolean = false; - right: boolean = false; - - // Last velocity broadcast (move-sync.system.ts) - used to detect a blocked axis becoming free - // again. - lastBroadcastVelocity: { x: number; y: number } = { x: 0, y: 0 }; -} - -// * Required to generate code -export default MoveInput.name; diff --git a/raid-survival/server/components/player-class.component.ts b/raid-survival/server/components/player-class.component.ts deleted file mode 100644 index 957119b..0000000 --- a/raid-survival/server/components/player-class.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { type PlayerClass as PlayerClassType } from "../player-class-catalog"; - -// Derived once at spawn from the chosen skin (classForSkin) and never changes. Read by -// move-input/revive/loot-box-pickup systems. -export class PlayerClass { - name = this.constructor.name; - - constructor(public playerClass: PlayerClassType) {} -} - -// * Required to generate code -export default PlayerClass.name; diff --git a/raid-survival/server/components/position.component.ts b/raid-survival/server/components/position.component.ts deleted file mode 100644 index 23a606a..0000000 --- a/raid-survival/server/components/position.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class Position { - name = this.constructor.name; - - constructor( - public x: number, - public y: number, - ) {} -} - -// * Required to generate code -export default Position.name; diff --git a/raid-survival/server/components/shoot-input.component.ts b/raid-survival/server/components/shoot-input.component.ts deleted file mode 100644 index 79d4106..0000000 --- a/raid-survival/server/components/shoot-input.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Held-input state; weapon.system.ts recomputes firing/reloading from this every tick, not from -// packet frequency. -export class ShootInput { - name = this.constructor.name; - - shooting: boolean = false; // left-click - the single equipped weapon - // One-shot; consumed by weapon.system.ts next tick regardless of whether a reload started. - reloadRequested: boolean = false; - // World-space mouse position; weapon.system.ts computes aim fresh from this at fire time rather - // than the (visual-only) Direction component. Null until the first input packet arrives. - mousePosition: { x: number; y: number } | null = null; -} - -// * Required to generate code -export default ShootInput.name; diff --git a/raid-survival/server/components/tower.component.ts b/raid-survival/server/components/tower.component.ts deleted file mode 100644 index e7bdb35..0000000 --- a/raid-survival/server/components/tower.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Tower-specific state (level, fire cooldown) on top of the generic Position/Hitbox/Health. -// Level rises via building-interact.system.ts's E-press upgrade, up to TOWER_MAX_LEVEL; -// tower.system.ts derives fire rate/damage from `level` fresh every tick. -export class Tower { - name = this.constructor.name; - - level: number = 1; - // Counts down every tick, same idea as a weapon's cooldownRemaining. - cooldownRemaining: number = 0; -} - -// * Required to generate code -export default Tower.name; diff --git a/raid-survival/server/components/velocity.component.ts b/raid-survival/server/components/velocity.component.ts deleted file mode 100644 index d9afbfb..0000000 --- a/raid-survival/server/components/velocity.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -export class Velocity { - name = this.constructor.name; - - constructor( - public x: number, - public y: number, - ) {} -} - -// * Required to generate code -export default Velocity.name; diff --git a/raid-survival/server/components/weapon.component.ts b/raid-survival/server/components/weapon.component.ts deleted file mode 100644 index 9dc11b4..0000000 --- a/raid-survival/server/components/weapon.component.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { type WeaponType } from "../weapon-catalog"; - -export type WeaponState = "idle" | "reloading"; - -export class Weapon { - name = this.constructor.name; - - constructor( - public weaponType: WeaponType, - public magazineAmmo: number, - // -1 = infinite (never runs out, reload always succeeds regardless of this value). - public reserveAmmo: number, - ) {} - - state: WeaponState = "idle"; - // Seconds left before a reload in progress finishes (weapon.system.ts). - reloadRemaining: number = 0; - // Seconds left before the next shot is allowed (1 / fireRatePerSecond after each shot). - cooldownRemaining: number = 0; -} - -// * Required to generate code -export default Weapon.name; diff --git a/raid-survival/server/main.ts b/raid-survival/server/main.ts deleted file mode 100644 index 0f391cd..0000000 --- a/raid-survival/server/main.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { type IRunOptions } from "@nanoforge-dev/common"; -import { NanoforgeFactory } from "@nanoforge-dev/core"; - -import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager"; -import { ECSServerLibrary } from "@nanoforge-dev/ecs-server"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { moveInputSystem } from "./systems/move-input.system"; -import { moveSystem } from "./systems/move.system"; -import { mapCollisionSystem } from "./systems/map-collision.system"; -import { obstacleCollisionSystem } from "./systems/obstacle-collision.system"; -import { moveSyncSystem } from "./systems/move-sync.system"; -import { weaponSystem } from "./systems/weapon.system"; -import { towerSystem } from "./systems/tower.system"; -import { buildingInteractSystem } from "./systems/building-interact.system"; -import { bulletSystem } from "./systems/bullet.system"; -import { aiSystem } from "./systems/ai.system"; -import { zombieWaveSystem } from "./systems/zombie-wave.system"; -import { zombieDeathSystem } from "./systems/zombie-death.system"; -import { lootBoxPickupSystem } from "./systems/loot-box-pickup.system"; -import { buildingDeathSystem } from "./systems/building-death.system"; -import { reviveSystem } from "./systems/revive.system"; -import { gameOverSystem } from "./systems/game-over.system"; -import { packetHandler } from "./systems/packet-handler.system"; - -// The engine's system runner has no error isolation between systems - wrapping each one here -// means a throwing system only breaks itself, not every system registered after it. -function safeSystem unknown>(system: Fn): Fn { - return ((...args: never[]) => { - try { - system(...args); - } catch (err) { - console.error(`[system:${system.name}]`, err); - } - }) as Fn; -} - -export const PLAYER_SPEED = 100; - -export enum GameStatusEnum { - Lobby, - InGame, - EndScreen, -} - -export const gameStatus = { status: GameStatusEnum.Lobby }; - -export const clients: { - clientId: number; - entityId: number; - username: string; - connected: boolean; - skin: number; -}[] = []; - -export async function main(options: IRunOptions) { - const app = NanoforgeFactory.createServer(); - - const assetManagerLibrary = new AssetManagerLibrary(); - const ecsLibrary = new ECSServerLibrary(); - const networkLibrary = new NetworkServerLibrary(); - - app.useAssetManager(assetManagerLibrary); - app.useComponentSystem(ecsLibrary); - app.useNetwork(networkLibrary); - - await app.init(options); - - const registry = ecsLibrary.registry; - - registry.addSystem(safeSystem(packetHandler)); - registry.addSystem(safeSystem(moveInputSystem)); - registry.addSystem(safeSystem(weaponSystem)); - // Fires its own bullets like weaponSystem, so it runs alongside it, before bulletSystem - // resolves this tick's spawns. - registry.addSystem(safeSystem(towerSystem)); - registry.addSystem(safeSystem(moveSystem)); - registry.addSystem(safeSystem(mapCollisionSystem)); - registry.addSystem(safeSystem(obstacleCollisionSystem)); - registry.addSystem(safeSystem(moveSyncSystem)); - registry.addSystem(safeSystem(bulletSystem)); - registry.addSystem(safeSystem(aiSystem)); - registry.addSystem(safeSystem(zombieWaveSystem)); - registry.addSystem(safeSystem(zombieDeathSystem)); - // After zombieDeathSystem so a box dropped this tick can be picked up the same tick. - registry.addSystem(safeSystem(lootBoxPickupSystem)); - registry.addSystem(safeSystem(buildingDeathSystem)); - // Before gameOverSystem so a revive completed this tick is reflected before the - // allPlayersDead check. - registry.addSystem(safeSystem(reviveSystem)); - // After reviveSystem so an active revive channel wins the same tick's E press over an interact. - registry.addSystem(safeSystem(buildingInteractSystem)); - registry.addSystem(safeSystem(gameOverSystem)); - - await app.run(); -} diff --git a/raid-survival/server/network-utils.ts b/raid-survival/server/network-utils.ts deleted file mode 100644 index 73bd402..0000000 --- a/raid-survival/server/network-utils.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { clients } from "./main"; - -export function sendToInGamePlayers(network: NetworkServerLibrary, packet: unknown) { - // Skip disconnected clients (they stay in `clients` until game-over, not removed on disconnect) - // - sendToClient on a dead id just logs and returns, but at bullet-broadcast frequency that log - // volume alone is enough to stall the tick loop. - clients.forEach(({ clientId, connected }) => { - if (clientId !== -1 && connected) { - network.tcp.sendToClient(clientId, new TextEncoder().encode(JSON.stringify(packet))); - } - }); -} diff --git a/raid-survival/server/static/zombie-waves.txt b/raid-survival/server/static/zombie-waves.txt deleted file mode 100644 index 7511ccb..0000000 --- a/raid-survival/server/static/zombie-waves.txt +++ /dev/null @@ -1,6 +0,0 @@ -1 1 1 2 1 -2 2 2 6 2 2 2 6 -3 3 3 6 3 3 3 6 -4 4 4 4 4 4 4 4 -5 5 10 5 -50 diff --git a/raid-survival/server/systems/ai.system.ts b/raid-survival/server/systems/ai.system.ts deleted file mode 100644 index 6926065..0000000 --- a/raid-survival/server/systems/ai.system.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; - -import { IAComponent } from "../components/ia.component"; - -// Generic dispatcher: calls each entity's own behavior lambda (see zombie-ai.ts). -export function aiSystem(registry: Registry, ctx: Context) { - const entities: { id: number; IAComponent: IAComponent }[] = registry.getIndexedZipper([IAComponent]); - - for (const entity of entities) { - entity.IAComponent.behavior(registry, ctx, entity.id); - } -} - -// * Required to generate code -export default aiSystem.name; diff --git a/raid-survival/server/systems/building-death.system.ts b/raid-survival/server/systems/building-death.system.ts deleted file mode 100644 index 0b3ec0d..0000000 --- a/raid-survival/server/systems/building-death.system.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { type Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; - -import { Building } from "../components/building.component"; -import { Health } from "../components/health.component"; -import { sendToInGamePlayers } from "../network-utils"; - -// Removes a building once its HP hits 0, freeing its tile for build-packet.handler.ts's -// occupancy check and for zombies to walk through. -export function buildingDeathSystem(registry: Registry, ctx: Context) { - const buildings: { id: number; Health: Health }[] = registry.getIndexedZipper([Building, Health]); - const dead = buildings.filter((b) => b.Health.current <= 0); - if (dead.length === 0) return; - - const network = ctx.libs.getNetwork(); - for (const building of dead) { - sendToInGamePlayers(network, { type: "kill", id: building.id }); - registry.killEntity(registry.entityFromIndex(building.id)); - } -} - -// * Required to generate code -export default buildingDeathSystem.name; diff --git a/raid-survival/server/systems/move-sync.system.ts b/raid-survival/server/systems/move-sync.system.ts deleted file mode 100644 index ebe236f..0000000 --- a/raid-survival/server/systems/move-sync.system.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; - -import { MoveInput } from "../components/move-input.component"; -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; -import { sendToInGamePlayers } from "../network-utils"; - -// collision-resolve.ts broadcasts the moment an axis becomes newly blocked, but not the reverse: -// an axis that's free again after being blocked. This catches that (and any other drift) by -// comparing against what was last actually sent to clients. -export function moveSyncSystem(registry: Registry, ctx: Context) { - const entities: { id: number; MoveInput: MoveInput; Position: Position; Velocity: Velocity }[] = - registry.getIndexedZipper([MoveInput, Position, Velocity]); - if (entities.length === 0) return; - - const network = ctx.libs.getNetwork(); - - for (const { id, MoveInput: input, Position: position, Velocity: velocity } of entities) { - if (velocity.x === input.lastBroadcastVelocity.x && velocity.y === input.lastBroadcastVelocity.y) continue; - - input.lastBroadcastVelocity = { x: velocity.x, y: velocity.y }; - sendToInGamePlayers(network, { - type: "move", - id, - velocity: { x: velocity.x, y: velocity.y }, - position: { x: position.x, y: position.y }, - }); - } -} - -// * Required to generate code -export default moveSyncSystem.name; diff --git a/raid-survival/server/systems/move.system.ts b/raid-survival/server/systems/move.system.ts deleted file mode 100644 index 536d1be..0000000 --- a/raid-survival/server/systems/move.system.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; - -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; - -export function moveSystem(registry: Registry, ctx: Context) { - const entities = registry.getZipper([Position, Velocity]); - - entities.forEach(({ Position, Velocity }) => { - Position.x += (Velocity.x * ctx.app.delta) / 1000; - Position.y += (Velocity.y * ctx.app.delta) / 1000; - }); -} -// * Required to generate code -export default moveSystem.name; diff --git a/raid-survival/server/systems/obstacle-collision.system.ts b/raid-survival/server/systems/obstacle-collision.system.ts deleted file mode 100644 index cd0044a..0000000 --- a/raid-survival/server/systems/obstacle-collision.system.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; - -import { Position } from "../components/position.component"; -import { Velocity } from "../components/velocity.component"; -import { CollisionBox } from "../components/collision-box.component"; -import { resolveCollision } from "./collision-resolve"; - -function overlapsBox( - x1: number, - y1: number, - box1: CollisionBox, - x2: number, - y2: number, - box2: CollisionBox, -): boolean { - return x1 < x2 + box2.width && x1 + box1.width > x2 && y1 < y2 + box2.height && y1 + box1.height > y2; -} - -export function obstacleCollisionSystem(registry: Registry, ctx: Context) { - const boxed = registry.getIndexedZipper([Position, CollisionBox]); - const obstacles = boxed.filter( - ({ id }) => !registry.getEntityComponent(registry.entityFromIndex(id), Velocity), - ); - if (obstacles.length === 0) return; - - const delta = ctx.app.delta / 1000; - const movers = registry.getIndexedZipper([Position, Velocity, CollisionBox]); - - for (const { - id: entityId, - Position: position, - Velocity: velocity, - CollisionBox: box, - } of movers) { - for (const obstacle of obstacles) { - if ( - !overlapsBox(position.x, position.y, box, obstacle.Position.x, obstacle.Position.y, obstacle.CollisionBox) - ) - continue; - - resolveCollision(ctx, entityId, position, velocity, delta, (x, y) => - overlapsBox(x, y, box, obstacle.Position.x, obstacle.Position.y, obstacle.CollisionBox), - ); - break; - } - } -} - -// * Required to generate code -export default obstacleCollisionSystem.name; diff --git a/raid-survival/server/systems/packet-handler.system.ts b/raid-survival/server/systems/packet-handler.system.ts deleted file mode 100644 index 09a3261..0000000 --- a/raid-survival/server/systems/packet-handler.system.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { Context } from "@nanoforge-dev/common"; -import { inputPacketHandler } from "./packet-handlers/input-packet.handler"; -import { clients } from "../main"; -import { joinLobbyPacketHandler } from "./packet-handlers/join-lobby-packet.handler"; -import { startGamePacketHandler } from "./packet-handlers/start-game-packet.handler"; -import { buildPacketHandler } from "./packet-handlers/build-packet.handler"; -import { buyWeaponPacketHandler } from "./packet-handlers/buy-weapon-packet.handler"; -import { buyAmmoPacketHandler } from "./packet-handlers/buy-ammo-packet.handler"; -import { equipWeaponPacketHandler } from "./packet-handlers/equip-weapon-packet.handler"; -import { destroyBuildingPacketHandler } from "./packet-handlers/destroy-building-packet.handler"; - -export type PacketHandler = ( - client: number, - packet: unknown, - registry: Registry, - ctx: Context, -) => unknown; - -export const packetHandlers: Map = new Map([ - ["input", inputPacketHandler], - ["joinLobby", joinLobbyPacketHandler], - ["startGame", startGamePacketHandler], - ["build", buildPacketHandler], - ["buyWeapon", buyWeaponPacketHandler], - ["buyAmmo", buyAmmoPacketHandler], - ["equipWeapon", equipWeaponPacketHandler], - ["destroyBuilding", destroyBuildingPacketHandler], -]); - -export function packetHandler(registry: Registry, ctx: Context) { - const network = ctx.libs.getNetwork(); - const connectedClients = network.tcp.getConnectedClients(); - clients.forEach((client) => { - if (connectedClients.findIndex((id) => id === client.clientId) === -1) { - client.connected = false; - } - }); - network.tcp.getReceivedPackets().forEach((packets, client) => { - const jsonPackets = packets.map((packet: AllowSharedBufferSource | undefined) => { - return JSON.parse(new TextDecoder().decode(packet)); - }); - if (!jsonPackets || jsonPackets.length === 0) return; - jsonPackets.forEach((packet) => { - packetHandlers.get(packet.type)?.(client, packet, registry, ctx); - }); - }); -} diff --git a/raid-survival/server/systems/packet-handlers/buy-ammo-packet.handler.ts b/raid-survival/server/systems/packet-handlers/buy-ammo-packet.handler.ts deleted file mode 100644 index 85a40c0..0000000 --- a/raid-survival/server/systems/packet-handlers/buy-ammo-packet.handler.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; - -import { clients, gameStatus, GameStatusEnum } from "../../main"; -import { sendToInGamePlayers } from "../../network-utils"; -import { Money } from "../../components/money.component"; -import { WeaponInventory } from "../../components/weapon-inventory.component"; -import { WEAPON_CATALOG, isWeaponType } from "../../weapon-catalog"; - -function reject(network: NetworkServerLibrary, clientId: number, reason: string): void { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "buyAmmo", result: "rejected", reason })), - ); -} - -// Buys a reserve-ammo refill for an already-owned weapon - the server decides buyAmmo vs -// buyWeapon based on ownership. -export function buyAmmoPacketHandler( - clientId: number, - packet: any, - registry: Registry, - ctx: Context, -): void { - const network = ctx.libs.getNetwork(); - - if (gameStatus.status !== GameStatusEnum.InGame) return; - - const weaponType = packet.weaponType; - if (!isWeaponType(weaponType)) return reject(network, clientId, "unknown weapon type"); - - const client = clients.find((c) => c.clientId === clientId); - if (!client) return; - - const inventory: WeaponInventory | undefined = registry.getEntityComponent( - registry.entityFromIndex(client.entityId), - WeaponInventory, - ); - if (!inventory) return; - - const owned = inventory.owned.find((w) => w.weaponType === weaponType); - if (!owned) return reject(network, clientId, "not owned"); - - const catalog = WEAPON_CATALOG[weaponType]; - if (catalog.alwaysOwned || catalog.infiniteReserve) - return reject(network, clientId, "no ammo to buy"); - if (owned.reserveAmmo >= catalog.maxReserve) return reject(network, clientId, "ammo full"); - - const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); - const money = moneyEntities[0]?.Money; - if (!money) return; - - if (money.amount < catalog.ammoRefillCost) return reject(network, clientId, "not enough money"); - - money.amount -= catalog.ammoRefillCost; - owned.reserveAmmo = Math.min(owned.reserveAmmo + catalog.ammoRefillAmount, catalog.maxReserve); - - sendToInGamePlayers(network, { - type: "weaponInventory", - id: client.entityId, - weaponType: inventory.equippedWeaponType, - weapons: inventory.owned.map((w) => ({ weaponType: w.weaponType, reserveAmmo: w.reserveAmmo })), - }); - sendToInGamePlayers(network, { type: "money", amount: money.amount }); - - // The ammo HUD is driven only by "ammo" packets, not weaponInventory - send one too, but only - // when the refilled weapon is the one currently equipped. - if (inventory.equippedWeaponType === weaponType && inventory.state) { - sendToInGamePlayers(network, { - type: "ammo", - id: client.entityId, - weaponType, - magazineAmmo: inventory.state.magazineAmmo, - reserveAmmo: owned.reserveAmmo, - }); - } -} diff --git a/raid-survival/server/systems/packet-handlers/buy-weapon-packet.handler.ts b/raid-survival/server/systems/packet-handlers/buy-weapon-packet.handler.ts deleted file mode 100644 index 91d2410..0000000 --- a/raid-survival/server/systems/packet-handlers/buy-weapon-packet.handler.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; - -import { clients, gameStatus, GameStatusEnum } from "../../main"; -import { sendToInGamePlayers } from "../../network-utils"; -import { Money } from "../../components/money.component"; -import { WeaponInventory } from "../../components/weapon-inventory.component"; -import { WEAPON_CATALOG, isWeaponType } from "../../weapon-catalog"; - -function reject(network: NetworkServerLibrary, clientId: number, reason: string): void { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "buyWeapon", result: "rejected", reason })), - ); -} - -// Buys an unowned weapon. -export function buyWeaponPacketHandler( - clientId: number, - packet: any, - registry: Registry, - ctx: Context, -): void { - const network = ctx.libs.getNetwork(); - - if (gameStatus.status !== GameStatusEnum.InGame) return; - - const weaponType = packet.weaponType; - if (!isWeaponType(weaponType)) return reject(network, clientId, "unknown weapon type"); - - const client = clients.find((c) => c.clientId === clientId); - if (!client) return; - - const inventory: WeaponInventory | undefined = registry.getEntityComponent( - registry.entityFromIndex(client.entityId), - WeaponInventory, - ); - if (!inventory) return; - - const catalog = WEAPON_CATALOG[weaponType]; - if (catalog.alwaysOwned) return reject(network, clientId, "not purchasable"); - if (inventory.owned.some((w) => w.weaponType === weaponType)) - return reject(network, clientId, "already owned"); - - const moneyEntities: { Money: Money }[] = registry.getZipper([Money]); - const money = moneyEntities[0]?.Money; - if (!money) return; - - if (money.amount < catalog.cost) return reject(network, clientId, "not enough money"); - - money.amount -= catalog.cost; - // Ownership alone doesn't equip it - equipWeaponPacketHandler pulls a magazine out of reserve - // when it's actually equipped, so reserve is seeded with a full magazine on top of the starting - // amount. infiniteReserve weapons keep the catalog's -1 sentinel instead. - const startingReserve = catalog.infiniteReserve - ? catalog.startingReserve - : catalog.startingReserve + catalog.magazineSize; - inventory.owned.push({ weaponType, reserveAmmo: startingReserve }); - - sendToInGamePlayers(network, { - type: "weaponInventory", - id: client.entityId, - weaponType: inventory.equippedWeaponType, - weapons: inventory.owned.map((w) => ({ weaponType: w.weaponType, reserveAmmo: w.reserveAmmo })), - }); - sendToInGamePlayers(network, { type: "money", amount: money.amount }); -} diff --git a/raid-survival/server/systems/packet-handlers/join-lobby-packet.handler.ts b/raid-survival/server/systems/packet-handlers/join-lobby-packet.handler.ts deleted file mode 100644 index 6ed8d1f..0000000 --- a/raid-survival/server/systems/packet-handlers/join-lobby-packet.handler.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { clients, gameStatus, GameStatusEnum } from "../../main"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { sendToInGamePlayers } from "../../network-utils"; - -export function joinLobbyPacketHandler( - clientId: number, - packet: any, - _registry: Registry, - ctx: Context, -): void { - const network = ctx.libs.getNetwork(); - - const skin = Number.isInteger(packet.skin) && packet.skin >= 1 && packet.skin <= 3 ? packet.skin : 1; - - function sendJoinLobbyInfo() { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode( - JSON.stringify({ - type: "joinLobby", - result: "success", - players: clients.map((client) => { - return { - id: client.entityId, - username: client.username, - skin: client.skin, - }; - }), - }), - ), - ); - - sendToInGamePlayers(network, { - type: "lobbyInfo", - players: clients.map((client) => ({ - id: client.entityId, - username: client.username, - skin: client.skin, - })), - }); - } - - // A game in progress never accepts joins - there's no way to hand a joiner a character until - // the next startGame call. - if (gameStatus.status === GameStatusEnum.InGame) { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "joinLobby", result: "in game" })), - ); - return; - } - - let client = clients.find((c) => c.username === packet.username); - - // A username match only means "reconnect" when that entry's original connection is actually - // gone - checked against the live connected-client list, not the `client.connected` flag - // (which lags a tick behind and would otherwise reject a fast rejoin under your own name). A - // genuine second, still-open connection with the same name is still rejected: reusing that - // entry would silently orphan the first connection and hand the second one none of the first - // player's in-progress game state. - const connectedClientIds = network.tcp.getConnectedClients(); - if (client && client.clientId !== clientId && connectedClientIds.includes(client.clientId)) { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "joinLobby", result: "username taken" })), - ); - return; - } - - if (!client && clients.length >= 4) { - network.tcp.sendToClient( - clientId, - new TextEncoder().encode(JSON.stringify({ type: "joinLobby", result: "full" })), - ); - return; - } - - if (client) { - client.clientId = clientId; - client.connected = true; - client.skin = skin; - // A returning client needs a fresh entity - whatever it held before may no longer exist. - client.entityId = _registry.spawnEntity().getId(); - } else { - client = { - username: packet.username, - clientId, - entityId: _registry.spawnEntity().getId(), - connected: true, - skin, - }; - clients.push(client); - } - - sendJoinLobbyInfo(); -} diff --git a/raid-survival/server/systems/packet-handlers/start-game-packet.handler.ts b/raid-survival/server/systems/packet-handlers/start-game-packet.handler.ts deleted file mode 100644 index 6f9639a..0000000 --- a/raid-survival/server/systems/packet-handlers/start-game-packet.handler.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { clients, gameStatus, GameStatusEnum } from "../../main"; -import { Context } from "@nanoforge-dev/common"; -import { NetworkServerLibrary } from "@nanoforge-dev/network-server"; -import { sendToInGamePlayers } from "../../network-utils"; -import { Position } from "../../components/position.component"; -import { Direction } from "../../components/direction.component"; -import { Velocity } from "../../components/velocity.component"; -import { Login } from "../../components/login.component"; -import { MapCollisions, TreeLocation } from "../../components/map-collisions.component"; -import { CollisionBox } from "../../components/collision-box.component"; -import { Hitbox } from "../../components/hitbox.component"; -import { Lobby } from "../../components/lobby.component"; -import { Health } from "../../components/health.component"; -import { Zombie } from "../../components/zombie.component"; -import { IAComponent } from "../../components/ia.component"; -import { WaveState } from "../../components/wave-state.component"; -import { Money } from "../../components/money.component"; -import { MoveInput } from "../../components/move-input.component"; -import { WeaponInventory, type OwnedWeapon } from "../../components/weapon-inventory.component"; -import { ShootInput } from "../../components/shoot-input.component"; -import { ReviveInput } from "../../components/revive-input.component"; -import { PlayerClass as PlayerClassComponent } from "../../components/player-class.component"; -import { classForSkin, PLAYER_CLASS_CATALOG } from "../../player-class-catalog"; -import { WEAPON_CATALOG } from "../../weapon-catalog"; -import { createZombieBehavior, ZOMBIE_MAX_HEALTH } from "../zombie-ai"; -import { Vector2d } from "@nanoforge-dev/graphics-2d"; -import mapCollisionData from "../../static/map-collision.json"; - -const MAX_PLAYERS = 4; - -const LOBBY_MAX_HEALTH = 500; -const STARTING_MONEY = 150; -const STARTING_WEAPON_TYPE = "smallGun"; - -const MAP_CENTER: Vector2d = { - x: (mapCollisionData.cols * mapCollisionData.tileSize) / 2, - y: (mapCollisionData.rows * mapCollisionData.tileSize) / 2, -}; - -const PLAYER_COLLISION_BOX: Vector2d = { x: 24, y: 24 }; -// Slightly smaller than the collision box and centered inside it - Hitbox (combat range) is a -// different concept from CollisionBox (physical blocking). -const PLAYER_HITBOX_SIZE: Vector2d = { x: 20, y: 20 }; -const PLAYER_HITBOX_OFFSET: Vector2d = { - x: (PLAYER_COLLISION_BOX.x - PLAYER_HITBOX_SIZE.x) / 2, - y: (PLAYER_COLLISION_BOX.y - PLAYER_HITBOX_SIZE.y) / 2, -}; - -const LOBBY_SPRITE_SIZE: Vector2d = { x: 187, y: 143 }; - -const tilesFor = (size: number) => - Math.ceil(size / mapCollisionData.tileSize) * mapCollisionData.tileSize; -const LOBBY_COLLISION_BOX: Vector2d = { - x: tilesFor(LOBBY_SPRITE_SIZE.x), - y: tilesFor(LOBBY_SPRITE_SIZE.y), -}; - -const LOBBY_POSITION: Vector2d = { - x: MAP_CENTER.x - LOBBY_COLLISION_BOX.x / 2, - y: MAP_CENTER.y - LOBBY_COLLISION_BOX.y / 2, -}; - -const PLAYER_SPAWN_CENTER_OFFSET = - LOBBY_COLLISION_BOX.x / 2 + PLAYER_COLLISION_BOX.x / 2 + mapCollisionData.tileSize; -const PLAYER_SPAWN_CENTERS: Vector2d[] = [ - { x: MAP_CENTER.x - PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y - PLAYER_SPAWN_CENTER_OFFSET }, - { x: MAP_CENTER.x + PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y - PLAYER_SPAWN_CENTER_OFFSET }, - { x: MAP_CENTER.x - PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y + PLAYER_SPAWN_CENTER_OFFSET }, - { x: MAP_CENTER.x + PLAYER_SPAWN_CENTER_OFFSET, y: MAP_CENTER.y + PLAYER_SPAWN_CENTER_OFFSET }, -]; -const PLAYERS_SPAWNERS: Vector2d[] = PLAYER_SPAWN_CENTERS.map((center) => ({ - x: center.x - PLAYER_COLLISION_BOX.x / 2, - y: center.y - PLAYER_COLLISION_BOX.y / 2, -})); - -const mapTreeLocations: TreeLocation[] = mapCollisionData.collision.flatMap((row, y) => - row.flatMap((blocked, x) => (blocked ? [{ x, y }] : [])), -); - -// Combat footprint used for zombie-vs-target range checks (zombie-ai.ts). -const ZOMBIE_HITBOX: Vector2d = { x: 24, y: 24 }; - -const ZOMBIE_COIN_VALUE = 10; - -// Spawns a single zombie from a random tree cell, hunting via its own IAComponent. How many to -// spawn and when is zombie-wave.system.ts's concern - this just spawns one. -export function spawnZombie( - registry: Registry, - network: NetworkServerLibrary, - lobbyEntityId: number, -): void { - const cell = mapTreeLocations[Math.floor(Math.random() * mapTreeLocations.length)]; - if (!cell) return; - - const position: Vector2d = { - x: cell.x * mapCollisionData.tileSize + mapCollisionData.tileSize / 2, - y: cell.y * mapCollisionData.tileSize + mapCollisionData.tileSize / 2, - }; - - const zombie = registry.spawnEntity(); - registry.addComponent(zombie, new Position(position.x, position.y)); - registry.addComponent(zombie, new Velocity(0, 0)); - registry.addComponent(zombie, new Direction(1, 0)); - registry.addComponent(zombie, new Health(ZOMBIE_MAX_HEALTH, ZOMBIE_MAX_HEALTH)); - registry.addComponent(zombie, new Hitbox(ZOMBIE_HITBOX.x, ZOMBIE_HITBOX.y)); - registry.addComponent(zombie, new Zombie(ZOMBIE_COIN_VALUE)); - registry.addComponent(zombie, new IAComponent(createZombieBehavior(lobbyEntityId))); - - sendToInGamePlayers(network, { - type: "spawn", - entityType: "zombie", - id: zombie.getId(), - position, - velocity: { x: 0, y: 0 }, - direction: { x: 1, y: 0 }, - health: { current: ZOMBIE_MAX_HEALTH, max: ZOMBIE_MAX_HEALTH }, - }); -} - -export function startGamePacketHandler( - _clientId: number, - _packet: any, - registry: Registry, - ctx: Context, -): void { - const network = ctx.libs.getNetwork(); - if (gameStatus.status === GameStatusEnum.InGame) return; - gameStatus.status = GameStatusEnum.InGame; - - const map = registry.spawnEntity(); - registry.addComponent( - map, - new MapCollisions( - mapCollisionData.tileSize, - mapCollisionData.cols, - mapCollisionData.rows, - mapTreeLocations, - ), - ); - - const lobby = registry.spawnEntity(); - registry.addComponent(lobby, new Position(LOBBY_POSITION.x, LOBBY_POSITION.y)); - registry.addComponent(lobby, new CollisionBox(LOBBY_COLLISION_BOX.x, LOBBY_COLLISION_BOX.y)); - // Same size as the collision box - zombies attack this, not the collision box. - registry.addComponent(lobby, new Hitbox(LOBBY_COLLISION_BOX.x, LOBBY_COLLISION_BOX.y)); - registry.addComponent(lobby, new Health(LOBBY_MAX_HEALTH, LOBBY_MAX_HEALTH)); - registry.addComponent(lobby, new Lobby()); - - const playersInformation: { - id: number; - username: string; - skin: number; - position: Vector2d; - health: { current: number; max: number }; - // Ownership + shared reserve only now - magazine is on the single equipped weapon's own - // state (see weapon-inventory.component.ts), carried separately below as magazineAmmo. - weapons: { weaponType: string; reserveAmmo: number }[]; - weaponType: string | null; - magazineAmmo: number; - }[] = []; - - clients.forEach((client, index) => { - if (index >= MAX_PLAYERS) return; - if (!PLAYERS_SPAWNERS[index]) return; - - const player = registry.entityFromIndex(client.entityId); - - client.entityId = player.getId(); - registry.addComponent(player, new Direction(1, 0)); - registry.addComponent(player, new Login(client.username)); - registry.addComponent( - player, - new Position(PLAYERS_SPAWNERS[index].x, PLAYERS_SPAWNERS[index].y), - ); - registry.addComponent(player, new Velocity(0, 0)); - registry.addComponent(player, new MoveInput()); - registry.addComponent(player, new CollisionBox(PLAYER_COLLISION_BOX.x, PLAYER_COLLISION_BOX.y)); - registry.addComponent( - player, - new Hitbox( - PLAYER_HITBOX_SIZE.x, - PLAYER_HITBOX_SIZE.y, - PLAYER_HITBOX_OFFSET.x, - PLAYER_HITBOX_OFFSET.y, - ), - ); - // Class is derived entirely from the chosen skin (see player-class-catalog.ts) - no separate - // class-selection UI, the skin picker IS the class picker. - const playerClass = classForSkin(client.skin); - const classCatalog = PLAYER_CLASS_CATALOG[playerClass]; - const maxHealth = classCatalog.maxHealth; - registry.addComponent(player, new Health(maxHealth, maxHealth)); - registry.addComponent(player, new PlayerClassComponent(playerClass)); - - // Every player starts owning and equipping smallGun, except a fighter, who starts with a - // shotgun instead. - const startingWeaponType = playerClass === "fighter" ? "shotgun" : STARTING_WEAPON_TYPE; - const startingCatalog = WEAPON_CATALOG[startingWeaponType]; - const startingWeapon: OwnedWeapon = { - weaponType: startingWeaponType, - reserveAmmo: startingCatalog.infiniteReserve - ? startingCatalog.startingReserve - : startingCatalog.magazineSize, - }; - const inventory = new WeaponInventory(); - inventory.owned.push(startingWeapon); - inventory.equippedWeaponType = startingWeaponType; - inventory.state = { - magazineAmmo: startingCatalog.magazineSize, - state: "idle", - reloadRemaining: 0, - cooldownRemaining: 0, - }; - registry.addComponent(player, inventory); - registry.addComponent(player, new ShootInput()); - registry.addComponent(player, new ReviveInput()); - playersInformation.push({ - id: client.entityId, - username: client.username, - skin: client.skin, - position: PLAYERS_SPAWNERS[index], - health: { current: maxHealth, max: maxHealth }, - weapons: [{ weaponType: startingWeapon.weaponType, reserveAmmo: startingWeapon.reserveAmmo }], - weaponType: inventory.equippedWeaponType, - magazineAmmo: inventory.state.magazineAmmo, - }); - }); - - const money = registry.spawnEntity(); - registry.addComponent(money, new Money(STARTING_MONEY)); - - sendToInGamePlayers(network, { - type: "startGame", - players: playersInformation, - lobby: { - id: lobby.getId(), - position: LOBBY_POSITION, - health: { current: LOBBY_MAX_HEALTH, max: LOBBY_MAX_HEALTH }, - }, - money: STARTING_MONEY, - }); - - // Zombie spawning from here on is entirely driven by zombie-wave.system.ts, ticking off this - // singleton state entity - see server/static/zombie-waves.txt for the wave config. - const waveState = registry.spawnEntity(); - registry.addComponent(waveState, new WaveState(lobby.getId())); -} From 595311c61aad6bf04ce2176c473991fd61d9c025 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:19:41 +0100 Subject: [PATCH 07/53] feat(sound): add the sound effect basic --- basics/sound/.gitignore | 5 + basics/sound/README.md | 21 + basics/sound/assets/LICENSE | 21 + basics/sound/assets/hit.wav | Bin 0 -> 96590 bytes basics/sound/assets/wing.wav | Bin 0 -> 29902 bytes basics/sound/nanoforge.config.ts | 5 + basics/sound/package.json | 27 + basics/sound/pnpm-lock.yaml | 1530 +++++++++++++++++ basics/sound/pnpm-workspace.yaml | 5 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/mute-on-key.component.ts | 23 + .../src/components/play-on-key.component.ts | 29 + .../src/components/position-2d.component.ts | 20 + basics/sound/src/image-fill.ts | 43 + basics/sound/src/main.ts | 59 + basics/sound/src/systems/draw-2d.system.ts | 45 + .../src/systems/mute-sound-on-key.system.ts | 26 + .../src/systems/play-sound-on-key.system.ts | 32 + basics/sound/tsconfig.json | 39 + .../components/mute-on-key.component.ts | 23 + .../components/play-on-key.component.ts | 29 + 23 files changed, 2175 insertions(+) create mode 100644 basics/sound/.gitignore create mode 100644 basics/sound/README.md create mode 100644 basics/sound/assets/LICENSE create mode 100644 basics/sound/assets/hit.wav create mode 100644 basics/sound/assets/wing.wav create mode 100644 basics/sound/nanoforge.config.ts create mode 100644 basics/sound/package.json create mode 100644 basics/sound/pnpm-lock.yaml create mode 100644 basics/sound/pnpm-workspace.yaml create mode 100644 basics/sound/src/components/drawable-circle-2d.component.ts create mode 100644 basics/sound/src/components/drawable-rect-2d.component.ts create mode 100644 basics/sound/src/components/drawable-text-2d.component.ts create mode 100644 basics/sound/src/components/mute-on-key.component.ts create mode 100644 basics/sound/src/components/play-on-key.component.ts create mode 100644 basics/sound/src/components/position-2d.component.ts create mode 100644 basics/sound/src/image-fill.ts create mode 100644 basics/sound/src/main.ts create mode 100644 basics/sound/src/systems/draw-2d.system.ts create mode 100644 basics/sound/src/systems/mute-sound-on-key.system.ts create mode 100644 basics/sound/src/systems/play-sound-on-key.system.ts create mode 100644 basics/sound/tsconfig.json create mode 100644 shared/basics/components/mute-on-key.component.ts create mode 100644 shared/basics/components/play-on-key.component.ts diff --git a/basics/sound/.gitignore b/basics/sound/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/sound/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/sound/README.md b/basics/sound/README.md new file mode 100644 index 0000000..c38b536 --- /dev/null +++ b/basics/sound/README.md @@ -0,0 +1,21 @@ +# sound + +Press Space or Enter to play a sound effect; M turns the sound on and off. + +It shows the `sound` engine library: `playSoundOnKey` loads the sound of each `PlayOnKey` +(`ctx.sound.load`, with the URL `ctx.assets.getAsset` gives for the asset) and plays it when its +key is pressed (`ctx.sound.play`). Sounds may overlap: press both keys quickly. + +The sound library **starts muted**, and `ctx.sound.mute()` toggles it: press M once to hear +anything. `MuteOnKey` keeps track of the state, which the library does not expose. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +`assets/wing.wav` and `assets/hit.wav` come from the flappy-bird example, under the MIT license in +`assets/LICENSE`. `image-fill.ts`, the `Position2D`, `DrawableRect2D`, `DrawableCircle2D` and +`DrawableText2D` components and the `draw2D` system are copies of `shared/2d`, and the `PlayOnKey` +and `MuteOnKey` components copies of `shared/basics` (see the repository's README). diff --git a/basics/sound/assets/LICENSE b/basics/sound/assets/LICENSE new file mode 100644 index 0000000..18a448b --- /dev/null +++ b/basics/sound/assets/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Samuel Custodio + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/basics/sound/assets/hit.wav b/basics/sound/assets/hit.wav new file mode 100644 index 0000000000000000000000000000000000000000..9d9b77c7d49a2d715a365febba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v_s+AMtbG9OK!mBA_YXQ}j-WAdzWenpZ3$LhyS|~4o6qMAjE$??iGpfQ etDY3gW+yQk6lZywua?)Y>b30XRAbC;Xa5ED{fi_3 literal 0 HcmV?d00001 diff --git a/basics/sound/assets/wing.wav b/basics/sound/assets/wing.wav new file mode 100644 index 0000000000000000000000000000000000000000..9ae2c6799801a6b33abdf769e11d14e24ccd68b5 GIT binary patch literal 29902 zcmW(-1y~eo7oOe@x*Np81`}*i?Cw_V?yhTh7kcgP?!azE8j+4=VVCXc`Op2Id3G6g zXJ@{6PkiT`_Z!foTetTM5oBn`AzhPaEezEo2!g`V4|hknj!6x{zwO;DbgIN58vw$FT@{dfFvP9;hO;XBoe8IG(uwG z+73t*5{|ThU&q1G7*QdtBuO^OB_Rk6XJ+ZElqOZclXIny(lhCnv{%|Dosq6cC#0p) zOlh+;R~jj;kakOFr5o_+b?K0_R@x+OmsUyBq)E~Q_lZL}@X25UeO7r2qN2G)B^uy9( zc;2M- zz6q{hF71$xN>`;j(hKR0bP?{h6|O%eU6WqHD7&OusTBTJOHPS|`N9!V;v@}>YI_** zUdRY!2r?EKh0I3QB1e%_Bn|n9+(d36*N`Jf3UVHf18^Keb|Q=6sv*c+WDT+q*^8V& zHX@sm7041~8T@iHG9B(R2IeAWU!>40>HyG@3+4n_tb0kauw1S?JLdRLfc`K@g5(SGkpwu6{r`Bk1njm0G{yt&W&#S60NtISZ?j<3*8@JbgS@N)>6i&f zJdgZ?tOL2&1LvbaZYCnbk@MEIf!h5Ur$D60A`OP6X2fh z0qxz9Adpm-R4G|ORuQB^dIwng4_9{pQRktZ`BFOI<2Lk%1$iz9eB?_OxIPblAxa@2 zL2~$=<^QsuCw+%8&IS$O4l)*xGyxfG2EFNtj0V{~4AOl8xq`d|)IUMqAfEs+rHB@0 zHw=kYZcZAjeEU*(EqoT<2~UM=p&YJw1K(%CnMrU7L1L0PL>w(H6E};8;b~Q3iTGOl zD&~n5A||mSBdR42$yd@r>)J>?z!toMkuH)V0T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WR7R_ zSzBiDO%!IYn6j2HP6&kGy>6XkkvkphXo={gM z?1%rnN*d{tpiyF$=umXjKha;&k#K&vW9A;=y6_ja;do{*b8gXnGc`F;v!a@2elMy= zrj|ulhW|qC3LFUAQ0vT+c}~%DGtUdp&D1$;8LCQXMP|!H{I`-hD;zy>#))J9dUi(3 z7M&UH9_kp*&isYv6#a$cnO`$|MRm^5Ec|lv8R2N4SvXqM+OW-(Oh0AXck=VXvx@%D zJUjDW(XpbsgqogQx6J>Uc4Vk?;y#&row%}Suju-4?{H4hU(xSH|Nq~&|9*W@Z8Nkk zy5Gs$@a)X z`#P=sn^N1JNd~c@BhD?bMpB``zNkDu~+n4(YEN9uq|rWe^K Pj{fg&Pkze(bpJmA=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@nanoforge-dev/sound@3.0.0': + resolution: {integrity: sha512-vNMYm3dp7A3A+4taJpSXwPEu/t1VtZ1BAUkY6a3D40Uz3q785+u79o3q21/yYGigCswuPlIQ5gT4ApcT+6J4tg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@nanoforge-dev/sound@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/sound/pnpm-workspace.yaml b/basics/sound/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/sound/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/sound/src/components/drawable-circle-2d.component.ts b/basics/sound/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/sound/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/sound/src/components/drawable-rect-2d.component.ts b/basics/sound/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/sound/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/sound/src/components/drawable-text-2d.component.ts b/basics/sound/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/sound/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/sound/src/components/mute-on-key.component.ts b/basics/sound/src/components/mute-on-key.component.ts new file mode 100644 index 0000000..fd52cc6 --- /dev/null +++ b/basics/sound/src/components/mute-on-key.component.ts @@ -0,0 +1,23 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Turns the audio on and off with a key, and writes whether it is on in the entity's + * `DrawableText2D`. Needs the system of the library it mutes: `muteSoundOnKey` or + * `muteMusicOnKey`. + * + * @component + * @side client + */ +export class MuteOnKey { + name = "MuteOnKey"; + + /** Whether the audio is off; the sound and music libraries start muted. Set by the system. */ + muted = true; + /** Whether the key was down last frame, set by the system. */ + held = false; + + constructor( + /** The key that turns the audio on and off. */ + public key: InputEnum = InputEnum.KeyM, + ) {} +} diff --git a/basics/sound/src/components/play-on-key.component.ts b/basics/sound/src/components/play-on-key.component.ts new file mode 100644 index 0000000..9f7298d --- /dev/null +++ b/basics/sound/src/components/play-on-key.component.ts @@ -0,0 +1,29 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Plays an audio asset each time a key is pressed. Needs the system of the library that plays it: + * `playSoundOnKey` (the sound library: effects that may overlap) or `playMusicOnKey` (the music + * library: one track at a time). + * + * @remarks + * Both libraries start muted: add a `MuteOnKey` to let the player turn them on. + * + * @component + * @side client + * @group Audio color=#f0a33a - What is played, and when. + */ +export class PlayOnKey { + name = "PlayOnKey"; + + /** Whether the key was down last frame, set by the system. */ + held = false; + /** Whether `file` was handed to the library, or is not an asset. Set by the system. */ + status?: "loaded" | "missing"; + + constructor( + /** The key that plays it. @group Audio */ + public key: InputEnum = InputEnum.Space, + /** The audio file. @group Audio @asset .wav .mp3 .ogg */ + public file = "", + ) {} +} diff --git a/basics/sound/src/components/position-2d.component.ts b/basics/sound/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/sound/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/sound/src/image-fill.ts b/basics/sound/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/sound/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/sound/src/main.ts b/basics/sound/src/main.ts new file mode 100644 index 0000000..189799e --- /dev/null +++ b/basics/sound/src/main.ts @@ -0,0 +1,59 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputEnum, InputLibrary } from "@nanoforge-dev/input"; +import { SoundLibrary } from "@nanoforge-dev/sound"; + +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { Position2D } from "./components/position-2d.component"; +import { MuteOnKey } from "./components/mute-on-key.component"; +import { PlayOnKey } from "./components/play-on-key.component"; +import { draw2D } from "./systems/draw-2d.system"; +import { muteSoundOnKey } from "./systems/mute-sound-on-key.system"; +import { playSoundOnKey } from "./systems/play-sound-on-key.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new SoundLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent(help, new DrawableText2D("Space: wing Enter: hit", 24, "#cdd6f4")); + + const mute = registry.spawnEntity(); + registry.addComponent(mute, new Position2D(20, 60)); + registry.addComponent(mute, new DrawableText2D("", 24, "#f9e2af")); + registry.addComponent(mute, new MuteOnKey(InputEnum.KeyM)); + + const wing = registry.spawnEntity(); + registry.addComponent(wing, new PlayOnKey(InputEnum.Space, "/wing.wav")); + + const hit = registry.spawnEntity(); + registry.addComponent(hit, new PlayOnKey(InputEnum.Enter, "/hit.wav")); + + registry.addSystem(muteSoundOnKey); + registry.addSystem(playSoundOnKey); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/sound/src/systems/draw-2d.system.ts b/basics/sound/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/sound/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/sound/src/systems/mute-sound-on-key.system.ts b/basics/sound/src/systems/mute-sound-on-key.system.ts new file mode 100644 index 0000000..32e5c94 --- /dev/null +++ b/basics/sound/src/systems/mute-sound-on-key.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import "@nanoforge-dev/sound"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +import { MuteOnKey } from "../components/mute-on-key.component"; + +/** + * Turns the sound on or off when the key of a `MuteOnKey` is pressed, and writes the state in + * its entity's text. + * + * @system + * @side client + */ +export const muteSoundOnKey = (registry: Registry, ctx: Context) => { + registry.getZipper([MuteOnKey, DrawableText2D]).forEach(({ MuteOnKey, DrawableText2D }) => { + const down = ctx.input.isKeyPressed((MuteOnKey as MuteOnKey).key) === true; + if (down && !MuteOnKey.held) { + ctx.sound.mute(); + MuteOnKey.muted = !MuteOnKey.muted; + } + MuteOnKey.held = down; + DrawableText2D.text = MuteOnKey.muted ? "Sound off: press M" : "Sound on: press M to mute"; + }); +}; diff --git a/basics/sound/src/systems/play-sound-on-key.system.ts b/basics/sound/src/systems/play-sound-on-key.system.ts new file mode 100644 index 0000000..3c3a80e --- /dev/null +++ b/basics/sound/src/systems/play-sound-on-key.system.ts @@ -0,0 +1,32 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import "@nanoforge-dev/sound"; +import { PlayOnKey } from "../components/play-on-key.component"; + +/** + * Plays the sound of every `PlayOnKey` whose key was just pressed: sounds may overlap. Loads + * each sound into the sound library, under its asset path, the first time it sees it; a + * missing asset is reported once. + * + * @system + * @side client + */ +export const playSoundOnKey = (registry: Registry, ctx: Context) => { + registry.getZipper([PlayOnKey]).forEach(({ PlayOnKey }) => { + const { key, file } = PlayOnKey as PlayOnKey; + if (!PlayOnKey.status && file) { + try { + ctx.sound.load(file, ctx.assets.getAsset(file).path); + PlayOnKey.status = "loaded"; + } catch (error) { + // Once per component, not every frame: the key stays silent. + console.warn(`No sound at "${file}":`, error); + PlayOnKey.status = "missing"; + } + } + const down = ctx.input.isKeyPressed(key) === true; + if (down && !PlayOnKey.held && PlayOnKey.status === "loaded") ctx.sound.play(file); + PlayOnKey.held = down; + }); +}; diff --git a/basics/sound/tsconfig.json b/basics/sound/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/sound/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} diff --git a/shared/basics/components/mute-on-key.component.ts b/shared/basics/components/mute-on-key.component.ts new file mode 100644 index 0000000..fd52cc6 --- /dev/null +++ b/shared/basics/components/mute-on-key.component.ts @@ -0,0 +1,23 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Turns the audio on and off with a key, and writes whether it is on in the entity's + * `DrawableText2D`. Needs the system of the library it mutes: `muteSoundOnKey` or + * `muteMusicOnKey`. + * + * @component + * @side client + */ +export class MuteOnKey { + name = "MuteOnKey"; + + /** Whether the audio is off; the sound and music libraries start muted. Set by the system. */ + muted = true; + /** Whether the key was down last frame, set by the system. */ + held = false; + + constructor( + /** The key that turns the audio on and off. */ + public key: InputEnum = InputEnum.KeyM, + ) {} +} diff --git a/shared/basics/components/play-on-key.component.ts b/shared/basics/components/play-on-key.component.ts new file mode 100644 index 0000000..9f7298d --- /dev/null +++ b/shared/basics/components/play-on-key.component.ts @@ -0,0 +1,29 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Plays an audio asset each time a key is pressed. Needs the system of the library that plays it: + * `playSoundOnKey` (the sound library: effects that may overlap) or `playMusicOnKey` (the music + * library: one track at a time). + * + * @remarks + * Both libraries start muted: add a `MuteOnKey` to let the player turn them on. + * + * @component + * @side client + * @group Audio color=#f0a33a - What is played, and when. + */ +export class PlayOnKey { + name = "PlayOnKey"; + + /** Whether the key was down last frame, set by the system. */ + held = false; + /** Whether `file` was handed to the library, or is not an asset. Set by the system. */ + status?: "loaded" | "missing"; + + constructor( + /** The key that plays it. @group Audio */ + public key: InputEnum = InputEnum.Space, + /** The audio file. @group Audio @asset .wav .mp3 .ogg */ + public file = "", + ) {} +} From 560f6206845577b4502b117331cac4ae618ab55e Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:20:52 +0100 Subject: [PATCH 08/53] feat(music): add the music track basic --- basics/music/.gitignore | 5 + basics/music/README.md | 26 + basics/music/assets/track-a.wav | Bin 0 -> 88236 bytes basics/music/assets/track-b.wav | Bin 0 -> 105884 bytes basics/music/nanoforge.config.ts | 5 + basics/music/package.json | 27 + basics/music/pnpm-lock.yaml | 1530 +++++++++++++++++ basics/music/pnpm-workspace.yaml | 5 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/mute-on-key.component.ts | 23 + .../src/components/play-on-key.component.ts | 29 + .../src/components/position-2d.component.ts | 20 + basics/music/src/image-fill.ts | 43 + basics/music/src/main.ts | 62 + basics/music/src/systems/draw-2d.system.ts | 45 + .../src/systems/mute-music-on-key.system.ts | 26 + .../src/systems/play-music-on-key.system.ts | 32 + basics/music/tsconfig.json | 39 + 20 files changed, 2110 insertions(+) create mode 100644 basics/music/.gitignore create mode 100644 basics/music/README.md create mode 100644 basics/music/assets/track-a.wav create mode 100644 basics/music/assets/track-b.wav create mode 100644 basics/music/nanoforge.config.ts create mode 100644 basics/music/package.json create mode 100644 basics/music/pnpm-lock.yaml create mode 100644 basics/music/pnpm-workspace.yaml create mode 100644 basics/music/src/components/drawable-circle-2d.component.ts create mode 100644 basics/music/src/components/drawable-rect-2d.component.ts create mode 100644 basics/music/src/components/drawable-text-2d.component.ts create mode 100644 basics/music/src/components/mute-on-key.component.ts create mode 100644 basics/music/src/components/play-on-key.component.ts create mode 100644 basics/music/src/components/position-2d.component.ts create mode 100644 basics/music/src/image-fill.ts create mode 100644 basics/music/src/main.ts create mode 100644 basics/music/src/systems/draw-2d.system.ts create mode 100644 basics/music/src/systems/mute-music-on-key.system.ts create mode 100644 basics/music/src/systems/play-music-on-key.system.ts create mode 100644 basics/music/tsconfig.json diff --git a/basics/music/.gitignore b/basics/music/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/music/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/music/README.md b/basics/music/README.md new file mode 100644 index 0000000..e92ff44 --- /dev/null +++ b/basics/music/README.md @@ -0,0 +1,26 @@ +# music + +Press 1 or 2 to play one of two music tracks; M turns the music on and off. + +It shows the `music` engine library: `playMusicOnKey` loads the track of each `PlayOnKey` +(`ctx.music.load`, with the URL `ctx.assets.getAsset` gives for the asset) and plays it when its +key is pressed (`ctx.music.play`). Unlike sound effects, only one track plays at a time: starting +a track pauses the one playing, and pressing its key again resumes it where it stopped. + +The music library **starts muted**, and `ctx.music.mute()` toggles it: press M once to hear +anything. `MuteOnKey` keeps track of the state, which the library does not expose. + +`MusicLibrary` 3.0.0 has no pause, stop or loop: a track plays once to its end, and muting it +does not pause it. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +`assets/track-a.wav` and `assets/track-b.wav` are sine-wave melodies generated by a script for this +example: no third-party material. `image-fill.ts`, the `Position2D`, `DrawableRect2D`, +`DrawableCircle2D` and `DrawableText2D` components and the `draw2D` system are copies of +`shared/2d`, and the `PlayOnKey` and `MuteOnKey` components copies of `shared/basics` (see the +repository's README). diff --git a/basics/music/assets/track-a.wav b/basics/music/assets/track-a.wav new file mode 100644 index 0000000000000000000000000000000000000000..5d82685b805fed6be88fdc83e8006f069a8fe81d GIT binary patch literal 88236 zcmeI5M{^@d*PZ9xX({~!?e#0Zg}w-F->ox1nn-~a1B|MRKyU%zzx$H)Jf8LR&H|N6@>zx)gT z{I~z{i~jxBFaPD2^gwlB0Wk}BEiNwMwYD&eQJJrW9Q(wd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^S#qcHx@>c i(X9aA8aGeYjCu6U<_<+)fp2V*@W-2Lc~7$9=KljIf>V_M literal 0 HcmV?d00001 diff --git a/basics/music/assets/track-b.wav b/basics/music/assets/track-b.wav new file mode 100644 index 0000000000000000000000000000000000000000..419e7627cd36820e39c89173b99fdcb1fa07c52f GIT binary patch literal 105884 zcmeFa$#zvqx25^tUN$q{Ap7|g*~l0pTGy$CP=Qc|kOV3~AV8w7Yf%VPPzVH$175sg z&Tp<|w)Z&_?s5N{O`RCO-x%(zGTTSewrO+Cwf}$p&;R*i^FRJ|GGwE zixES%%BaAEP%($(v??%aFu=<$=M`aF63@WH*icW&LhasArWE0`~yKQ}*nW_ohs zq&}yn&de=bymIsIqh~K)uWf8@Zmh4pe);_A;|KTd+`4i7>XoI-7cZQfo0*yz8$LeJ z*VorScw%gF_WbhA2P>~PKWu;b_3N*nKYe(+w)*_(qx*8Xc4g_398OP;ofzmnd~n|{ zzwAHMGcYnafBDv;d2shO9!fEL`qbD^|Ixz-@Hl9X zOE(|BSpV?l+wXt;`NxmnzI=SQ_Nsc2IC!{s5RdEkp1pqi@yl=DzkmPj*KIB2 z)yiX4b@Tew<;#ob&(2OyXd%aX4j(#nsOQ+==;YkuwYyJWZG8Cr^|x=|zJB@iVe`$) z#^d67mOegwys!7j;loFc_8lLcoV{@M&f}Ns?>~L{`kOZE11z4dP6^~+~jRW5|G2K$d4J$m$5|B!N=U%vH_2lDCjmoIuA z@77ZS zhrV><{?nIhZ$Ete^y%Z)`^~kM$1-1&`5BcpJT%zf-#>7CczkkZ;qr}pk6*mmc(?WO zf4QMnu+Ix%{3YUbRftG6FK zefehN?YsBy-fph*eJ?rU`#wLTvc^VE3=N$aw#UV*x9&fAvAVYTRt_8b30cv%-Rp>- zkOh~eBqvS`kBm(yhkmB+J%0Y`&HCosO%=8Ja^(pg{+U|lhwvYlRMn=acrf1GAF5kHO@ac=yH|y*C*uHx4?8(E(q3vC|5&&1?ud0f7B>)xZM&tI;-e*Jp&)r*z3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`92DqhmF%4TUFqy<(1J3uI=u%>b+ zs_J%;rxrQD4$ECqln+L2wz#Zgu)sAGh23ZGEJ6t-wls?}9DH7V9(LoKD7v@KXt zS&-7dcA@q?X{qWjsUjs!Y8(}!VyuJN$waCaG)ggQP*H0*;<`O`pErxNT2!P6BlUKI zz8w-3G{hM?D5>{tU>|gtR~SH4&{V2L6##Ks6x=Qfy`xzWElZgKg_88FvJH{iJt$cr zrKk;*`hrFhpGpNrK;TqQJEnGFDpkZHSrHZ`f|ONTkSI%OvwTdVj1sb5WtFH&&>)r6 zTUx5g+g?o;Y$v$8RQ4ge(9aO1+@d{qb}N*{6}``ISg$RpD1nfMrL>}xnn-~(9K<$| zdyc+dmoia_REwI)3Mme-#2_^UMXET9uZ^J6$94@5`tni*r3fC0MDa@;lWZrWEr2wA5bULVLlx3*W4H)?R z6^|J~hQO9jXhaVl2#Csc1sAz!C1#-u%73^E!kvT=I~H!Gy9q{kK?-x?IA*xQKr$>m z;UbEi#S2c^+TMyzD`tdy5uP+gc)&Sy;c4;TgBvAqaLVmqF{6->f|i6b4lE!zwRv?g z6gN@I?A(-hRPd;b?=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/music@3.0.0': + resolution: {integrity: sha512-H0c3QK2dJ8NARU69WG/lwQCnIFpaz1ZOQJxdW3w0MBriU1twJAHicMlwQ2c61Cdmpte4heNqRQqSuBJ8qFY9OQ==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/music@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/music/pnpm-workspace.yaml b/basics/music/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/music/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/music/src/components/drawable-circle-2d.component.ts b/basics/music/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/music/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/music/src/components/drawable-rect-2d.component.ts b/basics/music/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/music/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/music/src/components/drawable-text-2d.component.ts b/basics/music/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/music/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/music/src/components/mute-on-key.component.ts b/basics/music/src/components/mute-on-key.component.ts new file mode 100644 index 0000000..fd52cc6 --- /dev/null +++ b/basics/music/src/components/mute-on-key.component.ts @@ -0,0 +1,23 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Turns the audio on and off with a key, and writes whether it is on in the entity's + * `DrawableText2D`. Needs the system of the library it mutes: `muteSoundOnKey` or + * `muteMusicOnKey`. + * + * @component + * @side client + */ +export class MuteOnKey { + name = "MuteOnKey"; + + /** Whether the audio is off; the sound and music libraries start muted. Set by the system. */ + muted = true; + /** Whether the key was down last frame, set by the system. */ + held = false; + + constructor( + /** The key that turns the audio on and off. */ + public key: InputEnum = InputEnum.KeyM, + ) {} +} diff --git a/basics/music/src/components/play-on-key.component.ts b/basics/music/src/components/play-on-key.component.ts new file mode 100644 index 0000000..9f7298d --- /dev/null +++ b/basics/music/src/components/play-on-key.component.ts @@ -0,0 +1,29 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Plays an audio asset each time a key is pressed. Needs the system of the library that plays it: + * `playSoundOnKey` (the sound library: effects that may overlap) or `playMusicOnKey` (the music + * library: one track at a time). + * + * @remarks + * Both libraries start muted: add a `MuteOnKey` to let the player turn them on. + * + * @component + * @side client + * @group Audio color=#f0a33a - What is played, and when. + */ +export class PlayOnKey { + name = "PlayOnKey"; + + /** Whether the key was down last frame, set by the system. */ + held = false; + /** Whether `file` was handed to the library, or is not an asset. Set by the system. */ + status?: "loaded" | "missing"; + + constructor( + /** The key that plays it. @group Audio */ + public key: InputEnum = InputEnum.Space, + /** The audio file. @group Audio @asset .wav .mp3 .ogg */ + public file = "", + ) {} +} diff --git a/basics/music/src/components/position-2d.component.ts b/basics/music/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/music/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/music/src/image-fill.ts b/basics/music/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/music/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/music/src/main.ts b/basics/music/src/main.ts new file mode 100644 index 0000000..3646b55 --- /dev/null +++ b/basics/music/src/main.ts @@ -0,0 +1,62 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputEnum, InputLibrary } from "@nanoforge-dev/input"; +import { MusicLibrary } from "@nanoforge-dev/music"; + +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { Position2D } from "./components/position-2d.component"; +import { MuteOnKey } from "./components/mute-on-key.component"; +import { PlayOnKey } from "./components/play-on-key.component"; +import { draw2D } from "./systems/draw-2d.system"; +import { muteMusicOnKey } from "./systems/mute-music-on-key.system"; +import { playMusicOnKey } from "./systems/play-music-on-key.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new MusicLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent( + help, + new DrawableText2D("1: first track 2: second track", 24, "#cdd6f4"), + ); + + const mute = registry.spawnEntity(); + registry.addComponent(mute, new Position2D(20, 60)); + registry.addComponent(mute, new DrawableText2D("", 24, "#f9e2af")); + registry.addComponent(mute, new MuteOnKey(InputEnum.KeyM)); + + const first = registry.spawnEntity(); + registry.addComponent(first, new PlayOnKey(InputEnum.Digit1, "/track-a.wav")); + + const second = registry.spawnEntity(); + registry.addComponent(second, new PlayOnKey(InputEnum.Digit2, "/track-b.wav")); + + registry.addSystem(muteMusicOnKey); + registry.addSystem(playMusicOnKey); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/music/src/systems/draw-2d.system.ts b/basics/music/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/music/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/music/src/systems/mute-music-on-key.system.ts b/basics/music/src/systems/mute-music-on-key.system.ts new file mode 100644 index 0000000..b87c3eb --- /dev/null +++ b/basics/music/src/systems/mute-music-on-key.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import "@nanoforge-dev/music"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +import { MuteOnKey } from "../components/mute-on-key.component"; + +/** + * Turns the music on or off when the key of a `MuteOnKey` is pressed, and writes the state in + * its entity's text. + * + * @system + * @side client + */ +export const muteMusicOnKey = (registry: Registry, ctx: Context) => { + registry.getZipper([MuteOnKey, DrawableText2D]).forEach(({ MuteOnKey, DrawableText2D }) => { + const down = ctx.input.isKeyPressed((MuteOnKey as MuteOnKey).key) === true; + if (down && !MuteOnKey.held) { + ctx.music.mute(); + MuteOnKey.muted = !MuteOnKey.muted; + } + MuteOnKey.held = down; + DrawableText2D.text = MuteOnKey.muted ? "Music off: press M" : "Music on: press M to mute"; + }); +}; diff --git a/basics/music/src/systems/play-music-on-key.system.ts b/basics/music/src/systems/play-music-on-key.system.ts new file mode 100644 index 0000000..89fc6e3 --- /dev/null +++ b/basics/music/src/systems/play-music-on-key.system.ts @@ -0,0 +1,32 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import "@nanoforge-dev/music"; +import { PlayOnKey } from "../components/play-on-key.component"; + +/** + * Plays the track of the `PlayOnKey` whose key was just pressed: the music library stops the + * track playing. Loads each track into the music library, under its asset path, the first time + * it sees it; a missing asset is reported once. + * + * @system + * @side client + */ +export const playMusicOnKey = (registry: Registry, ctx: Context) => { + registry.getZipper([PlayOnKey]).forEach(({ PlayOnKey }) => { + const { key, file } = PlayOnKey as PlayOnKey; + if (!PlayOnKey.status && file) { + try { + ctx.music.load(file, ctx.assets.getAsset(file).path); + PlayOnKey.status = "loaded"; + } catch (error) { + // Once per component, not every frame: the key stays silent. + console.warn(`No track at "${file}":`, error); + PlayOnKey.status = "missing"; + } + } + const down = ctx.input.isKeyPressed(key) === true; + if (down && !PlayOnKey.held && PlayOnKey.status === "loaded") ctx.music.play(file); + PlayOnKey.held = down; + }); +}; diff --git a/basics/music/tsconfig.json b/basics/music/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/music/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From 7002ca05415f467f47ecb7e7f4ebb94ba824059a Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:21:41 +0100 Subject: [PATCH 09/53] feat(sprite-2d): add the 2d sprite basic --- basics/sprite-2d/.gitignore | 5 + basics/sprite-2d/README.md | 18 + basics/sprite-2d/assets/LICENSE | 21 + basics/sprite-2d/assets/background-day.png | Bin 0 -> 7026 bytes basics/sprite-2d/assets/pipe-green.png | Bin 0 -> 2527 bytes .../sprite-2d/assets/yellowbird-midflap.png | Bin 0 -> 425 bytes basics/sprite-2d/nanoforge.config.ts | 5 + basics/sprite-2d/package.json | 25 + basics/sprite-2d/pnpm-lock.yaml | 1501 +++++++++++++++++ basics/sprite-2d/pnpm-workspace.yaml | 5 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/position-2d.component.ts | 20 + basics/sprite-2d/src/image-fill.ts | 43 + basics/sprite-2d/src/main.ts | 46 + .../sprite-2d/src/systems/draw-2d.system.ts | 45 + basics/sprite-2d/tsconfig.json | 39 + 18 files changed, 1966 insertions(+) create mode 100644 basics/sprite-2d/.gitignore create mode 100644 basics/sprite-2d/README.md create mode 100644 basics/sprite-2d/assets/LICENSE create mode 100644 basics/sprite-2d/assets/background-day.png create mode 100644 basics/sprite-2d/assets/pipe-green.png create mode 100644 basics/sprite-2d/assets/yellowbird-midflap.png create mode 100644 basics/sprite-2d/nanoforge.config.ts create mode 100644 basics/sprite-2d/package.json create mode 100644 basics/sprite-2d/pnpm-lock.yaml create mode 100644 basics/sprite-2d/pnpm-workspace.yaml create mode 100644 basics/sprite-2d/src/components/drawable-circle-2d.component.ts create mode 100644 basics/sprite-2d/src/components/drawable-rect-2d.component.ts create mode 100644 basics/sprite-2d/src/components/drawable-text-2d.component.ts create mode 100644 basics/sprite-2d/src/components/position-2d.component.ts create mode 100644 basics/sprite-2d/src/image-fill.ts create mode 100644 basics/sprite-2d/src/main.ts create mode 100644 basics/sprite-2d/src/systems/draw-2d.system.ts create mode 100644 basics/sprite-2d/tsconfig.json diff --git a/basics/sprite-2d/.gitignore b/basics/sprite-2d/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/sprite-2d/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/sprite-2d/README.md b/basics/sprite-2d/README.md new file mode 100644 index 0000000..0995fb8 --- /dev/null +++ b/basics/sprite-2d/README.md @@ -0,0 +1,18 @@ +# sprite-2d + +A flappy-bird scene: the background, a pipe and the bird are images. + +It shows images in 2D: the `image` parameter of `DrawableRect2D` and `DrawableCircle2D` is an +asset path (`/pipe-green.png` is `assets/pipe-green.png`), and the image is stretched over the +shape. Until the image is loaded, or when there is no asset at that path, the shape shows its +color. The round bird is the same image in a `DrawableCircle2D`. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +The images of `assets/` come from the flappy-bird example, under the MIT license in +`assets/LICENSE`. Every file of `src/` but `main.ts` is a copy of `shared/2d` (see the +repository's README). diff --git a/basics/sprite-2d/assets/LICENSE b/basics/sprite-2d/assets/LICENSE new file mode 100644 index 0000000..18a448b --- /dev/null +++ b/basics/sprite-2d/assets/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Samuel Custodio + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/basics/sprite-2d/assets/background-day.png b/basics/sprite-2d/assets/background-day.png new file mode 100644 index 0000000000000000000000000000000000000000..afcb5ec982a3de74cb9186f6af3ba329d63a22bb GIT binary patch literal 7026 zcmeHMc~nzZw-41;{rnWsDkwu#RBAyGum}c-Rs<0ZLKS4LMkW~|Qv!q#+gd4QNG(J3 zV-!WOkRXH*2qdvZiGX1yfrJnxLL?yx0g?cjUg-Plt+(F)?~ks#?%L~|d-gv2{?0zX zv-iEZS0P?I{&nDA003Zz_eBqX0KniN0Pq=L>lgZ-!}Mlrz1SRm?#ej;pc%7Wee-jD z`ylk9{}lir^B4ed?>+#quJ5|{2>?ht2>=Mc2LR4I0sxHfmXrNl^$)(d<>Tc6&~04R zl)55)&$hc4gHiy1ov$};gA(hVrU1Z!RBw-S*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jt8*2DWV7Q~e!*%j9`aaLRbv4~$XS~7ID?dRw} zA=b^laiF@e=`GiRhMeqJD?_-(P?dd!jNYi9H}Cq*6Y!7te+_{aY+Q6Z@lR)+gZ`(~ z(bNk!Qg7c(jXVQQj?@c)!%2IW6DJ){*xO&TcRq8{;f%eD^+~5QCr^I(+NJw{C?vpc b$3|uR-wMAWen9IL0NxiM9{6v+|M9;7ImZIa literal 0 HcmV?d00001 diff --git a/basics/sprite-2d/assets/pipe-green.png b/basics/sprite-2d/assets/pipe-green.png new file mode 100644 index 0000000000000000000000000000000000000000..4664401037bdb50a709674c0a23862fa3aa294a4 GIT binary patch literal 2527 zcmZ`)dpy(YAOB*GMLLKYAqhV%YL=WVb;!mj46EF8w>ipfF?Y@85{o%=IVJaEDwkZF za z9fAYu#^16N$nDmDlZKNBkx0H{fq`sN`Hay2ikofQB?Y63uf0s!pnfw%www-EsF z#T@`pxd3oDF!M%-8EBM?yMo8;?d{>unYT^`ch7|nEX9njB}{K8efpj{y^}Puo-iPY zX&Cl@`qs0UR(e;FWL2TDt zc*8KUnCqO&wx@vkg+@U+XZ;wbJyO7Y&HkmBuKDoRso)}xQ(zA0gYW=-Xj-G|l-8-B z#$kVY_2sU4a_eMJ5eIaz3(7s~mw|9kfzNCw&FmzNu2BXAu{r-bn?@8~2+A>--cIhC zBU8#u19J_WXqwatOjeWaBc5yBAc4ydo!F#t_@VWKgi@X>vk`auA&S62xF%`SSeUFv zT>TJXVl%OCDTXr>TH4{lY_bi@GbAz)k2+lXmZIy12vim(EDz-d=2u`!c`kKBMD9%J z?L5##kIF*#FGbf65yKv$n2lgXm+?*7_y$;x#O0IRlED(_i4B@-vUXOZZJ!{9$k3}B zBtGhJ&1%BYD$xCcXl4_RT7f2JAnFH+oEcJShbwo6bS+*TY>K7EE3kKf2+7Xc9x$FC z@%@*0UN%Pq$>J(lkn9V>I)(zk0q(y;Br8!;4EIZiOARdzm}I5YsaIaocC52;$qijI_dY+>uPFN zS5s2X__5jV@>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ND9B#o>Fdh=n3;!xN%;9M)g3^gOivfb5Q)pJ7ccT2P~cz*2-_hV zaZog3q4tiZ*WX=k-CFeW?_KXB9ZGT)DW}32LR~d)aPO9UxKJfwxlGFf6@%Z?=Pl^{ zvG%BD+$I544c4p8tvx5#F1#mwQfZCt4!*T6202kV(`MNHKjQ6|w8gBn>)PVeKuc9i zTq8@t-i!lHI literal 0 HcmV?d00001 diff --git a/basics/sprite-2d/nanoforge.config.ts b/basics/sprite-2d/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/sprite-2d/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/sprite-2d/package.json b/basics/sprite-2d/package.json new file mode 100644 index 0000000..6494439 --- /dev/null +++ b/basics/sprite-2d/package.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "sprite-2d", + "description": "Draw images: the smallest NanoForge game showing sprites", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/basics/sprite-2d/pnpm-lock.yaml b/basics/sprite-2d/pnpm-lock.yaml new file mode 100644 index 0000000..68fe992 --- /dev/null +++ b/basics/sprite-2d/pnpm-lock.yaml @@ -0,0 +1,1501 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/sprite-2d/pnpm-workspace.yaml b/basics/sprite-2d/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/sprite-2d/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/sprite-2d/src/components/drawable-circle-2d.component.ts b/basics/sprite-2d/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/sprite-2d/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/sprite-2d/src/components/drawable-rect-2d.component.ts b/basics/sprite-2d/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/sprite-2d/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/sprite-2d/src/components/drawable-text-2d.component.ts b/basics/sprite-2d/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/sprite-2d/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/sprite-2d/src/components/position-2d.component.ts b/basics/sprite-2d/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/sprite-2d/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/sprite-2d/src/image-fill.ts b/basics/sprite-2d/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/sprite-2d/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/sprite-2d/src/main.ts b/basics/sprite-2d/src/main.ts new file mode 100644 index 0000000..f573613 --- /dev/null +++ b/basics/sprite-2d/src/main.ts @@ -0,0 +1,46 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; + +import { DrawableCircle2D } from "./components/drawable-circle-2d.component"; +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { Position2D } from "./components/position-2d.component"; +import { draw2D } from "./systems/draw-2d.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 288, height: 512, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(288, 512, "#4ec0ca", "/background-day.png")); + + const pipe = registry.spawnEntity(); + registry.addComponent(pipe, new Position2D(180, 300)); + registry.addComponent(pipe, new DrawableRect2D(52, 320, "#5ee270", "/pipe-green.png")); + + const bird = registry.spawnEntity(); + registry.addComponent(bird, new Position2D(60, 220)); + registry.addComponent(bird, new DrawableRect2D(68, 48, "#f8d030", "/yellowbird-midflap.png")); + + const roundBird = registry.spawnEntity(); + registry.addComponent(roundBird, new Position2D(100, 380)); + registry.addComponent(roundBird, new DrawableCircle2D(30, "#f8d030", "/yellowbird-midflap.png")); + + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/sprite-2d/src/systems/draw-2d.system.ts b/basics/sprite-2d/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/sprite-2d/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/sprite-2d/tsconfig.json b/basics/sprite-2d/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/sprite-2d/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From b8f27b9973c835fd1182640ffb83c625727d16a4 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:22:44 +0100 Subject: [PATCH 10/53] feat(input-gamepad): add the controller input basic --- basics/input-gamepad/.gitignore | 5 + basics/input-gamepad/README.md | 22 + basics/input-gamepad/assets/.gitkeep | 0 basics/input-gamepad/nanoforge.config.ts | 5 + basics/input-gamepad/package.json | 26 + basics/input-gamepad/pnpm-lock.yaml | 1512 +++++++++++++++++ basics/input-gamepad/pnpm-workspace.yaml | 5 + .../components/acceleration-2d.component.ts | 18 + .../controller-move-2d.component.ts | 22 + .../components/controller-status.component.ts | 15 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/position-2d.component.ts | 20 + .../src/components/velocity-2d.component.ts | 20 + basics/input-gamepad/src/image-fill.ts | 43 + basics/input-gamepad/src/main.ts | 63 + .../src/systems/controller-move-2d.system.ts | 25 + .../src/systems/draw-2d.system.ts | 45 + .../src/systems/move-2d.system.ts | 26 + .../systems/show-controller-status.system.ts | 25 + basics/input-gamepad/tsconfig.json | 39 + 22 files changed, 2129 insertions(+) create mode 100644 basics/input-gamepad/.gitignore create mode 100644 basics/input-gamepad/README.md create mode 100644 basics/input-gamepad/assets/.gitkeep create mode 100644 basics/input-gamepad/nanoforge.config.ts create mode 100644 basics/input-gamepad/package.json create mode 100644 basics/input-gamepad/pnpm-lock.yaml create mode 100644 basics/input-gamepad/pnpm-workspace.yaml create mode 100644 basics/input-gamepad/src/components/acceleration-2d.component.ts create mode 100644 basics/input-gamepad/src/components/controller-move-2d.component.ts create mode 100644 basics/input-gamepad/src/components/controller-status.component.ts create mode 100644 basics/input-gamepad/src/components/drawable-circle-2d.component.ts create mode 100644 basics/input-gamepad/src/components/drawable-rect-2d.component.ts create mode 100644 basics/input-gamepad/src/components/drawable-text-2d.component.ts create mode 100644 basics/input-gamepad/src/components/position-2d.component.ts create mode 100644 basics/input-gamepad/src/components/velocity-2d.component.ts create mode 100644 basics/input-gamepad/src/image-fill.ts create mode 100644 basics/input-gamepad/src/main.ts create mode 100644 basics/input-gamepad/src/systems/controller-move-2d.system.ts create mode 100644 basics/input-gamepad/src/systems/draw-2d.system.ts create mode 100644 basics/input-gamepad/src/systems/move-2d.system.ts create mode 100644 basics/input-gamepad/src/systems/show-controller-status.system.ts create mode 100644 basics/input-gamepad/tsconfig.json diff --git a/basics/input-gamepad/.gitignore b/basics/input-gamepad/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/input-gamepad/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/input-gamepad/README.md b/basics/input-gamepad/README.md new file mode 100644 index 0000000..2faa859 --- /dev/null +++ b/basics/input-gamepad/README.md @@ -0,0 +1,22 @@ +# input-gamepad + +A square moved with a controller's left stick; holding A doubles its speed and pressing it makes +the controller rumble. The bottom line names the connected controller. + +It shows the controller side of the `input` engine library (`@nanoforge-dev/input/controller`): +`ControllerLibrary` polls the Gamepad API every frame, and the systems read `ctx.controller`: +`getStick` (with the deadzone applied), `isButtonPressed`, `isButtonJustPressed`, `vibrate` and +`getController`. Buttons follow the standard layout (`ControllerButton.A` is the bottom face +button, Cross on PlayStation). + +Browsers only show a controller to the page after one of its buttons is pressed. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +`image-fill.ts`, the `Position2D`, `Velocity2D`, `Acceleration2D`, `DrawableRect2D`, +`DrawableCircle2D` and `DrawableText2D` components and the `draw2D` and `move2D` systems are +copies of `shared/2d` (see the repository's README). diff --git a/basics/input-gamepad/assets/.gitkeep b/basics/input-gamepad/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/input-gamepad/nanoforge.config.ts b/basics/input-gamepad/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/input-gamepad/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/input-gamepad/package.json b/basics/input-gamepad/package.json new file mode 100644 index 0000000..8a54854 --- /dev/null +++ b/basics/input-gamepad/package.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "input-gamepad", + "description": "Move a square with a controller: the smallest NanoForge game reading a gamepad", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/basics/input-gamepad/pnpm-lock.yaml b/basics/input-gamepad/pnpm-lock.yaml new file mode 100644 index 0000000..9aca6d9 --- /dev/null +++ b/basics/input-gamepad/pnpm-lock.yaml @@ -0,0 +1,1512 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/input-gamepad/pnpm-workspace.yaml b/basics/input-gamepad/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/input-gamepad/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/input-gamepad/src/components/acceleration-2d.component.ts b/basics/input-gamepad/src/components/acceleration-2d.component.ts new file mode 100644 index 0000000..5d4097f --- /dev/null +++ b/basics/input-gamepad/src/components/acceleration-2d.component.ts @@ -0,0 +1,18 @@ +/** + * How fast the velocity of an entity changes, in pixels per second, per second. Needs + * `Velocity2D` and the `move2D` system. + * + * @component + * @side shared + * @group Acceleration color=#f0a33a - Pixels per second, per second. + */ +export class Acceleration2D { + name = "Acceleration2D"; + + constructor( + /** Added to the horizontal velocity every second. @group Acceleration @preset vector.x */ + public x = 0, + /** Added to the vertical velocity every second. @group Acceleration @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-gamepad/src/components/controller-move-2d.component.ts b/basics/input-gamepad/src/components/controller-move-2d.component.ts new file mode 100644 index 0000000..a70b368 --- /dev/null +++ b/basics/input-gamepad/src/components/controller-move-2d.component.ts @@ -0,0 +1,22 @@ +import { ControllerButton } from "@nanoforge-dev/input/controller"; + +/** + * Moves an entity with a controller's left stick, by setting its `Velocity2D`; holding a button + * speeds it up, and pressing it makes the controller rumble. Needs the `controllerMove2D` system. + * + * @component + * @side client + * @group Movement color=#9d7bff - How the entity moves. + */ +export class ControllerMove2D { + name = "ControllerMove2D"; + + constructor( + /** In pixels per second, with the stick pushed all the way. @group Movement */ + public speed = 300, + /** The controller that moves it: 0 for the first one. @group Movement */ + public controller = 0, + /** Held: twice the speed. @group Movement */ + public boost: ControllerButton = ControllerButton.A, + ) {} +} diff --git a/basics/input-gamepad/src/components/controller-status.component.ts b/basics/input-gamepad/src/components/controller-status.component.ts new file mode 100644 index 0000000..05db2e0 --- /dev/null +++ b/basics/input-gamepad/src/components/controller-status.component.ts @@ -0,0 +1,15 @@ +/** + * Writes whether a controller is connected in the entity's `DrawableText2D`. Needs the + * `showControllerStatus` system. + * + * @component + * @side client + */ +export class ControllerStatus { + name = "ControllerStatus"; + + constructor( + /** The controller to watch: 0 for the first one. */ + public controller = 0, + ) {} +} diff --git a/basics/input-gamepad/src/components/drawable-circle-2d.component.ts b/basics/input-gamepad/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/input-gamepad/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-gamepad/src/components/drawable-rect-2d.component.ts b/basics/input-gamepad/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/input-gamepad/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-gamepad/src/components/drawable-text-2d.component.ts b/basics/input-gamepad/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/input-gamepad/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/input-gamepad/src/components/position-2d.component.ts b/basics/input-gamepad/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/input-gamepad/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-gamepad/src/components/velocity-2d.component.ts b/basics/input-gamepad/src/components/velocity-2d.component.ts new file mode 100644 index 0000000..3b93d4e --- /dev/null +++ b/basics/input-gamepad/src/components/velocity-2d.component.ts @@ -0,0 +1,20 @@ +/** + * How fast an entity moves, in pixels per second. Needs `Position2D` and the `move2D` system. + * + * @example + * `new Velocity2D(100, 0)` moves 100 pixels to the right every second. + * + * @component + * @side shared + * @group Velocity color=#36c5a0 - Pixels per second. + */ +export class Velocity2D { + name = "Velocity2D"; + + constructor( + /** Pixels per second to the right (negative: to the left). @group Velocity @preset vector.x */ + public x = 0, + /** Pixels per second downward (negative: upward). @group Velocity @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/input-gamepad/src/image-fill.ts b/basics/input-gamepad/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/input-gamepad/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/input-gamepad/src/main.ts b/basics/input-gamepad/src/main.ts new file mode 100644 index 0000000..128b7ca --- /dev/null +++ b/basics/input-gamepad/src/main.ts @@ -0,0 +1,63 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { ControllerButton, ControllerLibrary } from "@nanoforge-dev/input/controller"; + +import { ControllerMove2D } from "./components/controller-move-2d.component"; +import { ControllerStatus } from "./components/controller-status.component"; +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { Position2D } from "./components/position-2d.component"; +import { Velocity2D } from "./components/velocity-2d.component"; +import { controllerMove2D } from "./systems/controller-move-2d.system"; +import { draw2D } from "./systems/draw-2d.system"; +import { move2D } from "./systems/move-2d.system"; +import { showControllerStatus } from "./systems/show-controller-status.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new ControllerLibrary({ deadzone: 0.15 })); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent( + help, + new DrawableText2D("Left stick to move, hold A to go faster", 24, "#cdd6f4"), + ); + + const status = registry.spawnEntity(); + registry.addComponent(status, new Position2D(20, 560)); + registry.addComponent(status, new DrawableText2D("", 18, "#a6adc8")); + registry.addComponent(status, new ControllerStatus(0)); + + const player = registry.spawnEntity(); + registry.addComponent(player, new Position2D(370, 270)); + registry.addComponent(player, new Velocity2D(0, 0)); + registry.addComponent(player, new ControllerMove2D(300, 0, ControllerButton.A)); + registry.addComponent(player, new DrawableRect2D(60, 60, "#89b4fa")); + + registry.addSystem(controllerMove2D); + registry.addSystem(move2D); + registry.addSystem(showControllerStatus); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/input-gamepad/src/systems/controller-move-2d.system.ts b/basics/input-gamepad/src/systems/controller-move-2d.system.ts new file mode 100644 index 0000000..61f0fde --- /dev/null +++ b/basics/input-gamepad/src/systems/controller-move-2d.system.ts @@ -0,0 +1,25 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input/controller"; +import { Velocity2D } from "../components/velocity-2d.component"; + +import { ControllerMove2D } from "../components/controller-move-2d.component"; + +/** + * Sets the `Velocity2D` of `ControllerMove2D` entities from their controller's left stick, twice + * as fast while the boost button is held, and rumbles when it is pressed. Add it before `move2D`. + * + * @system + * @side client + */ +export const controllerMove2D = (registry: Registry, ctx: Context) => { + registry.getZipper([ControllerMove2D, Velocity2D]).forEach(({ ControllerMove2D, Velocity2D }) => { + const { speed, controller, boost } = ControllerMove2D as ControllerMove2D; + const stick = ctx.controller.getStick("left", controller); + const factor = ctx.controller.isButtonPressed(boost, controller) ? 2 : 1; + Velocity2D.x = stick.x * speed * factor; + Velocity2D.y = stick.y * speed * factor; + if (ctx.controller.isButtonJustPressed(boost, controller)) + void ctx.controller.vibrate({ duration: 150, strongMagnitude: 0.5 }, controller); + }); +}; diff --git a/basics/input-gamepad/src/systems/draw-2d.system.ts b/basics/input-gamepad/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/input-gamepad/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/input-gamepad/src/systems/move-2d.system.ts b/basics/input-gamepad/src/systems/move-2d.system.ts new file mode 100644 index 0000000..514766a --- /dev/null +++ b/basics/input-gamepad/src/systems/move-2d.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Acceleration2D } from "../components/acceleration-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +/** + * Moves entities: their `Acceleration2D` changes their `Velocity2D`, then their `Velocity2D` + * changes their `Position2D`, by the time elapsed since the last frame. + * + * @system + * @side shared + */ +export const move2D = (registry: Registry, ctx: Context) => { + const seconds = ctx.app.delta / 1000; + + registry.getZipper([Acceleration2D, Velocity2D]).forEach(({ Acceleration2D, Velocity2D }) => { + Velocity2D.x += Acceleration2D.x * seconds; + Velocity2D.y += Acceleration2D.y * seconds; + }); + registry.getZipper([Position2D, Velocity2D]).forEach(({ Position2D, Velocity2D }) => { + Position2D.x += Velocity2D.x * seconds; + Position2D.y += Velocity2D.y * seconds; + }); +}; diff --git a/basics/input-gamepad/src/systems/show-controller-status.system.ts b/basics/input-gamepad/src/systems/show-controller-status.system.ts new file mode 100644 index 0000000..4b4fd1f --- /dev/null +++ b/basics/input-gamepad/src/systems/show-controller-status.system.ts @@ -0,0 +1,25 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input/controller"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +import { ControllerStatus } from "../components/controller-status.component"; + +/** + * Writes the name of the watched controller, or how to connect one, in the text of every + * `ControllerStatus` entity. + * + * @system + * @side client + */ +export const showControllerStatus = (registry: Registry, ctx: Context) => { + registry + .getZipper([ControllerStatus, DrawableText2D]) + .forEach(({ ControllerStatus, DrawableText2D }) => { + const index = (ControllerStatus as ControllerStatus).controller; + const state = ctx.controller.getController(index); + DrawableText2D.text = state + ? `Controller ${index + 1}: ${state.id}` + : `Controller ${index + 1}: plug it in and press a button`; + }); +}; diff --git a/basics/input-gamepad/tsconfig.json b/basics/input-gamepad/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/input-gamepad/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From 38e08a760abaa1fe5d5cc4ba955eefec97eb66af Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:24:00 +0100 Subject: [PATCH 11/53] feat(scenes): add the scene switching basic --- basics/scenes/.gitignore | 5 + basics/scenes/README.md | 22 + basics/scenes/assets/.gitkeep | 0 basics/scenes/nanoforge.config.ts | 5 + basics/scenes/package.json | 27 + basics/scenes/pnpm-lock.yaml | 1531 +++++++++++++++++ basics/scenes/pnpm-workspace.yaml | 5 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/position-2d.component.ts | 20 + .../components/scene-switch-key.component.ts | 19 + .../components/scene-var-text.component.ts | 18 + basics/scenes/src/image-fill.ts | 43 + basics/scenes/src/main.ts | 63 + basics/scenes/src/scene-vars.ts | 14 + basics/scenes/src/scenes/blue-room.scene.ts | 28 + basics/scenes/src/scenes/red-room.scene.ts | 28 + basics/scenes/src/systems/draw-2d.system.ts | 45 + .../src/systems/show-scene-var.system.ts | 20 + .../src/systems/switch-scene-on-key.system.ts | 27 + basics/scenes/tsconfig.json | 39 + 22 files changed, 2152 insertions(+) create mode 100644 basics/scenes/.gitignore create mode 100644 basics/scenes/README.md create mode 100644 basics/scenes/assets/.gitkeep create mode 100644 basics/scenes/nanoforge.config.ts create mode 100644 basics/scenes/package.json create mode 100644 basics/scenes/pnpm-lock.yaml create mode 100644 basics/scenes/pnpm-workspace.yaml create mode 100644 basics/scenes/src/components/drawable-circle-2d.component.ts create mode 100644 basics/scenes/src/components/drawable-rect-2d.component.ts create mode 100644 basics/scenes/src/components/drawable-text-2d.component.ts create mode 100644 basics/scenes/src/components/position-2d.component.ts create mode 100644 basics/scenes/src/components/scene-switch-key.component.ts create mode 100644 basics/scenes/src/components/scene-var-text.component.ts create mode 100644 basics/scenes/src/image-fill.ts create mode 100644 basics/scenes/src/main.ts create mode 100644 basics/scenes/src/scene-vars.ts create mode 100644 basics/scenes/src/scenes/blue-room.scene.ts create mode 100644 basics/scenes/src/scenes/red-room.scene.ts create mode 100644 basics/scenes/src/systems/draw-2d.system.ts create mode 100644 basics/scenes/src/systems/show-scene-var.system.ts create mode 100644 basics/scenes/src/systems/switch-scene-on-key.system.ts create mode 100644 basics/scenes/tsconfig.json diff --git a/basics/scenes/.gitignore b/basics/scenes/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/scenes/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/scenes/README.md b/basics/scenes/README.md new file mode 100644 index 0000000..26e927a --- /dev/null +++ b/basics/scenes/README.md @@ -0,0 +1,22 @@ +# scenes + +Two rooms, red and blue: Space switches from one to the other. The bottom lines show two scene +vars. + +It shows the `scene` engine library and `EcsScene` (`@nanoforge-dev/ecs/scene`): + +- each room is a scene whose `setup` spawns its entities, like `main`; they are removed when the + scene is unloaded; +- `SceneLibrary` lists the scenes and loads `RedRoom` first; `switchSceneOnKey` calls + `ctx.scenes.load` to move to the other one; +- `room` is a var each room makes: it belongs to that room and goes away with it. + `switches` is `persistent`: it is kept across scenes. `src/scene-vars.ts` types them. + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +`image-fill.ts`, the `Position2D`, `DrawableRect2D`, `DrawableCircle2D` and `DrawableText2D` +components and the `draw2D` system are copies of `shared/2d` (see the repository's README). diff --git a/basics/scenes/assets/.gitkeep b/basics/scenes/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/scenes/nanoforge.config.ts b/basics/scenes/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/scenes/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/scenes/package.json b/basics/scenes/package.json new file mode 100644 index 0000000..f7c99e6 --- /dev/null +++ b/basics/scenes/package.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "scenes", + "description": "Switch between two scenes with a key: the smallest NanoForge game made of scenes", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "@nanoforge-dev/scene": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/basics/scenes/pnpm-lock.yaml b/basics/scenes/pnpm-lock.yaml new file mode 100644 index 0000000..a1c8333 --- /dev/null +++ b/basics/scenes/pnpm-lock.yaml @@ -0,0 +1,1531 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/scene': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/scene@3.0.0': + resolution: {integrity: sha512-4+QajCZCW8eVdQPZeSoLDQ/ueQOFwAoFvd0pRL06FeuzWJMxCVNTCeZp9UHZLTMqmEJKAC29OnBQuHvhGkuBVg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0))': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/scenes/pnpm-workspace.yaml b/basics/scenes/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/basics/scenes/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/scenes/src/components/drawable-circle-2d.component.ts b/basics/scenes/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/scenes/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/scenes/src/components/drawable-rect-2d.component.ts b/basics/scenes/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/scenes/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/scenes/src/components/drawable-text-2d.component.ts b/basics/scenes/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/scenes/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/scenes/src/components/position-2d.component.ts b/basics/scenes/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/scenes/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/scenes/src/components/scene-switch-key.component.ts b/basics/scenes/src/components/scene-switch-key.component.ts new file mode 100644 index 0000000..26b7d0b --- /dev/null +++ b/basics/scenes/src/components/scene-switch-key.component.ts @@ -0,0 +1,19 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Switches between the red and the blue room with a key. Needs the `switchSceneOnKey` system. + * + * @component + * @side client + */ +export class SceneSwitchKey { + name = "SceneSwitchKey"; + + /** Whether the key was down last frame, set by `switchSceneOnKey`. */ + held = false; + + constructor( + /** The key that switches rooms. */ + public key: InputEnum = InputEnum.Space, + ) {} +} diff --git a/basics/scenes/src/components/scene-var-text.component.ts b/basics/scenes/src/components/scene-var-text.component.ts new file mode 100644 index 0000000..1d9a882 --- /dev/null +++ b/basics/scenes/src/components/scene-var-text.component.ts @@ -0,0 +1,18 @@ +/** + * Writes the value of a scene var in the entity's `DrawableText2D`. Needs the `showSceneVar` + * system. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + */ +export class SceneVarText { + name = "SceneVarText"; + + constructor( + /** The key of the var in `ctx.scenes.vars`. @group Text */ + public variable = "", + /** Written before the value. @group Text */ + public label = "", + ) {} +} diff --git a/basics/scenes/src/image-fill.ts b/basics/scenes/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/scenes/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/scenes/src/main.ts b/basics/scenes/src/main.ts new file mode 100644 index 0000000..ab239d0 --- /dev/null +++ b/basics/scenes/src/main.ts @@ -0,0 +1,63 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputEnum, InputLibrary } from "@nanoforge-dev/input"; +import { SceneLibrary } from "@nanoforge-dev/scene"; + +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { Position2D } from "./components/position-2d.component"; +import { SceneSwitchKey } from "./components/scene-switch-key.component"; +import { SceneVarText } from "./components/scene-var-text.component"; +import "./scene-vars"; +import { BlueRoom } from "./scenes/blue-room.scene"; +import { RedRoom } from "./scenes/red-room.scene"; +import { draw2D } from "./systems/draw-2d.system"; +import { showSceneVar } from "./systems/show-scene-var.system"; +import { switchSceneOnKey } from "./systems/switch-scene-on-key.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new SceneLibrary({ initial: RedRoom, scenes: { RedRoom, BlueRoom } })); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + // Kept by every scene: the background, the help and the vars. Each room adds its own panel. + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent(help, new DrawableText2D("Space to switch rooms", 24, "#cdd6f4")); + registry.addComponent(help, new SceneSwitchKey(InputEnum.Space)); + + const room = registry.spawnEntity(); + registry.addComponent(room, new Position2D(20, 520)); + registry.addComponent(room, new DrawableText2D("", 20, "#a6adc8")); + registry.addComponent(room, new SceneVarText("room", "room (owned by the scene): ")); + + const switches = registry.spawnEntity(); + registry.addComponent(switches, new Position2D(20, 555)); + registry.addComponent(switches, new DrawableText2D("", 20, "#a6adc8")); + registry.addComponent(switches, new SceneVarText("switches", "switches (persistent): ")); + + registry.addSystem(switchSceneOnKey); + registry.addSystem(showSceneVar); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/scenes/src/scene-vars.ts b/basics/scenes/src/scene-vars.ts new file mode 100644 index 0000000..f56c6e6 --- /dev/null +++ b/basics/scenes/src/scene-vars.ts @@ -0,0 +1,14 @@ +/** + * The scene vars of the game, typed for `ctx.scenes.vars`. A var belongs to the scene that made + * it and goes away when that scene is unloaded, unless it is persistent. + */ +declare module "@nanoforge-dev/scene" { + interface SceneVars { + /** Scene switches since the game started, kept across scenes (persistent). @default 0 */ + switches: number; + /** Name of the room on screen, made by each room and removed with it. @default "" */ + room: string; + } +} + +export {}; diff --git a/basics/scenes/src/scenes/blue-room.scene.ts b/basics/scenes/src/scenes/blue-room.scene.ts new file mode 100644 index 0000000..78e6810 --- /dev/null +++ b/basics/scenes/src/scenes/blue-room.scene.ts @@ -0,0 +1,28 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; +import { Position2D } from "../components/position-2d.component"; + +/** + * The blue room: a blue panel and its title. Makes the `room` var, removed with the scene. + * + * @scene + * @side client + * @vars room + */ +export class BlueRoom extends EcsScene { + override setup(registry: Registry, ctx: Context) { + ctx.scenes.vars.set("room", "blue"); + + const panel = registry.spawnEntity(); + registry.addComponent(panel, new Position2D(200, 150)); + registry.addComponent(panel, new DrawableRect2D(400, 300, "#89b4fa")); + + const title = registry.spawnEntity(); + registry.addComponent(title, new Position2D(300, 280)); + registry.addComponent(title, new DrawableText2D("Blue room", 40, "#1e1e2e")); + } +} diff --git a/basics/scenes/src/scenes/red-room.scene.ts b/basics/scenes/src/scenes/red-room.scene.ts new file mode 100644 index 0000000..8f554e6 --- /dev/null +++ b/basics/scenes/src/scenes/red-room.scene.ts @@ -0,0 +1,28 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; +import { Position2D } from "../components/position-2d.component"; + +/** + * The red room: a red panel and its title. Makes the `room` var, removed with the scene. + * + * @scene + * @side client + * @vars room + */ +export class RedRoom extends EcsScene { + override setup(registry: Registry, ctx: Context) { + ctx.scenes.vars.set("room", "red"); + + const panel = registry.spawnEntity(); + registry.addComponent(panel, new Position2D(200, 150)); + registry.addComponent(panel, new DrawableRect2D(400, 300, "#f38ba8")); + + const title = registry.spawnEntity(); + registry.addComponent(title, new Position2D(310, 280)); + registry.addComponent(title, new DrawableText2D("Red room", 40, "#1e1e2e")); + } +} diff --git a/basics/scenes/src/systems/draw-2d.system.ts b/basics/scenes/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/scenes/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/scenes/src/systems/show-scene-var.system.ts b/basics/scenes/src/systems/show-scene-var.system.ts new file mode 100644 index 0000000..ade0776 --- /dev/null +++ b/basics/scenes/src/systems/show-scene-var.system.ts @@ -0,0 +1,20 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +import { SceneVarText } from "../components/scene-var-text.component"; + +/** + * Writes the var of every `SceneVarText` in its entity's text; a var that does not exist shows + * as `-`. + * + * @system + * @side client + */ +export const showSceneVar = (registry: Registry, ctx: Context) => { + registry.getZipper([SceneVarText, DrawableText2D]).forEach(({ SceneVarText, DrawableText2D }) => { + const { variable, label } = SceneVarText as SceneVarText; + DrawableText2D.text = `${label}${String(ctx.scenes.vars.get(variable) ?? "-")}`; + }); +}; diff --git a/basics/scenes/src/systems/switch-scene-on-key.system.ts b/basics/scenes/src/systems/switch-scene-on-key.system.ts new file mode 100644 index 0000000..c323e24 --- /dev/null +++ b/basics/scenes/src/systems/switch-scene-on-key.system.ts @@ -0,0 +1,27 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import "@nanoforge-dev/scene"; + +import { SceneSwitchKey } from "../components/scene-switch-key.component"; +import { BlueRoom } from "../scenes/blue-room.scene"; +import { RedRoom } from "../scenes/red-room.scene"; + +/** + * Loads the other room when the key of a `SceneSwitchKey` is pressed, and counts the switches in + * the persistent `switches` var. + * + * @system + * @side client + */ +export const switchSceneOnKey = (registry: Registry, ctx: Context) => { + registry.getZipper([SceneSwitchKey]).forEach(({ SceneSwitchKey }) => { + const down = ctx.input.isKeyPressed((SceneSwitchKey as SceneSwitchKey).key) === true; + if (down && !SceneSwitchKey.held) { + void ctx.scenes.load(ctx, ctx.scenes.isLoaded(RedRoom) ? BlueRoom : RedRoom); + const switches = ctx.scenes.vars.get("switches") ?? 0; + ctx.scenes.vars.set("switches", switches + 1, { persistent: true }); + } + SceneSwitchKey.held = down; + }); +}; diff --git a/basics/scenes/tsconfig.json b/basics/scenes/tsconfig.json new file mode 100644 index 0000000..c0ae4f2 --- /dev/null +++ b/basics/scenes/tsconfig.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true + }, + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] +} From 88cd64cd0947368798f7dd54d9a3936db59557e3 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:27:31 +0100 Subject: [PATCH 12/53] feat(network): add the server-authoritative network basic --- basics/network/.env.example | 8 + basics/network/.gitignore | 5 + basics/network/README.md | 30 + basics/network/apps/client/assets/.gitkeep | 0 .../network/apps/client/nanoforge.config.ts | 5 + basics/network/apps/client/package.json | 19 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/move-sender.component.ts | 31 + .../components/network-player.component.ts | 15 + .../src/components/position-2d.component.ts | 20 + basics/network/apps/client/src/image-fill.ts | 43 + basics/network/apps/client/src/main.ts | 59 + .../apps/client/src/systems/draw-2d.system.ts | 45 + .../client/src/systems/send-moves.system.ts | 32 + .../client/src/systems/show-players.system.ts | 40 + basics/network/apps/client/tsconfig.json | 5 + basics/network/apps/server/assets/.gitkeep | 0 .../network/apps/server/nanoforge.config.ts | 5 + basics/network/apps/server/package.json | 17 + .../components/acceleration-2d.component.ts | 18 + .../server/src/components/player.component.ts | 15 + .../src/components/position-2d.component.ts | 20 + .../src/components/velocity-2d.component.ts | 20 + basics/network/apps/server/src/main.ts | 33 + .../server/src/systems/join-players.system.ts | 39 + .../src/systems/keep-in-arena.system.ts | 19 + .../apps/server/src/systems/move-2d.system.ts | 26 + .../server/src/systems/send-players.system.ts | 24 + .../src/systems/steer-players.system.ts | 26 + basics/network/apps/server/tsconfig.json | 5 + .../network/libs/protocol/nanoforge.config.ts | 6 + basics/network/libs/protocol/package.json | 11 + basics/network/libs/protocol/src/protocol.ts | 34 + basics/network/nanoforge.config.ts | 6 + basics/network/package.json | 18 + basics/network/pnpm-lock.yaml | 1680 +++++++++++++++++ basics/network/pnpm-workspace.yaml | 8 + basics/network/tsconfig.json | 41 + 40 files changed, 2621 insertions(+) create mode 100644 basics/network/.env.example create mode 100644 basics/network/.gitignore create mode 100644 basics/network/README.md create mode 100644 basics/network/apps/client/assets/.gitkeep create mode 100644 basics/network/apps/client/nanoforge.config.ts create mode 100644 basics/network/apps/client/package.json create mode 100644 basics/network/apps/client/src/components/drawable-circle-2d.component.ts create mode 100644 basics/network/apps/client/src/components/drawable-rect-2d.component.ts create mode 100644 basics/network/apps/client/src/components/drawable-text-2d.component.ts create mode 100644 basics/network/apps/client/src/components/move-sender.component.ts create mode 100644 basics/network/apps/client/src/components/network-player.component.ts create mode 100644 basics/network/apps/client/src/components/position-2d.component.ts create mode 100644 basics/network/apps/client/src/image-fill.ts create mode 100644 basics/network/apps/client/src/main.ts create mode 100644 basics/network/apps/client/src/systems/draw-2d.system.ts create mode 100644 basics/network/apps/client/src/systems/send-moves.system.ts create mode 100644 basics/network/apps/client/src/systems/show-players.system.ts create mode 100644 basics/network/apps/client/tsconfig.json create mode 100644 basics/network/apps/server/assets/.gitkeep create mode 100644 basics/network/apps/server/nanoforge.config.ts create mode 100644 basics/network/apps/server/package.json create mode 100644 basics/network/apps/server/src/components/acceleration-2d.component.ts create mode 100644 basics/network/apps/server/src/components/player.component.ts create mode 100644 basics/network/apps/server/src/components/position-2d.component.ts create mode 100644 basics/network/apps/server/src/components/velocity-2d.component.ts create mode 100644 basics/network/apps/server/src/main.ts create mode 100644 basics/network/apps/server/src/systems/join-players.system.ts create mode 100644 basics/network/apps/server/src/systems/keep-in-arena.system.ts create mode 100644 basics/network/apps/server/src/systems/move-2d.system.ts create mode 100644 basics/network/apps/server/src/systems/send-players.system.ts create mode 100644 basics/network/apps/server/src/systems/steer-players.system.ts create mode 100644 basics/network/apps/server/tsconfig.json create mode 100644 basics/network/libs/protocol/nanoforge.config.ts create mode 100644 basics/network/libs/protocol/package.json create mode 100644 basics/network/libs/protocol/src/protocol.ts create mode 100644 basics/network/nanoforge.config.ts create mode 100644 basics/network/package.json create mode 100644 basics/network/pnpm-lock.yaml create mode 100644 basics/network/pnpm-workspace.yaml create mode 100644 basics/network/tsconfig.json diff --git a/basics/network/.env.example b/basics/network/.env.example new file mode 100644 index 0000000..18de8ee --- /dev/null +++ b/basics/network/.env.example @@ -0,0 +1,8 @@ +# Copy to .env: `nf start` and `nf dev` read it. Ports of the game server, as the client reaches +# it (CLIENT_) and as the server listens (SERVER_). +NANOFORGE_CLIENT_SERVER_TCP_PORT=4444 +NANOFORGE_CLIENT_SERVER_UDP_PORT=4445 +NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1 + +NANOFORGE_SERVER_LISTENING_TCP_PORT=4444 +NANOFORGE_SERVER_LISTENING_UDP_PORT=4445 diff --git a/basics/network/.gitignore b/basics/network/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/basics/network/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/basics/network/README.md b/basics/network/README.md new file mode 100644 index 0000000..17c0c43 --- /dev/null +++ b/basics/network/README.md @@ -0,0 +1,30 @@ +# network + +Every player is a square on a game server: the arrows move yours (green), and the others' squares +(red) move as their players move them. Open the game in two tabs to see it. + +It shows the `network` engine library, with a server that owns the game: + +- the client only sends where its player wants to go (`Move`, a direction per axis), when its + keys change (`sendMoves`); +- the server spawns a player for each client that sends `Join` and removes it when the client + leaves (`joinPlayers`), turns the directions into speeds (`steerPlayers`), moves the players + (`move2D`), keeps them in the arena (`keepInArena`) and sends every position to every client, + each tick (`sendPlayers`); +- the client draws the players the server sent (`showPlayers`). + +The packets are declared once with `definePacket`, in the shared library `libs/protocol`, which +both apps import as `@network/protocol/protocol` (the root `tsconfig.json` maps it). `Move`'s +`validate` drops anything but two directions: the server never trusts a client. + +```sh +pnpm install +cp .env.example .env # the server's address and ports +pnpm dev # play it: open the client's url in two tabs +pnpm editor # open it in the editor +``` + +`apps/client` and `apps/server` each hold copies of the `shared/2d` files they use (see the +repository's README): `Position2D` in both; `Velocity2D`, `Acceleration2D` and `move2D` on the +server; `image-fill.ts`, `DrawableRect2D`, `DrawableCircle2D`, `DrawableText2D` and `draw2D` on +the client. diff --git a/basics/network/apps/client/assets/.gitkeep b/basics/network/apps/client/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/network/apps/client/nanoforge.config.ts b/basics/network/apps/client/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/basics/network/apps/client/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/basics/network/apps/client/package.json b/basics/network/apps/client/package.json new file mode 100644 index 0000000..57f92c8 --- /dev/null +++ b/basics/network/apps/client/package.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "network-client", + "private": true, + "type": "module", + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "@nanoforge-dev/network": "^3.0.0", + "@network/protocol": "workspace:*", + "typescript": "^6.0.0" + } +} diff --git a/basics/network/apps/client/src/components/drawable-circle-2d.component.ts b/basics/network/apps/client/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/basics/network/apps/client/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/network/apps/client/src/components/drawable-rect-2d.component.ts b/basics/network/apps/client/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/basics/network/apps/client/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/network/apps/client/src/components/drawable-text-2d.component.ts b/basics/network/apps/client/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/basics/network/apps/client/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/basics/network/apps/client/src/components/move-sender.component.ts b/basics/network/apps/client/src/components/move-sender.component.ts new file mode 100644 index 0000000..3faebe8 --- /dev/null +++ b/basics/network/apps/client/src/components/move-sender.component.ts @@ -0,0 +1,31 @@ +import { InputEnum } from "@nanoforge-dev/input"; + +/** + * Sends the server where the player wants to go, from the keys held down; the server moves the + * player. Needs the `sendMoves` system. + * + * @component + * @side client + * @group Keys color=#f0a33a - The keys that move the player. + */ +export class MoveSender { + name = "MoveSender"; + + /** Whether the client asked the server for a player, set by `sendMoves`. */ + joined = false; + /** The direction last sent, set by `sendMoves`. */ + sentX = 0; + /** The direction last sent, set by `sendMoves`. */ + sentY = 0; + + constructor( + /** @group Keys */ + public left: InputEnum = InputEnum.ArrowLeft, + /** @group Keys */ + public right: InputEnum = InputEnum.ArrowRight, + /** @group Keys */ + public up: InputEnum = InputEnum.ArrowUp, + /** @group Keys */ + public down: InputEnum = InputEnum.ArrowDown, + ) {} +} diff --git a/basics/network/apps/client/src/components/network-player.component.ts b/basics/network/apps/client/src/components/network-player.component.ts new file mode 100644 index 0000000..7398b9f --- /dev/null +++ b/basics/network/apps/client/src/components/network-player.component.ts @@ -0,0 +1,15 @@ +/** + * A player as the server last sent it. The `showPlayers` system spawns, moves and kills these + * entities. + * + * @component + * @side client + */ +export class NetworkPlayer { + name = "NetworkPlayer"; + + constructor( + /** The client that moves it, as the server names it. */ + public clientId = "", + ) {} +} diff --git a/basics/network/apps/client/src/components/position-2d.component.ts b/basics/network/apps/client/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/network/apps/client/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/network/apps/client/src/image-fill.ts b/basics/network/apps/client/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/basics/network/apps/client/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/basics/network/apps/client/src/main.ts b/basics/network/apps/client/src/main.ts new file mode 100644 index 0000000..c412ecb --- /dev/null +++ b/basics/network/apps/client/src/main.ts @@ -0,0 +1,59 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputEnum, InputLibrary } from "@nanoforge-dev/input"; +import { NetworkClientLibrary } from "@nanoforge-dev/network/client"; + +import { DrawableRect2D } from "./components/drawable-rect-2d.component"; +import { DrawableText2D } from "./components/drawable-text-2d.component"; +import { MoveSender } from "./components/move-sender.component"; +import { Position2D } from "./components/position-2d.component"; +import { draw2D } from "./systems/draw-2d.system"; +import { sendMoves } from "./systems/send-moves.system"; +import { showPlayers } from "./systems/show-players.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 800, height: 600, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new NetworkClientLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(800, 600, "#1e1e2e")); + + const help = registry.spawnEntity(); + registry.addComponent(help, new Position2D(20, 20)); + registry.addComponent( + help, + new DrawableText2D("Arrows to move. Open a second tab: you are green", 22, "#cdd6f4"), + ); + registry.addComponent( + help, + new MoveSender( + InputEnum.ArrowLeft, + InputEnum.ArrowRight, + InputEnum.ArrowUp, + InputEnum.ArrowDown, + ), + ); + + registry.addSystem(sendMoves); + registry.addSystem(showPlayers); + registry.addSystem(draw2D); + + await app.run(); +}; diff --git a/basics/network/apps/client/src/systems/draw-2d.system.ts b/basics/network/apps/client/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/basics/network/apps/client/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/basics/network/apps/client/src/systems/send-moves.system.ts b/basics/network/apps/client/src/systems/send-moves.system.ts new file mode 100644 index 0000000..84253b4 --- /dev/null +++ b/basics/network/apps/client/src/systems/send-moves.system.ts @@ -0,0 +1,32 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/input"; +import "@nanoforge-dev/network/client"; +import { Join, Move } from "@network/protocol/protocol"; + +import { MoveSender } from "../components/move-sender.component"; + +/** + * Asks the server for a player once, then sends it the direction of the keys of `MoveSender` + * each time it changes. + * + * @system + * @side client + */ +export const sendMoves = (registry: Registry, ctx: Context) => { + const held = (key: MoveSender["left"]) => Number(ctx.input.isKeyPressed(key) === true); + + registry.getZipper([MoveSender]).forEach(({ MoveSender }) => { + if (!MoveSender.joined) { + ctx.network.packets.send(Join); + MoveSender.joined = true; + } + const { left, right, up, down } = MoveSender as MoveSender; + const x = (held(right) - held(left)) as -1 | 0 | 1; + const y = (held(down) - held(up)) as -1 | 0 | 1; + if (x === MoveSender.sentX && y === MoveSender.sentY) return; + ctx.network.packets.send(Move, { x, y }); + MoveSender.sentX = x; + MoveSender.sentY = y; + }); +}; diff --git a/basics/network/apps/client/src/systems/show-players.system.ts b/basics/network/apps/client/src/systems/show-players.system.ts new file mode 100644 index 0000000..1bce876 --- /dev/null +++ b/basics/network/apps/client/src/systems/show-players.system.ts @@ -0,0 +1,40 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/network/client"; +import { PLAYER_SIZE, Players } from "@network/protocol/protocol"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; + +import { NetworkPlayer } from "../components/network-player.component"; + +/** + * Shows the players the server sent last: moves their squares, spawns the squares of new players + * (green for this client's, red for the others) and kills those of the players that left. Add it + * before `draw2D`. + * + * @system + * @side client + */ +export const showPlayers = (registry: Registry, ctx: Context) => { + const players = ctx.network.packets.read(Players).at(-1)?.data; + if (!players) return; + + const shown = registry.getIndexedZipper([NetworkPlayer, Position2D]); + for (const { id: index, NetworkPlayer, Position2D } of shown) { + const player = players.find(({ id }) => id === NetworkPlayer.clientId); + if (!player) { + registry.killEntity(registry.entityFromIndex(index)); + continue; + } + Position2D.x = player.x; + Position2D.y = player.y; + } + for (const { id, x, y } of players) { + if (shown.some(({ NetworkPlayer }) => NetworkPlayer.clientId === id)) continue; + const color = id === ctx.network.clientId ? "#a6e3a1" : "#f38ba8"; + const player = registry.spawnEntity(); + registry.addComponent(player, new NetworkPlayer(id)); + registry.addComponent(player, new Position2D(x, y)); + registry.addComponent(player, new DrawableRect2D(PLAYER_SIZE, PLAYER_SIZE, color)); + } +}; diff --git a/basics/network/apps/client/tsconfig.json b/basics/network/apps/client/tsconfig.json new file mode 100644 index 0000000..9c06682 --- /dev/null +++ b/basics/network/apps/client/tsconfig.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + "extends": "../../tsconfig.json", + "include": ["src"] +} diff --git a/basics/network/apps/server/assets/.gitkeep b/basics/network/apps/server/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/basics/network/apps/server/nanoforge.config.ts b/basics/network/apps/server/nanoforge.config.ts new file mode 100644 index 0000000..43a3fef --- /dev/null +++ b/basics/network/apps/server/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "server", +}); diff --git a/basics/network/apps/server/package.json b/basics/network/apps/server/package.json new file mode 100644 index 0000000..c5b76ff --- /dev/null +++ b/basics/network/apps/server/package.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "network-server", + "private": true, + "type": "module", + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/network": "^3.0.0", + "@network/protocol": "workspace:*", + "typescript": "^6.0.0" + } +} diff --git a/basics/network/apps/server/src/components/acceleration-2d.component.ts b/basics/network/apps/server/src/components/acceleration-2d.component.ts new file mode 100644 index 0000000..5d4097f --- /dev/null +++ b/basics/network/apps/server/src/components/acceleration-2d.component.ts @@ -0,0 +1,18 @@ +/** + * How fast the velocity of an entity changes, in pixels per second, per second. Needs + * `Velocity2D` and the `move2D` system. + * + * @component + * @side shared + * @group Acceleration color=#f0a33a - Pixels per second, per second. + */ +export class Acceleration2D { + name = "Acceleration2D"; + + constructor( + /** Added to the horizontal velocity every second. @group Acceleration @preset vector.x */ + public x = 0, + /** Added to the vertical velocity every second. @group Acceleration @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/network/apps/server/src/components/player.component.ts b/basics/network/apps/server/src/components/player.component.ts new file mode 100644 index 0000000..48c50b0 --- /dev/null +++ b/basics/network/apps/server/src/components/player.component.ts @@ -0,0 +1,15 @@ +/** + * A player's square, moved by the client that owns it. The server spawns it when the client + * joins, and kills it when the client leaves. + * + * @component + * @side server + */ +export class Player { + name = "Player"; + + constructor( + /** The client that moves it, as `ctx.network` names it. */ + public clientId = "", + ) {} +} diff --git a/basics/network/apps/server/src/components/position-2d.component.ts b/basics/network/apps/server/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/basics/network/apps/server/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/network/apps/server/src/components/velocity-2d.component.ts b/basics/network/apps/server/src/components/velocity-2d.component.ts new file mode 100644 index 0000000..3b93d4e --- /dev/null +++ b/basics/network/apps/server/src/components/velocity-2d.component.ts @@ -0,0 +1,20 @@ +/** + * How fast an entity moves, in pixels per second. Needs `Position2D` and the `move2D` system. + * + * @example + * `new Velocity2D(100, 0)` moves 100 pixels to the right every second. + * + * @component + * @side shared + * @group Velocity color=#36c5a0 - Pixels per second. + */ +export class Velocity2D { + name = "Velocity2D"; + + constructor( + /** Pixels per second to the right (negative: to the left). @group Velocity @preset vector.x */ + public x = 0, + /** Pixels per second downward (negative: upward). @group Velocity @preset vector.y */ + public y = 0, + ) {} +} diff --git a/basics/network/apps/server/src/main.ts b/basics/network/apps/server/src/main.ts new file mode 100644 index 0000000..9170537 --- /dev/null +++ b/basics/network/apps/server/src/main.ts @@ -0,0 +1,33 @@ +import type { RunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/server"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { NetworkServerLibrary } from "@nanoforge-dev/network/server"; + +import { joinPlayers } from "./systems/join-players.system"; +import { keepInArena } from "./systems/keep-in-arena.system"; +import { move2D } from "./systems/move-2d.system"; +import { sendPlayers } from "./systems/send-players.system"; +import { steerPlayers } from "./systems/steer-players.system"; + +export const main = async (options: RunOptions): Promise => { + const app = NanoforgeFactory.createServer({ tickRate: 60 }); + const ecs = new EcsLibrary(); + + app.use(ecs); + app.use(new NetworkServerLibrary()); + app.use(new EditorLibrary()); + + await app.init(options); + + // No entity at the start: `joinPlayers` spawns one per client. + const registry = ecs.registry; + + registry.addSystem(joinPlayers); + registry.addSystem(steerPlayers); + registry.addSystem(move2D); + registry.addSystem(keepInArena); + registry.addSystem(sendPlayers); + + await app.run(); +}; diff --git a/basics/network/apps/server/src/systems/join-players.system.ts b/basics/network/apps/server/src/systems/join-players.system.ts new file mode 100644 index 0000000..41555d9 --- /dev/null +++ b/basics/network/apps/server/src/systems/join-players.system.ts @@ -0,0 +1,39 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/network/server"; +import { ARENA, Join, PLAYER_SIZE } from "@network/protocol/protocol"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +import { Player } from "../components/player.component"; + +/** + * Spawns a player in the middle of the arena for each client that joins, once per client, and + * kills the players of the clients that left. + * + * @system + * @side server + */ +export const joinPlayers = (registry: Registry, ctx: Context) => { + const players = registry.getIndexedZipper([Player]); + const joins = ctx.network.packets.read(Join); + + if (joins.length) { + // A client gets one player, whatever it sends: several joins in one tick spawn one player. + const joined = new Set(players.map(({ Player }) => Player.clientId)); + for (const { clientId } of joins) { + if (joined.has(clientId)) continue; + joined.add(clientId); + const player = registry.spawnEntity(); + registry.addComponent(player, new Player(clientId)); + registry.addComponent( + player, + new Position2D((ARENA.width - PLAYER_SIZE) / 2, (ARENA.height - PLAYER_SIZE) / 2), + ); + registry.addComponent(player, new Velocity2D(0, 0)); + } + } + for (const { id: index, Player } of players) + if (!ctx.network.clients.get(Player.clientId)) + registry.killEntity(registry.entityFromIndex(index)); +}; diff --git a/basics/network/apps/server/src/systems/keep-in-arena.system.ts b/basics/network/apps/server/src/systems/keep-in-arena.system.ts new file mode 100644 index 0000000..2f7767d --- /dev/null +++ b/basics/network/apps/server/src/systems/keep-in-arena.system.ts @@ -0,0 +1,19 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { ARENA, PLAYER_SIZE } from "@network/protocol/protocol"; +import { Position2D } from "../components/position-2d.component"; + +import { Player } from "../components/player.component"; + +/** + * Keeps every player's square inside the arena. Add it after `move2D`. + * + * @system + * @side server + */ +export const keepInArena = (registry: Registry, _ctx: Context) => { + registry.getZipper([Player, Position2D]).forEach(({ Position2D }) => { + Position2D.x = Math.min(Math.max(Position2D.x, 0), ARENA.width - PLAYER_SIZE); + Position2D.y = Math.min(Math.max(Position2D.y, 0), ARENA.height - PLAYER_SIZE); + }); +}; diff --git a/basics/network/apps/server/src/systems/move-2d.system.ts b/basics/network/apps/server/src/systems/move-2d.system.ts new file mode 100644 index 0000000..514766a --- /dev/null +++ b/basics/network/apps/server/src/systems/move-2d.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Acceleration2D } from "../components/acceleration-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +/** + * Moves entities: their `Acceleration2D` changes their `Velocity2D`, then their `Velocity2D` + * changes their `Position2D`, by the time elapsed since the last frame. + * + * @system + * @side shared + */ +export const move2D = (registry: Registry, ctx: Context) => { + const seconds = ctx.app.delta / 1000; + + registry.getZipper([Acceleration2D, Velocity2D]).forEach(({ Acceleration2D, Velocity2D }) => { + Velocity2D.x += Acceleration2D.x * seconds; + Velocity2D.y += Acceleration2D.y * seconds; + }); + registry.getZipper([Position2D, Velocity2D]).forEach(({ Position2D, Velocity2D }) => { + Position2D.x += Velocity2D.x * seconds; + Position2D.y += Velocity2D.y * seconds; + }); +}; diff --git a/basics/network/apps/server/src/systems/send-players.system.ts b/basics/network/apps/server/src/systems/send-players.system.ts new file mode 100644 index 0000000..0dbc20c --- /dev/null +++ b/basics/network/apps/server/src/systems/send-players.system.ts @@ -0,0 +1,24 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/network/server"; +import { Players } from "@network/protocol/protocol"; +import { Position2D } from "../components/position-2d.component"; + +import { Player } from "../components/player.component"; + +/** + * Sends every client where every player is. Add it last. + * + * @system + * @side server + */ +export const sendPlayers = (registry: Registry, ctx: Context) => { + ctx.network.packets.sendToAll( + Players, + registry.getZipper([Player, Position2D]).map(({ Player, Position2D }) => ({ + id: Player.clientId, + x: Math.round(Position2D.x), + y: Math.round(Position2D.y), + })), + ); +}; diff --git a/basics/network/apps/server/src/systems/steer-players.system.ts b/basics/network/apps/server/src/systems/steer-players.system.ts new file mode 100644 index 0000000..bded6a8 --- /dev/null +++ b/basics/network/apps/server/src/systems/steer-players.system.ts @@ -0,0 +1,26 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/network/server"; +import { Move, PLAYER_SPEED } from "@network/protocol/protocol"; +import { Velocity2D } from "../components/velocity-2d.component"; + +import { Player } from "../components/player.component"; + +/** + * Sets the `Velocity2D` of each player from the last direction its client sent. The client only + * says where it wants to go: the speed is the server's. Add it before `move2D`. + * + * @system + * @side server + */ +export const steerPlayers = (registry: Registry, ctx: Context) => { + const moves = ctx.network.packets.read(Move); + if (!moves.length) return; + + registry.getZipper([Player, Velocity2D]).forEach(({ Player, Velocity2D }) => { + const move = moves.findLast(({ clientId }) => clientId === Player.clientId); + if (!move) return; + Velocity2D.x = move.data.x * PLAYER_SPEED; + Velocity2D.y = move.data.y * PLAYER_SPEED; + }); +}; diff --git a/basics/network/apps/server/tsconfig.json b/basics/network/apps/server/tsconfig.json new file mode 100644 index 0000000..9c06682 --- /dev/null +++ b/basics/network/apps/server/tsconfig.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + "extends": "../../tsconfig.json", + "include": ["src"] +} diff --git a/basics/network/libs/protocol/nanoforge.config.ts b/basics/network/libs/protocol/nanoforge.config.ts new file mode 100644 index 0000000..00eccaa --- /dev/null +++ b/basics/network/libs/protocol/nanoforge.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "lib", + dir: { shared: "src" }, +}); diff --git a/basics/network/libs/protocol/package.json b/basics/network/libs/protocol/package.json new file mode 100644 index 0000000..1c865ed --- /dev/null +++ b/basics/network/libs/protocol/package.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "@network/protocol", + "description": "What the client and the server of the network example say to each other", + "private": true, + "type": "module", + "devDependencies": { + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/network": "^3.0.0" + } +} diff --git a/basics/network/libs/protocol/src/protocol.ts b/basics/network/libs/protocol/src/protocol.ts new file mode 100644 index 0000000..118b74f --- /dev/null +++ b/basics/network/libs/protocol/src/protocol.ts @@ -0,0 +1,34 @@ +import { Channel, definePacket } from "@nanoforge-dev/network"; + +/** The play area, in pixels: the server keeps every player inside it. */ +export const ARENA = { width: 800, height: 600 }; + +/** Side of a player's square, in pixels. */ +export const PLAYER_SIZE = 40; + +/** Pixels per second a player moves at. */ +export const PLAYER_SPEED = 300; + +/** A direction on one axis: -1 (left or up), 0, or 1 (right or down). */ +type Direction = -1 | 0 | 1; + +const isDirection = (value: unknown): value is Direction => + value === -1 || value === 0 || value === 1; + +/** Client to server, once: puts the client's player in the game. */ +export const Join = definePacket("join"); + +/** Client to server, when the keys held change: where the player wants to go. */ +export const Move = definePacket<{ x: Direction; y: Direction }>("move", { + // The server never trusts a client: anything but two directions is dropped. + validate: (data): data is { x: Direction; y: Direction } => + typeof data === "object" && + data !== null && + isDirection((data as { x?: unknown }).x) && + isDirection((data as { y?: unknown }).y), +}); + +/** Server to every client, each tick: where every player is. */ +export const Players = definePacket<{ id: string; x: number; y: number }[]>("players", { + channel: Channel.UnreliableOrdered, +}); diff --git a/basics/network/nanoforge.config.ts b/basics/network/nanoforge.config.ts new file mode 100644 index 0000000..6f9f285 --- /dev/null +++ b/basics/network/nanoforge.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "workspace", + packages: ["apps/*", "libs/*"], +}); diff --git a/basics/network/package.json b/basics/network/package.json new file mode 100644 index 0000000..b1661ae --- /dev/null +++ b/basics/network/package.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "network", + "description": "Move squares on a shared server: the smallest NanoForge game played online", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/config": "^3.0.1", + "typescript": "^6.0.0" + } +} diff --git a/basics/network/pnpm-lock.yaml b/basics/network/pnpm-lock.yaml new file mode 100644 index 0000000..cbb3f3e --- /dev/null +++ b/basics/network/pnpm-lock.yaml @@ -0,0 +1,1680 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + typescript: + specifier: ^6.0.0 + version: 6.0.3 + + apps/client: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/network': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@network/protocol': + specifier: workspace:* + version: link:../../libs/protocol + typescript: + specifier: ^6.0.0 + version: 6.0.3 + + apps/server: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/network': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@network/protocol': + specifier: workspace:* + version: link:../../libs/protocol + typescript: + specifier: ^6.0.0 + version: 6.0.3 + + libs/protocol: + devDependencies: + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/network': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/network@3.0.0': + resolution: {integrity: sha512-T0+s6vmiBuY3/KPK8s4wYcqQju6YDpoIJgpJy6eTelUD2+cHkWjav4WjfXxfVsE89JVu7ariXoRD+VuozhjUpA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@node-datachannel/android-arm64@0.33.6': + resolution: {integrity: sha512-UzSnd1vSN//3pqyvuufbaIQemvRfIHn/7DAy7wjoYk9tzkJp4SMk1FrNhkhmev89SH/h7yTac6PlGxGe5oHcKw==} + cpu: [arm64] + os: [android] + + '@node-datachannel/darwin-arm64@0.33.6': + resolution: {integrity: sha512-vE2fN6D0BJJ3yZo5guJo2j1q7JeQbl+VyIs6vbkjEp654tQtTo3y7a4l3xB0bwDD27TOlkOlaSLJQRj6ZXqQdQ==} + cpu: [arm64] + os: [darwin] + + '@node-datachannel/darwin-x64@0.33.6': + resolution: {integrity: sha512-EtRB2THMR11XMzbNhMEwaZtipaUxFz+PgeVx7hE+er6Ai1Fzzv7XexrMWDG11ahdpEZ8fAxlxuyELs33/WH1Cg==} + cpu: [x64] + os: [darwin] + + '@node-datachannel/linux-arm64-gnu@0.33.6': + resolution: {integrity: sha512-phMRjx8NEfW70i768LCQDEF2C6Q2vtYsS4DPXv/zbb2cJClaU5fjKFQfQ1XBCNIi1ClfpSd3Cl/rn/7SS+paTQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@node-datachannel/linux-arm64-musl@0.33.6': + resolution: {integrity: sha512-T9bqllJ9YkpgqgRFEfsPpfgfMDXdA7CIiJ4c1XXGPLSeqVFgDbf/WCewkE7q4xA+tKRLoOOtc2XgMGwVnlxXVQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@node-datachannel/linux-x64-gnu@0.33.6': + resolution: {integrity: sha512-NUTbne64++ZxwEJ9uppAAmYnFAfJAggf7gboioPdhr13P17GTQRCUgmipYrh1V0D4333x6NCBZyQaNv0n4WmpQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@node-datachannel/linux-x64-musl@0.33.6': + resolution: {integrity: sha512-dlWP4ycOJrTAl9UvxGofq0zwPhl6iAr1b0ZcBUgDfb2CXmbcJWCvg6OsJ6u8BVSV41eNXALmaRpU0wttas/f1g==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@node-datachannel/win32-arm64-msvc@0.33.6': + resolution: {integrity: sha512-ttly7XRUrSOcOOGJvtm9gh2beAPUNOBOUc3Hk82LfMHHP7jJMkXNDns/ML+UVGommAcNyPhoZkRH62O7tSVQYw==} + cpu: [arm64] + os: [win32] + + '@node-datachannel/win32-x64-msvc@0.33.6': + resolution: {integrity: sha512-N5GW6XH11Iuu+kyHLTiCMcCHdwWwpKqvtYril0LzQm6xBgmGQN3JXxFmgi4g4usw1nLy6WhBWADjbhSXJiiEMA==} + cpu: [x64] + os: [win32] + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-datachannel@0.33.6: + resolution: {integrity: sha512-n7RzImzysrOVFx/lXfkQQ4fL0wsuPXBFc8KM69V29iyIor/UX7Ej+edzNGWJm+3mApZG9nkLi7FsGAZhQCDA4w==} + engines: {node: '>=18.20.0'} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/network@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + '@nanoforge-dev/env': 3.0.0 + node-datachannel: 0.33.6 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@node-datachannel/android-arm64@0.33.6': + optional: true + + '@node-datachannel/darwin-arm64@0.33.6': + optional: true + + '@node-datachannel/darwin-x64@0.33.6': + optional: true + + '@node-datachannel/linux-arm64-gnu@0.33.6': + optional: true + + '@node-datachannel/linux-arm64-musl@0.33.6': + optional: true + + '@node-datachannel/linux-x64-gnu@0.33.6': + optional: true + + '@node-datachannel/linux-x64-musl@0.33.6': + optional: true + + '@node-datachannel/win32-arm64-msvc@0.33.6': + optional: true + + '@node-datachannel/win32-x64-msvc@0.33.6': + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + detect-libc@2.1.2: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-datachannel@0.33.6: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + '@node-datachannel/android-arm64': 0.33.6 + '@node-datachannel/darwin-arm64': 0.33.6 + '@node-datachannel/darwin-x64': 0.33.6 + '@node-datachannel/linux-arm64-gnu': 0.33.6 + '@node-datachannel/linux-arm64-musl': 0.33.6 + '@node-datachannel/linux-x64-gnu': 0.33.6 + '@node-datachannel/linux-x64-musl': 0.33.6 + '@node-datachannel/win32-arm64-msvc': 0.33.6 + '@node-datachannel/win32-x64-msvc': 0.33.6 + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/basics/network/pnpm-workspace.yaml b/basics/network/pnpm-workspace.yaml new file mode 100644 index 0000000..d509076 --- /dev/null +++ b/basics/network/pnpm-workspace.yaml @@ -0,0 +1,8 @@ +packages: + - "apps/*" + - "libs/*" +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/basics/network/tsconfig.json b/basics/network/tsconfig.json new file mode 100644 index 0000000..2f352d7 --- /dev/null +++ b/basics/network/tsconfig.json @@ -0,0 +1,41 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig.json", + // Mapped from https://www.typescriptlang.org/tsconfig + "compilerOptions": { + // Type Checking + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "strict": true, + + // Modules + "allowArbitraryExtensions": false, + "allowImportingTsExtensions": false, + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "resolvePackageJsonExports": true, + "resolvePackageJsonImports": true, + + // Interop Constraints + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + + // Language and Environment + "experimentalDecorators": true, + "lib": ["ESNext", "esnext.disposable", "DOM"], + "target": "ESNext", + "useDefineForClassFields": true, + + // The shared library (libs/protocol), imported by package name + "paths": { "@network/protocol/*": ["./libs/protocol/src/*"] } + }, + "exclude": ["**/node_modules", "**/.nanoforge", "**/dist"] +} From c96cf962315c6ea9457e51f051af9e620bf6639e Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:35:48 +0100 Subject: [PATCH 13/53] ci: typecheck client and server workspaces per app --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 253fc5d..10c6f88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,5 +43,11 @@ jobs: with: node-version: 26 - run: pnpm install --frozen-lockfile - - run: pnpm exec tsc --noEmit -p . + # A client+server workspace is typechecked per app: their `Context` augmentations clash. + - run: | + if [ -d apps ]; then + for app in apps/*/; do pnpm exec tsc --noEmit -p "$app"; done + else + pnpm exec tsc --noEmit -p . + fi - run: pnpm build From f45eb49603fa5159bc2e40b85e6db2c77d3caccd Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:35:48 +0100 Subject: [PATCH 14/53] chore: add the script that writes the music basic's tracks --- scripts/generate-music.ts | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 scripts/generate-music.ts diff --git a/scripts/generate-music.ts b/scripts/generate-music.ts new file mode 100644 index 0000000..e297560 --- /dev/null +++ b/scripts/generate-music.ts @@ -0,0 +1,41 @@ +// Writes two short 8-bit mono WAV melodies (sine notes): node music.ts +import { writeFileSync } from "node:fs"; +import { join } from "node:path"; + +const RATE = 11025; +const wav = (samples: Uint8Array) => { + const header = Buffer.alloc(44); + header.write("RIFF", 0); + header.writeUInt32LE(36 + samples.length, 4); + header.write("WAVE", 8); + header.write("fmt ", 12); + header.writeUInt32LE(16, 16); + header.writeUInt16LE(1, 20); + header.writeUInt16LE(1, 22); + header.writeUInt32LE(RATE, 24); + header.writeUInt32LE(RATE, 28); + header.writeUInt16LE(1, 32); + header.writeUInt16LE(8, 34); + header.write("data", 36); + header.writeUInt32LE(samples.length, 40); + return Buffer.concat([header, Buffer.from(samples)]); +}; +const freq = (midi: number) => 440 * 2 ** ((midi - 69) / 12); +const melody = (notes: number[], beat: number, bars: number) => { + const per = Math.round(RATE * beat); + const out = new Uint8Array(per * notes.length * bars); + for (let i = 0; i < notes.length * bars; i++) { + const f = freq(notes[i % notes.length]!); + for (let t = 0; t < per; t++) { + const env = Math.min(1, t / 200) * Math.exp((-3 * t) / per); + const v = + Math.sin((2 * Math.PI * f * t) / RATE) * 0.5 + + Math.sin((4 * Math.PI * f * t) / RATE) * 0.15; + out[i * per + t] = Math.round(128 + 100 * env * v); + } + } + return out; +}; +const dir = process.argv[2]!; +writeFileSync(join(dir, "track-a.wav"), wav(melody([60, 64, 67, 72, 67, 64, 62, 65], 0.25, 4))); +writeFileSync(join(dir, "track-b.wav"), wav(melody([57, 60, 64, 60, 55, 59, 62, 59], 0.4, 3))); From c125792eca94eecc2cfd94851e33ee8ea03a6173 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:38:35 +0100 Subject: [PATCH 15/53] feat(flappy-bird): remake flappy bird for engine 3 Scenes (sky, ready, play, game over), components and systems instead of the game-state singleton, closures and the custom render loop. Shared arcade code (just-pressed, sound effects, draw order) goes to shared/arcade. --- flappy-bird/.dockerignore | 1 - flappy-bird/.gitignore | 1 - flappy-bird/.prettierignore | 8 - flappy-bird/Dockerfile | 18 - flappy-bird/README.md | 1 - flappy-bird/client/assets.ts | 56 - .../client/components/bird.component.ts | 18 - .../client/components/pipe.component.ts | 33 - flappy-bird/client/game-state.ts | 20 - flappy-bird/client/game.ts | 205 -- flappy-bird/client/main.ts | 64 - flappy-bird/client/render-loop.ts | 43 - flappy-bird/client/sound-manager.ts | 34 - .../client/systems/collision.system.ts | 67 - flappy-bird/client/systems/input.system.ts | 15 - flappy-bird/client/systems/physics.system.ts | 43 - flappy-bird/client/systems/pipes.system.ts | 142 -- flappy-bird/client/systems/score.system.ts | 62 - flappy-bird/eslint.config.js | 23 - flappy-bird/nanoforge.config.json | 16 - flappy-bird/package.json | 35 - flappy-bird/pnpm-lock.yaml | 2238 ----------------- flappy-bird/prettier.config.js | 6 - games/flappy-bird/.gitignore | 5 + games/flappy-bird/README.md | 42 + .../static => games/flappy-bird/assets}/0.png | Bin .../static => games/flappy-bird/assets}/1.png | Bin .../static => games/flappy-bird/assets}/2.png | Bin .../static => games/flappy-bird/assets}/3.png | Bin .../static => games/flappy-bird/assets}/4.png | Bin .../static => games/flappy-bird/assets}/5.png | Bin .../static => games/flappy-bird/assets}/6.png | Bin .../static => games/flappy-bird/assets}/7.png | Bin .../static => games/flappy-bird/assets}/8.png | Bin .../static => games/flappy-bird/assets}/9.png | Bin .../flappy-bird/assets}/LICENSE | 0 .../flappy-bird/assets}/background-day.png | Bin .../flappy-bird/assets}/base.png | Bin .../flappy-bird/assets}/die.wav | Bin .../flappy-bird/assets}/gameover.png | Bin .../flappy-bird/assets}/hit.wav | Bin .../flappy-bird/assets}/message.png | Bin .../flappy-bird/assets}/pipe-green.png | Bin .../flappy-bird/assets}/point.wav | Bin .../flappy-bird/assets}/swoosh.wav | Bin .../flappy-bird/assets}/wing.wav | Bin .../assets}/yellowbird-downflap.png | Bin .../assets}/yellowbird-midflap.png | Bin .../flappy-bird/assets}/yellowbird-upflap.png | Bin games/flappy-bird/nanoforge.config.ts | 5 + games/flappy-bird/package.json | 28 + games/flappy-bird/pnpm-lock.yaml | 1549 ++++++++++++ games/flappy-bird/pnpm-workspace.yaml | 5 + .../src/components/bird.component.ts | 29 + .../src/components/draw-order-2d.component.ts | 23 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/pipe-spawner.component.ts | 39 + .../src/components/pipe.component.ts | 25 + .../src/components/position-2d.component.ts | 20 + .../src/components/restart-delay.component.ts | 19 + .../src/components/score-digit.component.ts | 21 + .../src/components/scroll-loop.component.ts | 22 + .../src/components/sound-effect.component.ts | 20 + .../src/components/velocity-2d.component.ts | 20 + games/flappy-bird/src/flap-pressed.ts | 37 + games/flappy-bird/src/image-fill.ts | 43 + games/flappy-bird/src/just-pressed.ts | 19 + games/flappy-bird/src/main.ts | 54 + games/flappy-bird/src/scene-vars.ts | 14 + .../flappy-bird/src/scenes/game-over.scene.ts | 31 + games/flappy-bird/src/scenes/play.scene.ts | 115 + games/flappy-bird/src/scenes/ready.scene.ts | 33 + games/flappy-bird/src/scenes/sky.scene.ts | 52 + .../flappy-bird/src/systems/collide.system.ts | 51 + .../flappy-bird/src/systems/draw-2d.system.ts | 45 + .../src/systems/draw-order-2d.system.ts | 59 + games/flappy-bird/src/systems/flap.system.ts | 27 + games/flappy-bird/src/systems/fly.system.ts | 40 + .../src/systems/load-sounds.system.ts | 30 + .../src/systems/move-pipes.system.ts | 51 + .../flappy-bird/src/systems/restart.system.ts | 28 + .../src/systems/score-pipes.system.ts | 33 + .../src/systems/scroll-ground.system.ts | 25 + .../src/systems/show-score.system.ts | 30 + .../src/systems/start-flight.system.ts | 20 + .../flappy-bird}/tsconfig.json | 6 +- .../components/draw-order-2d.component.ts | 23 + .../components/sound-effect.component.ts | 20 + shared/arcade/just-pressed.ts | 19 + shared/arcade/systems/draw-order-2d.system.ts | 59 + shared/arcade/systems/load-sounds.system.ts | 30 + 93 files changed, 3055 insertions(+), 3153 deletions(-) delete mode 100644 flappy-bird/.dockerignore delete mode 100644 flappy-bird/.gitignore delete mode 100644 flappy-bird/.prettierignore delete mode 100644 flappy-bird/Dockerfile delete mode 100644 flappy-bird/README.md delete mode 100644 flappy-bird/client/assets.ts delete mode 100644 flappy-bird/client/components/bird.component.ts delete mode 100644 flappy-bird/client/components/pipe.component.ts delete mode 100644 flappy-bird/client/game-state.ts delete mode 100644 flappy-bird/client/game.ts delete mode 100644 flappy-bird/client/main.ts delete mode 100644 flappy-bird/client/render-loop.ts delete mode 100644 flappy-bird/client/sound-manager.ts delete mode 100644 flappy-bird/client/systems/collision.system.ts delete mode 100644 flappy-bird/client/systems/input.system.ts delete mode 100644 flappy-bird/client/systems/physics.system.ts delete mode 100644 flappy-bird/client/systems/pipes.system.ts delete mode 100644 flappy-bird/client/systems/score.system.ts delete mode 100644 flappy-bird/eslint.config.js delete mode 100644 flappy-bird/nanoforge.config.json delete mode 100644 flappy-bird/package.json delete mode 100644 flappy-bird/pnpm-lock.yaml delete mode 100644 flappy-bird/prettier.config.js create mode 100644 games/flappy-bird/.gitignore create mode 100644 games/flappy-bird/README.md rename {flappy-bird/client/static => games/flappy-bird/assets}/0.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/1.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/2.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/3.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/4.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/5.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/6.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/7.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/8.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/9.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/LICENSE (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/background-day.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/base.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/die.wav (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/gameover.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/hit.wav (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/message.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/pipe-green.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/point.wav (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/swoosh.wav (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/wing.wav (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/yellowbird-downflap.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/yellowbird-midflap.png (100%) rename {flappy-bird/client/static => games/flappy-bird/assets}/yellowbird-upflap.png (100%) create mode 100644 games/flappy-bird/nanoforge.config.ts create mode 100644 games/flappy-bird/package.json create mode 100644 games/flappy-bird/pnpm-lock.yaml create mode 100644 games/flappy-bird/pnpm-workspace.yaml create mode 100644 games/flappy-bird/src/components/bird.component.ts create mode 100644 games/flappy-bird/src/components/draw-order-2d.component.ts create mode 100644 games/flappy-bird/src/components/drawable-circle-2d.component.ts create mode 100644 games/flappy-bird/src/components/drawable-rect-2d.component.ts create mode 100644 games/flappy-bird/src/components/drawable-text-2d.component.ts create mode 100644 games/flappy-bird/src/components/pipe-spawner.component.ts create mode 100644 games/flappy-bird/src/components/pipe.component.ts create mode 100644 games/flappy-bird/src/components/position-2d.component.ts create mode 100644 games/flappy-bird/src/components/restart-delay.component.ts create mode 100644 games/flappy-bird/src/components/score-digit.component.ts create mode 100644 games/flappy-bird/src/components/scroll-loop.component.ts create mode 100644 games/flappy-bird/src/components/sound-effect.component.ts create mode 100644 games/flappy-bird/src/components/velocity-2d.component.ts create mode 100644 games/flappy-bird/src/flap-pressed.ts create mode 100644 games/flappy-bird/src/image-fill.ts create mode 100644 games/flappy-bird/src/just-pressed.ts create mode 100644 games/flappy-bird/src/main.ts create mode 100644 games/flappy-bird/src/scene-vars.ts create mode 100644 games/flappy-bird/src/scenes/game-over.scene.ts create mode 100644 games/flappy-bird/src/scenes/play.scene.ts create mode 100644 games/flappy-bird/src/scenes/ready.scene.ts create mode 100644 games/flappy-bird/src/scenes/sky.scene.ts create mode 100644 games/flappy-bird/src/systems/collide.system.ts create mode 100644 games/flappy-bird/src/systems/draw-2d.system.ts create mode 100644 games/flappy-bird/src/systems/draw-order-2d.system.ts create mode 100644 games/flappy-bird/src/systems/flap.system.ts create mode 100644 games/flappy-bird/src/systems/fly.system.ts create mode 100644 games/flappy-bird/src/systems/load-sounds.system.ts create mode 100644 games/flappy-bird/src/systems/move-pipes.system.ts create mode 100644 games/flappy-bird/src/systems/restart.system.ts create mode 100644 games/flappy-bird/src/systems/score-pipes.system.ts create mode 100644 games/flappy-bird/src/systems/scroll-ground.system.ts create mode 100644 games/flappy-bird/src/systems/show-score.system.ts create mode 100644 games/flappy-bird/src/systems/start-flight.system.ts rename {flappy-bird => games/flappy-bird}/tsconfig.json (88%) create mode 100644 shared/arcade/components/draw-order-2d.component.ts create mode 100644 shared/arcade/components/sound-effect.component.ts create mode 100644 shared/arcade/just-pressed.ts create mode 100644 shared/arcade/systems/draw-order-2d.system.ts create mode 100644 shared/arcade/systems/load-sounds.system.ts diff --git a/flappy-bird/.dockerignore b/flappy-bird/.dockerignore deleted file mode 100644 index c2658d7..0000000 --- a/flappy-bird/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/flappy-bird/.gitignore b/flappy-bird/.gitignore deleted file mode 100644 index 0b4fc4e..0000000 --- a/flappy-bird/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.nanoforge/client diff --git a/flappy-bird/.prettierignore b/flappy-bird/.prettierignore deleted file mode 100644 index 2f0ede7..0000000 --- a/flappy-bird/.prettierignore +++ /dev/null @@ -1,8 +0,0 @@ -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock -bun.lock - -/node_modules -/.nanoforge diff --git a/flappy-bird/Dockerfile b/flappy-bird/Dockerfile deleted file mode 100644 index b421fa2..0000000 --- a/flappy-bird/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM node:26-slim - -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" -RUN npm install -g pnpm - -WORKDIR /app - -COPY package.json ./ -COPY pnpm-lock.yaml ./ - -RUN pnpm install --frozen-lockfile --allow-build=bun - -COPY . . - -RUN pnpm run build - -CMD ["pnpm", "run", "start"] diff --git a/flappy-bird/README.md b/flappy-bird/README.md deleted file mode 100644 index 1e185f3..0000000 --- a/flappy-bird/README.md +++ /dev/null @@ -1 +0,0 @@ -# flappy-bird diff --git a/flappy-bird/client/assets.ts b/flappy-bird/client/assets.ts deleted file mode 100644 index 56ddf01..0000000 --- a/flappy-bird/client/assets.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { AssetManagerLibrary } from "@nanoforge-dev/asset-manager"; -import { Image } from "@nanoforge-dev/graphics-2d"; - -export interface Sprites { - background: HTMLImageElement; - ground: HTMLImageElement; - birdFrames: HTMLImageElement[]; - pipe: HTMLImageElement; - gameover: HTMLImageElement; - message: HTMLImageElement; - digits: HTMLImageElement[]; -} - -function loadImage(url: string): Promise { - return new Promise((resolve, reject) => { - Image.fromURL( - url, - (node) => { - const image = node.image(); - if (image) resolve(image as HTMLImageElement); - else reject(new Error(`Failed to load image: ${url}`)); - }, - () => reject(new Error(`Failed to load image: ${url}`)), - ); - }); -} - -export async function loadSprites(assetManager: AssetManagerLibrary): Promise { - const url = (path: string): string => assetManager.getAsset(path).path; - - const [background, ground, up, mid, down, pipe, gameover, message, ...digits] = await Promise.all( - [ - loadImage(url("background-day.png")), - loadImage(url("base.png")), - loadImage(url("yellowbird-upflap.png")), - loadImage(url("yellowbird-midflap.png")), - loadImage(url("yellowbird-downflap.png")), - loadImage(url("pipe-green.png")), - loadImage(url("gameover.png")), - loadImage(url("message.png")), - ...Array.from({ length: 10 }, (_, i) => loadImage(url(`${i}.png`))), - ], - ); - return { background, ground, birdFrames: [up, mid, down], pipe, gameover, message, digits }; -} - -export async function loadSounds( - assetManager: AssetManagerLibrary, - sound: { load: (key: string, file: string) => void }, -): Promise { - sound.load("wing", assetManager.getAsset("wing.wav").path); - sound.load("hit", assetManager.getAsset("hit.wav").path); - sound.load("point", assetManager.getAsset("point.wav").path); - sound.load("die", assetManager.getAsset("die.wav").path); - sound.load("swoosh", assetManager.getAsset("swoosh.wav").path); -} diff --git a/flappy-bird/client/components/bird.component.ts b/flappy-bird/client/components/bird.component.ts deleted file mode 100644 index be99ea0..0000000 --- a/flappy-bird/client/components/bird.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { Component } from "@nanoforge-dev/ecs-client"; - -export class PositionComponent implements Component { - name = this.constructor.name; - constructor( - public x: number, - public y: number, - ) {} -} - -export class VelocityComponent implements Component { - name = this.constructor.name; - constructor(public vy: number) {} -} - -export class BirdComponent implements Component { - name = this.constructor.name; -} diff --git a/flappy-bird/client/components/pipe.component.ts b/flappy-bird/client/components/pipe.component.ts deleted file mode 100644 index 4d46996..0000000 --- a/flappy-bird/client/components/pipe.component.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type { Component, Entity } from "@nanoforge-dev/ecs-client"; -import type { Group } from "@nanoforge-dev/graphics-2d"; - -export interface HitRect { - x: number; - y: number; - width: number; - height: number; -} - -export class PipeComponent implements Component { - name = this.constructor.name; - scored: boolean; - prevX: number; - hitTop: HitRect; - hitBottom: HitRect; - constructor( - public entity: Entity, - public x: number, - topY: number, - topHeight: number, - pipeWidth: number, - bottomY: number, - bottomHeight: number, - public topGroup: Group, - public bottomGroup: Group, - ) { - this.scored = false; - this.prevX = x; - this.hitTop = { x, y: topY, width: pipeWidth, height: topHeight }; - this.hitBottom = { x, y: bottomY, width: pipeWidth, height: bottomHeight }; - } -} diff --git a/flappy-bird/client/game-state.ts b/flappy-bird/client/game-state.ts deleted file mode 100644 index 7dbb5ec..0000000 --- a/flappy-bird/client/game-state.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { PipeComponent } from "./components/pipe.component"; - -type ZippedPipe = { PipeComponent: PipeComponent }; - -export class GameState { - running = false; - gameOver = false; - score = 0; - gameOverAt = 0; - pipeSpawnTimer = 0; - pipesTick: ZippedPipe[] = []; - - lastTickAt = 0; - prevBirdY = 0; - currBirdY = 0; - prevBirdRotation = 0; - currBirdRotation = 0; - prevGroundX = 0; - currGroundX = 0; -} diff --git a/flappy-bird/client/game.ts b/flappy-bird/client/game.ts deleted file mode 100644 index 7343e2b..0000000 --- a/flappy-bird/client/game.ts +++ /dev/null @@ -1,205 +0,0 @@ -import { Image, Rect, type Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; -import type { AssetManagerLibrary } from "@nanoforge-dev/asset-manager"; -import type { InputLibrary } from "@nanoforge-dev/input"; -import type { ECSClientLibrary } from "@nanoforge-dev/ecs-client"; -import { PositionComponent, VelocityComponent, BirdComponent } from "./components/bird.component"; -import { PipeComponent } from "./components/pipe.component"; -import { GameState } from "./game-state"; -import { loadSprites, loadSounds } from "./assets"; -import type { SoundManager } from "./sound-manager"; -import { createInputSystem } from "./systems/input.system"; -import { createPhysicsSystem, flap } from "./systems/physics.system"; -import { createPipesSystem } from "./systems/pipes.system"; -import { createCollisionSystem } from "./systems/collision.system"; -import { createScoreSystem } from "./systems/score.system"; -import { startRenderLoop } from "./render-loop"; - -const BIRD_X = 60; -const GROUND_HEIGHT = 112; -const RESTART_COOLDOWN_MS = 400; - -export interface GameLibraries { - graphics: Graphics2DLibrary; - input: InputLibrary; - sound: SoundManager; - ecs: ECSClientLibrary; - assetManager: AssetManagerLibrary; -} - -export interface GameHandle { - flap: () => void; -} - -export async function registerGame(libs: GameLibraries): Promise { - const { graphics, input, sound, ecs, assetManager } = libs; - const stage = graphics.stage; - const layer = graphics.baseLayer; - const stageWidth = stage.width(); - const stageHeight = stage.height(); - - layer.listening(false); - - const [sprites] = await Promise.all([loadSprites(assetManager), loadSounds(assetManager, sound)]); - - const state = new GameState(); - - const background = new Image({ - image: sprites.background, - x: 0, - y: 0, - width: stageWidth, - height: stageHeight, - }); - layer.add(background); - - const ground = new Rect({ - x: 0, - y: stageHeight - GROUND_HEIGHT, - width: stageWidth, - height: GROUND_HEIGHT, - fillPatternImage: sprites.ground, - fillPatternRepeat: "repeat-x", - }); - layer.add(ground); - - const registry = ecs.registry; - const bird = registry.spawnEntity(); - registry.addComponent(bird, new PositionComponent(BIRD_X, stageHeight / 2)); - registry.addComponent(bird, new VelocityComponent(0)); - registry.addComponent(bird, new BirdComponent()); - - const birdFrameWidth = sprites.birdFrames[1]?.naturalWidth ?? 34; - const birdFrameHeight = sprites.birdFrames[1]?.naturalHeight ?? 24; - const birdNode = new Image({ - image: sprites.birdFrames[1], - x: BIRD_X, - y: stageHeight / 2, - width: birdFrameWidth, - height: birdFrameHeight, - offsetX: birdFrameWidth / 2, - offsetY: birdFrameHeight / 2, - }); - layer.add(birdNode); - - state.lastTickAt = performance.now(); - state.prevBirdY = stageHeight / 2; - state.currBirdY = stageHeight / 2; - - const message = new Image({ - image: sprites.message, - x: (stageWidth - sprites.message.naturalWidth) / 2, - y: stageHeight / 4, - width: sprites.message.naturalWidth, - height: sprites.message.naturalHeight, - }); - layer.add(message); - - const pipeWidth = sprites.pipe.naturalWidth || 52; - - const scoreCtl = createScoreSystem({ - birdX: BIRD_X, - pipeWidth, - layer, - digits: sprites.digits, - stageWidth, - sound, - state, - }); - - let gameoverNode: Image | null = null; - - function handleGameOver(): void { - gameoverNode = new Image({ - image: sprites.gameover, - x: (stageWidth - sprites.gameover.naturalWidth) / 2, - y: stageHeight / 3, - width: sprites.gameover.naturalWidth, - height: sprites.gameover.naturalHeight, - }); - layer.add(gameoverNode); - layer.batchDraw(); - state.gameOverAt = performance.now(); - } - - function resetGame(): void { - const pipes = registry.getZipper([PipeComponent]) as { PipeComponent: PipeComponent }[]; - for (const { PipeComponent: pipe } of pipes) { - pipe.topGroup.destroy(); - pipe.bottomGroup.destroy(); - registry.killEntity(pipe.entity); - } - state.pipeSpawnTimer = 0; - state.pipesTick = []; - - gameoverNode?.destroy(); - gameoverNode = null; - - const pos = registry.getEntityComponent(bird, new PositionComponent(0, 0)) as PositionComponent; - const vel = registry.getEntityComponent(bird, new VelocityComponent(0)) as VelocityComponent; - pos.x = BIRD_X; - pos.y = stageHeight / 2; - vel.vy = 0; - birdNode.x(BIRD_X); - birdNode.y(stageHeight / 2); - birdNode.rotation(0); - - state.prevBirdY = stageHeight / 2; - state.currBirdY = stageHeight / 2; - state.prevBirdRotation = 0; - state.currBirdRotation = 0; - - state.score = 0; - state.gameOver = false; - scoreCtl.resetDisplay(); - } - - function handleFlap(): void { - if (state.gameOver) { - if (performance.now() - state.gameOverAt < RESTART_COOLDOWN_MS) return; - resetGame(); - state.running = true; - sound.play("swoosh"); - flap(registry, bird); - sound.play("wing"); - return; - } - if (!state.running) { - state.running = true; - message.destroy(); - sound.play("swoosh"); - } - flap(registry, bird); - sound.play("wing"); - } - - registry.addSystem(createInputSystem(input, handleFlap)); - registry.addSystem(createPhysicsSystem(bird, birdNode, state)); - registry.addSystem( - createPipesSystem({ - layer, - pipeImage: sprites.pipe, - stageWidth, - stageHeight, - groundHeight: GROUND_HEIGHT, - ground, - state, - }), - ); - registry.addSystem( - createCollisionSystem({ - birdNode, - groundY: stageHeight - GROUND_HEIGHT, - sound, - state, - onGameOver: handleGameOver, - }), - ); - registry.addSystem(scoreCtl.tick); - registry.addSystem(() => { - state.lastTickAt = performance.now(); - }); - - startRenderLoop({ layer, birdNode, ground, state }); - - return { flap: handleFlap }; -} diff --git a/flappy-bird/client/main.ts b/flappy-bird/client/main.ts deleted file mode 100644 index c19909c..0000000 --- a/flappy-bird/client/main.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { NanoforgeFactory } from "@nanoforge-dev/core"; -import { type IRunClientOptions, type IRunOptions } from "@nanoforge-dev/common"; -import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager"; -import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; -import { InputLibrary } from "@nanoforge-dev/input"; -import { ECSClientLibrary } from "@nanoforge-dev/ecs-client"; - -import { registerGame } from "./game"; -import { SoundManager } from "./sound-manager"; - -const GAME_WIDTH = 420; -const GAME_HEIGHT = 560; - -export async function main(options: IRunOptions) { - const { container } = options as IRunClientOptions; - - const client = NanoforgeFactory.createClient({ tickRate: 60 }); - const assetManager = new AssetManagerLibrary(); - const graphics = new Graphics2DLibrary(); - const input = new InputLibrary(); - const ecs = new ECSClientLibrary(); - const sound = new SoundManager(); - - client.useAssetManager(assetManager); - client.useGraphics(graphics); - client.useInput(input); - client.useComponentSystem(ecs); - - await client.init(options); - - const stage = graphics.stage; - stage.size({ width: GAME_WIDTH, height: GAME_HEIGHT }); - - container.style.display = "flex"; - container.style.alignItems = "center"; - container.style.justifyContent = "center"; - const canvas = container.querySelector("canvas"); - - function applyResponsiveScale(): void { - const scale = Math.min( - container.clientWidth / GAME_WIDTH, - container.clientHeight / GAME_HEIGHT, - ); - if (canvas) { - canvas.style.transform = `scale(${scale > 0 ? scale : 1})`; - } - } - - applyResponsiveScale(); - requestAnimationFrame(applyResponsiveScale); - window.addEventListener("resize", applyResponsiveScale); - - const game = await registerGame({ graphics, input, sound, ecs, assetManager }); - await client.run(); - - container.addEventListener( - "touchstart", - (event) => { - event.preventDefault(); - game.flap(); - }, - { passive: false }, - ); -} diff --git a/flappy-bird/client/render-loop.ts b/flappy-bird/client/render-loop.ts deleted file mode 100644 index 1353161..0000000 --- a/flappy-bird/client/render-loop.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { Image, Layer, Rect } from "@nanoforge-dev/graphics-2d"; -import type { GameState } from "./game-state"; - -// Must match NanoforgeFactory.createClient({ tickRate: 60 }) in main.ts. -const TICK_INTERVAL_MS = 1000 / 60; - -function lerp(from: number, to: number, alpha: number): number { - return from + (to - from) * alpha; -} - -export interface RenderLoopDeps { - layer: Layer; - birdNode: Image; - ground: Rect; - state: GameState; -} - -export function startRenderLoop(deps: RenderLoopDeps): void { - const { layer, birdNode, ground, state } = deps; - - function render(): void { - try { - const alpha = Math.min(1, (performance.now() - state.lastTickAt) / TICK_INTERVAL_MS); - - birdNode.y(lerp(state.prevBirdY, state.currBirdY, alpha)); - birdNode.rotation(lerp(state.prevBirdRotation, state.currBirdRotation, alpha)); - ground.fillPatternX(lerp(state.prevGroundX, state.currGroundX, alpha)); - - for (const { PipeComponent: pipe } of state.pipesTick) { - const x = lerp(pipe.prevX, pipe.x, alpha); - pipe.topGroup.x(x); - pipe.bottomGroup.x(x); - } - - layer.batchDraw(); - } catch (err) { - console.error("render-loop: skipping frame after error", err); - } - requestAnimationFrame(render); - } - - requestAnimationFrame(render); -} diff --git a/flappy-bird/client/sound-manager.ts b/flappy-bird/client/sound-manager.ts deleted file mode 100644 index c2d1ada..0000000 --- a/flappy-bird/client/sound-manager.ts +++ /dev/null @@ -1,34 +0,0 @@ -const DEFAULT_VOLUME = 0.5; - -export class SoundManager { - private ctx = new AudioContext(); - private gain = this.ctx.createGain(); - private buffers = new Map(); - - constructor() { - this.gain.gain.value = DEFAULT_VOLUME; - this.gain.connect(this.ctx.destination); - } - - load(key: string, url: string): void { - fetch(url) - .then((response) => response.arrayBuffer()) - .then((data) => this.ctx.decodeAudioData(data)) - .then((buffer) => { - this.buffers.set(key, buffer); - }) - .catch(() => {}); - } - - play(key: string): void { - const buffer = this.buffers.get(key); - if (!buffer) return; - if (this.ctx.state === "suspended") { - this.ctx.resume().catch(() => {}); - } - const source = this.ctx.createBufferSource(); - source.buffer = buffer; - source.connect(this.gain); - source.start(); - } -} diff --git a/flappy-bird/client/systems/collision.system.ts b/flappy-bird/client/systems/collision.system.ts deleted file mode 100644 index 545ac4d..0000000 --- a/flappy-bird/client/systems/collision.system.ts +++ /dev/null @@ -1,67 +0,0 @@ -import type { Registry, System } from "@nanoforge-dev/ecs-client"; -import type { Image as KonvaImage } from "@nanoforge-dev/graphics-2d"; -import type { SoundManager } from "../sound-manager"; -import type { GameState } from "../game-state"; - -type Rect = { x: number; y: number; width: number; height: number }; - -function overlaps(a: Rect, b: Rect): boolean { - return a.x < b.x + b.width && a.x + a.width > b.x && a.y < b.y + b.height && a.y + a.height > b.y; -} - -const BIRD_HITBOX_INSET_RATIO = 0.25; - -function shrink(rect: Rect, ratio: number): Rect { - const insetX = rect.width * ratio; - const insetY = rect.height * ratio; - return { - x: rect.x + insetX, - y: rect.y + insetY, - width: rect.width - insetX * 2, - height: rect.height - insetY * 2, - }; -} - -export interface CollisionSystemDeps { - birdNode: KonvaImage; - groundY: number; - sound: SoundManager; - state: GameState; - onGameOver: () => void; -} - -export function createCollisionSystem(deps: CollisionSystemDeps): System { - const { birdNode, groundY, sound, state, onGameOver } = deps; - - return (registry: Registry) => { - if (!state.running || state.gameOver) return; - void registry; - - const bird = shrink( - { - x: birdNode.x() - birdNode.width() / 2, - y: state.currBirdY - birdNode.height() / 2, - width: birdNode.width(), - height: birdNode.height(), - }, - BIRD_HITBOX_INSET_RATIO, - ); - - let hit = bird.y + bird.height >= groundY; - if (!hit) { - for (const { PipeComponent: pipe } of state.pipesTick) { - if (overlaps(bird, pipe.hitTop) || overlaps(bird, pipe.hitBottom)) { - hit = true; - break; - } - } - } - - if (hit) { - state.gameOver = true; - sound.play("hit"); - window.setTimeout(() => sound.play("die"), 150); - onGameOver(); - } - }; -} diff --git a/flappy-bird/client/systems/input.system.ts b/flappy-bird/client/systems/input.system.ts deleted file mode 100644 index 6ad6aee..0000000 --- a/flappy-bird/client/systems/input.system.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Registry, System } from "@nanoforge-dev/ecs-client"; -import { InputEnum, type InputLibrary } from "@nanoforge-dev/input"; - -export function createInputSystem(input: InputLibrary, onFlap: () => void): System { - let wasPressed = false; - return (_registry: Registry) => { - const pressed = Boolean( - input.isKeyPressed(InputEnum.Space) || input.isKeyPressed(InputEnum.MouseLeft), - ); - if (pressed && !wasPressed) { - onFlap(); - } - wasPressed = pressed; - }; -} diff --git a/flappy-bird/client/systems/physics.system.ts b/flappy-bird/client/systems/physics.system.ts deleted file mode 100644 index d154e70..0000000 --- a/flappy-bird/client/systems/physics.system.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { Context } from "@nanoforge-dev/common"; -import type { Entity, Registry, System } from "@nanoforge-dev/ecs-client"; -import type { Image } from "@nanoforge-dev/graphics-2d"; -import { PositionComponent, VelocityComponent } from "../components/bird.component"; -import type { GameState } from "../game-state"; - -const GRAVITY = 1500; -const FLAP_VELOCITY = -430; -const MAX_FALL_SPEED = 640; - -export function createPhysicsSystem(bird: Entity, birdNode: Image, state: GameState): System { - return (registry: Registry, ctx: Context) => { - if (!state.running || state.gameOver) { - state.prevBirdY = state.currBirdY; - state.prevBirdRotation = state.currBirdRotation; - return; - } - - const pos = registry.getEntityComponent(bird, new PositionComponent(0, 0)) as PositionComponent; - const vel = registry.getEntityComponent(bird, new VelocityComponent(0)) as VelocityComponent; - if (!pos || !vel) return; - - const dt = Math.min(ctx.app.delta / 1000, 1 / 30); - vel.vy = Math.min(vel.vy + GRAVITY * dt, MAX_FALL_SPEED); - pos.y += vel.vy * dt; - - const rect = { y: pos.y - birdNode.height() / 2 }; - if (rect.y < 0) { - pos.y -= rect.y; - if (vel.vy < 0) vel.vy = 0; - } - - state.prevBirdY = state.currBirdY; - state.currBirdY = pos.y; - state.prevBirdRotation = state.currBirdRotation; - state.currBirdRotation = Math.max(-25, Math.min(90, vel.vy / 8)); - }; -} - -export function flap(registry: Registry, bird: Entity): void { - const vel = registry.getEntityComponent(bird, new VelocityComponent(0)) as VelocityComponent; - if (vel) vel.vy = FLAP_VELOCITY; -} diff --git a/flappy-bird/client/systems/pipes.system.ts b/flappy-bird/client/systems/pipes.system.ts deleted file mode 100644 index cac2a62..0000000 --- a/flappy-bird/client/systems/pipes.system.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { Context } from "@nanoforge-dev/common"; -import type { Registry, System } from "@nanoforge-dev/ecs-client"; -import { Group, Image, type Layer, type Rect } from "@nanoforge-dev/graphics-2d"; -import { PipeComponent } from "../components/pipe.component"; -import type { GameState } from "../game-state"; - -const BASE_PIPE_GAP = 150; -const MIN_PIPE_GAP = 110; -const GAP_DIFFICULTY_STEP = 2.5; -const GAP_JITTER = 16; -const PIPE_SPEED = 150; -const SPAWN_INTERVAL = 1.5; -const CAP_HEIGHT = 24; -const EDGE_MARGIN = 60; -const MAX_DT = 1 / 30; - -export interface PipesSystemDeps { - layer: Layer; - pipeImage: HTMLImageElement; - stageWidth: number; - stageHeight: number; - groundHeight: number; - ground: Rect; - state: GameState; -} - -function createPipeSegment( - pipeImage: HTMLImageElement, - pipeWidth: number, - totalHeight: number, - flipped: boolean, -): Group { - const group = new Group(); - const bodyHeight = Math.max(0, totalHeight - CAP_HEIGHT); - - const body = new Image({ - image: pipeImage, - crop: { x: 0, y: CAP_HEIGHT, width: pipeWidth, height: 320 - CAP_HEIGHT }, - x: 0, - y: flipped ? 0 : CAP_HEIGHT, - width: pipeWidth, - height: bodyHeight, - }); - const cap = new Image({ - image: pipeImage, - crop: { x: 0, y: 0, width: pipeWidth, height: CAP_HEIGHT }, - x: 0, - y: flipped ? bodyHeight : 0, - width: pipeWidth, - height: CAP_HEIGHT, - scaleY: flipped ? -1 : 1, - offsetY: flipped ? CAP_HEIGHT : 0, - }); - group.add(body); - group.add(cap); - return group; -} - -export function createPipesSystem(deps: PipesSystemDeps): System { - const { layer, pipeImage, stageWidth, stageHeight, groundHeight, ground, state } = deps; - const pipeWidth = pipeImage.naturalWidth || 52; - const groundY = stageHeight - groundHeight; - const playableHeight = groundY; - - return (registry: Registry, ctx: Context) => { - const dt = Math.min(ctx.app.delta / 1000, MAX_DT); - if (state.running) { - state.prevGroundX = state.currGroundX; - state.currGroundX -= PIPE_SPEED * dt; - } - if (!state.running || state.gameOver) { - for (const { PipeComponent: pipe } of state.pipesTick) { - pipe.prevX = pipe.x; - } - return; - } - - state.pipeSpawnTimer -= dt; - if (state.pipeSpawnTimer <= 0) { - state.pipeSpawnTimer = SPAWN_INTERVAL; - - const difficultyGap = Math.max( - MIN_PIPE_GAP, - BASE_PIPE_GAP - state.score * GAP_DIFFICULTY_STEP, - ); - const gap = Math.max(MIN_PIPE_GAP, difficultyGap + (Math.random() * 2 - 1) * GAP_JITTER); - - const centerMin = gap / 2 + EDGE_MARGIN; - const centerMax = playableHeight - gap / 2 - EDGE_MARGIN; - const gapCenterY = centerMin + Math.random() * Math.max(0, centerMax - centerMin); - const topHeight = gapCenterY - gap / 2; - const bottomHeight = groundY - (gapCenterY + gap / 2); - - const entity = registry.spawnEntity(); - const topGroup = createPipeSegment(pipeImage, pipeWidth, topHeight, true); - topGroup.position({ x: stageWidth, y: 0 }); - const bottomGroup = createPipeSegment(pipeImage, pipeWidth, bottomHeight, false); - bottomGroup.position({ x: stageWidth, y: gapCenterY + gap / 2 }); - - layer.add(topGroup); - layer.add(bottomGroup); - ground.moveToTop(); - registry.addComponent( - entity, - new PipeComponent( - entity, - stageWidth, - 0, - topHeight, - pipeWidth, - gapCenterY + gap / 2, - bottomHeight, - topGroup, - bottomGroup, - ), - ); - } - - const pipes = registry.getZipper([PipeComponent]) as { PipeComponent: PipeComponent }[]; - - const dead: PipeComponent[] = []; - const alive: { PipeComponent: PipeComponent }[] = []; - for (const row of pipes) { - const pipe = row.PipeComponent; - pipe.prevX = pipe.x; - pipe.x -= PIPE_SPEED * dt; - pipe.hitTop.x = pipe.x; - pipe.hitBottom.x = pipe.x; - if (pipe.x + pipeWidth < 0) { - dead.push(pipe); - } else { - alive.push(row); - } - } - for (const pipe of dead) { - registry.killEntity(pipe.entity); - pipe.topGroup.destroy(); - pipe.bottomGroup.destroy(); - } - state.pipesTick = alive; - }; -} diff --git a/flappy-bird/client/systems/score.system.ts b/flappy-bird/client/systems/score.system.ts deleted file mode 100644 index a8f1638..0000000 --- a/flappy-bird/client/systems/score.system.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { Registry, System } from "@nanoforge-dev/ecs-client"; -import { Group, Image, type Layer } from "@nanoforge-dev/graphics-2d"; -import type { SoundManager } from "../sound-manager"; -import type { GameState } from "../game-state"; - -export interface ScoreSystemDeps { - birdX: number; - pipeWidth: number; - layer: Layer; - digits: HTMLImageElement[]; - stageWidth: number; - sound: SoundManager; - state: GameState; -} - -function renderScore(deps: ScoreSystemDeps, group: Group): void { - group.destroyChildren(); - - const text = String(deps.state.score); - const digitWidth = deps.digits[0]?.naturalWidth ?? 24; - const digitHeight = deps.digits[0]?.naturalHeight ?? 36; - const totalWidth = text.length * digitWidth; - let x = (deps.stageWidth - totalWidth) / 2; - - for (const char of text) { - const image = deps.digits[Number(char)]; - if (!image) continue; - group.add(new Image({ image, x, y: 20, width: digitWidth, height: digitHeight })); - x += digitWidth; - } -} - -export interface ScoreSystemControls { - tick: System; - resetDisplay: () => void; -} - -export function createScoreSystem(deps: ScoreSystemDeps): ScoreSystemControls { - const group = new Group(); - deps.layer.add(group); - renderScore(deps, group); - - const tick: System = (registry: Registry) => { - group.moveToTop(); - if (!deps.state.running || deps.state.gameOver) return; - void registry; - - for (const { PipeComponent: pipe } of deps.state.pipesTick) { - if (!pipe.scored && pipe.x + deps.pipeWidth < deps.birdX) { - pipe.scored = true; - deps.state.score += 1; - deps.sound.play("point"); - renderScore(deps, group); - } - } - }; - - return { - tick, - resetDisplay: () => renderScore(deps, group), - }; -} diff --git a/flappy-bird/eslint.config.js b/flappy-bird/eslint.config.js deleted file mode 100644 index d3db057..0000000 --- a/flappy-bird/eslint.config.js +++ /dev/null @@ -1,23 +0,0 @@ -import pluginJs from "@eslint/js"; -import eslintConfigPrettier from "eslint-config-prettier"; -import globals from "globals"; -import tseslint from "typescript-eslint"; - -export default [ - { files: ["{client,server}/**/*.{ts}"] }, - { languageOptions: { globals: globals.node } }, - - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - ...tseslint.configs.strict, - eslintConfigPrettier, - { - rules: { - "@typescript-eslint/no-unused-vars": [ - "error", - { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, - ], - }, - }, - { ignores: ["**/*.js", "**/*.d.ts"] }, -]; diff --git a/flappy-bird/nanoforge.config.json b/flappy-bird/nanoforge.config.json deleted file mode 100644 index 135d579..0000000 --- a/flappy-bird/nanoforge.config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "flappy-bird", - "language": "ts", - "initFunctions": false, - "client": { - "enable": true, - "build": { - "entry": "client/main.ts", - "staticDir": "client/static" - }, - "outDir": ".nanoforge/client" - }, - "server": { - "enable": false - } -} diff --git a/flappy-bird/package.json b/flappy-bird/package.json deleted file mode 100644 index d60aeb8..0000000 --- a/flappy-bird/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "flappy-bird", - "version": "0.0.0", - "description": "", - "author": "", - "scripts": { - "build": "nf build", - "start": "nf start", - "lint": "prettier --check . && eslint \"{client,server}/**/*.ts\"", - "format": "prettier --write . && eslint --fix \"{client,server}/**/*.ts\"" - }, - "dependencies": { - "@nanoforge-dev/asset-manager": "^1", - "@nanoforge-dev/common": "^1", - "@nanoforge-dev/core": "^1", - "@nanoforge-dev/ecs-client": "^1", - "@nanoforge-dev/graphics-2d": "^1", - "@nanoforge-dev/input": "^1" - }, - "devDependencies": { - "@eslint/js": "^9.39.0", - "@nanoforge-dev/cli": "1.6.2", - "@nanoforge-dev/config": "^1", - "@typescript-eslint/eslint-plugin": "^8.46.2", - "@typescript-eslint/parser": "^8.46.2", - "eslint": "^9.39.0", - "eslint-config-prettier": "^10.1.8", - "eslint-plugin-prettier": "^5.5.4", - "globals": "^16.5.0", - "prettier": "^3.6.2", - "typescript": "^5.9.3", - "typescript-eslint": "^8.46.2" - }, - "private": true -} diff --git a/flappy-bird/pnpm-lock.yaml b/flappy-bird/pnpm-lock.yaml deleted file mode 100644 index 4691997..0000000 --- a/flappy-bird/pnpm-lock.yaml +++ /dev/null @@ -1,2238 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - dependencies: - '@nanoforge-dev/asset-manager': - specifier: ^1 - version: 1.4.2 - '@nanoforge-dev/common': - specifier: ^1 - version: 1.4.2 - '@nanoforge-dev/core': - specifier: ^1 - version: 1.4.2 - '@nanoforge-dev/ecs-client': - specifier: ^1 - version: 1.4.2 - '@nanoforge-dev/graphics-2d': - specifier: ^1 - version: 1.4.2 - '@nanoforge-dev/input': - specifier: ^1 - version: 1.4.2 - devDependencies: - '@eslint/js': - specifier: ^9.39.0 - version: 9.39.5 - '@nanoforge-dev/cli': - specifier: 1.6.2 - version: 1.6.2 - '@nanoforge-dev/config': - specifier: ^1 - version: 1.4.2 - '@typescript-eslint/eslint-plugin': - specifier: ^8.46.2 - version: 8.70.0(@typescript-eslint/parser@8.70.0(eslint@9.39.5)(typescript@5.9.3))(eslint@9.39.5)(typescript@5.9.3) - '@typescript-eslint/parser': - specifier: ^8.46.2 - version: 8.70.0(eslint@9.39.5)(typescript@5.9.3) - eslint: - specifier: ^9.39.0 - version: 9.39.5 - eslint-config-prettier: - specifier: ^10.1.8 - version: 10.1.8(eslint@9.39.5) - eslint-plugin-prettier: - specifier: ^5.5.4 - version: 5.5.6(eslint-config-prettier@10.1.8(eslint@9.39.5))(eslint@9.39.5)(prettier@3.9.6) - globals: - specifier: ^16.5.0 - version: 16.5.0 - prettier: - specifier: ^3.6.2 - version: 3.9.6 - typescript: - specifier: ^5.9.3 - version: 5.9.3 - typescript-eslint: - specifier: ^8.46.2 - version: 8.70.0(eslint@9.39.5)(typescript@5.9.3) - -packages: - - '@angular-devkit/core@22.1.7': - resolution: {integrity: sha512-RKayeOOjhcIe/iBOM1fmtI5pjXwBEJh+u55VnSeIwYvFNXyxI0/jdRw4T6uhwusQ+1bzyya4d8q1mT9oaOQ/5A==} - engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} - peerDependencies: - chokidar: ^5.0.0 - peerDependenciesMeta: - chokidar: - optional: true - - '@angular-devkit/schematics-cli@22.1.7': - resolution: {integrity: sha512-T/uGBiUqbBEHYwO3iUiyjGc9blPYA1U3N+4CT7IxA0GCYikDbbPfPaoYDQTsGny+DN5YKx4HGhXZp1htBbbPhQ==} - engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} - hasBin: true - - '@angular-devkit/schematics@22.1.7': - resolution: {integrity: sha512-KOcVeT4MCsoPt6AMnXH7AbWZnzlKXhMyua2ITWij4UbLaNWCDwfIug/xrZssYLHUFwebCIqsR8iuG/BPH8Cz2w==} - engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} - - '@eslint-community/eslint-utils@4.10.1': - resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - - '@eslint-community/regexpp@4.12.2': - resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint/config-array@0.21.2': - resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/eslintrc@3.3.7': - resolution: {integrity: sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/js@9.39.5': - resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@humanfs/core@0.19.2': - resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} - engines: {node: '>=18.18.0'} - - '@humanfs/node@0.16.8': - resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==} - engines: {node: '>=18.18.0'} - - '@humanfs/types@0.15.0': - resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==} - engines: {node: '>=18.18.0'} - - '@humanwhocodes/module-importer@1.0.1': - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - - '@humanwhocodes/retry@0.4.3': - resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} - engines: {node: '>=18.18'} - - '@inquirer/ansi@2.0.8': - resolution: {integrity: sha512-WpQM+Ti6Z40EFwwt+uL2p4UabT+W179zHp6HhLVOzfbwnVn05IPO/eXIZXGNqcT1jbQ15SujNLzQ39k4QPPxBQ==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - - '@inquirer/checkbox@5.2.5': - resolution: {integrity: sha512-bRt8J8m+Fot9CXv+zNQGXUq2ET0MggR1fPz7v6edN6MFYmsbfGnMmkmWZJEegMKqrAC8ej/o1sqisHZXZJMAfQ==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/confirm@6.3.2': - resolution: {integrity: sha512-Xvr/0HggjddPtGppuqVmxhTw+Hr8PvsZ/k0HmOEaAqQEt80OITNkFWnsdNmyT0/eM4Ab+iJLx2R8rctlEyfSVg==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/core@12.0.3': - resolution: {integrity: sha512-wsSy0sznmXwkty+2PzZwx00Cazc/E0r0B7mAzdGROz2Ct+DFZXaK7WDjGZvgjRldxH5ZhFVfF2lgkYrqgOw2KA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/editor@5.3.3': - resolution: {integrity: sha512-YsKkS2q63IiLtaDK/9nqzdComN97SDQrmKiyNggN+ceP4ty+Z6VwyTz3FpjeUWeW1Efss2xHFKCC9sx7hnrsxg==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/expand@5.1.5': - resolution: {integrity: sha512-uHuXLmXW+TtIfT/9vSBotypAkqn1n34Ul+CLGPos/xANyO4Ff5xZzkYhbKR4NEcfVK4a9mHQOpwVZzluSHFRGw==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/external-editor@3.0.5': - resolution: {integrity: sha512-f3QQJRIX5ZEneBHNUIuPjmbdzHnmRFJA8r2dkcb8q+OM5Uv5KtnuAttQumnrjcBVBM3mcTX1CkmtAkU58VRZxg==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/figures@2.0.9': - resolution: {integrity: sha512-EAWgUTGQ/Umgga51dE3B2PUHbufuXarDfg86uVgoSgNHNNQnyFKcOrQLWVqYMghuSyHh8+2HUH0Js9cTC1WAdg==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - - '@inquirer/input@5.1.6': - resolution: {integrity: sha512-HtcJhB2QFVXbLuJ5S3syhNbTUVxYvwqV4VRBDkQceBloC9bmTViUoRFP5PbSaDZb3HzfPmpuU/gG4ybVBz4FHA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/number@4.2.3': - resolution: {integrity: sha512-6Yuwh1NGSbu1Lo4N1EWjXs1jKRntLg/ZCwhmeorEHde90v1XxAozdbd4Iu30eOQLW+6h1hp2O9ujNfLSbTPJnA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/password@5.2.2': - resolution: {integrity: sha512-W9zYdyzogK+6110mqwaSJWCBu2yA5Q/OfnGSjjZB1bNpHlmUozXxTl0+QOZBNeVd6Qo81/qT75gW05gLAtITxw==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/prompts@8.5.2': - resolution: {integrity: sha512-IYR/3C/paEVVQYQvdDlFZVjRCJVYHHON0XXMH91KO9GSxs0TdKYWlUdvfQl2EfAHDxUaN3IBffkE/BDTh5nJ6g==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/prompts@8.7.2': - resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/rawlist@5.3.5': - resolution: {integrity: sha512-1oHky1ONfCOwNrnkQGDE1oaSij/3fI6HFMSf2H/WsGO2lEyDX9My82iggITSy9ddSZ8yk8j9v41OI0fVoSIoaA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/search@4.3.3': - resolution: {integrity: sha512-fyuIU1Nbpvwlikjg3gXwJFDI11+EFjqQ7P+iByfmivIKQ1vmaykNrD/vy5unHuUqUpsOsnvJ25//tPF7E/RBRA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/select@5.2.5': - resolution: {integrity: sha512-9kc15hr8r/kI+3DO/xLog5nOzTz1jqsHXa6JBFzmQKhkoJ8Slda1I1L/uD8ZSZ9tF1yp79wwXe7mclvX1rqR2Q==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@inquirer/type@4.1.1': - resolution: {integrity: sha512-yJoHYrMnxIsJZCY+0Vb66Dy3he3kL3e2wOBKhoSwWWAzZAY82emlxwgprCtp6yRixvNRNq9ztfRWQYPNr3Go7A==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - peerDependencies: - '@types/node': '>=18' - peerDependenciesMeta: - '@types/node': - optional: true - - '@isaacs/fs-minipass@4.0.1': - resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} - engines: {node: '>=18.0.0'} - - '@jridgewell/sourcemap-codec@1.6.0': - resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} - - '@nanoforge-dev/asset-manager@1.4.2': - resolution: {integrity: sha512-CtUoNc5tc2QVdEs6nDER2WutBArS72RFod+cM+fwwrq+1btNeI7ed4sjbxqCBJLASqvZ7HQ3av6P8FGpfjRI6g==} - engines: {node: '25'} - - '@nanoforge-dev/cli@1.6.2': - resolution: {integrity: sha512-BtjWOu6cX7A3sk256cCNA+wyem9oobzhfjg4/7tNt/zN1vLYTb5is3s+D5IRRG6M1ZovW0W1InN53ss5boBxVQ==} - engines: {node: '25'} - hasBin: true - - '@nanoforge-dev/common@1.4.2': - resolution: {integrity: sha512-Km7eTwmpQ0XTx5o15Cu05ojRCL8px/DANVc0eYBLzKnG2/LamKs5P/e3HG+woULPz0/fc+ah/RPKyQwFtx5lBw==} - engines: {node: '25'} - - '@nanoforge-dev/config@1.4.2': - resolution: {integrity: sha512-SdV/nINKC5VQyvKZs6s6T+vlsSfKE47lhYgcacWqSBdi9BTDSTj6GNZRoWpwSMyiKCZ+Wj6DbmyJvPXDc/wTgA==} - engines: {node: '25'} - - '@nanoforge-dev/core@1.4.2': - resolution: {integrity: sha512-Ja7zNj78f/gMipBR7n+4u7Xb/UOZZzPMt55jb/mEj7g+0Qloq66cPwT1lHhx+8owi+lOncJ1bjIu2QUzThHvqg==} - engines: {node: '25'} - - '@nanoforge-dev/ecs-client@1.4.2': - resolution: {integrity: sha512-toeySsQfH0VMsA1UKUrhRWACYj7g7ikru8SqMf5e4LdacQAOkIenMRDyuyo52OVq1fJs1e47jM4XBkX6wGghQA==} - engines: {node: '25'} - - '@nanoforge-dev/ecs-lib@1.4.2': - resolution: {integrity: sha512-FM7lhHvBWvsaZs03biagHAu3P2Hlw1hoEye2b3xjj3EeVbRE8r8CNFcYtCoSbM2cVFKZBr3Z0N0UJBXLnizkgw==} - engines: {node: '25'} - - '@nanoforge-dev/editor@0.1.4': - resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} - engines: {node: '25'} - - '@nanoforge-dev/graphics-2d@1.4.2': - resolution: {integrity: sha512-wH275hs9nl48HVI8GN5UjUIupylJ9Q9dJAxA8MCxKvgkEUcKwtC2gYXIjxaf5b2CoqG1O+qipnHzpnrAQCqrgA==} - engines: {node: '25'} - - '@nanoforge-dev/input@1.4.2': - resolution: {integrity: sha512-U38Eo1anJe9Fehzq4iQ/xIpDWnoWxXVLkAZ5CPf/k4iKLNm0scUg5LHZ8TswGEoaBtJmwFeiIGWU6OHfYYHcJw==} - engines: {node: '25'} - - '@nanoforge-dev/loader-client@1.5.0': - resolution: {integrity: sha512-FUcrfXlcaG4dsjya7fUUFkr5zwKB0nCihYeEOC1K54gl4XV6S1lgNnAfdkl4jZfzyyw4jcZUB+73t4ymBhz08g==} - engines: {node: '25'} - - '@nanoforge-dev/loader-server@1.5.0': - resolution: {integrity: sha512-1rly9IgunGz8Ux6lGDugUXgmNbnNjWGM8ABy7EsdrKWV74gyj7cuU6X69UolO28XUPCdbeISNcBEZV5hLK8Rlg==} - engines: {node: '25'} - - '@nanoforge-dev/loader-website@1.5.0': - resolution: {integrity: sha512-X37wlYyoL/q8ZPk5I8W3z01novfDSopizVQXbk/sw0dRXoONtIb6xnZLlN3z4jkDkPOy6IVes0bLGr8h4aFOcA==} - engines: {node: '25'} - - '@nanoforge-dev/schematics@2.2.1': - resolution: {integrity: sha512-MdmhFncakgejGRIf1HTPKTskhdv8bIst21uWRSZCXGgGv0UNYEfDiziOsWPVCzGc9dXei59RIDznBwgpAMeXLg==} - engines: {node: '25'} - - '@oven/bun-darwin-aarch64@1.4.2': - resolution: {integrity: sha512-MXdZkP1featqxZ+/VTXWG1BVjM4OGBehVY2Q88EeUj/7L0UMeCGItmyPYTN+wxvlGJ6F66JEtzsw+GvQWewnag==} - cpu: [arm64] - os: [darwin] - - '@oven/bun-darwin-x64@1.4.2': - resolution: {integrity: sha512-gZTxZuLjkUhAWjTETu3tw0WhsEdNkJ64daj60ybhPf835a2yollV3yTkK9JozvzKPx4TRFzLSl8C+U525pxVbw==} - cpu: [x64] - os: [darwin] - - '@oven/bun-freebsd-aarch64@1.4.2': - resolution: {integrity: sha512-SMNItMw1Z8QeeQVKnw8jA7xQNkeXdP+OPgin4Wi/QTx/B8RHHLnuZfqmFy7NtVeT2NF0kKYppW4WWd2CCYZjhQ==} - cpu: [arm64] - os: [freebsd] - - '@oven/bun-freebsd-x64@1.4.2': - resolution: {integrity: sha512-THbPKXhO54N0DpFRKZNDZpQ7dpbX0bWASuARckAUS9wRtFIHsiY+uULXJvxJGo2YD1YewvXQ4G8Fj7XT5oBCiw==} - cpu: [x64] - os: [freebsd] - - '@oven/bun-linux-aarch64-android@1.4.2': - resolution: {integrity: sha512-3mZKO2rhsNgbAUtAHC1UKUlF2zTxFraDZT/Elv8wzyH0fJL9h+Iv3TgB9lO63w89PRn3eFe+NRA1bhVgikKNPQ==} - cpu: [arm64] - os: [android] - - '@oven/bun-linux-aarch64-musl@1.4.2': - resolution: {integrity: sha512-+Sm6y+lSiSFBOtXmnekp5Q6n1tUKlyv71FCPWBc61Cgb14T5eBs8SN/nh4MUCOKzONkI3O+as3MGUgikS4aCBQ==} - cpu: [arm64] - os: [linux] - - '@oven/bun-linux-aarch64@1.4.2': - resolution: {integrity: sha512-3BBP9ovJ2RGHFH6Ae1CAtxNtG1+YY6GD6rmYbsUosoAk9+OEl6zeDQ/k4fBkc6dYOJCtWnx8hUxzNzQATSmvYQ==} - cpu: [arm64] - os: [linux] - - '@oven/bun-linux-x64-android@1.4.2': - resolution: {integrity: sha512-6HC5tzcC79113n2IHCTJMWv+HsQImv4ZFEK2XpYLxY6HbT8tM4cUM2Zv1bHZBQsS3jv/zYBamDJ1UX7If0d5tw==} - cpu: [x64] - os: [android] - - '@oven/bun-linux-x64-musl@1.4.2': - resolution: {integrity: sha512-vVTKUg1bnPhRP/Hp73jIVoFh2vPFNYEqYX0ERKfZBOQEEHitNAeukZzzuUDZS0SoDCIpuWUGSpd/CDMbjdR+Uw==} - cpu: [x64] - os: [linux] - - '@oven/bun-linux-x64@1.4.2': - resolution: {integrity: sha512-9/E/UXOTpSo3YsV5g+FhtTd/qTpiWoKuxS12cqtuYA1ssu9fRAoPQnipFgGyck3tWO63iUdxBiygq+kELFawng==} - cpu: [x64] - os: [linux] - - '@oven/bun-windows-aarch64@1.4.2': - resolution: {integrity: sha512-8EJ1ST7339WJE3poPW5nBgVW/lWf9HBz4W27ZUNhburKmcBLOByPyE6DP9fHD8FQGm5c+ilUN2hX1mrW0jxq9Q==} - cpu: [arm64] - os: [win32] - - '@oven/bun-windows-x64@1.4.2': - resolution: {integrity: sha512-+bN6OuVld/9diT/RLSXSW7JE6CvNE3gL9XsAEjULi1nUsXd6DNO6GuA9jNdNb3r8PdJFnYHr5aypNV1Oj3Rd9g==} - cpu: [x64] - os: [win32] - - '@pkgr/core@0.3.6': - resolution: {integrity: sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==} - engines: {node: ^14.18.0 || >=16.0.0} - - '@sindresorhus/is@4.6.0': - resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} - engines: {node: '>=10'} - - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - - '@types/validator@13.15.10': - resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} - - '@typescript-eslint/eslint-plugin@8.70.0': - resolution: {integrity: sha512-/v8HZt6RlyIZxB3ntehELOcUcfxKPVGWXnQdJuHRmzrqgF8nQypcC/oxGW+Ot4VGKDq81XugPKxx0n5PBtf9PA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/parser': ^8.70.0 - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/parser@8.70.0': - resolution: {integrity: sha512-zYvrmj9Yxd63UGaXw+kdt6A0F0s0qveJyuatIM77bYC2DE4pgmg7a50u8LR7PRtXd0x+h+Tl3eXabGm06SWd3Q==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/project-service@8.70.0': - resolution: {integrity: sha512-hFHbTNqhU9G+2eKFXCBVb1tjFT/LceiJ4+HfLO4pTpDI0KHi6iajpcFFkaSQ9gXmCh7n82A0PthaayEdN6mspQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/scope-manager@8.70.0': - resolution: {integrity: sha512-8nP3Kwh5hlgZ4FicGvmznAmJe8UL4sdU8tLukrPaMuQmDuk4Y8xYfzu/aYZW4xT2JCgc7H/TpDI5cGlxcWJSqQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/tsconfig-utils@8.70.0': - resolution: {integrity: sha512-adnkeeNq9Sq1sUf4+FRVc0KdgYghzsgFpZSQVZVvY0LCuUuN0FnQgyGzCJeC4fW1cdXseBAjU2EOqUIjbNcZUw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/type-utils@8.70.0': - resolution: {integrity: sha512-NUMKIhYVaVIVLnRL9CRt+VVcuLgSHUCpXn4/+K8wql+vdInUzvx8BjUO1oJ7cG9shjFJKtF8F8Hh2kCh3/KBVw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/types@8.70.0': - resolution: {integrity: sha512-asTOIYhDg4zdzOScCyaytrsV3cR6B4ecPQlXw/dJIm7J/MZTtCtfVII9JD8Geh4jTCrK/Xe6cg5UevoleMcoJQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/typescript-estree@8.70.0': - resolution: {integrity: sha512-d9NmHMPEKQ7QCLLm1jI3zmoQBwT5KwFYjXBJ9ymZfKCUU+5rmTRykKAFvH5Qn/ZCds3CEAFS9OC9M/jkl0X2bA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/utils@8.70.0': - resolution: {integrity: sha512-oZmtKJz/4fufZ2p3+Cn3ijEojcdfR+1zYDH2xKYrEly0dR/Q/1xUPRCOlKGxod78nWlU2UnDe09GZ3TaknBFGA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/visitor-keys@8.70.0': - resolution: {integrity: sha512-BoC8PiO4Hkdo0TVJh9Ntxr5MxPDI7/oFsrygN5ADelFSeXG/qgNuucIGA+L5Z6JpPTE/uRfcTWtscjbUaufepQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - acorn-jsx@5.3.2: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - - acorn@8.18.0: - resolution: {integrity: sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==} - engines: {node: '>=0.4.0'} - hasBin: true - - ajv-formats@3.0.1: - resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true - - ajv@6.15.0: - resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - - ajv@8.20.0: - resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - - ansi-regex@6.3.0: - resolution: {integrity: sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==} - engines: {node: '>=12'} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - ansis@4.3.1: - resolution: {integrity: sha512-BJ8/l4R5LRE7hW9WdSuGYrLSHi2ynxeFpDFbH0K/CgNeY/tyhk+vO6TYxXC5r5CpUhNVX310xzPsN/H9lCdfOA==} - engines: {node: '>=14'} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - balanced-match@4.0.4: - resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} - engines: {node: 18 || 20 || >=22} - - brace-expansion@1.1.18: - resolution: {integrity: sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==} - - brace-expansion@5.0.9: - resolution: {integrity: sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==} - engines: {node: 20 || >=22} - - braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - - bun@1.4.2: - resolution: {integrity: sha512-TrSXo6HJfIEaczpb3kjX82I2pL47vK1QUNmHRCUdz9IzaOwa9lzOXSWwu2l18YHE3sNfGRapVLd4nNm+22vVVA==} - cpu: [arm64, x64] - os: [darwin, linux, android, freebsd, win32] - hasBin: true - - bundle-name@4.1.0: - resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} - engines: {node: '>=18'} - - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - chalk@5.6.2: - resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} - engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} - - char-regex@1.0.2: - resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} - engines: {node: '>=10'} - - chardet@2.2.0: - resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} - - chokidar@5.0.0: - resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} - engines: {node: '>= 20.19.0'} - - chownr@3.0.0: - resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} - engines: {node: '>=18'} - - class-transformer@0.5.1: - resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} - - class-validator@0.14.4: - resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} - - class-validator@0.15.1: - resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} - - cli-cursor@5.0.0: - resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} - engines: {node: '>=18'} - - cli-spinners@3.4.0: - resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} - engines: {node: '>=18.20'} - - cli-width@4.1.0: - resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} - engines: {node: '>= 12'} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - commander@15.0.0: - resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==} - engines: {node: '>=22.12.0'} - - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - - debug@4.4.3: - resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - - default-browser-id@5.0.1: - resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} - engines: {node: '>=18'} - - default-browser@5.5.1: - resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} - engines: {node: '>=18'} - - define-lazy-prop@3.0.0: - resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} - engines: {node: '>=12'} - - defu@6.1.7: - resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} - - destr@2.0.5: - resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} - - dotenv@17.4.2: - resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} - engines: {node: '>=12'} - - emojilib@2.4.0: - resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} - - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - - eslint-config-prettier@10.1.8: - resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - - eslint-plugin-prettier@5.5.6: - resolution: {integrity: sha512-ifetmTcxWfz+4qRW3pH/ujdTq2jQIj59AxJMIN26K5avYgU8dxycUETQonWiW+wPrYXA0j3Try0l1CnwVQtDqQ==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - '@types/eslint': '>=8.0.0' - eslint: '>=8.0.0' - eslint-config-prettier: '>= 7.0.0 <10.0.0 || >=10.1.0' - prettier: '>=3.0.0' - peerDependenciesMeta: - '@types/eslint': - optional: true - eslint-config-prettier: - optional: true - - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@5.0.1: - resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} - engines: {node: ^20.19.0 || ^22.13.0 || >=24} - - eslint@9.39.5: - resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. - hasBin: true - peerDependencies: - jiti: '*' - peerDependenciesMeta: - jiti: - optional: true - - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - esquery@1.7.0: - resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} - engines: {node: '>=0.10'} - - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - - esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-diff@1.3.0: - resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - - fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - - fast-string-truncated-width@3.0.3: - resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} - - fast-string-width@3.0.2: - resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} - - fast-uri@3.1.7: - resolution: {integrity: sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==} - - fast-wrap-ansi@0.2.2: - resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} - - fdir@6.5.0: - resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} - engines: {node: '>=12.0.0'} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} - - fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} - - flatted@3.4.4: - resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} - - get-east-asian-width@1.6.0: - resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==} - engines: {node: '>=18'} - - glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - - globals@16.5.0: - resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==} - engines: {node: '>=18'} - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - iconv-lite@0.7.3: - resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} - engines: {node: '>=0.10.0'} - - ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - - ignore@7.0.9: - resolution: {integrity: sha512-brTTsvFRt5C1gGHtPst/281UjPD5t9fBqbgoMPlVWy11ZLTPfu7HxK4ZYqO9H7o/yC9rSTCI85EaQ4OoY12qYw==} - engines: {node: '>= 4'} - - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - - imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - - is-docker@3.0.0: - resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - hasBin: true - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - is-in-ssh@1.0.0: - resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} - engines: {node: '>=20'} - - is-inside-container@1.0.0: - resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} - engines: {node: '>=14.16'} - hasBin: true - - is-interactive@2.0.0: - resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} - engines: {node: '>=12'} - - is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - - is-unicode-supported@2.1.0: - resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} - engines: {node: '>=18'} - - is-wsl@3.1.1: - resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} - engines: {node: '>=16'} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - js-yaml@4.3.2: - resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - - json-schema-traverse@1.0.0: - resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} - - json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - - jsonc-parser@3.3.1: - resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} - - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - - konva@10.5.0: - resolution: {integrity: sha512-gTVQ12CVE2vCaP8g+Ag6lYf9LIo1s1lr7bXLNTbF5pcXbdRFCA3Oy1fFxDN/wK7RklJ9e8oqTiSsqmUtfQx91w==} - peerDependencies: - canvas: ^3.0.0 - skia-canvas: ^3.0.0 - peerDependenciesMeta: - canvas: - optional: true - skia-canvas: - optional: true - - levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - - libphonenumber-js@1.13.12: - resolution: {integrity: sha512-uLVeV1c9OTk6qkdqnj+mpMD+ZdnZ0szVyWu58HwMmpwkHA1gCEkyjd3veZQXDnuw9KEwSRjcc9B1pS9XKIN1fA==} - - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - - log-symbols@7.0.1: - resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} - engines: {node: '>=18'} - - magic-string@1.0.0: - resolution: {integrity: sha512-CGvjzMN08iv6w1mm4/x3Gh1hLb4VnyRUA15FFpl6CsCIGGoe36k7kY5KNz9QDbSBN5I/fWHM6ZlIkUTa5xdUEA==} - - micromatch@4.0.8: - resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} - engines: {node: '>=8.6'} - - mimic-function@5.0.1: - resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} - engines: {node: '>=18'} - - minimatch@10.2.6: - resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} - engines: {node: 18 || 20 || >=22} - - minimatch@3.1.5: - resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} - - minipass@7.1.3: - resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} - engines: {node: '>=16 || 14 >=14.17'} - - minizlib@3.1.0: - resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} - engines: {node: '>= 18'} - - ms@2.1.3: - resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - - mute-stream@3.0.0: - resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==} - engines: {node: ^20.17.0 || >=22.9.0} - - natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - - node-emoji@2.2.0: - resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} - engines: {node: '>=18'} - - onetime@7.0.0: - resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} - engines: {node: '>=18'} - - open@11.0.2: - resolution: {integrity: sha512-RWqF+pBSkqecEvCKOn8QYhaNdRMJDZRIrlS/7rTDdLHaPcfXGCZ/h8zb413NfvdeAV0MR7T1yJcA34/q+CSm1Q==} - engines: {node: '>=20'} - - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} - - ora@9.4.1: - resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} - engines: {node: '>=20'} - - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - picomatch@2.3.2: - resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} - engines: {node: '>=8.6'} - - picomatch@4.0.5: - resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} - engines: {node: '>=12'} - - picomatch@4.0.7: - resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} - engines: {node: '>=12'} - - powershell-utils@0.1.0: - resolution: {integrity: sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==} - engines: {node: '>=20'} - - powershell-utils@0.2.1: - resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} - engines: {node: '>=20'} - - prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - - prettier-linter-helpers@1.0.1: - resolution: {integrity: sha512-SxToR7P8Y2lWmv/kTzVLC1t/GDI2WGjMwNhLLE9qtH8Q13C+aEmuRlzDst4Up4s0Wc8sF2M+J57iB3cMLqftfg==} - engines: {node: '>=6.0.0'} - - prettier@3.9.6: - resolution: {integrity: sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==} - engines: {node: '>=14'} - hasBin: true - - punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - - rc9@3.1.0: - resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} - - readdirp@5.1.1: - resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} - engines: {node: '>= 20.19.0'} - - reflect-metadata@0.2.2: - resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} - - require-from-string@2.0.2: - resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} - engines: {node: '>=0.10.0'} - - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - - restore-cursor@5.1.0: - resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} - engines: {node: '>=18'} - - run-applescript@7.1.0: - resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} - engines: {node: '>=18'} - - rxjs@7.8.2: - resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} - - safer-buffer@2.1.2: - resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - - semver@7.8.5: - resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} - engines: {node: '>=10'} - hasBin: true - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - skin-tone@2.0.0: - resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} - engines: {node: '>=8'} - - source-map@0.7.6: - resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} - engines: {node: '>= 12'} - - stdin-discarder@0.3.2: - resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} - engines: {node: '>=18'} - - string-width@8.2.2: - resolution: {integrity: sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==} - engines: {node: '>=20'} - - strip-ansi@7.2.0: - resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} - engines: {node: '>=12'} - - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - - synckit@0.11.13: - resolution: {integrity: sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==} - engines: {node: ^14.18.0 || >=16.0.0} - - tar@7.5.22: - resolution: {integrity: sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==} - engines: {node: '>=18'} - - tinyglobby@0.2.17: - resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} - engines: {node: '>=12.0.0'} - - to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - - ts-api-utils@2.5.0: - resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} - engines: {node: '>=18.12'} - peerDependencies: - typescript: '>=4.8.4' - - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - - typescript-eslint@8.70.0: - resolution: {integrity: sha512-P/W5cz70/cQAuKfY3xwQMWWTV7BvJ0mAQmi+9mBcsVPaBUpd6Ohpa+fECv9rBFrQcig86jAiNBFNWUqnTjr4pw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} - engines: {node: '>=14.17'} - hasBin: true - - typescript@6.0.3: - resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} - engines: {node: '>=14.17'} - hasBin: true - - unicode-emoji-modifier-base@1.0.0: - resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} - engines: {node: '>=4'} - - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - - validator@13.15.35: - resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} - engines: {node: '>= 0.10'} - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - - wsl-utils@1.0.0: - resolution: {integrity: sha512-Hl0ZOAs672vg+06kfujwRhoS6/jehvULrlFkuF2dRu6pHgA8U06h3xqNIqNNU1LTXPcedxByAR4GS6pwQK0mgA==} - engines: {node: '>=20'} - - yallist@5.0.0: - resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} - engines: {node: '>=18'} - - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - - yoctocolors@2.2.0: - resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} - engines: {node: '>=18'} - -snapshots: - - '@angular-devkit/core@22.1.7(chokidar@5.0.0)': - dependencies: - ajv: 8.20.0 - ajv-formats: 3.0.1(ajv@8.20.0) - jsonc-parser: 3.3.1 - picomatch: 4.0.5 - rxjs: 7.8.2 - source-map: 0.7.6 - optionalDependencies: - chokidar: 5.0.0 - - '@angular-devkit/schematics-cli@22.1.7(chokidar@5.0.0)': - dependencies: - '@angular-devkit/core': 22.1.7(chokidar@5.0.0) - '@angular-devkit/schematics': 22.1.7(chokidar@5.0.0) - '@inquirer/prompts': 8.5.2 - transitivePeerDependencies: - - '@types/node' - - chokidar - - '@angular-devkit/schematics@22.1.7(chokidar@5.0.0)': - dependencies: - '@angular-devkit/core': 22.1.7(chokidar@5.0.0) - jsonc-parser: 3.3.1 - magic-string: 1.0.0 - ora: 9.4.1 - rxjs: 7.8.2 - transitivePeerDependencies: - - chokidar - - '@eslint-community/eslint-utils@4.10.1(eslint@9.39.5)': - dependencies: - eslint: 9.39.5 - eslint-visitor-keys: 3.4.3 - - '@eslint-community/regexpp@4.12.2': {} - - '@eslint/config-array@0.21.2': - dependencies: - '@eslint/object-schema': 2.1.7 - debug: 4.4.3 - minimatch: 3.1.5 - transitivePeerDependencies: - - supports-color - - '@eslint/config-helpers@0.4.2': - dependencies: - '@eslint/core': 0.17.0 - - '@eslint/core@0.17.0': - dependencies: - '@types/json-schema': 7.0.15 - - '@eslint/eslintrc@3.3.7': - dependencies: - ajv: 6.15.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.3.2 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@9.39.5': {} - - '@eslint/object-schema@2.1.7': {} - - '@eslint/plugin-kit@0.4.1': - dependencies: - '@eslint/core': 0.17.0 - levn: 0.4.1 - - '@humanfs/core@0.19.2': - dependencies: - '@humanfs/types': 0.15.0 - - '@humanfs/node@0.16.8': - dependencies: - '@humanfs/core': 0.19.2 - '@humanfs/types': 0.15.0 - '@humanwhocodes/retry': 0.4.3 - - '@humanfs/types@0.15.0': {} - - '@humanwhocodes/module-importer@1.0.1': {} - - '@humanwhocodes/retry@0.4.3': {} - - '@inquirer/ansi@2.0.8': {} - - '@inquirer/checkbox@5.2.5': - dependencies: - '@inquirer/ansi': 2.0.8 - '@inquirer/core': 12.0.3 - '@inquirer/figures': 2.0.9 - '@inquirer/type': 4.1.1 - - '@inquirer/confirm@6.3.2': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/type': 4.1.1 - - '@inquirer/core@12.0.3': - dependencies: - '@inquirer/ansi': 2.0.8 - '@inquirer/figures': 2.0.9 - '@inquirer/type': 4.1.1 - cli-width: 4.1.0 - fast-wrap-ansi: 0.2.2 - mute-stream: 3.0.0 - signal-exit: 4.1.0 - - '@inquirer/editor@5.3.3': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/external-editor': 3.0.5 - '@inquirer/type': 4.1.1 - - '@inquirer/expand@5.1.5': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/type': 4.1.1 - - '@inquirer/external-editor@3.0.5': - dependencies: - chardet: 2.2.0 - iconv-lite: 0.7.3 - - '@inquirer/figures@2.0.9': {} - - '@inquirer/input@5.1.6': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/type': 4.1.1 - - '@inquirer/number@4.2.3': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/type': 4.1.1 - - '@inquirer/password@5.2.2': - dependencies: - '@inquirer/ansi': 2.0.8 - '@inquirer/core': 12.0.3 - '@inquirer/type': 4.1.1 - - '@inquirer/prompts@8.5.2': - dependencies: - '@inquirer/checkbox': 5.2.5 - '@inquirer/confirm': 6.3.2 - '@inquirer/editor': 5.3.3 - '@inquirer/expand': 5.1.5 - '@inquirer/input': 5.1.6 - '@inquirer/number': 4.2.3 - '@inquirer/password': 5.2.2 - '@inquirer/rawlist': 5.3.5 - '@inquirer/search': 4.3.3 - '@inquirer/select': 5.2.5 - - '@inquirer/prompts@8.7.2': - dependencies: - '@inquirer/checkbox': 5.2.5 - '@inquirer/confirm': 6.3.2 - '@inquirer/editor': 5.3.3 - '@inquirer/expand': 5.1.5 - '@inquirer/input': 5.1.6 - '@inquirer/number': 4.2.3 - '@inquirer/password': 5.2.2 - '@inquirer/rawlist': 5.3.5 - '@inquirer/search': 4.3.3 - '@inquirer/select': 5.2.5 - - '@inquirer/rawlist@5.3.5': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/type': 4.1.1 - - '@inquirer/search@4.3.3': - dependencies: - '@inquirer/core': 12.0.3 - '@inquirer/figures': 2.0.9 - '@inquirer/type': 4.1.1 - - '@inquirer/select@5.2.5': - dependencies: - '@inquirer/ansi': 2.0.8 - '@inquirer/core': 12.0.3 - '@inquirer/figures': 2.0.9 - '@inquirer/type': 4.1.1 - - '@inquirer/type@4.1.1': {} - - '@isaacs/fs-minipass@4.0.1': - dependencies: - minipass: 7.1.3 - optional: true - - '@jridgewell/sourcemap-codec@1.6.0': {} - - '@nanoforge-dev/asset-manager@1.4.2': - dependencies: - '@nanoforge-dev/common': 1.4.2 - - '@nanoforge-dev/cli@1.6.2': - dependencies: - '@angular-devkit/schematics': 22.1.7(chokidar@5.0.0) - '@angular-devkit/schematics-cli': 22.1.7(chokidar@5.0.0) - '@inquirer/prompts': 8.7.2 - '@nanoforge-dev/loader-client': 1.5.0 - '@nanoforge-dev/loader-server': 1.5.0 - '@nanoforge-dev/schematics': 2.2.1(chokidar@5.0.0) - ansis: 4.3.1 - bun: 1.4.2 - chokidar: 5.0.0 - class-transformer: 0.5.1 - class-validator: 0.15.1 - commander: 15.0.0 - dotenv: 17.4.2 - node-emoji: 2.2.0 - open: 11.0.2 - ora: 9.4.1 - rc9: 3.1.0 - reflect-metadata: 0.2.2 - optionalDependencies: - '@nanoforge-dev/editor': 0.1.4 - transitivePeerDependencies: - - '@types/node' - - '@nanoforge-dev/common@1.4.2': {} - - '@nanoforge-dev/config@1.4.2': - dependencies: - class-transformer: 0.5.1 - class-validator: 0.14.4 - - '@nanoforge-dev/core@1.4.2': - dependencies: - '@nanoforge-dev/asset-manager': 1.4.2 - '@nanoforge-dev/common': 1.4.2 - '@nanoforge-dev/input': 1.4.2 - class-transformer: 0.5.1 - class-validator: 0.14.4 - - '@nanoforge-dev/ecs-client@1.4.2': - dependencies: - '@nanoforge-dev/common': 1.4.2 - '@nanoforge-dev/ecs-lib': 1.4.2 - - '@nanoforge-dev/ecs-lib@1.4.2': - dependencies: - '@nanoforge-dev/common': 1.4.2 - - '@nanoforge-dev/editor@0.1.4': - dependencies: - bun: 1.4.2 - class-transformer: 0.5.1 - class-validator: 0.15.1 - dotenv: 17.4.2 - micromatch: 4.0.8 - tar: 7.5.22 - typescript: 6.0.3 - optional: true - - '@nanoforge-dev/graphics-2d@1.4.2': - dependencies: - '@nanoforge-dev/common': 1.4.2 - konva: 10.5.0 - transitivePeerDependencies: - - canvas - - skia-canvas - - '@nanoforge-dev/input@1.4.2': - dependencies: - '@nanoforge-dev/common': 1.4.2 - - '@nanoforge-dev/loader-client@1.5.0': - dependencies: - '@nanoforge-dev/loader-website': 1.5.0 - bun: 1.4.2 - commander: 15.0.0 - - '@nanoforge-dev/loader-server@1.5.0': - dependencies: - commander: 15.0.0 - - '@nanoforge-dev/loader-website@1.5.0': {} - - '@nanoforge-dev/schematics@2.2.1(chokidar@5.0.0)': - dependencies: - '@angular-devkit/core': 22.1.7(chokidar@5.0.0) - '@angular-devkit/schematics': 22.1.7(chokidar@5.0.0) - rxjs: 7.8.2 - transitivePeerDependencies: - - chokidar - - '@oven/bun-darwin-aarch64@1.4.2': - optional: true - - '@oven/bun-darwin-x64@1.4.2': - optional: true - - '@oven/bun-freebsd-aarch64@1.4.2': - optional: true - - '@oven/bun-freebsd-x64@1.4.2': - optional: true - - '@oven/bun-linux-aarch64-android@1.4.2': - optional: true - - '@oven/bun-linux-aarch64-musl@1.4.2': - optional: true - - '@oven/bun-linux-aarch64@1.4.2': - optional: true - - '@oven/bun-linux-x64-android@1.4.2': - optional: true - - '@oven/bun-linux-x64-musl@1.4.2': - optional: true - - '@oven/bun-linux-x64@1.4.2': - optional: true - - '@oven/bun-windows-aarch64@1.4.2': - optional: true - - '@oven/bun-windows-x64@1.4.2': - optional: true - - '@pkgr/core@0.3.6': {} - - '@sindresorhus/is@4.6.0': {} - - '@types/estree@1.0.9': {} - - '@types/json-schema@7.0.15': {} - - '@types/validator@13.15.10': {} - - '@typescript-eslint/eslint-plugin@8.70.0(@typescript-eslint/parser@8.70.0(eslint@9.39.5)(typescript@5.9.3))(eslint@9.39.5)(typescript@5.9.3)': - dependencies: - '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.70.0(eslint@9.39.5)(typescript@5.9.3) - '@typescript-eslint/scope-manager': 8.70.0 - '@typescript-eslint/type-utils': 8.70.0(eslint@9.39.5)(typescript@5.9.3) - '@typescript-eslint/utils': 8.70.0(eslint@9.39.5)(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.70.0 - eslint: 9.39.5 - ignore: 7.0.9 - natural-compare: 1.4.0 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/parser@8.70.0(eslint@9.39.5)(typescript@5.9.3)': - dependencies: - '@typescript-eslint/scope-manager': 8.70.0 - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/typescript-estree': 8.70.0(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.70.0 - debug: 4.4.3 - eslint: 9.39.5 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/project-service@8.70.0(typescript@5.9.3)': - dependencies: - '@typescript-eslint/tsconfig-utils': 8.70.0(typescript@5.9.3) - '@typescript-eslint/types': 8.70.0 - debug: 4.4.3 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/scope-manager@8.70.0': - dependencies: - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/visitor-keys': 8.70.0 - - '@typescript-eslint/tsconfig-utils@8.70.0(typescript@5.9.3)': - dependencies: - typescript: 5.9.3 - - '@typescript-eslint/type-utils@8.70.0(eslint@9.39.5)(typescript@5.9.3)': - dependencies: - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/typescript-estree': 8.70.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.70.0(eslint@9.39.5)(typescript@5.9.3) - debug: 4.4.3 - eslint: 9.39.5 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/types@8.70.0': {} - - '@typescript-eslint/typescript-estree@8.70.0(typescript@5.9.3)': - dependencies: - '@typescript-eslint/project-service': 8.70.0(typescript@5.9.3) - '@typescript-eslint/tsconfig-utils': 8.70.0(typescript@5.9.3) - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/visitor-keys': 8.70.0 - debug: 4.4.3 - minimatch: 10.2.6 - semver: 7.8.5 - tinyglobby: 0.2.17 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/utils@8.70.0(eslint@9.39.5)(typescript@5.9.3)': - dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) - '@typescript-eslint/scope-manager': 8.70.0 - '@typescript-eslint/types': 8.70.0 - '@typescript-eslint/typescript-estree': 8.70.0(typescript@5.9.3) - eslint: 9.39.5 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/visitor-keys@8.70.0': - dependencies: - '@typescript-eslint/types': 8.70.0 - eslint-visitor-keys: 5.0.1 - - acorn-jsx@5.3.2(acorn@8.18.0): - dependencies: - acorn: 8.18.0 - - acorn@8.18.0: {} - - ajv-formats@3.0.1(ajv@8.20.0): - optionalDependencies: - ajv: 8.20.0 - - ajv@6.15.0: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - - ajv@8.20.0: - dependencies: - fast-deep-equal: 3.1.3 - fast-uri: 3.1.7 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - - ansi-regex@6.3.0: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - ansis@4.3.1: {} - - argparse@2.0.1: {} - - balanced-match@1.0.2: {} - - balanced-match@4.0.4: {} - - brace-expansion@1.1.18: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - brace-expansion@5.0.9: - dependencies: - balanced-match: 4.0.4 - - braces@3.0.3: - dependencies: - fill-range: 7.1.1 - optional: true - - bun@1.4.2: - optionalDependencies: - '@oven/bun-darwin-aarch64': 1.4.2 - '@oven/bun-darwin-x64': 1.4.2 - '@oven/bun-freebsd-aarch64': 1.4.2 - '@oven/bun-freebsd-x64': 1.4.2 - '@oven/bun-linux-aarch64': 1.4.2 - '@oven/bun-linux-aarch64-android': 1.4.2 - '@oven/bun-linux-aarch64-musl': 1.4.2 - '@oven/bun-linux-x64': 1.4.2 - '@oven/bun-linux-x64-android': 1.4.2 - '@oven/bun-linux-x64-musl': 1.4.2 - '@oven/bun-windows-aarch64': 1.4.2 - '@oven/bun-windows-x64': 1.4.2 - - bundle-name@4.1.0: - dependencies: - run-applescript: 7.1.0 - - callsites@3.1.0: {} - - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - chalk@5.6.2: {} - - char-regex@1.0.2: {} - - chardet@2.2.0: {} - - chokidar@5.0.0: - dependencies: - readdirp: 5.1.1 - - chownr@3.0.0: - optional: true - - class-transformer@0.5.1: {} - - class-validator@0.14.4: - dependencies: - '@types/validator': 13.15.10 - libphonenumber-js: 1.13.12 - validator: 13.15.35 - - class-validator@0.15.1: - dependencies: - '@types/validator': 13.15.10 - libphonenumber-js: 1.13.12 - validator: 13.15.35 - - cli-cursor@5.0.0: - dependencies: - restore-cursor: 5.1.0 - - cli-spinners@3.4.0: {} - - cli-width@4.1.0: {} - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - commander@15.0.0: {} - - concat-map@0.0.1: {} - - cross-spawn@7.0.6: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - debug@4.4.3: - dependencies: - ms: 2.1.3 - - deep-is@0.1.4: {} - - default-browser-id@5.0.1: {} - - default-browser@5.5.1: - dependencies: - bundle-name: 4.1.0 - default-browser-id: 5.0.1 - - define-lazy-prop@3.0.0: {} - - defu@6.1.7: {} - - destr@2.0.5: {} - - dotenv@17.4.2: {} - - emojilib@2.4.0: {} - - escape-string-regexp@4.0.0: {} - - eslint-config-prettier@10.1.8(eslint@9.39.5): - dependencies: - eslint: 9.39.5 - - eslint-plugin-prettier@5.5.6(eslint-config-prettier@10.1.8(eslint@9.39.5))(eslint@9.39.5)(prettier@3.9.6): - dependencies: - eslint: 9.39.5 - prettier: 3.9.6 - prettier-linter-helpers: 1.0.1 - synckit: 0.11.13 - optionalDependencies: - eslint-config-prettier: 10.1.8(eslint@9.39.5) - - eslint-scope@8.4.0: - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - - eslint-visitor-keys@3.4.3: {} - - eslint-visitor-keys@4.2.1: {} - - eslint-visitor-keys@5.0.1: {} - - eslint@9.39.5: - dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@9.39.5) - '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.7 - '@eslint/js': 9.39.5 - '@eslint/plugin-kit': 0.4.1 - '@humanfs/node': 0.16.8 - '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.4.3 - '@types/estree': 1.0.9 - ajv: 6.15.0 - chalk: 4.1.2 - cross-spawn: 7.0.6 - debug: 4.4.3 - escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 - esquery: 1.7.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 - find-up: 5.0.0 - glob-parent: 6.0.2 - ignore: 5.3.2 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.5 - natural-compare: 1.4.0 - optionator: 0.9.4 - transitivePeerDependencies: - - supports-color - - espree@10.4.0: - dependencies: - acorn: 8.18.0 - acorn-jsx: 5.3.2(acorn@8.18.0) - eslint-visitor-keys: 4.2.1 - - esquery@1.7.0: - dependencies: - estraverse: 5.3.0 - - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@5.3.0: {} - - esutils@2.0.3: {} - - fast-deep-equal@3.1.3: {} - - fast-diff@1.3.0: {} - - fast-json-stable-stringify@2.1.0: {} - - fast-levenshtein@2.0.6: {} - - fast-string-truncated-width@3.0.3: {} - - fast-string-width@3.0.2: - dependencies: - fast-string-truncated-width: 3.0.3 - - fast-uri@3.1.7: {} - - fast-wrap-ansi@0.2.2: - dependencies: - fast-string-width: 3.0.2 - - fdir@6.5.0(picomatch@4.0.7): - optionalDependencies: - picomatch: 4.0.7 - - file-entry-cache@8.0.0: - dependencies: - flat-cache: 4.0.1 - - fill-range@7.1.1: - dependencies: - to-regex-range: 5.0.1 - optional: true - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - - flat-cache@4.0.1: - dependencies: - flatted: 3.4.4 - keyv: 4.5.4 - - flatted@3.4.4: {} - - get-east-asian-width@1.6.0: {} - - glob-parent@6.0.2: - dependencies: - is-glob: 4.0.3 - - globals@14.0.0: {} - - globals@16.5.0: {} - - has-flag@4.0.0: {} - - iconv-lite@0.7.3: - dependencies: - safer-buffer: 2.1.2 - - ignore@5.3.2: {} - - ignore@7.0.9: {} - - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - - imurmurhash@0.1.4: {} - - is-docker@3.0.0: {} - - is-extglob@2.1.1: {} - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - is-in-ssh@1.0.0: {} - - is-inside-container@1.0.0: - dependencies: - is-docker: 3.0.0 - - is-interactive@2.0.0: {} - - is-number@7.0.0: - optional: true - - is-unicode-supported@2.1.0: {} - - is-wsl@3.1.1: - dependencies: - is-inside-container: 1.0.0 - - isexe@2.0.0: {} - - js-yaml@4.3.2: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - - json-schema-traverse@0.4.1: {} - - json-schema-traverse@1.0.0: {} - - json-stable-stringify-without-jsonify@1.0.1: {} - - jsonc-parser@3.3.1: {} - - keyv@4.5.4: - dependencies: - json-buffer: 3.0.1 - - konva@10.5.0: {} - - levn@0.4.1: - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - - libphonenumber-js@1.13.12: {} - - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.merge@4.6.2: {} - - log-symbols@7.0.1: - dependencies: - is-unicode-supported: 2.1.0 - yoctocolors: 2.2.0 - - magic-string@1.0.0: - dependencies: - '@jridgewell/sourcemap-codec': 1.6.0 - - micromatch@4.0.8: - dependencies: - braces: 3.0.3 - picomatch: 2.3.2 - optional: true - - mimic-function@5.0.1: {} - - minimatch@10.2.6: - dependencies: - brace-expansion: 5.0.9 - - minimatch@3.1.5: - dependencies: - brace-expansion: 1.1.18 - - minipass@7.1.3: - optional: true - - minizlib@3.1.0: - dependencies: - minipass: 7.1.3 - optional: true - - ms@2.1.3: {} - - mute-stream@3.0.0: {} - - natural-compare@1.4.0: {} - - node-emoji@2.2.0: - dependencies: - '@sindresorhus/is': 4.6.0 - char-regex: 1.0.2 - emojilib: 2.4.0 - skin-tone: 2.0.0 - - onetime@7.0.0: - dependencies: - mimic-function: 5.0.1 - - open@11.0.2: - dependencies: - default-browser: 5.5.1 - define-lazy-prop: 3.0.0 - is-in-ssh: 1.0.0 - is-inside-container: 1.0.0 - powershell-utils: 0.2.1 - wsl-utils: 1.0.0 - - optionator@0.9.4: - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 - - ora@9.4.1: - dependencies: - chalk: 5.6.2 - cli-cursor: 5.0.0 - cli-spinners: 3.4.0 - is-interactive: 2.0.0 - is-unicode-supported: 2.1.0 - log-symbols: 7.0.1 - stdin-discarder: 0.3.2 - string-width: 8.2.2 - - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - - path-exists@4.0.0: {} - - path-key@3.1.1: {} - - picomatch@2.3.2: - optional: true - - picomatch@4.0.5: {} - - picomatch@4.0.7: {} - - powershell-utils@0.1.0: {} - - powershell-utils@0.2.1: {} - - prelude-ls@1.2.1: {} - - prettier-linter-helpers@1.0.1: - dependencies: - fast-diff: 1.3.0 - - prettier@3.9.6: {} - - punycode@2.3.1: {} - - rc9@3.1.0: - dependencies: - defu: 6.1.7 - destr: 2.0.5 - - readdirp@5.1.1: {} - - reflect-metadata@0.2.2: {} - - require-from-string@2.0.2: {} - - resolve-from@4.0.0: {} - - restore-cursor@5.1.0: - dependencies: - onetime: 7.0.0 - signal-exit: 4.1.0 - - run-applescript@7.1.0: {} - - rxjs@7.8.2: - dependencies: - tslib: 2.8.1 - - safer-buffer@2.1.2: {} - - semver@7.8.5: {} - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - - signal-exit@4.1.0: {} - - skin-tone@2.0.0: - dependencies: - unicode-emoji-modifier-base: 1.0.0 - - source-map@0.7.6: {} - - stdin-discarder@0.3.2: {} - - string-width@8.2.2: - dependencies: - get-east-asian-width: 1.6.0 - strip-ansi: 7.2.0 - - strip-ansi@7.2.0: - dependencies: - ansi-regex: 6.3.0 - - strip-json-comments@3.1.1: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - - synckit@0.11.13: - dependencies: - '@pkgr/core': 0.3.6 - - tar@7.5.22: - dependencies: - '@isaacs/fs-minipass': 4.0.1 - chownr: 3.0.0 - minipass: 7.1.3 - minizlib: 3.1.0 - yallist: 5.0.0 - optional: true - - tinyglobby@0.2.17: - dependencies: - fdir: 6.5.0(picomatch@4.0.7) - picomatch: 4.0.7 - - to-regex-range@5.0.1: - dependencies: - is-number: 7.0.0 - optional: true - - ts-api-utils@2.5.0(typescript@5.9.3): - dependencies: - typescript: 5.9.3 - - tslib@2.8.1: {} - - type-check@0.4.0: - dependencies: - prelude-ls: 1.2.1 - - typescript-eslint@8.70.0(eslint@9.39.5)(typescript@5.9.3): - dependencies: - '@typescript-eslint/eslint-plugin': 8.70.0(@typescript-eslint/parser@8.70.0(eslint@9.39.5)(typescript@5.9.3))(eslint@9.39.5)(typescript@5.9.3) - '@typescript-eslint/parser': 8.70.0(eslint@9.39.5)(typescript@5.9.3) - '@typescript-eslint/typescript-estree': 8.70.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.70.0(eslint@9.39.5)(typescript@5.9.3) - eslint: 9.39.5 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - typescript@5.9.3: {} - - typescript@6.0.3: - optional: true - - unicode-emoji-modifier-base@1.0.0: {} - - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - - validator@13.15.35: {} - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - word-wrap@1.2.5: {} - - wsl-utils@1.0.0: - dependencies: - is-wsl: 3.1.1 - powershell-utils: 0.1.0 - - yallist@5.0.0: - optional: true - - yocto-queue@0.1.0: {} - - yoctocolors@2.2.0: {} diff --git a/flappy-bird/prettier.config.js b/flappy-bird/prettier.config.js deleted file mode 100644 index 8e5015d..0000000 --- a/flappy-bird/prettier.config.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - useTabs: false, - singleQuote: false, - trailingComma: "all", - printWidth: 100, -}; diff --git a/games/flappy-bird/.gitignore b/games/flappy-bird/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/games/flappy-bird/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/games/flappy-bird/README.md b/games/flappy-bird/README.md new file mode 100644 index 0000000..c010c91 --- /dev/null +++ b/games/flappy-bird/README.md @@ -0,0 +1,42 @@ +# flappy-bird + +Flappy Bird: the bird falls, you flap it up through the gaps between the pipes. Each pair of +pipes passed is a point, and the gap shrinks as the score grows. + +| Control | Action | +| ------------------- | ----------------------------------------- | +| Space, click or tap | Flap (and start, or restart after a fall) | + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +## How it is made + +Four scenes (`src/scenes`), each with its entities written out in its `setup`: + +| Scene | Parent | What | +| ---------- | ----------- | ------------------------------------------------------------------ | +| `Sky` | none | The background and the scrolling ground (three `ScrollLoop` tiles) | +| `Ready` | `Sky` | The "get ready" message, until the first flap | +| `Play` | `Sky` | The bird, three pairs of pipes that come back again, the score | +| `GameOver` | `"current"` | Loaded over `Play`: its `over` var stops the world | + +- The pipes are not spawned while playing: `movePipes` brings back a pair that left the screen, + with a new gap. The top pipe is a `DrawableRect2D` turned by 180 degrees, so the pipe image + needs no cropping. +- `DrawOrder2D` stacks the shapes (pipes under the ground, the score on top): without it, a scene + loaded again can draw in another order. +- Sounds are `SoundEffect` entities of `main.ts`, played with `ctx.sound.play(key)`. +- The tunings are component parameters, editable in the editor: `Bird` (gravity, flap, fall + speed), `PipeSpawner` (speed, interval, gap), `ScrollLoop`, `RestartDelay`. + +The files of `src` that are also in `shared/2d` or `shared/arcade` are copies (see the +repository's README). + +## Credits + +The images and sounds of `assets/` are by Samuel Custodio, under the MIT license +(`assets/LICENSE`). diff --git a/flappy-bird/client/static/0.png b/games/flappy-bird/assets/0.png similarity index 100% rename from flappy-bird/client/static/0.png rename to games/flappy-bird/assets/0.png diff --git a/flappy-bird/client/static/1.png b/games/flappy-bird/assets/1.png similarity index 100% rename from flappy-bird/client/static/1.png rename to games/flappy-bird/assets/1.png diff --git a/flappy-bird/client/static/2.png b/games/flappy-bird/assets/2.png similarity index 100% rename from flappy-bird/client/static/2.png rename to games/flappy-bird/assets/2.png diff --git a/flappy-bird/client/static/3.png b/games/flappy-bird/assets/3.png similarity index 100% rename from flappy-bird/client/static/3.png rename to games/flappy-bird/assets/3.png diff --git a/flappy-bird/client/static/4.png b/games/flappy-bird/assets/4.png similarity index 100% rename from flappy-bird/client/static/4.png rename to games/flappy-bird/assets/4.png diff --git a/flappy-bird/client/static/5.png b/games/flappy-bird/assets/5.png similarity index 100% rename from flappy-bird/client/static/5.png rename to games/flappy-bird/assets/5.png diff --git a/flappy-bird/client/static/6.png b/games/flappy-bird/assets/6.png similarity index 100% rename from flappy-bird/client/static/6.png rename to games/flappy-bird/assets/6.png diff --git a/flappy-bird/client/static/7.png b/games/flappy-bird/assets/7.png similarity index 100% rename from flappy-bird/client/static/7.png rename to games/flappy-bird/assets/7.png diff --git a/flappy-bird/client/static/8.png b/games/flappy-bird/assets/8.png similarity index 100% rename from flappy-bird/client/static/8.png rename to games/flappy-bird/assets/8.png diff --git a/flappy-bird/client/static/9.png b/games/flappy-bird/assets/9.png similarity index 100% rename from flappy-bird/client/static/9.png rename to games/flappy-bird/assets/9.png diff --git a/flappy-bird/client/static/LICENSE b/games/flappy-bird/assets/LICENSE similarity index 100% rename from flappy-bird/client/static/LICENSE rename to games/flappy-bird/assets/LICENSE diff --git a/flappy-bird/client/static/background-day.png b/games/flappy-bird/assets/background-day.png similarity index 100% rename from flappy-bird/client/static/background-day.png rename to games/flappy-bird/assets/background-day.png diff --git a/flappy-bird/client/static/base.png b/games/flappy-bird/assets/base.png similarity index 100% rename from flappy-bird/client/static/base.png rename to games/flappy-bird/assets/base.png diff --git a/flappy-bird/client/static/die.wav b/games/flappy-bird/assets/die.wav similarity index 100% rename from flappy-bird/client/static/die.wav rename to games/flappy-bird/assets/die.wav diff --git a/flappy-bird/client/static/gameover.png b/games/flappy-bird/assets/gameover.png similarity index 100% rename from flappy-bird/client/static/gameover.png rename to games/flappy-bird/assets/gameover.png diff --git a/flappy-bird/client/static/hit.wav b/games/flappy-bird/assets/hit.wav similarity index 100% rename from flappy-bird/client/static/hit.wav rename to games/flappy-bird/assets/hit.wav diff --git a/flappy-bird/client/static/message.png b/games/flappy-bird/assets/message.png similarity index 100% rename from flappy-bird/client/static/message.png rename to games/flappy-bird/assets/message.png diff --git a/flappy-bird/client/static/pipe-green.png b/games/flappy-bird/assets/pipe-green.png similarity index 100% rename from flappy-bird/client/static/pipe-green.png rename to games/flappy-bird/assets/pipe-green.png diff --git a/flappy-bird/client/static/point.wav b/games/flappy-bird/assets/point.wav similarity index 100% rename from flappy-bird/client/static/point.wav rename to games/flappy-bird/assets/point.wav diff --git a/flappy-bird/client/static/swoosh.wav b/games/flappy-bird/assets/swoosh.wav similarity index 100% rename from flappy-bird/client/static/swoosh.wav rename to games/flappy-bird/assets/swoosh.wav diff --git a/flappy-bird/client/static/wing.wav b/games/flappy-bird/assets/wing.wav similarity index 100% rename from flappy-bird/client/static/wing.wav rename to games/flappy-bird/assets/wing.wav diff --git a/flappy-bird/client/static/yellowbird-downflap.png b/games/flappy-bird/assets/yellowbird-downflap.png similarity index 100% rename from flappy-bird/client/static/yellowbird-downflap.png rename to games/flappy-bird/assets/yellowbird-downflap.png diff --git a/flappy-bird/client/static/yellowbird-midflap.png b/games/flappy-bird/assets/yellowbird-midflap.png similarity index 100% rename from flappy-bird/client/static/yellowbird-midflap.png rename to games/flappy-bird/assets/yellowbird-midflap.png diff --git a/flappy-bird/client/static/yellowbird-upflap.png b/games/flappy-bird/assets/yellowbird-upflap.png similarity index 100% rename from flappy-bird/client/static/yellowbird-upflap.png rename to games/flappy-bird/assets/yellowbird-upflap.png diff --git a/games/flappy-bird/nanoforge.config.ts b/games/flappy-bird/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/games/flappy-bird/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/games/flappy-bird/package.json b/games/flappy-bird/package.json new file mode 100644 index 0000000..dcc3285 --- /dev/null +++ b/games/flappy-bird/package.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "flappy-bird", + "description": "Flappy Bird: fly between the pipes, one tap at a time", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "@nanoforge-dev/scene": "^3.0.0", + "@nanoforge-dev/sound": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/games/flappy-bird/pnpm-lock.yaml b/games/flappy-bird/pnpm-lock.yaml new file mode 100644 index 0000000..0786d33 --- /dev/null +++ b/games/flappy-bird/pnpm-lock.yaml @@ -0,0 +1,1549 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/scene': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/sound': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/scene@3.0.0': + resolution: {integrity: sha512-4+QajCZCW8eVdQPZeSoLDQ/ueQOFwAoFvd0pRL06FeuzWJMxCVNTCeZp9UHZLTMqmEJKAC29OnBQuHvhGkuBVg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@nanoforge-dev/sound@3.0.0': + resolution: {integrity: sha512-vNMYm3dp7A3A+4taJpSXwPEu/t1VtZ1BAUkY6a3D40Uz3q785+u79o3q21/yYGigCswuPlIQ5gT4ApcT+6J4tg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0))': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@nanoforge-dev/sound@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/games/flappy-bird/pnpm-workspace.yaml b/games/flappy-bird/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/games/flappy-bird/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/games/flappy-bird/src/components/bird.component.ts b/games/flappy-bird/src/components/bird.component.ts new file mode 100644 index 0000000..7eab2a0 --- /dev/null +++ b/games/flappy-bird/src/components/bird.component.ts @@ -0,0 +1,29 @@ +/** + * The bird: it falls, flaps up when the player presses Space, clicks or taps, and dies on a pipe + * or the ground. Needs `Position2D` (its center), `Velocity2D`, `DrawableRect2D` and the `flap`, + * `fly` and `collide` systems. + * + * @component + * @side client + * @group Flight color=#f0a33a - How the bird moves. + * @group Hit color=#eb4d4b - When the bird dies. + */ +export class Bird { + name = "Bird"; + + /** Whether it hit a pipe or the ground, set by `collide`. */ + dead = false; + + constructor( + /** Added to the falling speed every second, in pixels per second, per second. @group Flight */ + public gravity = 1500, + /** Upward speed of a flap, in pixels per second. @group Flight */ + public flapSpeed = 430, + /** The fastest it falls, in pixels per second. @group Flight */ + public maxFallSpeed = 640, + /** Pixels from the top of the screen to the ground. @group Hit */ + public groundY = 448, + /** Part of its size left out of its hitbox on each side, from 0 to 0.5. @group Hit */ + public hitboxInset = 0.25, + ) {} +} diff --git a/games/flappy-bird/src/components/draw-order-2d.component.ts b/games/flappy-bird/src/components/draw-order-2d.component.ts new file mode 100644 index 0000000..cd94522 --- /dev/null +++ b/games/flappy-bird/src/components/draw-order-2d.component.ts @@ -0,0 +1,23 @@ +/** + * Where an entity's drawable is in the stack: a higher `z` is drawn over a lower one. Needs the + * `drawOrder2D` system. + * + * @remarks + * Without it, a shape is drawn over the shapes that appeared before it, and a scene loaded again + * can stack its shapes in another order. + * + * @component + * @side client + * @group Order color=#b18cff - Drawing order. + */ +export class DrawOrder2D { + name = "DrawOrder2D"; + + /** The `z` the shape was last stacked at, set by `drawOrder2D`. */ + stackedZ?: number; + + constructor( + /** Higher is drawn over lower; entities without it are under every one with it. @group Order */ + public z = 0, + ) {} +} diff --git a/games/flappy-bird/src/components/drawable-circle-2d.component.ts b/games/flappy-bird/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/games/flappy-bird/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/games/flappy-bird/src/components/drawable-rect-2d.component.ts b/games/flappy-bird/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/games/flappy-bird/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/games/flappy-bird/src/components/drawable-text-2d.component.ts b/games/flappy-bird/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/games/flappy-bird/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/games/flappy-bird/src/components/pipe-spawner.component.ts b/games/flappy-bird/src/components/pipe-spawner.component.ts new file mode 100644 index 0000000..b8f5856 --- /dev/null +++ b/games/flappy-bird/src/components/pipe-spawner.component.ts @@ -0,0 +1,39 @@ +/** + * How the pipes come: how fast, how often, and how wide their gap is. The `movePipes` system + * takes a pair of `Pipe` entities that left the screen and brings it back on the right. + * + * @remarks + * The gap shrinks by `gapStep` for every point, down to `minGap`, give or take `gapJitter`. + * + * @component + * @side client + * @group Flow color=#36c5a0 - How fast and how often the pipes come. + * @group Gap color=#f0a33a - The opening between two pipes. + */ +export class PipeSpawner { + name = "PipeSpawner"; + + /** Seconds left before the next pair comes. */ + timer = 0; + + constructor( + /** Pixels per second to the left. @group Flow */ + public speed = 150, + /** Seconds between two pairs. @group Flow */ + public interval = 1.5, + /** Where a pair comes in, in pixels from the left (the right edge of the screen). @group Flow */ + public startX = 420, + /** Height of the gap at the start, in pixels. @group Gap */ + public baseGap = 150, + /** The smallest gap, in pixels. @group Gap */ + public minGap = 110, + /** Pixels the gap loses for every point. @group Gap */ + public gapStep = 2.5, + /** Random pixels added to or taken from the gap. @group Gap */ + public gapJitter = 16, + /** The least room between the gap and the sky or the ground, in pixels. @group Gap */ + public margin = 60, + /** Pixels from the top of the screen to the ground. @group Gap */ + public groundY = 448, + ) {} +} diff --git a/games/flappy-bird/src/components/pipe.component.ts b/games/flappy-bird/src/components/pipe.component.ts new file mode 100644 index 0000000..54a73d0 --- /dev/null +++ b/games/flappy-bird/src/components/pipe.component.ts @@ -0,0 +1,25 @@ +/** + * One half of a pair of pipes: the top one hangs from the sky, the bottom one stands on the + * ground. Needs `Position2D`, `DrawableRect2D` and the `movePipes` system. + * + * @remarks + * The top pipe's `DrawableRect2D` is turned by 180 degrees: its `Position2D` is its bottom-right + * corner, the edge of the gap. + * + * @component + * @side client + * @group Pipe color=#73bf2e - Which pipe it is. + */ +export class Pipe { + name = "Pipe"; + + /** Whether the bird flew past it, set by `scorePipes`. */ + scored = false; + + constructor( + /** The pair it belongs to: both halves of a pair move together. @group Pipe */ + public pair = 0, + /** Whether it is the top half. @group Pipe */ + public top = false, + ) {} +} diff --git a/games/flappy-bird/src/components/position-2d.component.ts b/games/flappy-bird/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/games/flappy-bird/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/games/flappy-bird/src/components/restart-delay.component.ts b/games/flappy-bird/src/components/restart-delay.component.ts new file mode 100644 index 0000000..9b3d27b --- /dev/null +++ b/games/flappy-bird/src/components/restart-delay.component.ts @@ -0,0 +1,19 @@ +/** + * How long the game over screen waits before a flap restarts the game, so that a flap made just + * as the bird died doesn't. Needs the `restart` system. + * + * @component + * @side client + * @group Restart color=#eb4d4b - The wait before a restart. + */ +export class RestartDelay { + name = "RestartDelay"; + + /** Seconds since the game over screen came. */ + elapsed = 0; + + constructor( + /** In seconds. @group Restart */ + public seconds = 0.4, + ) {} +} diff --git a/games/flappy-bird/src/components/score-digit.component.ts b/games/flappy-bird/src/components/score-digit.component.ts new file mode 100644 index 0000000..60ef677 --- /dev/null +++ b/games/flappy-bird/src/components/score-digit.component.ts @@ -0,0 +1,21 @@ +/** + * One digit of the score, drawn with the digit images (`/0.png` to `/9.png`). Needs + * `Position2D`, `DrawableRect2D` and the `showScore` system. + * + * @remarks + * `showScore` centers the digits, and hides the ones the score doesn't need. + * + * @component + * @side client + * @group Digit color=#f9ca24 - Which digit it shows. + */ +export class ScoreDigit { + name = "ScoreDigit"; + + constructor( + /** Its place from the left: 0 is the first digit. @group Digit */ + public index = 0, + /** Where the score is centered, in pixels from the left. @group Digit */ + public centerX = 210, + ) {} +} diff --git a/games/flappy-bird/src/components/scroll-loop.component.ts b/games/flappy-bird/src/components/scroll-loop.component.ts new file mode 100644 index 0000000..5466902 --- /dev/null +++ b/games/flappy-bird/src/components/scroll-loop.component.ts @@ -0,0 +1,22 @@ +/** + * Scrolls an entity to the left, and brings it back on the right once it has left the screen: a + * few tiles side by side make an endless strip. Needs `Position2D`, `DrawableRect2D` and the + * `scrollGround` system. + * + * @example + * Three 336-pixel tiles at x 0, 336 and 672, each with `new ScrollLoop(150, 1008)`. + * + * @component + * @side client + * @group Scroll color=#36c5a0 - How the entity scrolls. + */ +export class ScrollLoop { + name = "ScrollLoop"; + + constructor( + /** Pixels per second to the left. @group Scroll */ + public speed = 150, + /** Pixels it jumps to the right once out of the screen: the width of all the tiles. @group Scroll */ + public span = 1008, + ) {} +} diff --git a/games/flappy-bird/src/components/sound-effect.component.ts b/games/flappy-bird/src/components/sound-effect.component.ts new file mode 100644 index 0000000..4476f31 --- /dev/null +++ b/games/flappy-bird/src/components/sound-effect.component.ts @@ -0,0 +1,20 @@ +/** + * A sound the game plays by its `key` with `ctx.sound.play(key)`. Needs the `loadSounds` system. + * + * @component + * @side client + * @group Sound color=#36c5a0 - The sound and its name. + */ +export class SoundEffect { + name = "SoundEffect"; + + /** Whether `loadSounds` gave it to the sound library. */ + loaded = false; + + constructor( + /** The name systems play it by. @group Sound */ + public key = "click", + /** The sound file. @group Sound @asset .wav .mp3 .ogg */ + public path = "", + ) {} +} diff --git a/games/flappy-bird/src/components/velocity-2d.component.ts b/games/flappy-bird/src/components/velocity-2d.component.ts new file mode 100644 index 0000000..3b93d4e --- /dev/null +++ b/games/flappy-bird/src/components/velocity-2d.component.ts @@ -0,0 +1,20 @@ +/** + * How fast an entity moves, in pixels per second. Needs `Position2D` and the `move2D` system. + * + * @example + * `new Velocity2D(100, 0)` moves 100 pixels to the right every second. + * + * @component + * @side shared + * @group Velocity color=#36c5a0 - Pixels per second. + */ +export class Velocity2D { + name = "Velocity2D"; + + constructor( + /** Pixels per second to the right (negative: to the left). @group Velocity @preset vector.x */ + public x = 0, + /** Pixels per second downward (negative: upward). @group Velocity @preset vector.y */ + public y = 0, + ) {} +} diff --git a/games/flappy-bird/src/flap-pressed.ts b/games/flappy-bird/src/flap-pressed.ts new file mode 100644 index 0000000..991a1fc --- /dev/null +++ b/games/flappy-bird/src/flap-pressed.ts @@ -0,0 +1,37 @@ +import type { Context } from "@nanoforge-dev/common"; +import { InputEnum } from "@nanoforge-dev/input"; + +import { justPressed } from "./just-pressed"; + +/** Whether the game was touched since the last call. */ +let tapped = false; +let listening = false; + +/** + * Whether the player flapped since the last call: Space, a click or a tap on the game. + * + * @remarks + * The input library has no touch events, and the mouse events a browser makes from a tap are + * likely to go down and up between two frames, where no system sees them: taps are listened to + * here. + */ +export const flapPressed = (ctx: Context): boolean => { + if (!listening) { + listening = true; + window.addEventListener( + "touchstart", + (event) => { + if (!(event.target instanceof HTMLCanvasElement)) return; + // No scrolling or zooming the page, and no mouse events made from the tap. + event.preventDefault(); + tapped = true; + }, + { passive: false }, + ); + } + const space = justPressed(ctx, InputEnum.Space); + const click = justPressed(ctx, InputEnum.MouseLeft); + const tap = tapped; + tapped = false; + return space || click || tap; +}; diff --git a/games/flappy-bird/src/image-fill.ts b/games/flappy-bird/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/games/flappy-bird/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/games/flappy-bird/src/just-pressed.ts b/games/flappy-bird/src/just-pressed.ts new file mode 100644 index 0000000..bd8dac9 --- /dev/null +++ b/games/flappy-bird/src/just-pressed.ts @@ -0,0 +1,19 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { InputEnum } from "@nanoforge-dev/input"; + +/** Whether each key was down the last time a system asked. */ +const down = new Map(); + +/** + * Whether `key` went down since the last time a system asked about it. + * + * @remarks + * The state is shared by every system: a key that opens a scene does not also act in that scene + * while it is still held. + */ +export const justPressed = (ctx: Context, key: InputEnum): boolean => { + const now = ctx.input.isKeyPressed(key) === true; + const before = down.get(key) ?? false; + down.set(key, now); + return now && !before; +}; diff --git a/games/flappy-bird/src/main.ts b/games/flappy-bird/src/main.ts new file mode 100644 index 0000000..a6a7008 --- /dev/null +++ b/games/flappy-bird/src/main.ts @@ -0,0 +1,54 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputLibrary } from "@nanoforge-dev/input"; +import { SceneLibrary } from "@nanoforge-dev/scene"; +import { SoundLibrary } from "@nanoforge-dev/sound"; + +import { SoundEffect } from "./components/sound-effect.component"; +import "./scene-vars"; +import { GameOver } from "./scenes/game-over.scene"; +import { Play } from "./scenes/play.scene"; +import { Ready } from "./scenes/ready.scene"; +import { Sky } from "./scenes/sky.scene"; +import { draw2D } from "./systems/draw-2d.system"; +import { drawOrder2D } from "./systems/draw-order-2d.system"; +import { loadSounds } from "./systems/load-sounds.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 420, height: 560, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new SoundLibrary()); + app.use(new SceneLibrary({ initial: Ready, scenes: { Sky, Ready, Play, GameOver } })); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const wing = registry.spawnEntity(); + registry.addComponent(wing, new SoundEffect("wing", "/wing.wav")); + const point = registry.spawnEntity(); + registry.addComponent(point, new SoundEffect("point", "/point.wav")); + const hit = registry.spawnEntity(); + registry.addComponent(hit, new SoundEffect("hit", "/hit.wav")); + const die = registry.spawnEntity(); + registry.addComponent(die, new SoundEffect("die", "/die.wav")); + const swoosh = registry.spawnEntity(); + registry.addComponent(swoosh, new SoundEffect("swoosh", "/swoosh.wav")); + + registry.addSystem(loadSounds); + registry.addSystem(draw2D); + registry.addSystem(drawOrder2D); + + await app.run(); +}; diff --git a/games/flappy-bird/src/scene-vars.ts b/games/flappy-bird/src/scene-vars.ts new file mode 100644 index 0000000..6882508 --- /dev/null +++ b/games/flappy-bird/src/scene-vars.ts @@ -0,0 +1,14 @@ +/** + * The scene vars of the game. A var belongs to the scene that made it, and goes away when that + * scene is unloaded. + */ +declare module "@nanoforge-dev/scene" { + interface SceneVars { + /** Pipes passed in the current flight (made by `Play`). @default 0 */ + score: number; + /** The bird died: the world stops (made by `GameOver`). @default true */ + over: boolean; + } +} + +export {}; diff --git a/games/flappy-bird/src/scenes/game-over.scene.ts b/games/flappy-bird/src/scenes/game-over.scene.ts new file mode 100644 index 0000000..254701b --- /dev/null +++ b/games/flappy-bird/src/scenes/game-over.scene.ts @@ -0,0 +1,31 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { RestartDelay } from "../components/restart-delay.component"; +import { restart } from "../systems/restart.system"; + +/** + * The game over screen, over the flight that ended. It has no parent of its own: it is loaded + * over `Play` (`parent: "current"`), whose world stops while `over` exists. + * + * @scene + * @side client + * @vars over + */ +export class GameOver extends EcsScene { + override setup(registry: Registry, ctx: Context) { + ctx.scenes.vars.init("over", true); + + const title = registry.spawnEntity(); + registry.addComponent(title, new Position2D(114, 186)); + registry.addComponent(title, new DrawableRect2D(192, 42, "#ffffff", "/gameover.png")); + registry.addComponent(title, new RestartDelay(0.4)); + registry.addComponent(title, new DrawOrder2D(6)); + + registry.addSystem(restart); + } +} diff --git a/games/flappy-bird/src/scenes/play.scene.ts b/games/flappy-bird/src/scenes/play.scene.ts new file mode 100644 index 0000000..f8f6f85 --- /dev/null +++ b/games/flappy-bird/src/scenes/play.scene.ts @@ -0,0 +1,115 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { Bird } from "../components/bird.component"; +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Pipe } from "../components/pipe.component"; +import { PipeSpawner } from "../components/pipe-spawner.component"; +import { Position2D } from "../components/position-2d.component"; +import { ScoreDigit } from "../components/score-digit.component"; +import { Velocity2D } from "../components/velocity-2d.component"; +import { collide } from "../systems/collide.system"; +import { flap } from "../systems/flap.system"; +import { fly } from "../systems/fly.system"; +import { movePipes } from "../systems/move-pipes.system"; +import { scorePipes } from "../systems/score-pipes.system"; +import { showScore } from "../systems/show-score.system"; +import { Sky } from "./sky.scene"; + +/** + * A flight: the bird, three pairs of pipes that come back again and again, and the score. The + * bird starts with a flap: the one that started the flight. + * + * @scene + * @side client + * @vars score + */ +export class Play extends EcsScene { + static override parent = Sky; + + override setup(registry: Registry, ctx: Context) { + ctx.scenes.vars.init("score", 0); + + const pipe1Top = registry.spawnEntity(); + registry.addComponent(pipe1Top, new Position2D(-100, 0)); + registry.addComponent( + pipe1Top, + new DrawableRect2D(52, 320, "#73bf2e", "/pipe-green.png", 1, 180), + ); + registry.addComponent(pipe1Top, new Pipe(0, true)); + registry.addComponent(pipe1Top, new DrawOrder2D(1)); + + const pipe1Bottom = registry.spawnEntity(); + registry.addComponent(pipe1Bottom, new Position2D(-100, 0)); + registry.addComponent(pipe1Bottom, new DrawableRect2D(52, 320, "#73bf2e", "/pipe-green.png")); + registry.addComponent(pipe1Bottom, new Pipe(0, false)); + registry.addComponent(pipe1Bottom, new DrawOrder2D(1)); + + const pipe2Top = registry.spawnEntity(); + registry.addComponent(pipe2Top, new Position2D(-100, 0)); + registry.addComponent( + pipe2Top, + new DrawableRect2D(52, 320, "#73bf2e", "/pipe-green.png", 1, 180), + ); + registry.addComponent(pipe2Top, new Pipe(1, true)); + registry.addComponent(pipe2Top, new DrawOrder2D(1)); + + const pipe2Bottom = registry.spawnEntity(); + registry.addComponent(pipe2Bottom, new Position2D(-100, 0)); + registry.addComponent(pipe2Bottom, new DrawableRect2D(52, 320, "#73bf2e", "/pipe-green.png")); + registry.addComponent(pipe2Bottom, new Pipe(1, false)); + registry.addComponent(pipe2Bottom, new DrawOrder2D(1)); + + const pipe3Top = registry.spawnEntity(); + registry.addComponent(pipe3Top, new Position2D(-100, 0)); + registry.addComponent( + pipe3Top, + new DrawableRect2D(52, 320, "#73bf2e", "/pipe-green.png", 1, 180), + ); + registry.addComponent(pipe3Top, new Pipe(2, true)); + registry.addComponent(pipe3Top, new DrawOrder2D(1)); + + const pipe3Bottom = registry.spawnEntity(); + registry.addComponent(pipe3Bottom, new Position2D(-100, 0)); + registry.addComponent(pipe3Bottom, new DrawableRect2D(52, 320, "#73bf2e", "/pipe-green.png")); + registry.addComponent(pipe3Bottom, new Pipe(2, false)); + registry.addComponent(pipe3Bottom, new DrawOrder2D(1)); + + const spawner = registry.spawnEntity(); + registry.addComponent(spawner, new PipeSpawner(150, 1.5, 420, 150, 110, 2.5, 16, 60, 448)); + + const bird = registry.spawnEntity(); + registry.addComponent(bird, new Position2D(60, 280)); + registry.addComponent(bird, new Velocity2D(0, -430)); + registry.addComponent(bird, new DrawableRect2D(34, 24, "#f8e71c", "/yellowbird-midflap.png")); + registry.addComponent(bird, new Bird(1500, 430, 640, 448, 0.25)); + registry.addComponent(bird, new DrawOrder2D(3)); + + const digit1 = registry.spawnEntity(); + registry.addComponent(digit1, new Position2D(198, 20)); + registry.addComponent(digit1, new DrawableRect2D(24, 36, "#ffffff", "/0.png")); + registry.addComponent(digit1, new ScoreDigit(0, 210)); + registry.addComponent(digit1, new DrawOrder2D(5)); + + const digit2 = registry.spawnEntity(); + registry.addComponent(digit2, new Position2D(198, 20)); + registry.addComponent(digit2, new DrawableRect2D(24, 36, "#ffffff", "/0.png", 1, 0, 0, false)); + registry.addComponent(digit2, new ScoreDigit(1, 210)); + registry.addComponent(digit2, new DrawOrder2D(5)); + + const digit3 = registry.spawnEntity(); + registry.addComponent(digit3, new Position2D(198, 20)); + registry.addComponent(digit3, new DrawableRect2D(24, 36, "#ffffff", "/0.png", 1, 0, 0, false)); + registry.addComponent(digit3, new ScoreDigit(2, 210)); + registry.addComponent(digit3, new DrawOrder2D(5)); + + registry.addSystem(flap); + registry.addSystem(fly); + registry.addSystem(movePipes); + registry.addSystem(collide); + registry.addSystem(scorePipes); + registry.addSystem(showScore); + } +} diff --git a/games/flappy-bird/src/scenes/ready.scene.ts b/games/flappy-bird/src/scenes/ready.scene.ts new file mode 100644 index 0000000..e9bc393 --- /dev/null +++ b/games/flappy-bird/src/scenes/ready.scene.ts @@ -0,0 +1,33 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { startFlight } from "../systems/start-flight.system"; +import { Sky } from "./sky.scene"; + +/** + * The title screen: the "get ready" message and the bird, waiting for the first flap. + * + * @scene + * @side client + */ +export class Ready extends EcsScene { + static override parent = Sky; + + override setup(registry: Registry, _ctx: Context) { + const message = registry.spawnEntity(); + registry.addComponent(message, new Position2D(118, 100)); + registry.addComponent(message, new DrawableRect2D(184, 267, "#ffffff", "/message.png")); + registry.addComponent(message, new DrawOrder2D(4)); + + const bird = registry.spawnEntity(); + registry.addComponent(bird, new Position2D(43, 268)); + registry.addComponent(bird, new DrawableRect2D(34, 24, "#f8e71c", "/yellowbird-midflap.png")); + registry.addComponent(bird, new DrawOrder2D(3)); + + registry.addSystem(startFlight); + } +} diff --git a/games/flappy-bird/src/scenes/sky.scene.ts b/games/flappy-bird/src/scenes/sky.scene.ts new file mode 100644 index 0000000..1a1b1ca --- /dev/null +++ b/games/flappy-bird/src/scenes/sky.scene.ts @@ -0,0 +1,52 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { ScrollLoop } from "../components/scroll-loop.component"; +import { scrollGround } from "../systems/scroll-ground.system"; + +/** + * The world every screen is drawn in: the sky and the scrolling ground. `Ready` and `Play` are + * loaded under it. The ground tiles are 336 pixels apart and one pixel wider, so that no seam + * shows between them. + * + * It must not import them (or anything that does): they name it as their parent when their + * module is evaluated. + * + * @scene + * @side client + */ +export class Sky extends EcsScene { + override setup(registry: Registry, _ctx: Context) { + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent( + background, + new DrawableRect2D(420, 560, "#4ec0ca", "/background-day.png"), + ); + registry.addComponent(background, new DrawOrder2D(0)); + + const ground1 = registry.spawnEntity(); + registry.addComponent(ground1, new Position2D(0, 448)); + registry.addComponent(ground1, new DrawableRect2D(337, 112, "#ded895", "/base.png")); + registry.addComponent(ground1, new ScrollLoop(150, 1008)); + registry.addComponent(ground1, new DrawOrder2D(2)); + + const ground2 = registry.spawnEntity(); + registry.addComponent(ground2, new Position2D(336, 448)); + registry.addComponent(ground2, new DrawableRect2D(337, 112, "#ded895", "/base.png")); + registry.addComponent(ground2, new ScrollLoop(150, 1008)); + registry.addComponent(ground2, new DrawOrder2D(2)); + + const ground3 = registry.spawnEntity(); + registry.addComponent(ground3, new Position2D(672, 448)); + registry.addComponent(ground3, new DrawableRect2D(337, 112, "#ded895", "/base.png")); + registry.addComponent(ground3, new ScrollLoop(150, 1008)); + registry.addComponent(ground3, new DrawOrder2D(2)); + + registry.addSystem(scrollGround); + } +} diff --git a/games/flappy-bird/src/systems/collide.system.ts b/games/flappy-bird/src/systems/collide.system.ts new file mode 100644 index 0000000..0cf86d9 --- /dev/null +++ b/games/flappy-bird/src/systems/collide.system.ts @@ -0,0 +1,51 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import "@nanoforge-dev/sound"; + +import { Bird } from "../components/bird.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Pipe } from "../components/pipe.component"; +import { Position2D } from "../components/position-2d.component"; +import { GameOver } from "../scenes/game-over.scene"; + +/** Milliseconds between the hit sound and the fall sound. */ +const DIE_DELAY_MS = 150; + +/** + * Kills the bird when it touches a pipe or the ground, and shows the game over screen over the + * flight. + * + * @system + * @side client + */ +export const collide = (registry: Registry, ctx: Context) => { + const pipes = registry.getZipper([Pipe, Position2D, DrawableRect2D]); + + registry + .getZipper([Bird, Position2D, DrawableRect2D]) + .forEach(({ Bird, Position2D, DrawableRect2D }) => { + if (Bird.dead) return; + const halfWidth = (DrawableRect2D.width / 2) * (1 - 2 * Bird.hitboxInset); + const halfHeight = (DrawableRect2D.height / 2) * (1 - 2 * Bird.hitboxInset); + const left = Position2D.x - halfWidth; + const right = Position2D.x + halfWidth; + const top = Position2D.y - halfHeight; + const bottom = Position2D.y + halfHeight; + + const hit = + bottom >= Bird.groundY || + pipes.some(({ Pipe, Position2D: pipe, DrawableRect2D: shape }) => { + // The top pipe is turned by 180 degrees: its position is its bottom-right corner. + const x = Pipe.top ? pipe.x - shape.width : pipe.x; + if (right <= x || left >= x + shape.width) return false; + return Pipe.top ? top < pipe.y : bottom > pipe.y; + }); + if (!hit) return; + + Bird.dead = true; + ctx.sound.play("hit"); + setTimeout(() => ctx.sound.play("die"), DIE_DELAY_MS); + void ctx.scenes.load(ctx, GameOver, { parent: "current" }); + }); +}; diff --git a/games/flappy-bird/src/systems/draw-2d.system.ts b/games/flappy-bird/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/games/flappy-bird/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/games/flappy-bird/src/systems/draw-order-2d.system.ts b/games/flappy-bird/src/systems/draw-order-2d.system.ts new file mode 100644 index 0000000..ff3ced0 --- /dev/null +++ b/games/flappy-bird/src/systems/draw-order-2d.system.ts @@ -0,0 +1,59 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; + +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Stacked = { order: DrawOrder2D; drawable: DrawableRect2D | DrawableCircle2D | DrawableText2D }; + +/** The number of shapes on the layer the last time it was stacked. */ +let stackedShapes = -1; + +/** + * Stacks the shapes of `DrawOrder2D` entities by their `z`, over the other shapes. Add it right + * after `draw2D`. + * + * @remarks + * It only stacks again when a shape appeared or went away, or a `z` changed. + * + * @system + * @side client + */ +export const drawOrder2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const rects = registry.getZipper([DrawOrder2D, DrawableRect2D]); + const circles = registry.getZipper([DrawOrder2D, DrawableCircle2D]); + const texts = registry.getZipper([DrawOrder2D, DrawableText2D]); + const moved = ({ DrawOrder2D }: { DrawOrder2D: DrawOrder2D }) => + DrawOrder2D.stackedZ !== DrawOrder2D.z; + const changed = + layer.children.length !== stackedShapes || + rects.some(moved) || + circles.some(moved) || + texts.some(moved); + if (!changed) return; + + const rows: Stacked[] = [ + ...rects.map(({ DrawOrder2D, DrawableRect2D }) => ({ + order: DrawOrder2D, + drawable: DrawableRect2D, + })), + ...circles.map(({ DrawOrder2D, DrawableCircle2D }) => ({ + order: DrawOrder2D, + drawable: DrawableCircle2D, + })), + ...texts.map(({ DrawOrder2D, DrawableText2D }) => ({ + order: DrawOrder2D, + drawable: DrawableText2D, + })), + ]; + // A stable sort keeps the entity order between equal `z`. + for (const { order, drawable } of rows.sort((a, b) => a.order.z - b.order.z)) { + drawable.shape?.moveToTop(); + order.stackedZ = order.z; + } + stackedShapes = layer.children.length; +}; diff --git a/games/flappy-bird/src/systems/flap.system.ts b/games/flappy-bird/src/systems/flap.system.ts new file mode 100644 index 0000000..98d1324 --- /dev/null +++ b/games/flappy-bird/src/systems/flap.system.ts @@ -0,0 +1,27 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import "@nanoforge-dev/sound"; + +import { Bird } from "../components/bird.component"; +import { Velocity2D } from "../components/velocity-2d.component"; +import { flapPressed } from "../flap-pressed"; + +/** + * Makes the bird flap up when the player presses Space, clicks or taps. + * + * @remarks + * It leaves the presses to the game over screen once `over` exists: a press is seen only once. + * + * @system + * @side client + */ +export const flap = (registry: Registry, ctx: Context) => { + if (ctx.scenes.vars.has("over") || !flapPressed(ctx)) return; + + registry.getZipper([Bird, Velocity2D]).forEach(({ Bird, Velocity2D }) => { + if (Bird.dead) return; + Velocity2D.y = -Bird.flapSpeed; + ctx.sound.play("wing"); + }); +}; diff --git a/games/flappy-bird/src/systems/fly.system.ts b/games/flappy-bird/src/systems/fly.system.ts new file mode 100644 index 0000000..b2e52a9 --- /dev/null +++ b/games/flappy-bird/src/systems/fly.system.ts @@ -0,0 +1,40 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { Bird } from "../components/bird.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { Velocity2D } from "../components/velocity-2d.component"; + +/** The longest step, in seconds: a slow frame doesn't throw the bird through a pipe. */ +const MAX_STEP = 1 / 30; + +/** + * Makes the bird fall, keeps it under the sky, and tilts it with its speed: nose up when it + * flaps, nose down when it falls. + * + * @system + * @side client + */ +export const fly = (registry: Registry, ctx: Context) => { + const seconds = Math.min(ctx.app.delta / 1000, MAX_STEP); + + registry + .getZipper([Bird, Position2D, Velocity2D, DrawableRect2D]) + .forEach(({ Bird, Position2D, Velocity2D, DrawableRect2D }) => { + if (Bird.dead) return; + Velocity2D.y = Math.min(Velocity2D.y + Bird.gravity * seconds, Bird.maxFallSpeed); + Position2D.y += Velocity2D.y * seconds; + + const top = Position2D.y - DrawableRect2D.height / 2; + if (top < 0) { + Position2D.y -= top; + Velocity2D.y = Math.max(0, Velocity2D.y); + } + + DrawableRect2D.rotation = Math.max(-25, Math.min(90, Velocity2D.y / 8)); + // `draw2D` turns a shape around its top-left corner and never sets its offset: turn the + // bird around its center, which is its `Position2D`. + DrawableRect2D.shape?.offset({ x: DrawableRect2D.width / 2, y: DrawableRect2D.height / 2 }); + }); +}; diff --git a/games/flappy-bird/src/systems/load-sounds.system.ts b/games/flappy-bird/src/systems/load-sounds.system.ts new file mode 100644 index 0000000..cb0daf3 --- /dev/null +++ b/games/flappy-bird/src/systems/load-sounds.system.ts @@ -0,0 +1,30 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/sound"; + +import { SoundEffect } from "../components/sound-effect.component"; + +/** Whether the sound library was unmuted. */ +let unmuted = false; + +/** + * Loads every `SoundEffect` into the sound library, so that systems can play it by its key. + * + * @remarks + * The sound library starts muted: the first run unmutes it. + * + * @system + * @side client + */ +export const loadSounds = (registry: Registry, ctx: Context) => { + registry.getZipper([SoundEffect]).forEach(({ SoundEffect }) => { + if (SoundEffect.loaded) return; + ctx.sound.load(SoundEffect.key, ctx.assets.getAsset(SoundEffect.path).path); + SoundEffect.loaded = true; + }); + // shortcut: `mute()` is a toggle with no getter, so this assumes one sound library per page load. + if (!unmuted) { + ctx.sound.mute(); + unmuted = true; + } +}; diff --git a/games/flappy-bird/src/systems/move-pipes.system.ts b/games/flappy-bird/src/systems/move-pipes.system.ts new file mode 100644 index 0000000..3a8cee1 --- /dev/null +++ b/games/flappy-bird/src/systems/move-pipes.system.ts @@ -0,0 +1,51 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; + +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Pipe } from "../components/pipe.component"; +import { PipeSpawner } from "../components/pipe-spawner.component"; +import { Position2D } from "../components/position-2d.component"; + +/** + * Moves the pipes to the left and, every `interval`, brings back a pair that left the screen on + * the right, with a new gap: smaller as the score grows. Stops when the bird dies. + * + * @system + * @side client + */ +export const movePipes = (registry: Registry, ctx: Context) => { + const vars = ctx.scenes.vars; + if (vars.has("over")) return; + const seconds = Math.min(ctx.app.delta / 1000, 1 / 30); + const pipes = registry.getZipper([Pipe, Position2D, DrawableRect2D]); + + registry.getZipper([PipeSpawner]).forEach(({ PipeSpawner: spawner }) => { + for (const { Position2D } of pipes) Position2D.x -= spawner.speed * seconds; + + spawner.timer -= seconds; + if (spawner.timer > 0) return; + spawner.timer = spawner.interval; + + const free = pipes.find( + ({ Pipe, Position2D, DrawableRect2D }) => + !Pipe.top && Position2D.x + DrawableRect2D.width < 0, + ); + if (!free) return; + + const score = vars.get("score") ?? 0; + const shrunk = Math.max(spawner.minGap, spawner.baseGap - score * spawner.gapStep); + const gap = Math.max(spawner.minGap, shrunk + (Math.random() * 2 - 1) * spawner.gapJitter); + const lowest = gap / 2 + spawner.margin; + const highest = spawner.groundY - gap / 2 - spawner.margin; + const center = lowest + Math.random() * Math.max(0, highest - lowest); + + for (const { Pipe, Position2D, DrawableRect2D } of pipes) { + if (Pipe.pair !== free.Pipe.pair) continue; + Pipe.scored = false; + // The top pipe is turned by 180 degrees around its `Position2D`. + Position2D.x = Pipe.top ? spawner.startX + DrawableRect2D.width : spawner.startX; + Position2D.y = Pipe.top ? center - gap / 2 : center + gap / 2; + } + }); +}; diff --git a/games/flappy-bird/src/systems/restart.system.ts b/games/flappy-bird/src/systems/restart.system.ts new file mode 100644 index 0000000..e43f929 --- /dev/null +++ b/games/flappy-bird/src/systems/restart.system.ts @@ -0,0 +1,28 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import "@nanoforge-dev/sound"; + +import { RestartDelay } from "../components/restart-delay.component"; +import { flapPressed } from "../flap-pressed"; +import { Play } from "../scenes/play.scene"; + +/** + * Starts a new flight at the first flap once the `RestartDelay` is over. + * + * @system + * @side client + */ +export const restart = (registry: Registry, ctx: Context) => { + const pressed = flapPressed(ctx); + + registry.getZipper([RestartDelay]).forEach(({ RestartDelay }) => { + RestartDelay.elapsed += ctx.app.delta / 1000; + if (!pressed || RestartDelay.elapsed < RestartDelay.seconds) return; + ctx.sound.play("swoosh"); + ctx.sound.play("wing"); + // Unloading `Play` (and this screen) then loading it again gives a new bird and new pipes. + void ctx.scenes.unload(ctx, Play); + void ctx.scenes.load(ctx, Play); + }); +}; diff --git a/games/flappy-bird/src/systems/score-pipes.system.ts b/games/flappy-bird/src/systems/score-pipes.system.ts new file mode 100644 index 0000000..9fc18bb --- /dev/null +++ b/games/flappy-bird/src/systems/score-pipes.system.ts @@ -0,0 +1,33 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import "@nanoforge-dev/sound"; + +import { Bird } from "../components/bird.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Pipe } from "../components/pipe.component"; +import { Position2D } from "../components/position-2d.component"; + +/** + * Adds a point to `score` for each pair of pipes the bird flies past. + * + * @system + * @side client + * @vars score + */ +export const scorePipes = (registry: Registry, ctx: Context) => { + const vars = ctx.scenes.vars; + const pipes = registry.getZipper([Pipe, Position2D, DrawableRect2D]); + + registry.getZipper([Bird, Position2D]).forEach(({ Bird, Position2D: bird }) => { + if (Bird.dead) return; + for (const { Pipe, Position2D, DrawableRect2D } of pipes) { + const right = Position2D.x + DrawableRect2D.width; + // A pipe waiting off the screen (`right < 0`) was never flown past. + if (Pipe.top || Pipe.scored || right >= bird.x || right < 0) continue; + Pipe.scored = true; + vars.set("score", (vars.get("score") ?? 0) + 1); + ctx.sound.play("point"); + } + }); +}; diff --git a/games/flappy-bird/src/systems/scroll-ground.system.ts b/games/flappy-bird/src/systems/scroll-ground.system.ts new file mode 100644 index 0000000..bbdbae3 --- /dev/null +++ b/games/flappy-bird/src/systems/scroll-ground.system.ts @@ -0,0 +1,25 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; + +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { ScrollLoop } from "../components/scroll-loop.component"; + +/** + * Scrolls the `ScrollLoop` entities (the ground) to the left, until the bird dies. + * + * @system + * @side client + */ +export const scrollGround = (registry: Registry, ctx: Context) => { + if (ctx.scenes.vars.has("over")) return; + const seconds = ctx.app.delta / 1000; + + registry + .getZipper([ScrollLoop, Position2D, DrawableRect2D]) + .forEach(({ ScrollLoop, Position2D, DrawableRect2D }) => { + Position2D.x -= ScrollLoop.speed * seconds; + if (Position2D.x <= -DrawableRect2D.width) Position2D.x += ScrollLoop.span; + }); +}; diff --git a/games/flappy-bird/src/systems/show-score.system.ts b/games/flappy-bird/src/systems/show-score.system.ts new file mode 100644 index 0000000..e0a1cf8 --- /dev/null +++ b/games/flappy-bird/src/systems/show-score.system.ts @@ -0,0 +1,30 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; + +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { ScoreDigit } from "../components/score-digit.component"; + +/** + * Shows `score` with the `ScoreDigit` entities: each one gets its digit's image, centered, and + * the digits the score doesn't need are hidden. + * + * @system + * @side client + * @vars score + */ +export const showScore = (registry: Registry, ctx: Context) => { + const digits = String(ctx.scenes.vars.get("score") ?? 0); + + registry + .getZipper([ScoreDigit, Position2D, DrawableRect2D]) + .forEach(({ ScoreDigit, Position2D, DrawableRect2D }) => { + const digit = digits[ScoreDigit.index]; + DrawableRect2D.visible = digit !== undefined; + if (digit === undefined) return; + DrawableRect2D.image = `/${digit}.png`; + Position2D.x = + ScoreDigit.centerX + (ScoreDigit.index - digits.length / 2) * DrawableRect2D.width; + }); +}; diff --git a/games/flappy-bird/src/systems/start-flight.system.ts b/games/flappy-bird/src/systems/start-flight.system.ts new file mode 100644 index 0000000..d9eccb9 --- /dev/null +++ b/games/flappy-bird/src/systems/start-flight.system.ts @@ -0,0 +1,20 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import "@nanoforge-dev/sound"; + +import { flapPressed } from "../flap-pressed"; +import { Play } from "../scenes/play.scene"; + +/** + * Starts the flight at the first flap: Space, a click or a tap. + * + * @system + * @side client + */ +export const startFlight = (_registry: Registry, ctx: Context) => { + if (!flapPressed(ctx)) return; + ctx.sound.play("swoosh"); + ctx.sound.play("wing"); + void ctx.scenes.load(ctx, Play); +}; diff --git a/flappy-bird/tsconfig.json b/games/flappy-bird/tsconfig.json similarity index 88% rename from flappy-bird/tsconfig.json rename to games/flappy-bird/tsconfig.json index fe75abc..c0ae4f2 100644 --- a/flappy-bird/tsconfig.json +++ b/games/flappy-bird/tsconfig.json @@ -5,7 +5,6 @@ // Type Checking "allowUnreachableCode": false, "allowUnusedLabels": false, - "exactOptionalPropertyTypes": true, "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noImplicitReturns": true, @@ -26,7 +25,6 @@ // Interop Constraints "allowSyntheticDefaultImports": true, - "esModuleInterop": false, "forceConsistentCasingInFileNames": true, "isolatedModules": true, @@ -36,6 +34,6 @@ "target": "ESNext", "useDefineForClassFields": true }, - "include": ["client/**/*.ts"], - "exclude": ["node_modules", ".nanoforge"] + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] } diff --git a/shared/arcade/components/draw-order-2d.component.ts b/shared/arcade/components/draw-order-2d.component.ts new file mode 100644 index 0000000..cd94522 --- /dev/null +++ b/shared/arcade/components/draw-order-2d.component.ts @@ -0,0 +1,23 @@ +/** + * Where an entity's drawable is in the stack: a higher `z` is drawn over a lower one. Needs the + * `drawOrder2D` system. + * + * @remarks + * Without it, a shape is drawn over the shapes that appeared before it, and a scene loaded again + * can stack its shapes in another order. + * + * @component + * @side client + * @group Order color=#b18cff - Drawing order. + */ +export class DrawOrder2D { + name = "DrawOrder2D"; + + /** The `z` the shape was last stacked at, set by `drawOrder2D`. */ + stackedZ?: number; + + constructor( + /** Higher is drawn over lower; entities without it are under every one with it. @group Order */ + public z = 0, + ) {} +} diff --git a/shared/arcade/components/sound-effect.component.ts b/shared/arcade/components/sound-effect.component.ts new file mode 100644 index 0000000..4476f31 --- /dev/null +++ b/shared/arcade/components/sound-effect.component.ts @@ -0,0 +1,20 @@ +/** + * A sound the game plays by its `key` with `ctx.sound.play(key)`. Needs the `loadSounds` system. + * + * @component + * @side client + * @group Sound color=#36c5a0 - The sound and its name. + */ +export class SoundEffect { + name = "SoundEffect"; + + /** Whether `loadSounds` gave it to the sound library. */ + loaded = false; + + constructor( + /** The name systems play it by. @group Sound */ + public key = "click", + /** The sound file. @group Sound @asset .wav .mp3 .ogg */ + public path = "", + ) {} +} diff --git a/shared/arcade/just-pressed.ts b/shared/arcade/just-pressed.ts new file mode 100644 index 0000000..bd8dac9 --- /dev/null +++ b/shared/arcade/just-pressed.ts @@ -0,0 +1,19 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { InputEnum } from "@nanoforge-dev/input"; + +/** Whether each key was down the last time a system asked. */ +const down = new Map(); + +/** + * Whether `key` went down since the last time a system asked about it. + * + * @remarks + * The state is shared by every system: a key that opens a scene does not also act in that scene + * while it is still held. + */ +export const justPressed = (ctx: Context, key: InputEnum): boolean => { + const now = ctx.input.isKeyPressed(key) === true; + const before = down.get(key) ?? false; + down.set(key, now); + return now && !before; +}; diff --git a/shared/arcade/systems/draw-order-2d.system.ts b/shared/arcade/systems/draw-order-2d.system.ts new file mode 100644 index 0000000..ff3ced0 --- /dev/null +++ b/shared/arcade/systems/draw-order-2d.system.ts @@ -0,0 +1,59 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; + +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Stacked = { order: DrawOrder2D; drawable: DrawableRect2D | DrawableCircle2D | DrawableText2D }; + +/** The number of shapes on the layer the last time it was stacked. */ +let stackedShapes = -1; + +/** + * Stacks the shapes of `DrawOrder2D` entities by their `z`, over the other shapes. Add it right + * after `draw2D`. + * + * @remarks + * It only stacks again when a shape appeared or went away, or a `z` changed. + * + * @system + * @side client + */ +export const drawOrder2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const rects = registry.getZipper([DrawOrder2D, DrawableRect2D]); + const circles = registry.getZipper([DrawOrder2D, DrawableCircle2D]); + const texts = registry.getZipper([DrawOrder2D, DrawableText2D]); + const moved = ({ DrawOrder2D }: { DrawOrder2D: DrawOrder2D }) => + DrawOrder2D.stackedZ !== DrawOrder2D.z; + const changed = + layer.children.length !== stackedShapes || + rects.some(moved) || + circles.some(moved) || + texts.some(moved); + if (!changed) return; + + const rows: Stacked[] = [ + ...rects.map(({ DrawOrder2D, DrawableRect2D }) => ({ + order: DrawOrder2D, + drawable: DrawableRect2D, + })), + ...circles.map(({ DrawOrder2D, DrawableCircle2D }) => ({ + order: DrawOrder2D, + drawable: DrawableCircle2D, + })), + ...texts.map(({ DrawOrder2D, DrawableText2D }) => ({ + order: DrawOrder2D, + drawable: DrawableText2D, + })), + ]; + // A stable sort keeps the entity order between equal `z`. + for (const { order, drawable } of rows.sort((a, b) => a.order.z - b.order.z)) { + drawable.shape?.moveToTop(); + order.stackedZ = order.z; + } + stackedShapes = layer.children.length; +}; diff --git a/shared/arcade/systems/load-sounds.system.ts b/shared/arcade/systems/load-sounds.system.ts new file mode 100644 index 0000000..cb0daf3 --- /dev/null +++ b/shared/arcade/systems/load-sounds.system.ts @@ -0,0 +1,30 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/sound"; + +import { SoundEffect } from "../components/sound-effect.component"; + +/** Whether the sound library was unmuted. */ +let unmuted = false; + +/** + * Loads every `SoundEffect` into the sound library, so that systems can play it by its key. + * + * @remarks + * The sound library starts muted: the first run unmutes it. + * + * @system + * @side client + */ +export const loadSounds = (registry: Registry, ctx: Context) => { + registry.getZipper([SoundEffect]).forEach(({ SoundEffect }) => { + if (SoundEffect.loaded) return; + ctx.sound.load(SoundEffect.key, ctx.assets.getAsset(SoundEffect.path).path); + SoundEffect.loaded = true; + }); + // shortcut: `mute()` is a toggle with no getter, so this assumes one sound library per page load. + if (!unmuted) { + ctx.sound.mute(); + unmuted = true; + } +}; From ab8f587342176b959472b25d2c0728a784a54a68 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:38:35 +0100 Subject: [PATCH 16/53] feat(tic-tac-toe): remake tic-tac-toe for engine 3 Match and end popup scenes, scene vars for the game state, mouse input through the input library and the shared 2d drawables instead of konva nodes added from component constructors. --- games/tic-tac-toe/.gitignore | 5 + games/tic-tac-toe/README.md | 40 + .../tic-tac-toe/assets}/marker.mp3 | Bin games/tic-tac-toe/nanoforge.config.ts | 5 + games/tic-tac-toe/package.json | 28 + games/tic-tac-toe/pnpm-lock.yaml | 1549 +++++++++++++++++ games/tic-tac-toe/pnpm-workspace.yaml | 5 + .../src/components/cell.component.ts | 21 + .../components/center-text-2d.component.ts | 10 + .../src/components/clickable-2d.component.ts | 23 + .../src/components/draw-order-2d.component.ts | 23 + .../drawable-circle-2d.component.ts | 62 + .../components/drawable-rect-2d.component.ts | 69 + .../components/drawable-text-2d.component.ts | 62 + .../src/components/marker.component.ts | 10 + .../src/components/position-2d.component.ts | 20 + .../components/restart-button.component.ts | 9 + .../src/components/sound-effect.component.ts | 20 + .../src/components/var-text.component.ts | 23 + games/tic-tac-toe/src/image-fill.ts | 43 + games/tic-tac-toe/src/just-pressed.ts | 19 + games/tic-tac-toe/src/main.ts | 50 + games/tic-tac-toe/src/scene-vars.ts | 16 + .../tic-tac-toe/src/scenes/end-popup.scene.ts | 59 + games/tic-tac-toe/src/scenes/match.scene.ts | 119 ++ .../src/systems/center-text-2d.system.ts | 21 + .../src/systems/check-end.system.ts | 74 + .../src/systems/click-2d.system.ts | 33 + .../tic-tac-toe/src/systems/draw-2d.system.ts | 45 + .../src/systems/draw-order-2d.system.ts | 59 + .../src/systems/load-sounds.system.ts | 30 + .../src/systems/play-cell.system.ts | 74 + .../src/systems/restart-match.system.ts | 22 + .../src/systems/var-text.system.ts | 21 + .../tic-tac-toe}/tsconfig.json | 8 +- tic-tac-toe/.dockerignore | 1 - tic-tac-toe/.gitignore | 1 - tic-tac-toe/.nanoforge/client.save.json | 70 - tic-tac-toe/.prettierignore | 8 - tic-tac-toe/Dockerfile | 18 - tic-tac-toe/README.md | 1 - .../client/components/board.component.ts | 138 -- .../client/components/game.component.ts | 8 - tic-tac-toe/client/components/ui.component.ts | 125 -- tic-tac-toe/client/main.ts | 90 - tic-tac-toe/client/systems/board.system.ts | 47 - tic-tac-toe/client/systems/game.component.ts | 70 - tic-tac-toe/client/systems/ui.component.ts | 17 - tic-tac-toe/eslint.config.js | 15 - tic-tac-toe/nanoforge.config.json | 18 - tic-tac-toe/package.json | 47 - tic-tac-toe/pnpm-lock.yaml | 1409 --------------- tic-tac-toe/prettier.config.js | 6 - 53 files changed, 2672 insertions(+), 2094 deletions(-) create mode 100644 games/tic-tac-toe/.gitignore create mode 100644 games/tic-tac-toe/README.md rename {tic-tac-toe/client/static => games/tic-tac-toe/assets}/marker.mp3 (100%) create mode 100644 games/tic-tac-toe/nanoforge.config.ts create mode 100644 games/tic-tac-toe/package.json create mode 100644 games/tic-tac-toe/pnpm-lock.yaml create mode 100644 games/tic-tac-toe/pnpm-workspace.yaml create mode 100644 games/tic-tac-toe/src/components/cell.component.ts create mode 100644 games/tic-tac-toe/src/components/center-text-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/clickable-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/draw-order-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/drawable-circle-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/drawable-rect-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/drawable-text-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/marker.component.ts create mode 100644 games/tic-tac-toe/src/components/position-2d.component.ts create mode 100644 games/tic-tac-toe/src/components/restart-button.component.ts create mode 100644 games/tic-tac-toe/src/components/sound-effect.component.ts create mode 100644 games/tic-tac-toe/src/components/var-text.component.ts create mode 100644 games/tic-tac-toe/src/image-fill.ts create mode 100644 games/tic-tac-toe/src/just-pressed.ts create mode 100644 games/tic-tac-toe/src/main.ts create mode 100644 games/tic-tac-toe/src/scene-vars.ts create mode 100644 games/tic-tac-toe/src/scenes/end-popup.scene.ts create mode 100644 games/tic-tac-toe/src/scenes/match.scene.ts create mode 100644 games/tic-tac-toe/src/systems/center-text-2d.system.ts create mode 100644 games/tic-tac-toe/src/systems/check-end.system.ts create mode 100644 games/tic-tac-toe/src/systems/click-2d.system.ts create mode 100644 games/tic-tac-toe/src/systems/draw-2d.system.ts create mode 100644 games/tic-tac-toe/src/systems/draw-order-2d.system.ts create mode 100644 games/tic-tac-toe/src/systems/load-sounds.system.ts create mode 100644 games/tic-tac-toe/src/systems/play-cell.system.ts create mode 100644 games/tic-tac-toe/src/systems/restart-match.system.ts create mode 100644 games/tic-tac-toe/src/systems/var-text.system.ts rename {tic-tac-toe => games/tic-tac-toe}/tsconfig.json (83%) delete mode 100644 tic-tac-toe/.dockerignore delete mode 100644 tic-tac-toe/.gitignore delete mode 100644 tic-tac-toe/.nanoforge/client.save.json delete mode 100644 tic-tac-toe/.prettierignore delete mode 100644 tic-tac-toe/Dockerfile delete mode 100644 tic-tac-toe/README.md delete mode 100644 tic-tac-toe/client/components/board.component.ts delete mode 100644 tic-tac-toe/client/components/game.component.ts delete mode 100644 tic-tac-toe/client/components/ui.component.ts delete mode 100644 tic-tac-toe/client/main.ts delete mode 100644 tic-tac-toe/client/systems/board.system.ts delete mode 100644 tic-tac-toe/client/systems/game.component.ts delete mode 100644 tic-tac-toe/client/systems/ui.component.ts delete mode 100644 tic-tac-toe/eslint.config.js delete mode 100644 tic-tac-toe/nanoforge.config.json delete mode 100644 tic-tac-toe/package.json delete mode 100644 tic-tac-toe/pnpm-lock.yaml delete mode 100644 tic-tac-toe/prettier.config.js diff --git a/games/tic-tac-toe/.gitignore b/games/tic-tac-toe/.gitignore new file mode 100644 index 0000000..f28e2dc --- /dev/null +++ b/games/tic-tac-toe/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.nanoforge/ +nf_modules/ +.env diff --git a/games/tic-tac-toe/README.md b/games/tic-tac-toe/README.md new file mode 100644 index 0000000..5fcaa89 --- /dev/null +++ b/games/tic-tac-toe/README.md @@ -0,0 +1,40 @@ +# tic-tac-toe + +Tic-tac-toe for two players on one screen. Player 1 plays X and starts; the first to line up three +marks wins. A popup tells who won, or that it is a draw, and starts a new match. + +| Control | Action | +| --------------- | ----------------------------- | +| Click a cell | Put your mark in it | +| Click `Restart` | Start a new match (end popup) | + +```sh +pnpm install +pnpm dev # play it +pnpm editor # open it in the editor +``` + +## How it is made + +Two scenes (`src/scenes`), each with its entities written out in its `setup`: + +| Scene | Parent | What | +| ---------- | ----------- | -------------------------------------------------------- | +| `Match` | none | The board, its nine `Cell` entities and whose turn it is | +| `EndPopup` | `"current"` | Loaded over `Match`: the result and the `Restart` button | + +- The game state is in scene vars (`src/scene-vars.ts`): `player`, `result` and `over`. +- The mouse goes through the input library: `click2D` lights up the `Clickable2D` rectangle under + the cursor and tells which one was clicked. +- `playCell` spawns the marks (`Marker` entities); `Match` removes them when it ends. +- `VarText` shows a scene var in a text, `CenterText2D` centers a text on its position, and + `DrawOrder2D` stacks the shapes (the popup over the board). +- The marker sound is a `SoundEffect` entity of `main.ts`, played with `ctx.sound.play("marker")`. + +The files of `src` that are also in `shared/2d` or `shared/arcade` are copies (see the +repository's README). + +## Credits + +`assets/marker.mp3` comes from the first version of this game, in this repository; its source is +not recorded. diff --git a/tic-tac-toe/client/static/marker.mp3 b/games/tic-tac-toe/assets/marker.mp3 similarity index 100% rename from tic-tac-toe/client/static/marker.mp3 rename to games/tic-tac-toe/assets/marker.mp3 diff --git a/games/tic-tac-toe/nanoforge.config.ts b/games/tic-tac-toe/nanoforge.config.ts new file mode 100644 index 0000000..77607cb --- /dev/null +++ b/games/tic-tac-toe/nanoforge.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from "@nanoforge-dev/config"; + +export default defineConfig({ + type: "client", +}); diff --git a/games/tic-tac-toe/package.json b/games/tic-tac-toe/package.json new file mode 100644 index 0000000..660737d --- /dev/null +++ b/games/tic-tac-toe/package.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "tic-tac-toe", + "description": "Tic-tac-toe for two players on one screen", + "private": true, + "type": "module", + "scripts": { + "dev": "nf dev", + "build": "nf build", + "start": "nf start", + "editor": "nf editor ." + }, + "devDependencies": { + "@nanoforge-dev/asset": "^3.0.0", + "@nanoforge-dev/cli": "^3.0.1", + "@nanoforge-dev/common": "^3.0.0", + "@nanoforge-dev/config": "^3.0.1", + "@nanoforge-dev/core": "^3.0.0", + "@nanoforge-dev/ecs": "^3.0.0", + "@nanoforge-dev/editor-lib": "^3.0.0", + "@nanoforge-dev/env": "^3.0.0", + "@nanoforge-dev/graphics-2d": "^3.0.0", + "@nanoforge-dev/input": "^3.0.0", + "@nanoforge-dev/scene": "^3.0.0", + "@nanoforge-dev/sound": "^3.0.0", + "typescript": "^6.0.0" + } +} diff --git a/games/tic-tac-toe/pnpm-lock.yaml b/games/tic-tac-toe/pnpm-lock.yaml new file mode 100644 index 0000000..0786d33 --- /dev/null +++ b/games/tic-tac-toe/pnpm-lock.yaml @@ -0,0 +1,1549 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@nanoforge-dev/asset': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/cli': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/common': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/config': + specifier: ^3.0.1 + version: 3.0.1 + '@nanoforge-dev/core': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/ecs': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)) + '@nanoforge-dev/editor-lib': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/env': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/graphics-2d': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/input': + specifier: ^3.0.0 + version: 3.0.0 + '@nanoforge-dev/scene': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + '@nanoforge-dev/sound': + specifier: ^3.0.0 + version: 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + typescript: + specifier: ^6.0.0 + version: 6.0.3 + +packages: + + '@angular-devkit/core@22.2.7': + resolution: {integrity: sha512-cchZAMsV4d76RDZBlWzPhYxM/Hb6bmq71oUngdrwehMbBbdQu3W9C2tGlvxuPxbRKru9ZlUa14YVXQ0+QnhFtw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.7': + resolution: {integrity: sha512-9Od0E8TiYTQWm/03QjYWnsryZA8ZSjTf/k5z61nPd/jgloVNvSW8kxC7/YMw+RoXh2idMzjiJxraKxg+gJxzPw==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.7': + resolution: {integrity: sha512-a1h7xNqBLQVo1e5eCyOU3axSbA9AFU6nnSH5QhlNhggfMeZde+eBrueSt25xsewoxlKO8EvkVT3+knMUkDYiGQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/fs-minipass@4.0.1': + resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} + engines: {node: '>=18.0.0'} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@nanoforge-dev/asset@3.0.0': + resolution: {integrity: sha512-jqXcyCMbdcCCj7wZ/dyIpjY8hza02Pt/vY8KrNcaXTlxpTc9EE+VKuO5+fHdUXWWPgJSFt96TqAPhug+z+KH3Q==} + engines: {node: '26'} + + '@nanoforge-dev/cli@3.0.1': + resolution: {integrity: sha512-ZfrbETcAcX3vsPLO1WLSCJc2ERCAcIpbdi9Df5bmH3XLinQkDAcESkN9JkaI/vgV08A7xhTjV8zSDSwF0T73Xg==} + engines: {node: '26'} + hasBin: true + + '@nanoforge-dev/common@3.0.0': + resolution: {integrity: sha512-lzMvQ1vCElh9OcP4EqhffbY+AQXOH4IiuD1pj7VvJlpcY6hh7Bs/s4NVS0gXoJ+ibpBMe5mAq23RyzqTwk8czg==} + engines: {node: '26'} + + '@nanoforge-dev/config@3.0.1': + resolution: {integrity: sha512-XWRScOotb8IirerRx/mWLmUVYye3lo0PN/5a0MUp/eoSrhz0S6zzhGHEupRuC8aeHTjsQT7ctM3P6YyKSHZLaQ==} + engines: {node: '26'} + + '@nanoforge-dev/core@3.0.0': + resolution: {integrity: sha512-pa7Fr3TFkZVfAADBC17Qt5ru/W9vXtYB8e5eb7wurAtu8/jH/ZtqfW3kafTuWC9513MXp/h6LOCdZQhjnCt6UA==} + engines: {node: '26'} + + '@nanoforge-dev/ecs@3.0.0': + resolution: {integrity: sha512-csrXJtCzqohxtvEQs+O//xabnaLR3BXe0QpSpl7NVihF3f0iX2fNYURxNjQKxzoPYBokCnnyNxN2KFc7UmIsdA==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + '@nanoforge-dev/scene': + optional: true + + '@nanoforge-dev/editor-lib@3.0.0': + resolution: {integrity: sha512-fSWm6bHelbxqeVESYoUUKDi9RGNxvRu6p1r41KE1DddM0RrP0/WzkFOWBvgl+psHbYNotXe723Y2Fd3p+tqPDQ==} + engines: {node: '26'} + + '@nanoforge-dev/editor@0.1.4': + resolution: {integrity: sha512-bqbrH8ulFSiZz1iisJHtHeEzj1RV/70uErCYHeW4DIhVPsWbBfWKFvg/ghAbmPk5vsj0YnhDX6DSpik4S1QoiQ==} + engines: {node: '25'} + + '@nanoforge-dev/env@3.0.0': + resolution: {integrity: sha512-kXYXl9/09Bn8VStTTFuZY3dYDG9b76VhOi9PHMnaLe75XcFRLKJ2dYkXf3ut6RCL2+6H7HAEIOALjR15CHnJ5A==} + engines: {node: '26'} + + '@nanoforge-dev/graphics-2d@3.0.0': + resolution: {integrity: sha512-0I0WUr5495jORdYR+HtyP4kmAfCMvixmG+EH/gE5bN33S8RO6/Ly4oMLZOLUywcDTAFuLn28BlHuVor2YfXrsg==} + engines: {node: '26'} + + '@nanoforge-dev/input@3.0.0': + resolution: {integrity: sha512-8pWU28c99VAvn37onNbVFfwXTgyQGxm5DVnTdBEzgrF3KPCzU77kEaexB1AWOlga+4qNGU7/XNm3hNZ+YS49Ig==} + engines: {node: '26'} + + '@nanoforge-dev/loader-client@1.7.0': + resolution: {integrity: sha512-zDj0yQ8cZyHHjAYDVIyB79mh4dK7WRgZG7Kc+d/43t2WX/pX2HqBVkpLcDPkA9cNOKpCRYWd3LyYISlz53gzyg==} + engines: {node: '26'} + + '@nanoforge-dev/loader-server@1.7.0': + resolution: {integrity: sha512-Yd/BYORhoar5znNSD7kGirAc1Al0q5t8iscbb07QWKeXWA+DLKjPSuKJC6ykysFkbs9HiZU59oOfxyvNL4h3Pw==} + engines: {node: '26'} + + '@nanoforge-dev/loader-website@1.7.0': + resolution: {integrity: sha512-x1fV3RYUUxru39sF5HJcfutNnifMMTIEHW92jgkR9gz06ZlZ+rQofuegXgAnEzs0dEXa+rhNQ/iXYbqOZvq6YQ==} + engines: {node: '26'} + + '@nanoforge-dev/registry@3.0.1': + resolution: {integrity: sha512-EzSaszYtrPldD5Do7jdQK3TLLb8uCirY6NQjKXkeGw31X+sUXor4h5GAaoxELWMzPnv9BbKtggSaVaQIt7s8IQ==} + engines: {node: '26'} + + '@nanoforge-dev/scene@3.0.0': + resolution: {integrity: sha512-4+QajCZCW8eVdQPZeSoLDQ/ueQOFwAoFvd0pRL06FeuzWJMxCVNTCeZp9UHZLTMqmEJKAC29OnBQuHvhGkuBVg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@nanoforge-dev/schematics@3.0.1': + resolution: {integrity: sha512-iK2vC0gPEh2mQ81IB4+jfGw/ZNOLMDnS9HRBXH5tWB0mdN5GA32viblhW0oYPX2/tWrLC9YiCPgEE4AL8Zwz6w==} + engines: {node: '26'} + + '@nanoforge-dev/sound@3.0.0': + resolution: {integrity: sha512-vNMYm3dp7A3A+4taJpSXwPEu/t1VtZ1BAUkY6a3D40Uz3q785+u79o3q21/yYGigCswuPlIQ5gT4ApcT+6J4tg==} + engines: {node: '26'} + peerDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + peerDependenciesMeta: + '@nanoforge-dev/editor-lib': + optional: true + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@oven/bun-darwin-aarch64@1.4.4': + resolution: {integrity: sha512-zW/hxwc8sJAILGwB5eTC4i48ouGXf0V4lrxmEOk3JIE6JkYVW1TZh1E2pIempqsezgW1sckTIIDudFON8bJ2Mw==} + cpu: [arm64] + os: [darwin] + + '@oven/bun-darwin-x64@1.4.4': + resolution: {integrity: sha512-oKGcxLsvh4oHjAo28nPm8c/xN0o/OmGyj1IHYc94vprkWsW2hNg2keEZt5f40cI5Hvu4jDlSRTR0UNpv1UIAxw==} + cpu: [x64] + os: [darwin] + + '@oven/bun-freebsd-aarch64@1.4.4': + resolution: {integrity: sha512-klvA9FlwLxZj3JYIOPQA4bbnHIC3uas8kBE4GaGGkeVgAQP/k8hAzYkOqkSaqHBDbxLrTyFEQArEAevJq6NJzg==} + cpu: [arm64] + os: [freebsd] + + '@oven/bun-freebsd-x64@1.4.4': + resolution: {integrity: sha512-sF1xS/scbyN94P2d0eTiarO6JHxrIvhZNT9hnWjQXW5nwKRtfuP+UYnIMNyvW1BQPcZFP/cvfLBNUIe1ea4zPA==} + cpu: [x64] + os: [freebsd] + + '@oven/bun-linux-aarch64-android@1.4.4': + resolution: {integrity: sha512-5lvn3at5vRC0GxvmiqEiV2/e23tnRi0q5pzR40yfDvDA3OW7PSkt4chF1nA9vnAJhro4/l+ol1FmNP6D3cf/oA==} + cpu: [arm64] + os: [android] + + '@oven/bun-linux-aarch64-musl@1.4.4': + resolution: {integrity: sha512-QFd0P+mHJxbZFbUla4MgiE5OwxysHaUIYxL2pPNkpWtaI7v4ShOpr8OhBmsuyB0xn5rv/ZJnPsj2y8+bB9+g/A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-aarch64@1.4.4': + resolution: {integrity: sha512-ZTVtpf9zmHSBVPX1sBwe5agGb/rN34yPGg/Hby8e2Ax2uCUA2URZKlZH7qLntK7qaFJCMXh9v0GWNYN2zINz1w==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oven/bun-linux-x64-android@1.4.4': + resolution: {integrity: sha512-3dMicj9C1DhaIfDkwt/9GtpU0W+q+GazbG9OIlEyL3Q1BBEz2e6ZRz/JiO8D/ECC0caXAqvnpFudehcLlgIwWQ==} + cpu: [x64] + os: [android] + + '@oven/bun-linux-x64-musl@1.4.4': + resolution: {integrity: sha512-lEEjNOJJrbGZu2NVcPI4uXdILcpspezWkA8R/Jr0RCGhM6zQd0Y7JBIIKNAmbX59EeWpeEz7Q78iLbpcAUypUA==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oven/bun-linux-x64@1.4.4': + resolution: {integrity: sha512-CHbbkmHVM28T1GFq+6GL4Ao4ujwwYwj1CxFFwEFzLanPfNsId9AhbIP0Q4reWuWBkGimUkoQygrK7Rgjtj3vog==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oven/bun-windows-aarch64@1.4.4': + resolution: {integrity: sha512-n0ep5ZRPCZY1+dqFJpnnRUZB1wy4GYU6At8RF+pyzySCLjkN9R4rFh2PtBHAgF/lg1vOl3/CeER3pDM+p40ATA==} + cpu: [arm64] + os: [win32] + + '@oven/bun-windows-x64@1.4.4': + resolution: {integrity: sha512-a3LNctBVO8PjePsFZfwDleF2JXYf2BfQ1u/PLRnBDLnC2Riml+4+LgJpKj4xRGhB92KweGyQI5PXaTkP9qypMQ==} + cpu: [x64] + os: [win32] + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} + + '@rolldown/binding-android-arm-eabi@1.3.2': + resolution: {integrity: sha512-kqR2xcygEx3WwDY69LsKeyf7SVmx4yzMtKZRknyaHieVJdRvvnAM97L0Gq6tUFc9T2YXcW/Ghij2+Um6He0LTw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.3.2': + resolution: {integrity: sha512-gXM4GAAvvIZA7qUuSCQS+Zz91H2fagKa5MNppUdjzysJ8LXMWm9D/gQj4nfOKo6okquDQ5pkjsuo2SUMXNW0Rw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.3.2': + resolution: {integrity: sha512-OBs5hp3W+LwMEUmDMMMnu08ncG0t6DDgnFU+6TAucKtAfNgerYLZSr2jtREKb/JuPQ1J7bJnWIgKKkxvjuAw1g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.3.2': + resolution: {integrity: sha512-X0VGYd4v/gdjfa/IP6uHuMhofPoUDYvK/byk3bC0jQ1pKKgt6RZ4B4puMqP0AHkjmIHAsxA471mM6AxZ39IaTA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.3.2': + resolution: {integrity: sha512-mr04K4cp9J/fj9fknrX8e4QvI/V48Sp+4v64PoLwhoirIH8b8L8EBrF/0bTjV1It2IL91hoNG13GblnWLglkxA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + resolution: {integrity: sha512-VgWy02HU9Tiy6tU8U+kF3Fd4TQwTNdIBvs2MlgViP1ksMtAnQQTIPAj0ZsJzIQXKIOugqQSpqxQgELJ3fkuL5w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + resolution: {integrity: sha512-0wloJFYqV844gv6boiERbHpErxbxHbmlgnMX5VxP1Ux+DLBqGrUOn0cIpBmCZEcTITes3QUelxya4u8c9ziQvQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.3.2': + resolution: {integrity: sha512-Kys8wgFQy8H8vua0MNpC0akMBFoNO8455RHk2yycBM0iayMIAtVAL6xmV9TWAkehFgrrlImTL2fZdX5LXfYtAA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + resolution: {integrity: sha512-L8eej7+/StRxUHHOPsOVl7Fzx/3tumuGB4hGQZKT73xRI16KZhaSJr0gi3C3WBjNRxeJRKKps2UD4lQukP+oBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + resolution: {integrity: sha512-MV5CEb/nV8neQOj7l6945q1vy62HXtWO8zPDvfySPusoUzdBoLoJ/DfXXwaYThGTXZCniF+5bCf253WTPPK7Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.3.2': + resolution: {integrity: sha512-3qssvvVvkwQookZ1/1avlKWc5orAR85vgKdzDd5noZS8nnHiI/ejOAEt0xfNYvtBBF7/DZmP8dANWkRBJVOBCA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.3.2': + resolution: {integrity: sha512-rJqoFTm/bCZFKKgaT4NzWn/TuJkFDToZ/rzYFnYVBL28jH1nIfg6snx2mDri30nal9H+wcYfKpoPR9jrMQgQQg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.3.2': + resolution: {integrity: sha512-ozdbCjHfh0N//wJNExjJlSlcDaeIKo8k1ktzkLUyESr2Gu/Qw7nBYxKe3jgtoaxda570vg10WdYosre82263hQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.3.2': + resolution: {integrity: sha512-p5VA6Vk/2cXZPVWf+dDbuE0dkhrcoAo6pISTJmzUnsSdQqNJdusyR8lZgHku095+r27zrYISNLZnJoqrcePW0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + resolution: {integrity: sha512-XDb2U14Orf4r76SwzvJ7avePL00w4gHBmi1Ig4B/itYFEUTmYMNDHVU0dcYuBa0LgNBqyREoJOrQKxQlyYJA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.3.2': + resolution: {integrity: sha512-lEsKzKJqIUDZVCBhS4lkZuyQUhV1oRg5UHkI72qlOAqJn7qEXcoVdTridFS7PHNWdZknBl95EAF/4P1Xv0K1eQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.0': + resolution: {integrity: sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/validator@13.15.10': + resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + bun@1.4.4: + resolution: {integrity: sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==} + cpu: [arm64, x64] + os: [darwin, linux, android, freebsd, win32] + hasBin: true + + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + chownr@3.0.0: + resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} + engines: {node: '>=18'} + + class-transformer@0.5.1: + resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} + + class-validator@0.14.4: + resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + + class-validator@0.15.1: + resolution: {integrity: sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} + engines: {node: '>=22.12.0'} + + default-browser-id@5.0.1: + resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==} + engines: {node: '>=18'} + + default-browser@5.5.1: + resolution: {integrity: sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fflate@0.8.3: + resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.1: + resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==} + engines: {node: '>=16'} + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + konva@10.9.1: + resolution: {integrity: sha512-m49x+GatSxEUSvqahYhxpTjgKbtrLtw4P4o4B4iux953ZFpceaK52Ea+CFsAsd7W4I0Y5u6mMoRUsY/eltNZmw==} + peerDependencies: + canvas: ^3.0.0 + skia-canvas: ^3.0.0 + peerDependenciesMeta: + canvas: + optional: true + skia-canvas: + optional: true + + libphonenumber-js@1.13.16: + resolution: {integrity: sha512-tIOCM9yx2Go6d5/ZANe0K+G4AZek1Ymx81HxQpf19Sri4zMP95eQbKdnUGHAvFQ4nx0PeLhFqvAfisTADXj3tQ==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minipass@7.1.3: + resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} + engines: {node: '>=16 || 14 >=14.17'} + + minizlib@3.1.0: + resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} + engines: {node: '>= 18'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + picomatch@2.3.2: + resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} + engines: {node: '>=8.6'} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + rolldown@1.3.2: + resolution: {integrity: sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + run-applescript@7.1.0: + resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==} + engines: {node: '>=18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} + engines: {node: '>=10'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + tar@7.5.23: + resolution: {integrity: sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==} + engines: {node: '>=18'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unrun@0.3.1: + resolution: {integrity: sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==} + engines: {node: ^22.13.0 || >=24.0.0} + hasBin: true + peerDependencies: + synckit: ^0.11.11 + peerDependenciesMeta: + synckit: + optional: true + + validator@13.15.35: + resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} + engines: {node: '>= 0.10'} + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} + + yallist@5.0.0: + resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} + engines: {node: '>=18'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.7(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2 + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.7(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/confirm@6.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/core@12.1.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + + '@inquirer/editor@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/external-editor': 3.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/expand@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/external-editor@3.1.0': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/number@4.3.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/password@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/prompts@8.7.2': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/prompts@8.8.0': + dependencies: + '@inquirer/checkbox': 5.3.0 + '@inquirer/confirm': 6.4.0 + '@inquirer/editor': 5.4.0 + '@inquirer/expand': 5.2.0 + '@inquirer/input': 5.2.0 + '@inquirer/number': 4.3.0 + '@inquirer/password': 5.3.0 + '@inquirer/rawlist': 5.4.0 + '@inquirer/search': 4.4.0 + '@inquirer/select': 5.3.0 + + '@inquirer/rawlist@5.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/search@4.4.0': + dependencies: + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/select@5.3.0': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0 + + '@inquirer/type@4.3.0': {} + + '@isaacs/fs-minipass@4.0.1': + dependencies: + minipass: 7.1.3 + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@nanoforge-dev/asset@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/cli@3.0.1': + dependencies: + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.7(chokidar@5.0.0) + '@inquirer/prompts': 8.8.0 + '@nanoforge-dev/config': 3.0.1 + '@nanoforge-dev/editor': 0.1.4 + '@nanoforge-dev/loader-client': 1.7.0 + '@nanoforge-dev/loader-server': 1.7.0 + '@nanoforge-dev/registry': 3.0.1 + '@nanoforge-dev/schematics': 3.0.1(chokidar@5.0.0) + ansis: 4.5.0 + bun: 1.4.4 + chokidar: 5.0.0 + commander: 15.1.0 + dotenv: 18.0.10 + node-emoji: 2.2.0 + open: 11.0.4 + ora: 9.4.1 + rc9: 3.1.0 + transitivePeerDependencies: + - '@types/node' + - synckit + + '@nanoforge-dev/common@3.0.0': {} + + '@nanoforge-dev/config@3.0.1': + dependencies: + unrun: 0.3.1 + zod: 4.6.7 + transitivePeerDependencies: + - synckit + + '@nanoforge-dev/core@3.0.0': + dependencies: + '@nanoforge-dev/asset': 3.0.0 + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/ecs@3.0.0(@nanoforge-dev/editor-lib@3.0.0)(@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0))': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + '@nanoforge-dev/scene': 3.0.0(@nanoforge-dev/editor-lib@3.0.0) + + '@nanoforge-dev/editor-lib@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/editor@0.1.4': + dependencies: + bun: 1.4.4 + class-transformer: 0.5.1 + class-validator: 0.15.1 + dotenv: 17.4.2 + micromatch: 4.0.8 + tar: 7.5.23 + typescript: 6.0.3 + + '@nanoforge-dev/env@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + class-transformer: 0.5.1 + class-validator: 0.14.4 + + '@nanoforge-dev/graphics-2d@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + konva: 10.9.1 + transitivePeerDependencies: + - canvas + - skia-canvas + + '@nanoforge-dev/input@3.0.0': + dependencies: + '@nanoforge-dev/common': 3.0.0 + + '@nanoforge-dev/loader-client@1.7.0': + dependencies: + '@nanoforge-dev/loader-website': 1.7.0 + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-server@1.7.0': + dependencies: + bun: 1.4.4 + commander: 15.1.0 + + '@nanoforge-dev/loader-website@1.7.0': {} + + '@nanoforge-dev/registry@3.0.1': + dependencies: + fflate: 0.8.3 + semver: 7.8.6 + zod: 4.6.7 + + '@nanoforge-dev/scene@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@nanoforge-dev/schematics@3.0.1(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.7(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.7(chokidar@5.0.0) + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@nanoforge-dev/sound@3.0.0(@nanoforge-dev/editor-lib@3.0.0)': + dependencies: + '@nanoforge-dev/common': 3.0.0 + optionalDependencies: + '@nanoforge-dev/editor-lib': 3.0.0 + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@oven/bun-darwin-aarch64@1.4.4': + optional: true + + '@oven/bun-darwin-x64@1.4.4': + optional: true + + '@oven/bun-freebsd-aarch64@1.4.4': + optional: true + + '@oven/bun-freebsd-x64@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-android@1.4.4': + optional: true + + '@oven/bun-linux-aarch64-musl@1.4.4': + optional: true + + '@oven/bun-linux-aarch64@1.4.4': + optional: true + + '@oven/bun-linux-x64-android@1.4.4': + optional: true + + '@oven/bun-linux-x64-musl@1.4.4': + optional: true + + '@oven/bun-linux-x64@1.4.4': + optional: true + + '@oven/bun-windows-aarch64@1.4.4': + optional: true + + '@oven/bun-windows-x64@1.4.4': + optional: true + + '@oxc-project/types@0.158.0': {} + + '@rolldown/binding-android-arm-eabi@1.3.2': + optional: true + + '@rolldown/binding-android-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-arm64@1.3.2': + optional: true + + '@rolldown/binding-darwin-x64@1.3.2': + optional: true + + '@rolldown/binding-freebsd-x64@1.3.2': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.3.2': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.3.2': + optional: true + + '@rolldown/binding-linux-x64-musl@1.3.2': + optional: true + + '@rolldown/binding-openharmony-arm64@1.3.2': + optional: true + + '@rolldown/binding-wasm32-wasi@1.3.2': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.3.2': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.3.2': + optional: true + + '@rolldown/pluginutils@1.1.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/validator@13.15.10': {} + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@6.6.0: {} + + ansis@4.5.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + bun@1.4.4: + optionalDependencies: + '@oven/bun-darwin-aarch64': 1.4.4 + '@oven/bun-darwin-x64': 1.4.4 + '@oven/bun-freebsd-aarch64': 1.4.4 + '@oven/bun-freebsd-x64': 1.4.4 + '@oven/bun-linux-aarch64': 1.4.4 + '@oven/bun-linux-aarch64-android': 1.4.4 + '@oven/bun-linux-aarch64-musl': 1.4.4 + '@oven/bun-linux-x64': 1.4.4 + '@oven/bun-linux-x64-android': 1.4.4 + '@oven/bun-linux-x64-musl': 1.4.4 + '@oven/bun-windows-aarch64': 1.4.4 + '@oven/bun-windows-x64': 1.4.4 + + bundle-name@4.1.1: + dependencies: + run-applescript: 7.1.0 + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + chownr@3.0.0: {} + + class-transformer@0.5.1: {} + + class-validator@0.14.4: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + class-validator@0.15.1: + dependencies: + '@types/validator': 13.15.10 + libphonenumber-js: 1.13.16 + validator: 13.15.35 + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-width@4.1.0: {} + + commander@15.1.0: {} + + default-browser-id@5.0.1: {} + + default-browser@5.5.1: + dependencies: + bundle-name: 4.1.1 + default-browser-id: 5.0.1 + + define-lazy-prop@3.0.0: {} + + defu@6.1.7: {} + + destr@2.0.5: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + emojilib@2.4.0: {} + + fast-deep-equal@3.1.3: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fflate@0.8.3: {} + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + get-east-asian-width@1.7.0: {} + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + is-docker@3.0.0: {} + + is-in-ssh@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-interactive@2.0.0: {} + + is-number@7.0.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.1: + dependencies: + is-inside-container: 1.0.0 + + json-schema-traverse@1.0.0: {} + + jsonc-parser@3.3.1: {} + + konva@10.9.1: {} + + libphonenumber-js@1.13.16: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.2 + + mimic-function@5.0.1: {} + + minipass@7.1.3: {} + + minizlib@3.1.0: + dependencies: + minipass: 7.1.3 + + mute-stream@4.0.0: {} + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@11.0.4: + dependencies: + default-browser: 5.5.1 + define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 + is-inside-container: 1.0.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + picomatch@2.3.2: {} + + picomatch@4.0.7: {} + + powershell-utils@0.2.1: {} + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + readdirp@5.1.1: {} + + require-from-string@2.0.2: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + rolldown@1.3.2: + dependencies: + '@oxc-project/types': 0.158.0 + '@rolldown/pluginutils': 1.1.0 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.3.2 + '@rolldown/binding-android-arm64': 1.3.2 + '@rolldown/binding-darwin-arm64': 1.3.2 + '@rolldown/binding-darwin-x64': 1.3.2 + '@rolldown/binding-freebsd-x64': 1.3.2 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.2 + '@rolldown/binding-linux-arm64-gnu': 1.3.2 + '@rolldown/binding-linux-arm64-musl': 1.3.2 + '@rolldown/binding-linux-ppc64-gnu': 1.3.2 + '@rolldown/binding-linux-s390x-gnu': 1.3.2 + '@rolldown/binding-linux-x64-gnu': 1.3.2 + '@rolldown/binding-linux-x64-musl': 1.3.2 + '@rolldown/binding-openharmony-arm64': 1.3.2 + '@rolldown/binding-wasm32-wasi': 1.3.2 + '@rolldown/binding-win32-arm64-msvc': 1.3.2 + '@rolldown/binding-win32-x64-msvc': 1.3.2 + + run-applescript@7.1.0: {} + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safer-buffer@2.1.2: {} + + semver@7.8.6: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map@0.8.0: {} + + stdin-discarder@0.3.2: {} + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + tar@7.5.23: + dependencies: + '@isaacs/fs-minipass': 4.0.1 + chownr: 3.0.0 + minipass: 7.1.3 + minizlib: 3.1.0 + yallist: 5.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.9.1: {} + + typescript@6.0.3: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unrun@0.3.1: + dependencies: + rolldown: 1.3.2 + + validator@13.15.35: {} + + wsl-utils@1.0.1: + dependencies: + is-wsl: 3.1.1 + powershell-utils: 0.2.1 + + yallist@5.0.0: {} + + yoctocolors@2.2.0: {} + + zod@4.6.7: {} diff --git a/games/tic-tac-toe/pnpm-workspace.yaml b/games/tic-tac-toe/pnpm-workspace.yaml new file mode 100644 index 0000000..96ca535 --- /dev/null +++ b/games/tic-tac-toe/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +allowBuilds: + bun: true +# NanoForge packages are ours: take a release as soon as it is out. +minimumReleaseAgeExclude: + - "@nanoforge-dev/*" diff --git a/games/tic-tac-toe/src/components/cell.component.ts b/games/tic-tac-toe/src/components/cell.component.ts new file mode 100644 index 0000000..55d3c7f --- /dev/null +++ b/games/tic-tac-toe/src/components/cell.component.ts @@ -0,0 +1,21 @@ +/** + * A square of the board, where a player puts a mark. Needs `Clickable2D` and the `playCell` + * system. + * + * @component + * @side client + * @group Place color=#4aa3ff - Where the square is on the board. + */ +export class Cell { + name = "Cell"; + + /** The mark in it, set by `playCell`: `X` for player 1, `O` for player 2. */ + mark: "" | "X" | "O" = ""; + + constructor( + /** From 0 (top) to 2. @group Place */ + public row = 0, + /** From 0 (left) to 2. @group Place */ + public col = 0, + ) {} +} diff --git a/games/tic-tac-toe/src/components/center-text-2d.component.ts b/games/tic-tac-toe/src/components/center-text-2d.component.ts new file mode 100644 index 0000000..14016a6 --- /dev/null +++ b/games/tic-tac-toe/src/components/center-text-2d.component.ts @@ -0,0 +1,10 @@ +/** + * Centers a `DrawableText2D` on its `Position2D`, instead of starting it there. Needs the + * `centerText2D` system. + * + * @component + * @side client + */ +export class CenterText2D { + name = "CenterText2D"; +} diff --git a/games/tic-tac-toe/src/components/clickable-2d.component.ts b/games/tic-tac-toe/src/components/clickable-2d.component.ts new file mode 100644 index 0000000..ed10cf1 --- /dev/null +++ b/games/tic-tac-toe/src/components/clickable-2d.component.ts @@ -0,0 +1,23 @@ +/** + * Makes a `DrawableRect2D` react to the mouse: it lights up under the cursor, and `clicked` tells + * your systems it was clicked this frame. Needs `Position2D` and the `click2D` system. + * + * @component + * @side client + * @group Look color=#b18cff - Its colors. + */ +export class Clickable2D { + name = "Clickable2D"; + + /** Whether the cursor is over it, set by `click2D`. */ + hovered = false; + /** Whether it was clicked this frame, set by `click2D`. */ + clicked = false; + + constructor( + /** A CSS color, when the cursor is not over it. @group Look @preset color */ + public color = "#4aa3ff", + /** A CSS color, when the cursor is over it. @group Look @preset color */ + public hoverColor = "#7cc0ff", + ) {} +} diff --git a/games/tic-tac-toe/src/components/draw-order-2d.component.ts b/games/tic-tac-toe/src/components/draw-order-2d.component.ts new file mode 100644 index 0000000..cd94522 --- /dev/null +++ b/games/tic-tac-toe/src/components/draw-order-2d.component.ts @@ -0,0 +1,23 @@ +/** + * Where an entity's drawable is in the stack: a higher `z` is drawn over a lower one. Needs the + * `drawOrder2D` system. + * + * @remarks + * Without it, a shape is drawn over the shapes that appeared before it, and a scene loaded again + * can stack its shapes in another order. + * + * @component + * @side client + * @group Order color=#b18cff - Drawing order. + */ +export class DrawOrder2D { + name = "DrawOrder2D"; + + /** The `z` the shape was last stacked at, set by `drawOrder2D`. */ + stackedZ?: number; + + constructor( + /** Higher is drawn over lower; entities without it are under every one with it. @group Order */ + public z = 0, + ) {} +} diff --git a/games/tic-tac-toe/src/components/drawable-circle-2d.component.ts b/games/tic-tac-toe/src/components/drawable-circle-2d.component.ts new file mode 100644 index 0000000..1066155 --- /dev/null +++ b/games/tic-tac-toe/src/components/drawable-circle-2d.component.ts @@ -0,0 +1,62 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { Circle, type Layer } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a circle at the entity's `Position2D` (its center). Needs the `draw2D` system. + * + * @remarks + * `shape` is the Konva `Circle` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the circle. + * @group Look color=#b18cff - What the circle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableCircle2D { + name = "DrawableCircle2D"; + + /** The circle on screen, made by `draw2D` the first time it draws it. */ + shape?: Circle; + + constructor( + /** In pixels. @group Shape */ + public radius = 25, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the circle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the center. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the circle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Circle(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + radius: this.radius, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + ...imageFill(assets, this.image, this.radius * 2, this.radius * 2, true), + }); + } + + /** Removes the circle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/games/tic-tac-toe/src/components/drawable-rect-2d.component.ts b/games/tic-tac-toe/src/components/drawable-rect-2d.component.ts new file mode 100644 index 0000000..d3586ca --- /dev/null +++ b/games/tic-tac-toe/src/components/drawable-rect-2d.component.ts @@ -0,0 +1,69 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import { type Layer, Rect } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +import { imageFill } from "../image-fill"; + +/** + * Draws a rectangle at the entity's `Position2D` (its top-left corner). Needs the `draw2D` + * system. + * + * @remarks + * `shape` is the Konva `Rect` on screen: change it from code for anything the parameters don't + * offer (shadows, strokes...). + * + * @component + * @side client + * @group Shape color=#e86fb0 - Size of the rectangle. + * @group Look color=#b18cff - What the rectangle looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableRect2D { + name = "DrawableRect2D"; + + /** The rectangle on screen, made by `draw2D` the first time it draws it. */ + shape?: Rect; + + constructor( + /** In pixels. @group Shape @preset size.width */ + public width = 50, + /** In pixels. @group Shape @preset size.height */ + public height = 50, + /** A CSS color: `red`, `#ff0000`, `rgba(255, 0, 0, 0.5)`... @group Look @preset color */ + public fillColor = "#4aa3ff", + /** An image stretched over the rectangle, shown instead of the color. @group Look @asset .png .jpg .jpeg .gif .webp .svg */ + public image = "", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Rounds the corners, in pixels. @group Advanced */ + public cornerRadius = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the rectangle on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D, assets: AssetContext): void { + this.shape ??= new Rect(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + width: this.width, + height: this.height, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + cornerRadius: this.cornerRadius, + visible: this.visible, + ...imageFill(assets, this.image, this.width, this.height), + }); + } + + /** Removes the rectangle from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/games/tic-tac-toe/src/components/drawable-text-2d.component.ts b/games/tic-tac-toe/src/components/drawable-text-2d.component.ts new file mode 100644 index 0000000..adba963 --- /dev/null +++ b/games/tic-tac-toe/src/components/drawable-text-2d.component.ts @@ -0,0 +1,62 @@ +import { type Layer, Text } from "@nanoforge-dev/graphics-2d"; +import type { Position2D } from "./position-2d.component"; + +/** + * Draws a text at the entity's `Position2D` (its top-left corner). Needs the `draw2D` system. + * + * @remarks + * Change `text` from a system to show a score, a timer... `shape` is the Konva `Text` on screen: + * change it from code for anything the parameters don't offer. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is written. + * @group Look color=#b18cff - What the text looks like. + * @group Advanced hidden - Less common settings. + */ +export class DrawableText2D { + name = "DrawableText2D"; + + /** The text on screen, made by `draw2D` the first time it draws it. */ + shape?: Text; + + constructor( + /** What is written. @group Text */ + public text = "Hello", + /** Height of the letters, in pixels. @group Text */ + public fontSize = 24, + /** A CSS color: `white`, `#ffffff`... @group Look @preset color */ + public fillColor = "#ffffff", + /** From 0 (invisible) to 1 (opaque). @group Look */ + public opacity = 1, + /** A CSS font family: `Arial`, `monospace`... @group Advanced */ + public fontFamily = "Arial", + /** Clockwise, in degrees, around the top-left corner. @group Advanced */ + public rotation = 0, + /** Whether it is drawn. @group Advanced */ + public visible = true, + ) {} + + /** Puts the text on `layer` at `position`, up to date with the parameters. */ + draw(layer: Layer, position: Position2D): void { + this.shape ??= new Text(); + if (this.shape.getParent() !== layer) layer.add(this.shape); + this.shape.setAttrs({ + x: position.x, + y: position.y, + text: this.text, + fontSize: this.fontSize, + fontFamily: this.fontFamily, + fill: this.fillColor, + opacity: this.opacity, + rotation: this.rotation, + visible: this.visible, + }); + } + + /** Removes the text from the screen. */ + destroy(): void { + this.shape?.destroy(); + this.shape = undefined; + } +} diff --git a/games/tic-tac-toe/src/components/marker.component.ts b/games/tic-tac-toe/src/components/marker.component.ts new file mode 100644 index 0000000..7b7be4d --- /dev/null +++ b/games/tic-tac-toe/src/components/marker.component.ts @@ -0,0 +1,10 @@ +/** + * A shape of a mark put by a player: two bars for an X, a disc for an O. `playCell` spawns them, + * and the `Match` scene removes them when it ends. + * + * @component + * @side client + */ +export class Marker { + name = "Marker"; +} diff --git a/games/tic-tac-toe/src/components/position-2d.component.ts b/games/tic-tac-toe/src/components/position-2d.component.ts new file mode 100644 index 0000000..0a35624 --- /dev/null +++ b/games/tic-tac-toe/src/components/position-2d.component.ts @@ -0,0 +1,20 @@ +/** + * Where an entity is, in pixels from the top-left corner of the screen. + * + * @remarks + * For rectangles it is their top-left corner, for circles their center. + * + * @component + * @side shared + * @group Position color=#4aa3ff - Pixels from the top-left corner of the screen. + */ +export class Position2D { + name = "Position2D"; + + constructor( + /** Pixels from the left edge. @group Position @preset vector.x */ + public x = 0, + /** Pixels from the top edge. @group Position @preset vector.y */ + public y = 0, + ) {} +} diff --git a/games/tic-tac-toe/src/components/restart-button.component.ts b/games/tic-tac-toe/src/components/restart-button.component.ts new file mode 100644 index 0000000..67bff78 --- /dev/null +++ b/games/tic-tac-toe/src/components/restart-button.component.ts @@ -0,0 +1,9 @@ +/** + * Starts a new match when its `Clickable2D` is clicked. Needs the `restartMatch` system. + * + * @component + * @side client + */ +export class RestartButton { + name = "RestartButton"; +} diff --git a/games/tic-tac-toe/src/components/sound-effect.component.ts b/games/tic-tac-toe/src/components/sound-effect.component.ts new file mode 100644 index 0000000..4476f31 --- /dev/null +++ b/games/tic-tac-toe/src/components/sound-effect.component.ts @@ -0,0 +1,20 @@ +/** + * A sound the game plays by its `key` with `ctx.sound.play(key)`. Needs the `loadSounds` system. + * + * @component + * @side client + * @group Sound color=#36c5a0 - The sound and its name. + */ +export class SoundEffect { + name = "SoundEffect"; + + /** Whether `loadSounds` gave it to the sound library. */ + loaded = false; + + constructor( + /** The name systems play it by. @group Sound */ + public key = "click", + /** The sound file. @group Sound @asset .wav .mp3 .ogg */ + public path = "", + ) {} +} diff --git a/games/tic-tac-toe/src/components/var-text.component.ts b/games/tic-tac-toe/src/components/var-text.component.ts new file mode 100644 index 0000000..56aa670 --- /dev/null +++ b/games/tic-tac-toe/src/components/var-text.component.ts @@ -0,0 +1,23 @@ +import type { SceneVarKey } from "@nanoforge-dev/scene"; + +/** + * Shows a scene var in a `DrawableText2D`: its text becomes `template`, with `{}` replaced by the + * var's value. Needs the `varText` system. + * + * @example + * `new VarText("player", "Player {}'s turn")` shows "Player 2's turn" while `player` is 2. + * + * @component + * @side client + * @group Text color=#e86fb0 - What is shown. + */ +export class VarText { + name = "VarText"; + + constructor( + /** The scene var to show. @group Text */ + public key: SceneVarKey = "player", + /** The text, where `{}` is the var's value. @group Text */ + public template = "{}", + ) {} +} diff --git a/games/tic-tac-toe/src/image-fill.ts b/games/tic-tac-toe/src/image-fill.ts new file mode 100644 index 0000000..c7fc737 --- /dev/null +++ b/games/tic-tac-toe/src/image-fill.ts @@ -0,0 +1,43 @@ +import type { AssetContext } from "@nanoforge-dev/common"; +import type { ShapeConfig } from "@nanoforge-dev/graphics-2d"; + +const images = new Map(); + +/** + * The fill of a shape of `width` by `height` pixels showing the image at `path` (an asset path + * such as `/textures/hero.png`, found in `assets`) stretched over it. Without an image, until it + * is loaded, or when there is no asset at `path`, the shape is filled with its color. + * + * @param centered - Whether the shape's origin is its center (a circle) instead of its top-left + * corner (a rectangle). + */ +export const imageFill = ( + assets: AssetContext, + path: string, + width: number, + height: number, + centered = false, +): ShapeConfig => { + if (!path) return { fillPriority: "color", fillPatternImage: undefined }; + let image = images.get(path); + if (!image) { + image = document.createElement("img"); + try { + image.src = assets.getAsset(path).path; + } catch (error) { + // Once per path, not every frame: the shape keeps its color. + console.warn(`No image at "${path}":`, error); + } + images.set(path, image); + } + if (!image.naturalWidth) return { fillPriority: "color", fillPatternImage: undefined }; + return { + fillPriority: "pattern", + fillPatternImage: image, + fillPatternRepeat: "no-repeat", + fillPatternScaleX: width / image.naturalWidth, + fillPatternScaleY: height / image.naturalHeight, + fillPatternOffsetX: centered ? image.naturalWidth / 2 : 0, + fillPatternOffsetY: centered ? image.naturalHeight / 2 : 0, + }; +}; diff --git a/games/tic-tac-toe/src/just-pressed.ts b/games/tic-tac-toe/src/just-pressed.ts new file mode 100644 index 0000000..bd8dac9 --- /dev/null +++ b/games/tic-tac-toe/src/just-pressed.ts @@ -0,0 +1,19 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { InputEnum } from "@nanoforge-dev/input"; + +/** Whether each key was down the last time a system asked. */ +const down = new Map(); + +/** + * Whether `key` went down since the last time a system asked about it. + * + * @remarks + * The state is shared by every system: a key that opens a scene does not also act in that scene + * while it is still held. + */ +export const justPressed = (ctx: Context, key: InputEnum): boolean => { + const now = ctx.input.isKeyPressed(key) === true; + const before = down.get(key) ?? false; + down.set(key, now); + return now && !before; +}; diff --git a/games/tic-tac-toe/src/main.ts b/games/tic-tac-toe/src/main.ts new file mode 100644 index 0000000..d60d81e --- /dev/null +++ b/games/tic-tac-toe/src/main.ts @@ -0,0 +1,50 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputLibrary } from "@nanoforge-dev/input"; +import { SceneLibrary } from "@nanoforge-dev/scene"; +import { SoundLibrary } from "@nanoforge-dev/sound"; + +import { SoundEffect } from "./components/sound-effect.component"; +import "./scene-vars"; +import { EndPopup } from "./scenes/end-popup.scene"; +import { Match } from "./scenes/match.scene"; +import { centerText2D } from "./systems/center-text-2d.system"; +import { click2D } from "./systems/click-2d.system"; +import { draw2D } from "./systems/draw-2d.system"; +import { drawOrder2D } from "./systems/draw-order-2d.system"; +import { loadSounds } from "./systems/load-sounds.system"; +import { varText } from "./systems/var-text.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient({ + tickRate: 60, + viewport: { width: 700, height: 700, fit: "contain" }, + }); + const ecs = new EcsLibrary(); + + app.use(new Graphics2DLibrary()); + app.use(ecs); + app.use(new InputLibrary()); + app.use(new SoundLibrary()); + app.use(new SceneLibrary({ initial: Match, scenes: { Match, EndPopup } })); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + const marker = registry.spawnEntity(); + registry.addComponent(marker, new SoundEffect("marker", "/marker.mp3")); + + registry.addSystem(loadSounds); + registry.addSystem(click2D); + registry.addSystem(varText); + registry.addSystem(draw2D); + registry.addSystem(centerText2D); + registry.addSystem(drawOrder2D); + + await app.run(); +}; diff --git a/games/tic-tac-toe/src/scene-vars.ts b/games/tic-tac-toe/src/scene-vars.ts new file mode 100644 index 0000000..13f371e --- /dev/null +++ b/games/tic-tac-toe/src/scene-vars.ts @@ -0,0 +1,16 @@ +/** + * The scene vars of the game. A var belongs to the scene that made it, and goes away when that + * scene is unloaded. + */ +declare module "@nanoforge-dev/scene" { + interface SceneVars { + /** Whose turn it is: 1 (X) or 2 (O) (made by `Match`). @default 1 */ + player: number; + /** How the match ended, or "" while it goes on (made by `Match`). @default "" */ + result: string; + /** The match is over: the board takes no more marks (made by `EndPopup`). @default true */ + over: boolean; + } +} + +export {}; diff --git a/games/tic-tac-toe/src/scenes/end-popup.scene.ts b/games/tic-tac-toe/src/scenes/end-popup.scene.ts new file mode 100644 index 0000000..6baf79e --- /dev/null +++ b/games/tic-tac-toe/src/scenes/end-popup.scene.ts @@ -0,0 +1,59 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { CenterText2D } from "../components/center-text-2d.component"; +import { Clickable2D } from "../components/clickable-2d.component"; +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { RestartButton } from "../components/restart-button.component"; +import { VarText } from "../components/var-text.component"; +import { restartMatch } from "../systems/restart-match.system"; + +/** + * The end of a match: who won, or a draw, and a button to play again. It has no parent of its + * own: it is loaded over `Match` (`parent: "current"`), whose board stays under it. + * + * @scene + * @side client + * @vars over, result + */ +export class EndPopup extends EcsScene { + override setup(registry: Registry, ctx: Context) { + ctx.scenes.vars.init("over", true); + + const shade = registry.spawnEntity(); + registry.addComponent(shade, new Position2D(0, 0)); + registry.addComponent(shade, new DrawableRect2D(700, 700, "#000000", "", 0.6)); + registry.addComponent(shade, new DrawOrder2D(10)); + + const panel = registry.spawnEntity(); + registry.addComponent(panel, new Position2D(125, 225)); + registry.addComponent(panel, new DrawableRect2D(450, 250, "#23233a", "", 1, 0, 15)); + registry.addComponent(panel, new DrawOrder2D(11)); + + const title = registry.spawnEntity(); + registry.addComponent(title, new Position2D(350, 290)); + registry.addComponent(title, new DrawableText2D("", 28, "#ffffff")); + registry.addComponent(title, new VarText("result", "{}")); + registry.addComponent(title, new CenterText2D()); + registry.addComponent(title, new DrawOrder2D(12)); + + const button = registry.spawnEntity(); + registry.addComponent(button, new Position2D(290, 385)); + registry.addComponent(button, new DrawableRect2D(120, 60, "#7644aa", "", 1, 0, 10)); + registry.addComponent(button, new Clickable2D("#7644aa", "#8f5cc7")); + registry.addComponent(button, new RestartButton()); + registry.addComponent(button, new DrawOrder2D(12)); + + const label = registry.spawnEntity(); + registry.addComponent(label, new Position2D(350, 415)); + registry.addComponent(label, new DrawableText2D("Restart", 24, "#ffffff")); + registry.addComponent(label, new CenterText2D()); + registry.addComponent(label, new DrawOrder2D(13)); + + registry.addSystem(restartMatch); + } +} diff --git a/games/tic-tac-toe/src/scenes/match.scene.ts b/games/tic-tac-toe/src/scenes/match.scene.ts new file mode 100644 index 0000000..9a75edf --- /dev/null +++ b/games/tic-tac-toe/src/scenes/match.scene.ts @@ -0,0 +1,119 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { Cell } from "../components/cell.component"; +import { CenterText2D } from "../components/center-text-2d.component"; +import { Clickable2D } from "../components/clickable-2d.component"; +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; +import { Marker } from "../components/marker.component"; +import { Position2D } from "../components/position-2d.component"; +import { VarText } from "../components/var-text.component"; +import { checkEnd } from "../systems/check-end.system"; +import { playCell } from "../systems/play-cell.system"; + +/** + * A match: the board, its nine cells and whose turn it is. Player 1 plays X and starts. + * + * @scene + * @side client + * @vars player, result + */ +export class Match extends EcsScene { + override setup(registry: Registry, ctx: Context) { + ctx.scenes.vars.init("player", 1); + ctx.scenes.vars.init("result", ""); + + const background = registry.spawnEntity(); + registry.addComponent(background, new Position2D(0, 0)); + registry.addComponent(background, new DrawableRect2D(700, 700, "#161625")); + registry.addComponent(background, new DrawOrder2D(0)); + + const turn = registry.spawnEntity(); + registry.addComponent(turn, new Position2D(350, 80)); + registry.addComponent(turn, new DrawableText2D("Player 1's turn", 24, "#c5b6d6")); + registry.addComponent(turn, new VarText("player", "Player {}'s turn")); + registry.addComponent(turn, new CenterText2D()); + registry.addComponent(turn, new DrawOrder2D(3)); + + const board = registry.spawnEntity(); + registry.addComponent(board, new Position2D(100, 140)); + registry.addComponent(board, new DrawableRect2D(500, 500, "#4c2a85", "", 1, 0, 15)); + registry.addComponent(board, new DrawOrder2D(1)); + + const cell11 = registry.spawnEntity(); + registry.addComponent(cell11, new Position2D(112.5, 152.5)); + registry.addComponent(cell11, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell11, new Cell(0, 0)); + registry.addComponent(cell11, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell11, new DrawOrder2D(2)); + + const cell12 = registry.spawnEntity(); + registry.addComponent(cell12, new Position2D(275, 152.5)); + registry.addComponent(cell12, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell12, new Cell(0, 1)); + registry.addComponent(cell12, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell12, new DrawOrder2D(2)); + + const cell13 = registry.spawnEntity(); + registry.addComponent(cell13, new Position2D(437.5, 152.5)); + registry.addComponent(cell13, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell13, new Cell(0, 2)); + registry.addComponent(cell13, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell13, new DrawOrder2D(2)); + + const cell21 = registry.spawnEntity(); + registry.addComponent(cell21, new Position2D(112.5, 315)); + registry.addComponent(cell21, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell21, new Cell(1, 0)); + registry.addComponent(cell21, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell21, new DrawOrder2D(2)); + + const cell22 = registry.spawnEntity(); + registry.addComponent(cell22, new Position2D(275, 315)); + registry.addComponent(cell22, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell22, new Cell(1, 1)); + registry.addComponent(cell22, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell22, new DrawOrder2D(2)); + + const cell23 = registry.spawnEntity(); + registry.addComponent(cell23, new Position2D(437.5, 315)); + registry.addComponent(cell23, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell23, new Cell(1, 2)); + registry.addComponent(cell23, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell23, new DrawOrder2D(2)); + + const cell31 = registry.spawnEntity(); + registry.addComponent(cell31, new Position2D(112.5, 477.5)); + registry.addComponent(cell31, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell31, new Cell(2, 0)); + registry.addComponent(cell31, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell31, new DrawOrder2D(2)); + + const cell32 = registry.spawnEntity(); + registry.addComponent(cell32, new Position2D(275, 477.5)); + registry.addComponent(cell32, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell32, new Cell(2, 1)); + registry.addComponent(cell32, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell32, new DrawOrder2D(2)); + + const cell33 = registry.spawnEntity(); + registry.addComponent(cell33, new Position2D(437.5, 477.5)); + registry.addComponent(cell33, new DrawableRect2D(150, 150, "#23233a", "", 1, 0, 15)); + registry.addComponent(cell33, new Cell(2, 2)); + registry.addComponent(cell33, new Clickable2D("#23233a", "#2e2e4d")); + registry.addComponent(cell33, new DrawOrder2D(2)); + + registry.addSystem(playCell); + registry.addSystem(checkEnd); + } + + /** Removes the marks: `playCell` spawned them, so the scene doesn't own them. */ + override teardown(registry: Registry, _ctx: Context) { + registry.getIndexedZipper([Marker]).forEach(({ id }) => { + registry.killEntity(registry.entityFromIndex(id)); + }); + } +} diff --git a/games/tic-tac-toe/src/systems/center-text-2d.system.ts b/games/tic-tac-toe/src/systems/center-text-2d.system.ts new file mode 100644 index 0000000..1188bac --- /dev/null +++ b/games/tic-tac-toe/src/systems/center-text-2d.system.ts @@ -0,0 +1,21 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; + +import { CenterText2D } from "../components/center-text-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +/** + * Centers the text of `CenterText2D` entities on their `Position2D`. + * + * @remarks + * `draw2D` never sets a shape's offset: the offset set here stays, and follows the text's size. + * + * @system + * @side client + */ +export const centerText2D = (registry: Registry, _ctx: Context) => { + registry.getZipper([CenterText2D, DrawableText2D]).forEach(({ DrawableText2D }) => { + const shape = DrawableText2D.shape; + shape?.offset({ x: shape.width() / 2, y: shape.height() / 2 }); + }); +}; diff --git a/games/tic-tac-toe/src/systems/check-end.system.ts b/games/tic-tac-toe/src/systems/check-end.system.ts new file mode 100644 index 0000000..615b48a --- /dev/null +++ b/games/tic-tac-toe/src/systems/check-end.system.ts @@ -0,0 +1,74 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; + +import { Cell } from "../components/cell.component"; +import { EndPopup } from "../scenes/end-popup.scene"; + +/** The rows, columns and diagonals, as `[row, col]` cells. */ +const LINES = [ + [ + [0, 0], + [0, 1], + [0, 2], + ], + [ + [1, 0], + [1, 1], + [1, 2], + ], + [ + [2, 0], + [2, 1], + [2, 2], + ], + [ + [0, 0], + [1, 0], + [2, 0], + ], + [ + [0, 1], + [1, 1], + [2, 1], + ], + [ + [0, 2], + [1, 2], + [2, 2], + ], + [ + [0, 0], + [1, 1], + [2, 2], + ], + [ + [0, 2], + [1, 1], + [2, 0], + ], +] as const; + +/** + * Ends the match when a player has three marks in a line, or when the board is full: sets + * `result` and shows the end popup over the board. + * + * @system + * @side client + * @vars result + */ +export const checkEnd = (registry: Registry, ctx: Context) => { + const vars = ctx.scenes.vars; + if (vars.get("result")) return; + + const marks = new Map(); + registry.getZipper([Cell]).forEach(({ Cell }) => marks.set(`${Cell.row},${Cell.col}`, Cell.mark)); + const at = ([row, col]: readonly [number, number]) => marks.get(`${row},${col}`) ?? ""; + + const line = LINES.find(([a, b, c]) => at(a) && at(a) === at(b) && at(a) === at(c)); + if (line) vars.set("result", `Player ${at(line[0]) === "X" ? 1 : 2} wins!`); + else if (marks.size && [...marks.values()].every(Boolean)) vars.set("result", "It's a draw!"); + else return; + + void ctx.scenes.load(ctx, EndPopup, { parent: "current" }); +}; diff --git a/games/tic-tac-toe/src/systems/click-2d.system.ts b/games/tic-tac-toe/src/systems/click-2d.system.ts new file mode 100644 index 0000000..09a46a4 --- /dev/null +++ b/games/tic-tac-toe/src/systems/click-2d.system.ts @@ -0,0 +1,33 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import { InputEnum } from "@nanoforge-dev/input"; + +import { Clickable2D } from "../components/clickable-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Position2D } from "../components/position-2d.component"; +import { justPressed } from "../just-pressed"; + +/** + * Lights up the `Clickable2D` rectangle under the cursor, and marks it `clicked` on the frame the + * left button goes down over it. Add it before the systems that read `clicked`. + * + * @system + * @side client + */ +export const click2D = (registry: Registry, ctx: Context) => { + const mouse = ctx.input.getMouseState(); + const pressed = justPressed(ctx, InputEnum.MouseLeft); + + registry + .getZipper([Clickable2D, Position2D, DrawableRect2D]) + .forEach(({ Clickable2D, Position2D, DrawableRect2D }) => { + Clickable2D.hovered = + mouse.focus && + mouse.x >= Position2D.x && + mouse.x < Position2D.x + DrawableRect2D.width && + mouse.y >= Position2D.y && + mouse.y < Position2D.y + DrawableRect2D.height; + Clickable2D.clicked = Clickable2D.hovered && pressed; + DrawableRect2D.fillColor = Clickable2D.hovered ? Clickable2D.hoverColor : Clickable2D.color; + }); +}; diff --git a/games/tic-tac-toe/src/systems/draw-2d.system.ts b/games/tic-tac-toe/src/systems/draw-2d.system.ts new file mode 100644 index 0000000..937eeeb --- /dev/null +++ b/games/tic-tac-toe/src/systems/draw-2d.system.ts @@ -0,0 +1,45 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; +import { Position2D } from "../components/position-2d.component"; + +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Drawable = DrawableRect2D | DrawableCircle2D | DrawableText2D; + +/** The drawables shown by the last frame. */ +let shown = new Set(); + +/** + * Draws every entity that has a `Position2D` and a `DrawableRect2D`, `DrawableCircle2D` or + * `DrawableText2D`, where it is. Add it last, after the systems that move entities. + * + * @remarks + * The shape of a killed entity, or of a removed drawable, is removed from the screen. + * + * @system + * @side client + */ +export const draw2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const drawn = new Set(); + + registry.getZipper([DrawableRect2D, Position2D]).forEach(({ DrawableRect2D, Position2D }) => { + DrawableRect2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableRect2D); + }); + registry.getZipper([DrawableCircle2D, Position2D]).forEach(({ DrawableCircle2D, Position2D }) => { + DrawableCircle2D.draw(layer, Position2D, ctx.assets); + drawn.add(DrawableCircle2D); + }); + registry.getZipper([DrawableText2D, Position2D]).forEach(({ DrawableText2D, Position2D }) => { + DrawableText2D.draw(layer, Position2D); + drawn.add(DrawableText2D); + }); + + // `killEntity` doesn't call `destroy()`: a drawable no longer in the world loses its shape here. + for (const drawable of shown) if (!drawn.has(drawable)) drawable.destroy(); + shown = drawn; +}; diff --git a/games/tic-tac-toe/src/systems/draw-order-2d.system.ts b/games/tic-tac-toe/src/systems/draw-order-2d.system.ts new file mode 100644 index 0000000..ff3ced0 --- /dev/null +++ b/games/tic-tac-toe/src/systems/draw-order-2d.system.ts @@ -0,0 +1,59 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/graphics-2d"; + +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { DrawableText2D } from "../components/drawable-text-2d.component"; + +type Stacked = { order: DrawOrder2D; drawable: DrawableRect2D | DrawableCircle2D | DrawableText2D }; + +/** The number of shapes on the layer the last time it was stacked. */ +let stackedShapes = -1; + +/** + * Stacks the shapes of `DrawOrder2D` entities by their `z`, over the other shapes. Add it right + * after `draw2D`. + * + * @remarks + * It only stacks again when a shape appeared or went away, or a `z` changed. + * + * @system + * @side client + */ +export const drawOrder2D = (registry: Registry, ctx: Context) => { + const layer = ctx.graphics.baseLayer; + const rects = registry.getZipper([DrawOrder2D, DrawableRect2D]); + const circles = registry.getZipper([DrawOrder2D, DrawableCircle2D]); + const texts = registry.getZipper([DrawOrder2D, DrawableText2D]); + const moved = ({ DrawOrder2D }: { DrawOrder2D: DrawOrder2D }) => + DrawOrder2D.stackedZ !== DrawOrder2D.z; + const changed = + layer.children.length !== stackedShapes || + rects.some(moved) || + circles.some(moved) || + texts.some(moved); + if (!changed) return; + + const rows: Stacked[] = [ + ...rects.map(({ DrawOrder2D, DrawableRect2D }) => ({ + order: DrawOrder2D, + drawable: DrawableRect2D, + })), + ...circles.map(({ DrawOrder2D, DrawableCircle2D }) => ({ + order: DrawOrder2D, + drawable: DrawableCircle2D, + })), + ...texts.map(({ DrawOrder2D, DrawableText2D }) => ({ + order: DrawOrder2D, + drawable: DrawableText2D, + })), + ]; + // A stable sort keeps the entity order between equal `z`. + for (const { order, drawable } of rows.sort((a, b) => a.order.z - b.order.z)) { + drawable.shape?.moveToTop(); + order.stackedZ = order.z; + } + stackedShapes = layer.children.length; +}; diff --git a/games/tic-tac-toe/src/systems/load-sounds.system.ts b/games/tic-tac-toe/src/systems/load-sounds.system.ts new file mode 100644 index 0000000..cb0daf3 --- /dev/null +++ b/games/tic-tac-toe/src/systems/load-sounds.system.ts @@ -0,0 +1,30 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/sound"; + +import { SoundEffect } from "../components/sound-effect.component"; + +/** Whether the sound library was unmuted. */ +let unmuted = false; + +/** + * Loads every `SoundEffect` into the sound library, so that systems can play it by its key. + * + * @remarks + * The sound library starts muted: the first run unmutes it. + * + * @system + * @side client + */ +export const loadSounds = (registry: Registry, ctx: Context) => { + registry.getZipper([SoundEffect]).forEach(({ SoundEffect }) => { + if (SoundEffect.loaded) return; + ctx.sound.load(SoundEffect.key, ctx.assets.getAsset(SoundEffect.path).path); + SoundEffect.loaded = true; + }); + // shortcut: `mute()` is a toggle with no getter, so this assumes one sound library per page load. + if (!unmuted) { + ctx.sound.mute(); + unmuted = true; + } +}; diff --git a/games/tic-tac-toe/src/systems/play-cell.system.ts b/games/tic-tac-toe/src/systems/play-cell.system.ts new file mode 100644 index 0000000..642c463 --- /dev/null +++ b/games/tic-tac-toe/src/systems/play-cell.system.ts @@ -0,0 +1,74 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; +import "@nanoforge-dev/sound"; + +import { Cell } from "../components/cell.component"; +import { Clickable2D } from "../components/clickable-2d.component"; +import { DrawOrder2D } from "../components/draw-order-2d.component"; +import { DrawableCircle2D } from "../components/drawable-circle-2d.component"; +import { DrawableRect2D } from "../components/drawable-rect-2d.component"; +import { Marker } from "../components/marker.component"; +import { Position2D } from "../components/position-2d.component"; + +/** Room between a mark and the edges of its cell, as a part of the cell. */ +const PADDING = 0.15; +/** Thickness of the bars of an X, in pixels. */ +const BAR = 8; + +/** + * Puts the mark of the player whose turn it is in the empty cell they clicked, plays the marker + * sound, and gives the turn to the other player. + * + * @system + * @side client + * @vars player, over + */ +export const playCell = (registry: Registry, ctx: Context) => { + const vars = ctx.scenes.vars; + if (vars.has("over")) return; + + registry + .getZipper([Cell, Clickable2D, Position2D, DrawableRect2D]) + .forEach(({ Cell, Clickable2D, Position2D: place, DrawableRect2D: square }) => { + if (!Clickable2D.clicked || Cell.mark) return; + const player = vars.get("player") ?? 1; + const size = square.width; + const padding = size * PADDING; + Cell.mark = player === 1 ? "X" : "O"; + + if (Cell.mark === "O") { + const disc = registry.spawnEntity(); + registry.addComponent(disc, new Position2D(place.x + size / 2, place.y + size / 2)); + registry.addComponent(disc, new DrawableCircle2D(size / 2 - padding, "#c084fc")); + registry.addComponent(disc, new Marker()); + registry.addComponent(disc, new DrawOrder2D(3)); + } else { + // Two bars along the diagonals, turned around their top-left corner: each one starts + // half its thickness aside, so that it is centered on its diagonal. + const length = (size - padding * 2) * Math.SQRT2; + const shift = (BAR / 2) * Math.SQRT1_2; + const bars = [ + { x: place.x + padding + shift, y: place.y + padding - shift, rotation: 45 }, + { + x: place.x + size - padding + shift, + y: place.y + padding + shift, + rotation: 135, + }, + ]; + for (const { x, y, rotation } of bars) { + const bar = registry.spawnEntity(); + registry.addComponent(bar, new Position2D(x, y)); + registry.addComponent( + bar, + new DrawableRect2D(length, BAR, "#f87171", "", 1, rotation, BAR / 2), + ); + registry.addComponent(bar, new Marker()); + registry.addComponent(bar, new DrawOrder2D(3)); + } + } + + ctx.sound.play("marker"); + vars.set("player", player === 1 ? 2 : 1); + }); +}; diff --git a/games/tic-tac-toe/src/systems/restart-match.system.ts b/games/tic-tac-toe/src/systems/restart-match.system.ts new file mode 100644 index 0000000..bb28c66 --- /dev/null +++ b/games/tic-tac-toe/src/systems/restart-match.system.ts @@ -0,0 +1,22 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; + +import { Clickable2D } from "../components/clickable-2d.component"; +import { RestartButton } from "../components/restart-button.component"; +import { Match } from "../scenes/match.scene"; + +/** + * Starts a new match when the `RestartButton` is clicked. + * + * @system + * @side client + */ +export const restartMatch = (registry: Registry, ctx: Context) => { + registry.getZipper([RestartButton, Clickable2D]).forEach(({ Clickable2D }) => { + if (!Clickable2D.clicked) return; + // Unloading `Match` (and this popup) then loading it again gives an empty board. + void ctx.scenes.unload(ctx, Match); + void ctx.scenes.load(ctx, Match); + }); +}; diff --git a/games/tic-tac-toe/src/systems/var-text.system.ts b/games/tic-tac-toe/src/systems/var-text.system.ts new file mode 100644 index 0000000..080c15a --- /dev/null +++ b/games/tic-tac-toe/src/systems/var-text.system.ts @@ -0,0 +1,21 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs"; +import "@nanoforge-dev/scene"; + +import { DrawableText2D } from "../components/drawable-text-2d.component"; +import { VarText } from "../components/var-text.component"; + +/** + * Writes the scene var of each `VarText` into its `DrawableText2D`. + * + * @system + * @side client + */ +export const varText = (registry: Registry, ctx: Context) => { + registry.getZipper([VarText, DrawableText2D]).forEach(({ VarText, DrawableText2D }) => { + DrawableText2D.text = VarText.template.replace( + "{}", + String(ctx.scenes.vars.get(VarText.key) ?? ""), + ); + }); +}; diff --git a/tic-tac-toe/tsconfig.json b/games/tic-tac-toe/tsconfig.json similarity index 83% rename from tic-tac-toe/tsconfig.json rename to games/tic-tac-toe/tsconfig.json index 79e653f..c0ae4f2 100644 --- a/tic-tac-toe/tsconfig.json +++ b/games/tic-tac-toe/tsconfig.json @@ -5,7 +5,6 @@ // Type Checking "allowUnreachableCode": false, "allowUnusedLabels": false, - "exactOptionalPropertyTypes": true, "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noImplicitReturns": true, @@ -26,7 +25,6 @@ // Interop Constraints "allowSyntheticDefaultImports": true, - "esModuleInterop": false, "forceConsistentCasingInFileNames": true, "isolatedModules": true, @@ -34,8 +32,8 @@ "experimentalDecorators": true, "lib": ["ESNext", "esnext.disposable", "DOM"], "target": "ESNext", - "useDefineForClassFields": true, + "useDefineForClassFields": true }, - "include": ["client/**/*.ts", "server/**/*.ts"], - "exclude": ["node_modules", ".nanoforge"] + "include": ["src"], + "exclude": ["node_modules", ".nanoforge", "dist"] } diff --git a/tic-tac-toe/.dockerignore b/tic-tac-toe/.dockerignore deleted file mode 100644 index c2658d7..0000000 --- a/tic-tac-toe/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/tic-tac-toe/.gitignore b/tic-tac-toe/.gitignore deleted file mode 100644 index 0b4fc4e..0000000 --- a/tic-tac-toe/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.nanoforge/client diff --git a/tic-tac-toe/.nanoforge/client.save.json b/tic-tac-toe/.nanoforge/client.save.json deleted file mode 100644 index e97611a..0000000 --- a/tic-tac-toe/.nanoforge/client.save.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "libraries": [ - { - "id": "assetManagerLibrary", - "type": "asset-manager", - "name": "AssetManagerLibrary", - "path": "@nanoforge-dev/asset-manager", - "params": [] - }, - { - "id": "ecsLibrary", - "type": "component-system", - "name": "ECSClientLibrary", - "path": "@nanoforge-dev/ecs-client", - "params": [] - }, - { - "id": "graphicsLibrary", - "type": "graphics", - "name": "Graphics2DLibrary", - "path": "@nanoforge-dev/graphics-2d", - "params": [] - }, - { - "id": "inputLibrary", - "type": "input", - "name": "InputLibrary", - "path": "@nanoforge-dev/input", - "params": [] - }, - { - "id": "musicLibrary", - "type": "music", - "name": "MusicLibrary", - "path": "@nanoforge-dev/music", - "params": [] - }, - { - "id": "soundLibrary", - "type": "sound", - "name": "SoundLibrary", - "path": "@nanoforge-dev/sound", - "params": [] - } - ], - "components": [ - { - "name": "ExampleComponent", - "path": "./components/example.component.ts", - "paramsNames": ["paramA", "paramB", "paramC"] - } - ], - "systems": [ - { - "name": "exampleSystem", - "path": "./systems/example.system.ts" - } - ], - "entities": [ - { - "id": "exampleEntity", - "components": { - "ExampleComponent": { - "paramA": "example", - "paramB": 10 - } - } - } - ] -} diff --git a/tic-tac-toe/.prettierignore b/tic-tac-toe/.prettierignore deleted file mode 100644 index 2f0ede7..0000000 --- a/tic-tac-toe/.prettierignore +++ /dev/null @@ -1,8 +0,0 @@ -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock -bun.lock - -/node_modules -/.nanoforge diff --git a/tic-tac-toe/Dockerfile b/tic-tac-toe/Dockerfile deleted file mode 100644 index b421fa2..0000000 --- a/tic-tac-toe/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM node:26-slim - -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" -RUN npm install -g pnpm - -WORKDIR /app - -COPY package.json ./ -COPY pnpm-lock.yaml ./ - -RUN pnpm install --frozen-lockfile --allow-build=bun - -COPY . . - -RUN pnpm run build - -CMD ["pnpm", "run", "start"] diff --git a/tic-tac-toe/README.md b/tic-tac-toe/README.md deleted file mode 100644 index 53ab88e..0000000 --- a/tic-tac-toe/README.md +++ /dev/null @@ -1 +0,0 @@ -# tic-tac-toe diff --git a/tic-tac-toe/client/components/board.component.ts b/tic-tac-toe/client/components/board.component.ts deleted file mode 100644 index ca81c7d..0000000 --- a/tic-tac-toe/client/components/board.component.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { type EditorComponentManifest } from "@nanoforge-dev/ecs-client"; -import {Circle, Line, Rect} from "@nanoforge-dev/graphics-2d"; -import {layer} from "../main"; - -export enum CellState { - Empty, - X, - O -} - -export class Background { - name = this.constructor.name; - bg: Rect; - - constructor(width: number, height: number) { - this.bg = new Rect({ - x: 0, - y: 0, - width: width, - height: height, - fill: "#161625" - }); - layer.add(this.bg); - } -} - -export class Board { - name = this.constructor.name; - bg: Rect; - - constructor(x: number, y: number, size: number) { - this.bg = new Rect({ - cornerRadius: 15, - x: x, - y: y, - width: size, - height: size, - fill: "#4C2A85" - }) - layer.add(this.bg); - } -} - -export class Cell { - name = this.constructor.name; - rect: Rect; - hover: boolean = false; - pressed: boolean = false; - state: CellState = CellState.Empty; - row: number; - col: number; - x: number; - y: number; - size: number; - - constructor(row: number, col: number, x: number, y: number, size: number) { - this.rect = new Rect({ - cornerRadius: 15, - x: x, - y: y, - width: size, - height: size, - fill: "#23233A" - }); - - this.row = row; - this.col = col; - this.x = x; - this.y = y; - this.size = size; - - this.rect.on('mouseover', (e) => { - if (this.state == CellState.Empty) e.target.getStage()!.container().style.cursor = 'pointer'; - this.hover = true; - }); - - this.rect.on('mouseout', (e) => { - e.target.getStage()!.container().style.cursor = 'default'; - this.hover = false; - }); - - this.rect.on('mousedown', () => { - this.pressed = true; - }) - - this.rect.on('mouseup', () => { - this.pressed = false; - }) - - layer.add(this.rect); - } -} - -export class Marker { - name = this.constructor.name; - isOwnedByFirstPlayer: boolean; - - constructor(x: number, y: number, size: number, isOwnedByFirstPlayer: boolean = false) { - this.isOwnedByFirstPlayer = isOwnedByFirstPlayer; - - const padding = size * 0.15; - const radius = size / 2; - - if (isOwnedByFirstPlayer) { - const line1 = new Line({ - points: [ - x + padding, y + padding, - x + size - padding, y + size - padding, - ], - stroke: "#f87171", - strokeWidth: 8, - lineCap: "round" - }); - const line2 = new Line({ - points: [ - x + size - padding, y + padding, - x + padding, y + size - padding - ], - stroke: "#f87171", - strokeWidth: 8, - lineCap: "round" - }); - layer.add(line1); - layer.add(line2); - } else { - const marker = new Circle({ - x: x + radius, - y: y + radius, - radius: radius - padding, - fill: "#C084FC" - }); - layer.add(marker); - } - } -} - -// * Required to generate code -export default Board.name; \ No newline at end of file diff --git a/tic-tac-toe/client/components/game.component.ts b/tic-tac-toe/client/components/game.component.ts deleted file mode 100644 index 34ab3ed..0000000 --- a/tic-tac-toe/client/components/game.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -export class GameInfo { - name = this.constructor.name; - isFirstPlayerTurn: boolean = true; - isGameOver: boolean = false; - - constructor() { - } -} diff --git a/tic-tac-toe/client/components/ui.component.ts b/tic-tac-toe/client/components/ui.component.ts deleted file mode 100644 index 5472dc9..0000000 --- a/tic-tac-toe/client/components/ui.component.ts +++ /dev/null @@ -1,125 +0,0 @@ -import {Group, Rect, Text} from '@nanoforge-dev/graphics-2d'; -import {layer} from "../main"; - -export class TurnText { - name = this.constructor.name - text: Text; - - constructor(x: number, y: number) { - this.text = new Text({ - x, - y, - text: "Player 1's turn", - fontSize: 24, - fontStyle: "bold", - fill: "#c5b6d6", - align: "center", - }); - this.text.x(x - this.text.width() / 2); - - layer.add(this.text); - } - - update(isFirstPlayerTurn: boolean) { - this.text.text( - isFirstPlayerTurn - ? "Player 1's turn" - : "Player 2's turn", - ) - } -} - -export class EndGamePopup { - name = this.constructor.name; - overlay: Rect; - panel: Rect; - title: Text; - restartGroup: Group; - restartButton: Rect; - restartText: Text; - restartPressed: boolean = false; - - constructor(text: string) { - this.overlay = new Rect({ - x: 0, - y: 0, - width: window.innerWidth, - height: window.innerHeight, - fill: '#000000', - opacity: 0.6 - }); - - const panelWidth = 450; - const panelHeight = 250; - - this.panel = new Rect({ - x: (window.innerWidth - panelWidth) / 2, - y: (window.innerHeight - panelHeight) / 2, - width: panelWidth, - height: panelHeight, - cornerRadius: 15, - fill: "#23233A", - shadowBlur: 20, - shadowOpacity: 0.4 - }); - - this.title = new Text({ - x: this.panel.x(), - y: this.panel.y() + 40, - width: panelWidth, - align: "center", - text, - fontSize: 28, - fontStyle: "bold", - fill: "#FFFFFF", - }) - - this.restartGroup = new Group(); - - this.restartButton = new Rect({ - x: this.panel.x() + this.panel.width() / 2 - 60, - y: this.panel.y() + 160, - width: 120, - height: 60, - cornerRadius: 10, - fill: "#7644aa", - }) - - this.restartText = new Text({ - x: this.restartButton.x(), - y: this.restartButton.y(), - width: this.restartButton.width(), - height: this.restartButton.height(), - align: "center", - verticalAlign: "middle", - text: "Restart", - fontSize: 24, - fontStyle: "bold", - fill: "#FFFFFF", - }) - - this.restartGroup.add(this.restartButton); - this.restartGroup.add(this.restartText); - - this.restartGroup.on("mouseover", (e) => { - e.target.getStage()!.container().style.cursor = 'pointer'; - }) - - this.restartGroup.on("mouseout", (e) => { - e.target.getStage()!.container().style.cursor = 'default'; - }) - - this.restartGroup.on('mousedown', () => { - this.restartPressed = true; - }) - - this.restartGroup.on('mouseup', () => { - this.restartPressed = false; - }) - - layer.add(this.overlay); - layer.add(this.panel); - layer.add(this.title); - layer.add(this.restartGroup); - } -} \ No newline at end of file diff --git a/tic-tac-toe/client/main.ts b/tic-tac-toe/client/main.ts deleted file mode 100644 index 13280f0..0000000 --- a/tic-tac-toe/client/main.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { type IRunOptions } from "@nanoforge-dev/common"; -import { NanoforgeFactory } from "@nanoforge-dev/core"; - -import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager"; -import {ECSClientLibrary, Registry} from "@nanoforge-dev/ecs-client"; -import {Graphics2DLibrary, Layer} from "@nanoforge-dev/graphics-2d"; -import { InputLibrary } from "@nanoforge-dev/input"; -import { MusicLibrary } from "@nanoforge-dev/music"; -import { SoundLibrary } from "@nanoforge-dev/sound"; - -import {Background, Board, Cell} from "./components/board.component"; - -import { cellSystem } from "./systems/board.system"; -import {GameInfo} from "./components/game.component"; -import {VictorySystem} from "./systems/game.component"; -import {TurnText} from "./components/ui.component"; -import {EndGameSystem} from "./systems/ui.component"; - -export const layer = new Layer(); - -export function initializeGame(registry: Registry) { - const background = registry.spawnEntity(); - registry.addComponent(background, new Background(window.innerWidth, window.innerHeight)); - - const boardSize = 500; - createBoard(registry, - window.innerWidth / 2 - boardSize / 2, - window.innerHeight / 2 - boardSize / 2, - boardSize - ); - - const TurnTextInfo = registry.spawnEntity(); - registry.addComponent(TurnTextInfo, new TurnText( - window.innerWidth / 2, - window.innerHeight / 2 - boardSize / 2 - 75)) - - const gameInfo = registry.spawnEntity(); - registry.addComponent(gameInfo, new GameInfo()); -} - -function createBoard(registry: Registry, x: number, y: number, size: number) { - const board = registry.spawnEntity(); - registry.addComponent(board, new Board(x, y, size)); - - const padding = size * 0.1 / 4; - const caseSize = (size - padding * 4) / 3 - for (let i = 0; i < 3; i++) { - for (let j = 0; j < 3; j++) { - const newCell = registry.spawnEntity(); - registry.addComponent(newCell, new Cell( - i, j, - x + padding * (i + 1) + caseSize * i, - y + padding * (j + 1) + caseSize * j, - caseSize - )); - } - } -} - -export async function main(options: IRunOptions) { - const app = NanoforgeFactory.createClient({ tickRate: 60}); - - const assetManagerLibrary = new AssetManagerLibrary(); - const ecsLibrary = new ECSClientLibrary(); - const graphicsLibrary = new Graphics2DLibrary(); - const inputLibrary = new InputLibrary(); - const musicLibrary = new MusicLibrary(); - const soundLibrary = new SoundLibrary(); - - app.useAssetManager(assetManagerLibrary); - app.useComponentSystem(ecsLibrary); - app.useGraphics(graphicsLibrary); - app.useInput(inputLibrary); - app.use(Symbol("music"), musicLibrary); - app.useSound(soundLibrary); - - await app.init(options); - - const registry = ecsLibrary.registry; - - graphicsLibrary.stage.add(layer); - - initializeGame(registry); - - registry.addSystem(cellSystem); - registry.addSystem(VictorySystem); - registry.addSystem(EndGameSystem); - - await app.run(); -} diff --git a/tic-tac-toe/client/systems/board.system.ts b/tic-tac-toe/client/systems/board.system.ts deleted file mode 100644 index 4111d5e..0000000 --- a/tic-tac-toe/client/systems/board.system.ts +++ /dev/null @@ -1,47 +0,0 @@ -import {type EditorSystemManifest, type Registry} from "@nanoforge-dev/ecs-client"; - -import {Cell, CellState, Marker} from "../components/board.component"; -import {GameInfo} from "../components/game.component"; -import {TurnText} from "../components/ui.component"; -import {Context} from "@nanoforge-dev/common"; -import {SoundLibrary} from "@nanoforge-dev/sound"; -import {AssetManagerLibrary} from "@nanoforge-dev/asset-manager"; - -export const cellSystem = (registry: Registry, ctx: Context) => { - const cells: {Cell: Cell}[] = registry.getZipper([Cell]); - const soundLibrary = ctx.libs.getSound(); - const assetManager = ctx.libs.getAssetManager(); - const gameInfoArray: {GameInfo: GameInfo}[] = registry.getZipper([GameInfo]); - const TurnTextArray: {TurnText: TurnText}[] = registry.getZipper([TurnText]); - const gameInfo = gameInfoArray[0]; - - if (!gameInfo) {return;} - - for (const {Cell} of cells) { - if (Cell.pressed && Cell.state == CellState.Empty) { - const marker = registry.spawnEntity(); - registry.addComponent(marker, new Marker(Cell.x, Cell.y, Cell.size, gameInfo.GameInfo.isFirstPlayerTurn)); - Cell.state = gameInfo.GameInfo.isFirstPlayerTurn ? CellState.X : CellState.O; - - const file = assetManager.getAsset("marker.mp3"); - soundLibrary.load("marker", file.path); - soundLibrary.play("marker"); - - gameInfo.GameInfo.isFirstPlayerTurn = !gameInfo.GameInfo.isFirstPlayerTurn; - for (const {TurnText} of TurnTextArray) { - TurnText.update(gameInfo.GameInfo.isFirstPlayerTurn); - } - } - } -}; - -// * Required to generate code -export default cellSystem.name; - -// * Required for the editor to display the system and generate code -export const EDITOR_SYSTEM_MANIFEST: EditorSystemManifest = { - name: "Example", - description: - "This system end the game when paramB reaches 0 for any entity with ExampleComponent", - dependencies: ["ExampleComponent"], -}; diff --git a/tic-tac-toe/client/systems/game.component.ts b/tic-tac-toe/client/systems/game.component.ts deleted file mode 100644 index 375fafc..0000000 --- a/tic-tac-toe/client/systems/game.component.ts +++ /dev/null @@ -1,70 +0,0 @@ -import type {Registry} from "@nanoforge-dev/ecs-client"; -import {Cell, CellState} from "../components/board.component"; -import {GameInfo} from "../components/game.component"; -import {EndGamePopup} from "../components/ui.component"; - -export const VictorySystem = (registry: Registry) => { - const cells: {Cell: Cell}[] = registry.getZipper([Cell]); - const gameInfoArray: { GameInfo: GameInfo }[] = registry.getZipper([GameInfo]); - const gameInfo = gameInfoArray[0]; - - if (!gameInfo || gameInfo.GameInfo.isGameOver) return; - - const board: CellState[][] = [ - [CellState.Empty, CellState.Empty, CellState.Empty], - [CellState.Empty, CellState.Empty, CellState.Empty], - [CellState.Empty, CellState.Empty, CellState.Empty], - ]; - - for (const { Cell } of cells) { - board[Cell.row]![Cell.col] = Cell.state; - } - - const winningLines = [ - // Horizontal lines - [[0,0], [0,1], [0,2]], - [[1,0], [1,1], [1,2]], - [[2,0], [2,1], [2,2]], - - // Vertical Lines - [[0,0], [1,0], [2,0]], - [[0,1], [1,1], [2,1]], - [[0,2], [1,2], [2,2]], - - // Diagonal Lines - [[0,0], [1,1], [2,2]], - [[0,2], [1,1], [2,0]], - ]; - - let endGameMessage: string = ""; - - for (const line of winningLines) { - const [a, b, c] = line; - - const first = board[a![0]!]![a![1]!]; - - if ( - first !== CellState.Empty && - first === board[b![0]!]![b![1]!] && - first === board[c![0]!]![c![1]!] - ) { - gameInfo.GameInfo.isGameOver = true; - endGameMessage = `Player ${first === CellState.X ? '1' : '2'} win!` - break; - } - } - - const isDraw = board - .flat() - .every(cell => cell !== CellState.Empty); - - if (!gameInfo.GameInfo.isGameOver && isDraw) { - gameInfo.GameInfo.isGameOver = true; - endGameMessage = "It's a draw!"; - } - - if (gameInfo.GameInfo.isGameOver) { - const gameOverPopup = registry.spawnEntity(); - registry.addComponent(gameOverPopup, new EndGamePopup(endGameMessage)); - } -} \ No newline at end of file diff --git a/tic-tac-toe/client/systems/ui.component.ts b/tic-tac-toe/client/systems/ui.component.ts deleted file mode 100644 index 7271557..0000000 --- a/tic-tac-toe/client/systems/ui.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type {Registry} from "@nanoforge-dev/ecs-client"; -import {EndGamePopup} from "../components/ui.component"; -import {initializeGame} from "../main"; - -export const EndGameSystem = (registry: Registry) => { - const EndGamePopups: {EndGamePopup: EndGamePopup}[] = registry.getZipper([EndGamePopup]); - const popup = EndGamePopups[0]; - - if (!popup) { - return; - } - - if (popup.EndGamePopup.restartPressed) { - registry.clearEntities(); - initializeGame(registry); - } -} \ No newline at end of file diff --git a/tic-tac-toe/eslint.config.js b/tic-tac-toe/eslint.config.js deleted file mode 100644 index 2f3639d..0000000 --- a/tic-tac-toe/eslint.config.js +++ /dev/null @@ -1,15 +0,0 @@ -import pluginJs from "@eslint/js"; -import eslintConfigPrettier from "eslint-config-prettier"; -import globals from "globals"; -import tseslint from "typescript-eslint"; - -export default [ - { files: ["{client,server}/**/*.{ts}"] }, - { languageOptions: { globals: globals.node } }, - - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - ...tseslint.configs.strict, - eslintConfigPrettier, - { ignores: ["**/*.js", "**/*.d.ts"] }, -]; diff --git a/tic-tac-toe/nanoforge.config.json b/tic-tac-toe/nanoforge.config.json deleted file mode 100644 index 556df89..0000000 --- a/tic-tac-toe/nanoforge.config.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "tic-tac-toe", - "language": "ts", - "initFunctions": false, - "client": { - "enable": true, - "build": { - "entryFile": "client/main.ts", - "outDir": ".nanoforge/client" - }, - "runtime": { - "dir": ".nanoforge/client" - } - }, - "server": { - "enable": false - } -} \ No newline at end of file diff --git a/tic-tac-toe/package.json b/tic-tac-toe/package.json deleted file mode 100644 index ae7e91a..0000000 --- a/tic-tac-toe/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "tic-tac-toe", - "version": "0.0.0", - "description": "", - "author": "", - "scripts": { - "build": "nf build", - "start": "nf start", - "lint": "prettier --check . && eslint --format=pretty \"{client,server}/**/*.ts\"", - "format": "prettier --write . && eslint --fix --format=pretty \"{client,server}/**/*.ts\"" - }, - "devDependencies": { - "@eslint/js": "^9.39.0", - "@nanoforge-dev/cli": "1.6.0", - "@nanoforge-dev/asset-manager": "^1", - "@nanoforge-dev/common": "^1", - "@nanoforge-dev/config": "^1", - "@nanoforge-dev/core": "^1", - "@nanoforge-dev/ecs-client": "^1", - "@nanoforge-dev/graphics-2d": "^1", - "@nanoforge-dev/input": "^1", - "@nanoforge-dev/music": "^1", - "@nanoforge-dev/sound": "^1", - "@typescript-eslint/eslint-plugin": "^8.46.2", - "@typescript-eslint/parser": "^8.46.2", - "eslint": "^9.39.0", - "eslint-config-prettier": "^10.1.8", - "eslint-plugin-prettier": "^5.5.4", - "globals": "^16.5.0", - "lint-staged": "^16.2.6", - "prettier": "^3.6.2", - "typescript": "^5.9.3", - "typescript-eslint": "^8.46.2" - }, - "lint-staged": { - "**/*.ts": [ - "prettier --write" - ], - "{client,server}/**/*.ts": [ - "eslint --fix" - ] - }, - "pnpm": { - "neverBuiltDependencies": [] - }, - "private": true -} diff --git a/tic-tac-toe/pnpm-lock.yaml b/tic-tac-toe/pnpm-lock.yaml deleted file mode 100644 index 6b78b15..0000000 --- a/tic-tac-toe/pnpm-lock.yaml +++ /dev/null @@ -1,1409 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - devDependencies: - '@eslint/js': - specifier: ^9.39.0 - version: 9.39.4 - '@nanoforge-dev/asset-manager': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/common': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/config': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/core': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/ecs-client': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/graphics-2d': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/input': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/music': - specifier: ^1 - version: 1.3.1 - '@nanoforge-dev/sound': - specifier: ^1 - version: 1.3.1 - '@typescript-eslint/eslint-plugin': - specifier: ^8.46.2 - version: 8.62.0(@typescript-eslint/parser@8.62.0(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/parser': - specifier: ^8.46.2 - version: 8.62.0(eslint@9.39.4)(typescript@5.9.3) - eslint: - specifier: ^9.39.0 - version: 9.39.4 - eslint-config-prettier: - specifier: ^10.1.8 - version: 10.1.8(eslint@9.39.4) - eslint-plugin-prettier: - specifier: ^5.5.4 - version: 5.5.6(eslint-config-prettier@10.1.8(eslint@9.39.4))(eslint@9.39.4)(prettier@3.9.3) - globals: - specifier: ^16.5.0 - version: 16.5.0 - lint-staged: - specifier: ^16.2.6 - version: 16.4.0 - prettier: - specifier: ^3.6.2 - version: 3.9.3 - typescript: - specifier: ^5.9.3 - version: 5.9.3 - typescript-eslint: - specifier: ^8.46.2 - version: 8.62.0(eslint@9.39.4)(typescript@5.9.3) - -packages: - - '@eslint-community/eslint-utils@4.9.1': - resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - - '@eslint-community/regexpp@4.12.2': - resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint/config-array@0.21.2': - resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/eslintrc@3.3.5': - resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/js@9.39.4': - resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@humanfs/core@0.19.2': - resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} - engines: {node: '>=18.18.0'} - - '@humanfs/node@0.16.8': - resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==} - engines: {node: '>=18.18.0'} - - '@humanfs/types@0.15.0': - resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==} - engines: {node: '>=18.18.0'} - - '@humanwhocodes/module-importer@1.0.1': - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - - '@humanwhocodes/retry@0.4.3': - resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} - engines: {node: '>=18.18'} - - '@nanoforge-dev/asset-manager@1.3.1': - resolution: {integrity: sha512-qYgFfgYanjkUit73a4B+td2lDHo18TEWQUJDkUndCM1txlwyCm9gCNbvg9fMC1ArbxGfGfFWqJYw7TE1FkjPxQ==} - engines: {node: '25'} - - '@nanoforge-dev/common@1.3.1': - resolution: {integrity: sha512-Nl+kzkdYiiw9hml9O9CsQd6S3VcOr8L9hLzamqXti8+xgYUqblsPJMq+w0vThOA/LinenX0QuuxYrVTkNZflvw==} - engines: {node: '25'} - - '@nanoforge-dev/config@1.3.1': - resolution: {integrity: sha512-mYsLsbu9q+c0Z3Lhm8HSc3FYYsd29Sl1k6Y/d9jfJ+wbmfljdgRKFUW19fhFcwxkTe33NBcvwejyrEFvGU6WTA==} - engines: {node: '25'} - - '@nanoforge-dev/core@1.3.1': - resolution: {integrity: sha512-1PjzEH9qASSmkfYOczDMZWBD6/yr1LMwRyq20tsN+bMGQsiH64VYS0tAvi6jWKSPy/xMg6Inj3MEeZendUXgAg==} - engines: {node: '25'} - - '@nanoforge-dev/ecs-client@1.3.1': - resolution: {integrity: sha512-YOO4tOW11+c9xP2lw0BkzpdFLb4vWletYJpvlKXoA3DnsluQ7lpQiX63F1P6ad6sOHQKXUwcdi47L5exjXHTaA==} - engines: {node: '25'} - - '@nanoforge-dev/ecs-lib@1.3.1': - resolution: {integrity: sha512-js4VQOri4S6w1Fh1Lk2O5ruxciP/QZCPppOx6YnF/VqgjYgn1GgHfqcxiBE9NxJT4SDi5O8KS4kd65Pj/0oc0A==} - engines: {node: '25'} - - '@nanoforge-dev/graphics-2d@1.3.1': - resolution: {integrity: sha512-FZKxNtYSYhMbqKK9ukJBbioEg0aJ9/40HEZxYfxdBMIoWfEF3LjaCkIi6kDYtvSAEvMJdB6nAfLKIOW6uRknCA==} - engines: {node: '25'} - - '@nanoforge-dev/input@1.3.1': - resolution: {integrity: sha512-cOOM9DXTDy4hi63p8fnRm/2xBHfBDC0ldBZSuVt1E86f7Zx3SaC/XcnLdD4Hx5mjjUhUZTUwhvwO9q2XJ9BFcQ==} - engines: {node: '25'} - - '@nanoforge-dev/music@1.3.1': - resolution: {integrity: sha512-/0Wxi6V98dBDXsG5s3SfWdvGR3tAE35KhxSAHB7D+H/MibyMecvC6Hr5L/nlkfNzh1ee1VHFT24PjP5Cgi5Klw==} - engines: {node: '25'} - - '@nanoforge-dev/sound@1.3.1': - resolution: {integrity: sha512-28aQD/1OygIlcawQkKRACWZRN9H4oYlRQ97qN1Ddhb8k9qFfItMO8pIMX8MTl85pK/hNvNAlRvIrWS5CffcOzw==} - engines: {node: '25'} - - '@pkgr/core@0.3.6': - resolution: {integrity: sha512-SEeaJLb3qBNF/OaXnaR1NmmBbFYk1zC0ZH/52fATcRPLFg/p791YrcyFFy44Bo9sLaGuSuLp5Q6axbb/O+v/RA==} - engines: {node: ^14.18.0 || >=16.0.0} - - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - - '@types/validator@13.15.10': - resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} - - '@typescript-eslint/eslint-plugin@8.62.0': - resolution: {integrity: sha512-o+mpz7EYiMzXoySXiKmzlabIvTVqUuK5yLrAedRPRDA0IpPFMUV1IXt6OqljIxX/kumN6EjUYp41Hqelh6p/Dw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/parser': ^8.62.0 - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/parser@8.62.0': - resolution: {integrity: sha512-dzHeT2gySzZtLDsuqxU9AkYgIsQoHAHtRBpOqM+Ofzx1Bwrd2RcCjQJ+6iQbsHOIR6NS33bF2W1k3blN1zLDrA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/project-service@8.62.0': - resolution: {integrity: sha512-wexnCqiTg7BOGtbLDftYpRWlmLq4xfoMd7BKFR6Y75sZS3QmRKLdN3yWLhmIYgqMmP/OXWpj3H8odkb5nGURCQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/scope-manager@8.62.0': - resolution: {integrity: sha512-1lX38kNxXIRb8mEc3lbq5mdHq1Pf2+U0nFU65KfT18mtPxxl0fvjuEE92mHuXPuCtElJhOrddOpyMlM3Z0umEA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/tsconfig-utils@8.62.0': - resolution: {integrity: sha512-y2GAdB6ykaXUvuspbYnizQc4oDDz0Tz/Yc7iWrXf9mx8vm/L/0vLHCe0tS2boG96Zy+DivnVDQ9ZUEWoHqqx1g==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/type-utils@8.62.0': - resolution: {integrity: sha512-+g5O3j0w2ldzC86Pv6fvbO/xhAonbJFIdf/MKQ1d30gndlsVzUOE83ldfSE15Qrl9fhFjK6AovHs5Wpp6vx86w==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/types@8.62.0': - resolution: {integrity: sha512-KvAclkktORPvM54TgLgA4z9HIV1M8zOgw9ZVNXl9f/8dLYfXYX1wkMXP7qmabpijQRV5bHJLOmoyGQbLMaUYeg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@typescript-eslint/typescript-estree@8.62.0': - resolution: {integrity: sha512-+hVbNxtW64pIcZWDPGbyaKF7vp2IBTVY5ma1blwwksrjdsbdqqEKvJWMGbBofei4F6Dovx1M0RJgoFeNu2279A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/utils@8.62.0': - resolution: {integrity: sha512-82r66fi9zYwZ+mTq3vKgwjbZ1PVk/DJzrXFLpG6RnBbdvH8TEGVHIs9H4d2drhkOzf0syZuD/OZvvlu6GDbP4g==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - '@typescript-eslint/visitor-keys@8.62.0': - resolution: {integrity: sha512-CY3uyFSRbcQv3nnSv8S0+lDftMVz6P963PoRlxrV7ew/Md564g9ut60PYzdLM5qW4jFn93GBF+Soi90ISAN+GQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - acorn-jsx@5.3.2: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - - acorn@8.17.0: - resolution: {integrity: sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==} - engines: {node: '>=0.4.0'} - hasBin: true - - ajv@6.15.0: - resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} - - ansi-escapes@7.3.0: - resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==} - engines: {node: '>=18'} - - ansi-regex@6.2.2: - resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} - engines: {node: '>=12'} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - - ansi-styles@6.2.3: - resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} - engines: {node: '>=12'} - - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - balanced-match@4.0.4: - resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} - engines: {node: 18 || 20 || >=22} - - brace-expansion@1.1.15: - resolution: {integrity: sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==} - - brace-expansion@5.0.7: - resolution: {integrity: sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==} - engines: {node: 18 || 20 || >=22} - - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - - class-transformer@0.5.1: - resolution: {integrity: sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==} - - class-validator@0.14.4: - resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} - - cli-cursor@5.0.0: - resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} - engines: {node: '>=18'} - - cli-truncate@5.2.0: - resolution: {integrity: sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==} - engines: {node: '>=20'} - - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - - commander@14.0.3: - resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} - engines: {node: '>=20'} - - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - - debug@4.4.3: - resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - - emoji-regex@10.6.0: - resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} - - environment@1.1.0: - resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} - engines: {node: '>=18'} - - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - - eslint-config-prettier@10.1.8: - resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - - eslint-plugin-prettier@5.5.6: - resolution: {integrity: sha512-ifetmTcxWfz+4qRW3pH/ujdTq2jQIj59AxJMIN26K5avYgU8dxycUETQonWiW+wPrYXA0j3Try0l1CnwVQtDqQ==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - '@types/eslint': '>=8.0.0' - eslint: '>=8.0.0' - eslint-config-prettier: '>= 7.0.0 <10.0.0 || >=10.1.0' - prettier: '>=3.0.0' - peerDependenciesMeta: - '@types/eslint': - optional: true - eslint-config-prettier: - optional: true - - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@5.0.1: - resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} - engines: {node: ^20.19.0 || ^22.13.0 || >=24} - - eslint@9.39.4: - resolution: {integrity: sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - hasBin: true - peerDependencies: - jiti: '*' - peerDependenciesMeta: - jiti: - optional: true - - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - esquery@1.7.0: - resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} - engines: {node: '>=0.10'} - - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - - esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - - eventemitter3@5.0.4: - resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} - - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-diff@1.3.0: - resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - - fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - - fdir@6.5.0: - resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} - engines: {node: '>=12.0.0'} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} - - flatted@3.4.2: - resolution: {integrity: sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==} - - get-east-asian-width@1.6.0: - resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==} - engines: {node: '>=18'} - - glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - - globals@16.5.0: - resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==} - engines: {node: '>=18'} - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - - ignore@7.0.5: - resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} - engines: {node: '>= 4'} - - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - - imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-fullwidth-code-point@5.1.0: - resolution: {integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==} - engines: {node: '>=18'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - - js-yaml@4.3.0: - resolution: {integrity: sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - - json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - - konva@10.3.0: - resolution: {integrity: sha512-gt19K2gzY4lHbnkvsku7eSmB+A9PTS2jG4F9coBMsdjM1UKfJNxJbDbXVpeCW1wjEGRwBD3nBamcHnqJhAeKlg==} - - levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - - libphonenumber-js@1.13.7: - resolution: {integrity: sha512-rvr3HIMdOgzhz1RFGjftji+wjoAFlzhqCNqJOU/MKTZQ8d9NZxAR/tI+0weDicyoucqVR0U1GCniqHJ0f8aM2A==} - - lint-staged@16.4.0: - resolution: {integrity: sha512-lBWt8hujh/Cjysw5GYVmZpFHXDCgZzhrOm8vbcUdobADZNOK/bRshr2kM3DfgrrtR1DQhfupW9gnIXOfiFi+bw==} - engines: {node: '>=20.17'} - hasBin: true - - listr2@9.0.5: - resolution: {integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==} - engines: {node: '>=20.0.0'} - - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - - log-update@6.1.0: - resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==} - engines: {node: '>=18'} - - mimic-function@5.0.1: - resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} - engines: {node: '>=18'} - - minimatch@10.2.5: - resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} - engines: {node: 18 || 20 || >=22} - - minimatch@3.1.5: - resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} - - ms@2.1.3: - resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - - natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - - onetime@7.0.0: - resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} - engines: {node: '>=18'} - - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} - - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - - picomatch@4.0.4: - resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} - engines: {node: '>=12'} - - prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - - prettier-linter-helpers@1.0.1: - resolution: {integrity: sha512-SxToR7P8Y2lWmv/kTzVLC1t/GDI2WGjMwNhLLE9qtH8Q13C+aEmuRlzDst4Up4s0Wc8sF2M+J57iB3cMLqftfg==} - engines: {node: '>=6.0.0'} - - prettier@3.9.3: - resolution: {integrity: sha512-HWmu+K+zvHNpaMfSnYeqdqrDbR16cuIXaPx8WoHaviQkDJh1/0BNtOZmHVQI5jc3wXv0H1yXc9wjvFdXh+n3hQ==} - engines: {node: '>=14'} - hasBin: true - - punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - - restore-cursor@5.1.0: - resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} - engines: {node: '>=18'} - - rfdc@1.4.1: - resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} - - semver@7.8.5: - resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} - engines: {node: '>=10'} - hasBin: true - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - - signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - - slice-ansi@7.1.2: - resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==} - engines: {node: '>=18'} - - slice-ansi@8.0.0: - resolution: {integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==} - engines: {node: '>=20'} - - string-argv@0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - - string-width@7.2.0: - resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} - engines: {node: '>=18'} - - string-width@8.2.1: - resolution: {integrity: sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==} - engines: {node: '>=20'} - - strip-ansi@7.2.0: - resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} - engines: {node: '>=12'} - - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - - synckit@0.11.13: - resolution: {integrity: sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==} - engines: {node: ^14.18.0 || >=16.0.0} - - tinyexec@1.2.4: - resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} - engines: {node: '>=18'} - - tinyglobby@0.2.17: - resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} - engines: {node: '>=12.0.0'} - - ts-api-utils@2.5.0: - resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} - engines: {node: '>=18.12'} - peerDependencies: - typescript: '>=4.8.4' - - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - - typescript-eslint@8.62.0: - resolution: {integrity: sha512-8QxXi+ZACKX0kaqO4gY8kn0RSD9gFfaHDWwjqtEN48aWCBkX4MJaufWN+c3BzlrXLOxfywDL8CaoqUwcRq4j4Q==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} - engines: {node: '>=14.17'} - hasBin: true - - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - - validator@13.15.35: - resolution: {integrity: sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==} - engines: {node: '>= 0.10'} - - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - - wrap-ansi@9.0.2: - resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==} - engines: {node: '>=18'} - - yaml@2.9.0: - resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} - engines: {node: '>= 14.6'} - hasBin: true - - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - -snapshots: - - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.4)': - dependencies: - eslint: 9.39.4 - eslint-visitor-keys: 3.4.3 - - '@eslint-community/regexpp@4.12.2': {} - - '@eslint/config-array@0.21.2': - dependencies: - '@eslint/object-schema': 2.1.7 - debug: 4.4.3 - minimatch: 3.1.5 - transitivePeerDependencies: - - supports-color - - '@eslint/config-helpers@0.4.2': - dependencies: - '@eslint/core': 0.17.0 - - '@eslint/core@0.17.0': - dependencies: - '@types/json-schema': 7.0.15 - - '@eslint/eslintrc@3.3.5': - dependencies: - ajv: 6.15.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.3.0 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@9.39.4': {} - - '@eslint/object-schema@2.1.7': {} - - '@eslint/plugin-kit@0.4.1': - dependencies: - '@eslint/core': 0.17.0 - levn: 0.4.1 - - '@humanfs/core@0.19.2': - dependencies: - '@humanfs/types': 0.15.0 - - '@humanfs/node@0.16.8': - dependencies: - '@humanfs/core': 0.19.2 - '@humanfs/types': 0.15.0 - '@humanwhocodes/retry': 0.4.3 - - '@humanfs/types@0.15.0': {} - - '@humanwhocodes/module-importer@1.0.1': {} - - '@humanwhocodes/retry@0.4.3': {} - - '@nanoforge-dev/asset-manager@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - - '@nanoforge-dev/common@1.3.1': {} - - '@nanoforge-dev/config@1.3.1': - dependencies: - class-transformer: 0.5.1 - class-validator: 0.14.4 - - '@nanoforge-dev/core@1.3.1': - dependencies: - '@nanoforge-dev/asset-manager': 1.3.1 - '@nanoforge-dev/common': 1.3.1 - '@nanoforge-dev/input': 1.3.1 - class-transformer: 0.5.1 - class-validator: 0.14.4 - - '@nanoforge-dev/ecs-client@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - '@nanoforge-dev/ecs-lib': 1.3.1 - - '@nanoforge-dev/ecs-lib@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - - '@nanoforge-dev/graphics-2d@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - konva: 10.3.0 - - '@nanoforge-dev/input@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - - '@nanoforge-dev/music@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - - '@nanoforge-dev/sound@1.3.1': - dependencies: - '@nanoforge-dev/common': 1.3.1 - - '@pkgr/core@0.3.6': {} - - '@types/estree@1.0.9': {} - - '@types/json-schema@7.0.15': {} - - '@types/validator@13.15.10': {} - - '@typescript-eslint/eslint-plugin@8.62.0(@typescript-eslint/parser@8.62.0(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.62.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/scope-manager': 8.62.0 - '@typescript-eslint/type-utils': 8.62.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/utils': 8.62.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.62.0 - eslint: 9.39.4 - ignore: 7.0.5 - natural-compare: 1.4.0 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/parser@8.62.0(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@typescript-eslint/scope-manager': 8.62.0 - '@typescript-eslint/types': 8.62.0 - '@typescript-eslint/typescript-estree': 8.62.0(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.62.0 - debug: 4.4.3 - eslint: 9.39.4 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/project-service@8.62.0(typescript@5.9.3)': - dependencies: - '@typescript-eslint/tsconfig-utils': 8.62.0(typescript@5.9.3) - '@typescript-eslint/types': 8.62.0 - debug: 4.4.3 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/scope-manager@8.62.0': - dependencies: - '@typescript-eslint/types': 8.62.0 - '@typescript-eslint/visitor-keys': 8.62.0 - - '@typescript-eslint/tsconfig-utils@8.62.0(typescript@5.9.3)': - dependencies: - typescript: 5.9.3 - - '@typescript-eslint/type-utils@8.62.0(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@typescript-eslint/types': 8.62.0 - '@typescript-eslint/typescript-estree': 8.62.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.62.0(eslint@9.39.4)(typescript@5.9.3) - debug: 4.4.3 - eslint: 9.39.4 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/types@8.62.0': {} - - '@typescript-eslint/typescript-estree@8.62.0(typescript@5.9.3)': - dependencies: - '@typescript-eslint/project-service': 8.62.0(typescript@5.9.3) - '@typescript-eslint/tsconfig-utils': 8.62.0(typescript@5.9.3) - '@typescript-eslint/types': 8.62.0 - '@typescript-eslint/visitor-keys': 8.62.0 - debug: 4.4.3 - minimatch: 10.2.5 - semver: 7.8.5 - tinyglobby: 0.2.17 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/utils@8.62.0(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) - '@typescript-eslint/scope-manager': 8.62.0 - '@typescript-eslint/types': 8.62.0 - '@typescript-eslint/typescript-estree': 8.62.0(typescript@5.9.3) - eslint: 9.39.4 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - '@typescript-eslint/visitor-keys@8.62.0': - dependencies: - '@typescript-eslint/types': 8.62.0 - eslint-visitor-keys: 5.0.1 - - acorn-jsx@5.3.2(acorn@8.17.0): - dependencies: - acorn: 8.17.0 - - acorn@8.17.0: {} - - ajv@6.15.0: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - - ansi-escapes@7.3.0: - dependencies: - environment: 1.1.0 - - ansi-regex@6.2.2: {} - - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - - ansi-styles@6.2.3: {} - - argparse@2.0.1: {} - - balanced-match@1.0.2: {} - - balanced-match@4.0.4: {} - - brace-expansion@1.1.15: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - - brace-expansion@5.0.7: - dependencies: - balanced-match: 4.0.4 - - callsites@3.1.0: {} - - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - - class-transformer@0.5.1: {} - - class-validator@0.14.4: - dependencies: - '@types/validator': 13.15.10 - libphonenumber-js: 1.13.7 - validator: 13.15.35 - - cli-cursor@5.0.0: - dependencies: - restore-cursor: 5.1.0 - - cli-truncate@5.2.0: - dependencies: - slice-ansi: 8.0.0 - string-width: 8.2.1 - - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - - colorette@2.0.20: {} - - commander@14.0.3: {} - - concat-map@0.0.1: {} - - cross-spawn@7.0.6: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - - debug@4.4.3: - dependencies: - ms: 2.1.3 - - deep-is@0.1.4: {} - - emoji-regex@10.6.0: {} - - environment@1.1.0: {} - - escape-string-regexp@4.0.0: {} - - eslint-config-prettier@10.1.8(eslint@9.39.4): - dependencies: - eslint: 9.39.4 - - eslint-plugin-prettier@5.5.6(eslint-config-prettier@10.1.8(eslint@9.39.4))(eslint@9.39.4)(prettier@3.9.3): - dependencies: - eslint: 9.39.4 - prettier: 3.9.3 - prettier-linter-helpers: 1.0.1 - synckit: 0.11.13 - optionalDependencies: - eslint-config-prettier: 10.1.8(eslint@9.39.4) - - eslint-scope@8.4.0: - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - - eslint-visitor-keys@3.4.3: {} - - eslint-visitor-keys@4.2.1: {} - - eslint-visitor-keys@5.0.1: {} - - eslint@9.39.4: - dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) - '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.5 - '@eslint/js': 9.39.4 - '@eslint/plugin-kit': 0.4.1 - '@humanfs/node': 0.16.8 - '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.4.3 - '@types/estree': 1.0.9 - ajv: 6.15.0 - chalk: 4.1.2 - cross-spawn: 7.0.6 - debug: 4.4.3 - escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 - esquery: 1.7.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 - find-up: 5.0.0 - glob-parent: 6.0.2 - ignore: 5.3.2 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.5 - natural-compare: 1.4.0 - optionator: 0.9.4 - transitivePeerDependencies: - - supports-color - - espree@10.4.0: - dependencies: - acorn: 8.17.0 - acorn-jsx: 5.3.2(acorn@8.17.0) - eslint-visitor-keys: 4.2.1 - - esquery@1.7.0: - dependencies: - estraverse: 5.3.0 - - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@5.3.0: {} - - esutils@2.0.3: {} - - eventemitter3@5.0.4: {} - - fast-deep-equal@3.1.3: {} - - fast-diff@1.3.0: {} - - fast-json-stable-stringify@2.1.0: {} - - fast-levenshtein@2.0.6: {} - - fdir@6.5.0(picomatch@4.0.4): - optionalDependencies: - picomatch: 4.0.4 - - file-entry-cache@8.0.0: - dependencies: - flat-cache: 4.0.1 - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - - flat-cache@4.0.1: - dependencies: - flatted: 3.4.2 - keyv: 4.5.4 - - flatted@3.4.2: {} - - get-east-asian-width@1.6.0: {} - - glob-parent@6.0.2: - dependencies: - is-glob: 4.0.3 - - globals@14.0.0: {} - - globals@16.5.0: {} - - has-flag@4.0.0: {} - - ignore@5.3.2: {} - - ignore@7.0.5: {} - - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - - imurmurhash@0.1.4: {} - - is-extglob@2.1.1: {} - - is-fullwidth-code-point@5.1.0: - dependencies: - get-east-asian-width: 1.6.0 - - is-glob@4.0.3: - dependencies: - is-extglob: 2.1.1 - - isexe@2.0.0: {} - - js-yaml@4.3.0: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - - json-schema-traverse@0.4.1: {} - - json-stable-stringify-without-jsonify@1.0.1: {} - - keyv@4.5.4: - dependencies: - json-buffer: 3.0.1 - - konva@10.3.0: {} - - levn@0.4.1: - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - - libphonenumber-js@1.13.7: {} - - lint-staged@16.4.0: - dependencies: - commander: 14.0.3 - listr2: 9.0.5 - picomatch: 4.0.4 - string-argv: 0.3.2 - tinyexec: 1.2.4 - yaml: 2.9.0 - - listr2@9.0.5: - dependencies: - cli-truncate: 5.2.0 - colorette: 2.0.20 - eventemitter3: 5.0.4 - log-update: 6.1.0 - rfdc: 1.4.1 - wrap-ansi: 9.0.2 - - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.merge@4.6.2: {} - - log-update@6.1.0: - dependencies: - ansi-escapes: 7.3.0 - cli-cursor: 5.0.0 - slice-ansi: 7.1.2 - strip-ansi: 7.2.0 - wrap-ansi: 9.0.2 - - mimic-function@5.0.1: {} - - minimatch@10.2.5: - dependencies: - brace-expansion: 5.0.7 - - minimatch@3.1.5: - dependencies: - brace-expansion: 1.1.15 - - ms@2.1.3: {} - - natural-compare@1.4.0: {} - - onetime@7.0.0: - dependencies: - mimic-function: 5.0.1 - - optionator@0.9.4: - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 - - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - - path-exists@4.0.0: {} - - path-key@3.1.1: {} - - picomatch@4.0.4: {} - - prelude-ls@1.2.1: {} - - prettier-linter-helpers@1.0.1: - dependencies: - fast-diff: 1.3.0 - - prettier@3.9.3: {} - - punycode@2.3.1: {} - - resolve-from@4.0.0: {} - - restore-cursor@5.1.0: - dependencies: - onetime: 7.0.0 - signal-exit: 4.1.0 - - rfdc@1.4.1: {} - - semver@7.8.5: {} - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - - signal-exit@4.1.0: {} - - slice-ansi@7.1.2: - dependencies: - ansi-styles: 6.2.3 - is-fullwidth-code-point: 5.1.0 - - slice-ansi@8.0.0: - dependencies: - ansi-styles: 6.2.3 - is-fullwidth-code-point: 5.1.0 - - string-argv@0.3.2: {} - - string-width@7.2.0: - dependencies: - emoji-regex: 10.6.0 - get-east-asian-width: 1.6.0 - strip-ansi: 7.2.0 - - string-width@8.2.1: - dependencies: - get-east-asian-width: 1.6.0 - strip-ansi: 7.2.0 - - strip-ansi@7.2.0: - dependencies: - ansi-regex: 6.2.2 - - strip-json-comments@3.1.1: {} - - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - - synckit@0.11.13: - dependencies: - '@pkgr/core': 0.3.6 - - tinyexec@1.2.4: {} - - tinyglobby@0.2.17: - dependencies: - fdir: 6.5.0(picomatch@4.0.4) - picomatch: 4.0.4 - - ts-api-utils@2.5.0(typescript@5.9.3): - dependencies: - typescript: 5.9.3 - - type-check@0.4.0: - dependencies: - prelude-ls: 1.2.1 - - typescript-eslint@8.62.0(eslint@9.39.4)(typescript@5.9.3): - dependencies: - '@typescript-eslint/eslint-plugin': 8.62.0(@typescript-eslint/parser@8.62.0(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/parser': 8.62.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/typescript-estree': 8.62.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.62.0(eslint@9.39.4)(typescript@5.9.3) - eslint: 9.39.4 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - typescript@5.9.3: {} - - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - - validator@13.15.35: {} - - which@2.0.2: - dependencies: - isexe: 2.0.0 - - word-wrap@1.2.5: {} - - wrap-ansi@9.0.2: - dependencies: - ansi-styles: 6.2.3 - string-width: 7.2.0 - strip-ansi: 7.2.0 - - yaml@2.9.0: {} - - yocto-queue@0.1.0: {} diff --git a/tic-tac-toe/prettier.config.js b/tic-tac-toe/prettier.config.js deleted file mode 100644 index 8e5015d..0000000 --- a/tic-tac-toe/prettier.config.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - useTabs: false, - singleQuote: false, - trailingComma: "all", - printWidth: 100, -}; From 110fb2e6532bffac97e934c8447e8c9390ea90ef Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:39:30 +0100 Subject: [PATCH 17/53] chore: ignore only the root copies of the old games in prettier --- .prettierignore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.prettierignore b/.prettierignore index bc6752a..5a1e024 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,8 +4,8 @@ dist/ .nanoforge/ nf_modules/ # Old layout, until each game is remade (each remake removes its line) -flappy-bird/ -pong-network/ -raid-survival/ -tic-tac-toe/ -.idea/ +/flappy-bird/ +/pong-network/ +/raid-survival/ +/tic-tac-toe/ +/.idea/ From 68721da6e7a071c771d54980369e0063fde806b5 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:39:47 +0100 Subject: [PATCH 18/53] fix(raid-survival): check the vectors and the keys of the input messages --- .../apps/server/src/handlers/input.handler.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/games/raid-survival/apps/server/src/handlers/input.handler.ts b/games/raid-survival/apps/server/src/handlers/input.handler.ts index 9edb7dc..86b7e26 100644 --- a/games/raid-survival/apps/server/src/handlers/input.handler.ts +++ b/games/raid-survival/apps/server/src/handlers/input.handler.ts @@ -32,7 +32,11 @@ export const inputHandler = ( // A client still in the lobby (not yet spawned into a game) has none of these components. if (!velocity || !position || !direction || !moveInput || !shootInput || !reviveInput) return; - if (packet.direction) { + if ( + packet.direction && + Number.isFinite(packet.direction.x) && + Number.isFinite(packet.direction.y) + ) { direction.x = packet.direction.x; direction.y = packet.direction.y; broadcast(ctx, { @@ -43,7 +47,7 @@ export const inputHandler = ( } // Just records held-key intent - move-input.system.ts recomputes Velocity2D from this every tick. - if (packet.moveKeys) { + if (Array.isArray(packet.moveKeys)) { moveInput.up = packet.moveKeys.includes("up"); moveInput.down = packet.moveKeys.includes("down"); moveInput.left = packet.moveKeys.includes("left"); @@ -55,8 +59,8 @@ export const inputHandler = ( } if ( packet.mousePosition && - typeof packet.mousePosition.x === "number" && - typeof packet.mousePosition.y === "number" + Number.isFinite(packet.mousePosition.x) && + Number.isFinite(packet.mousePosition.y) ) { shootInput.mousePosition = { x: packet.mousePosition.x, y: packet.mousePosition.y }; } From f039da8a42a4f92484dcd93db86f679450b698b9 Mon Sep 17 00:00:00 2001 From: Exelo Date: Fri, 13 Nov 2026 20:39:47 +0100 Subject: [PATCH 19/53] feat(raid-survival): port the client to engine 3 with menu, game and game over scenes --- games/raid-survival/.env.example | 6 +- .../apps/client/assets}/AK-Reload.png | Bin .../apps/client/assets}/AK-Shot.png | Bin .../assets}/Character-Becca-Idle-Shot.png | Bin .../client/assets}/Character-Becca-Idle.png | Bin .../client/assets}/Character-Becca-Run.png | Bin .../assets}/Character-Joe-Idle-Shot.png | Bin .../client/assets}/Character-Joe-Idle.png | Bin .../apps/client/assets}/Character-Joe-Run.png | Bin .../assets}/Character-Unknow-Idle-shot.png | Bin .../client/assets}/Character-Unknow-Idle.png | Bin .../client/assets}/Character-Unknow-Run.png | Bin .../apps/client/assets}/GZ2-Zombie-Heavy.png | Bin .../client/assets}/GZ2-Zombie-Puncher.png | Bin .../apps/client/assets}/Shotgun-Reload.png | Bin .../apps/client/assets}/Shotgun-Shot.png | Bin .../apps/client/assets}/Uzi-Reload.png | Bin .../apps/client/assets}/Uzi-Shot.png | Bin .../apps/client/assets}/Zombie-Atk.png | Bin .../apps/client/assets}/Zombie-Dead.png | Bin .../apps/client/assets}/Zombie-Walk.png | Bin .../client/assets}/ak-reload-animations.txt | 0 .../client/assets}/ak-shot-animations.txt | 0 .../apps/client/assets}/buildings.png | Bin .../apps/client/assets}/bullet-animations.txt | 0 .../apps/client/assets}/hand.png | Bin .../apps/client/assets}/hands.png | Bin .../assets}/health-bar-fill-animations.txt | 0 .../assets}/health-bar-frame-animations.txt | 0 .../client/assets}/loot-ammo-animations.txt | 0 .../client/assets}/loot-gold-animations.txt | 0 .../client/assets}/loot-heal-animations.txt | 0 .../raid-survival/apps/client/assets}/map.png | Bin .../apps/client/assets}/npc-animations.txt | 0 .../raid-survival/apps/client/assets}/npc.png | Bin .../client/assets}/objects-animations.txt | 0 .../apps/client/assets}/objects.png | Bin .../apps/client/assets}/player-animations.txt | 0 .../apps/client/assets}/player1.png | Bin .../apps/client/assets}/player2.png | Bin .../apps/client/assets}/player3.png | Bin .../assets}/shotgun-reload-animations.txt | 0 .../assets}/shotgun-shot-animations.txt | 0 .../apps/client/assets}/tower-animations.txt | 0 .../assets}/ui-crosshair-animations.txt | 0 .../client/assets}/ui-reload-animations.txt | 0 .../raid-survival/apps/client/assets}/ui.png | Bin .../client/assets}/uzi-reload-animations.txt | 0 .../client/assets}/uzi-shot-animations.txt | 0 .../apps/client/assets}/wall-animations.txt | 0 .../client/assets}/weapons-animations.txt | 0 .../apps/client/assets}/weapons.png | Bin .../apps/client/assets}/zombie-animations.txt | 0 .../apps/client/assets}/zombie_cop.png | Bin .../apps/client/src/build-world.ts | 294 +- .../src/components/ammo-hud.component.ts | 18 + .../src}/components/build-mode.component.ts | 14 +- .../building-interact-indicator.component.ts | 14 + .../src/components/building.component.ts | 14 + .../src/components/children.component.ts | 22 + .../client/src/components/cursor.component.ts | 9 + .../components/direction-rotator.component.ts | 8 +- .../src/components/direction.component.ts | 14 + .../src/components/floating-text.component.ts | 14 + .../src/components/game-view.component.ts | 28 + .../client/src/components}/group.component.ts | 12 +- .../components/health-bar-fill.component.ts | 11 +- .../client/src/components/health.component.ts | 14 + .../src/components/lobby-status.component.ts | 11 +- .../client/src/components/lobby.component.ts | 9 + .../src/components/money-hud.component.ts | 19 + .../components/move-controller.component.ts | 9 +- .../src/components/network-id.component.ts | 13 + .../client/src/components/player.component.ts | 9 + .../client/src/components}/rect.component.ts | 12 +- .../components/reload-indicator.component.ts | 14 + .../components/revive-controller.component.ts | 14 +- .../revive-hint-indicator.component.ts | 14 + .../components/revive-indicator.component.ts | 16 +- .../client/src/components/screen.component.ts | 21 + .../components/shoot-controller.component.ts | 16 +- .../src/components}/sprite.component.ts | 31 +- .../client/src/components}/text.component.ts | 11 +- .../src/components}/textarea.component.ts | 8 +- .../src/components/tower-level.component.ts | 12 + .../src/components/transform.component.ts | 15 + .../src/components/velocity.component.ts | 15 + .../src}/components/wave-hud.component.ts | 11 +- .../weapon-reload-overlay.component.ts | 10 + .../src}/components/weapon-shop.component.ts | 16 +- .../src}/components/weapon.component.ts | 14 +- .../src/components/z-index.component.ts | 13 + .../apps/client/src/game-view.ts | 7 + .../apps/client/src/handlers/ammo.handler.ts | 16 +- .../apps/client/src/handlers/build.handler.ts | 5 +- .../client/src/handlers/direction.handler.ts | 14 + .../client/src/handlers/game-over.handler.ts | 14 + .../apps/client/src/handlers/handlers.ts | 62 + .../apps/client/src/handlers/heal.handler.ts | 11 +- .../apps/client/src/handlers/hit.handler.ts | 11 +- .../client/src/handlers/join-lobby.handler.ts | 16 +- .../apps/client/src/handlers/kill.handler.ts | 25 +- .../client/src/handlers/lobby-info.handler.ts | 9 +- .../apps/client/src/handlers/loot.handler.ts | 15 +- .../apps/client/src/handlers/money.handler.ts | 12 + .../apps/client/src/handlers/move.handler.ts | 18 + .../client/src/handlers/revive.handler.ts | 15 +- .../src/handlers/shop-rejected.handler.ts | 23 +- .../apps/client/src/handlers/spawn.handler.ts | 95 +- .../client/src/handlers/start-game.handler.ts | 18 + .../src/handlers/tower-update.handler.ts | 15 +- .../client/src/handlers/wave-info.handler.ts | 9 +- .../src/handlers/weapon-fired.handler.ts | 13 +- .../src/handlers/weapon-inventory.handler.ts | 28 +- .../src/handlers/weapon-state.handler.ts | 13 +- .../src/handlers/zombie-state.handler.ts | 15 +- .../apps/client/src}/health-bar-update.ts | 12 +- .../apps/client/src}/hud-helpers.ts | 4 +- .../apps/client/src/hud-layout.ts | 18 + games/raid-survival/apps/client/src/main.ts | 89 + .../apps/client/src/scene-vars.ts | 17 + .../apps/client/src/scenes/game-over.scene.ts | 21 + .../apps/client/src/scenes/game.scene.ts | 21 + .../apps/client/src/scenes/menu.scene.ts | 21 + .../raid-survival/apps/client/src/screens.ts | 33 + .../client/src}/systems/build-mode.system.ts | 92 +- .../building-interact-indicator.system.ts | 20 +- .../src}/systems/camera-follow.system.ts | 25 +- .../apps/client/src}/systems/cursor.system.ts | 22 +- .../src}/systems/floating-text.system.ts | 13 +- .../src/systems/game-over-screen.system.ts | 17 + .../client/src/systems/launch-game.system.ts | 19 + .../systems/lobby-action-senders.system.ts | 28 +- .../client/src/systems/menu-screen.system.ts | 15 + .../src/systems/move-control-sender.system.ts | 30 + .../src}/systems/move-control.system.ts | 14 +- .../apps/client/src/systems/move.system.ts | 14 + .../src/systems/packet-dispatch.system.ts | 47 + .../src}/systems/player-death.system.ts | 11 +- .../src}/systems/reload-indicator.system.ts | 20 +- .../systems/revive-control-sender.system.ts | 24 + .../src}/systems/revive-control.system.ts | 15 +- .../systems/revive-hint-indicator.system.ts | 16 +- .../src}/systems/revive-indicator.system.ts | 13 +- .../systems/rotate-to-direction.system.ts | 10 +- .../systems/shoot-control-sender.system.ts | 35 + .../src}/systems/shoot-control.system.ts | 28 +- .../src/systems}/sprite-animator.system.ts | 8 +- .../apps/client/src/systems}/sprite.system.ts | 32 +- .../client/src/systems/textarea.system.ts | 4 +- .../transform-children-to-parent.system.ts | 8 +- .../systems/weapon-reload-animation.system.ts | 17 +- .../src}/systems/weapon-visibility.system.ts | 16 +- .../client/src/systems}/z-order.system.ts | 10 +- .../apps/client/src/views/game-over-view.ts | 24 +- .../apps/client/src/views/menu-view.ts | 64 +- .../apps/client/src/views/screen-view.ts | 12 + .../raid-survival/libs/shared/src/protocol.ts | 12 +- games/raid-survival/package.json | 6 +- raid-survival/client/building-catalog.ts | 50 - raid-survival/client/building-economy.ts | 8 - .../client/components/ammo-hud.component.ts | 16 - .../building-interact-indicator.component.ts | 12 - .../client/components/building.component.ts | 12 - .../client/components/children.component.ts | 16 - .../client/components/cursor.component.ts | 7 - .../client/components/direction.component.ts | 11 - .../essentials/transform.component.ts | 12 - .../essentials/velocity.component.ts | 11 - .../essentials/z-index.component.ts | 7 - .../components/floating-text.component.ts | 12 - .../client/components/health.component.ts | 11 - .../components/lobby/lobby.component.ts | 6 - .../client/components/money-hud.component.ts | 17 - .../client/components/network-id.component.ts | 10 - .../client/components/player.component.ts | 7 - .../components/reload-indicator.component.ts | 12 - .../revive-hint-indicator.component.ts | 12 - .../components/tower-level.component.ts | 10 - .../weapon-reload-overlay.component.ts | 8 - raid-survival/client/main.ts | 151 - raid-survival/client/map-data.ts | 11 - raid-survival/client/player-class-catalog.ts | 24 - raid-survival/client/scenes/GameScene.ts | 45 - raid-survival/client/scenes/Scene.ts | 12 - raid-survival/client/scenes/SceneManager.ts | 25 - .../client/static/client-config.json | 12 - .../client/static/map-collision.json | 10208 ---------------- raid-survival/client/systems/move.system.ts | 16 - .../client/systems/packet-handler.system.ts | 68 - .../direction-packet.handler.ts | 13 - .../game-over-packet.handler.ts | 6 - .../packet-handlers/money-packet.handler.ts | 11 - .../packet-handlers/move-packet.handler.ts | 17 - .../move-control.senders.system.ts | 30 - .../revive-control.sender.system.ts | 32 - .../shoot-control.sender.system.ts | 47 - raid-survival/client/systems/scene.ts | 8 - raid-survival/client/weapon-catalog.ts | 94 - 199 files changed, 1580 insertions(+), 11798 deletions(-) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/AK-Reload.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/AK-Shot.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Becca-Idle-Shot.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Becca-Idle.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Becca-Run.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Joe-Idle-Shot.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Joe-Idle.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Joe-Run.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Unknow-Idle-shot.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Unknow-Idle.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Character-Unknow-Run.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/GZ2-Zombie-Heavy.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/GZ2-Zombie-Puncher.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Shotgun-Reload.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Shotgun-Shot.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Uzi-Reload.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Uzi-Shot.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Zombie-Atk.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Zombie-Dead.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/Zombie-Walk.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/ak-reload-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/ak-shot-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/buildings.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/bullet-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/hand.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/hands.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/health-bar-fill-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/health-bar-frame-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/loot-ammo-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/loot-gold-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/loot-heal-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/map.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/npc-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/npc.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/objects-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/objects.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/player-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/player1.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/player2.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/player3.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/shotgun-reload-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/shotgun-shot-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/tower-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/ui-crosshair-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/ui-reload-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/ui.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/uzi-reload-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/uzi-shot-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/wall-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/weapons-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/weapons.png (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/zombie-animations.txt (100%) rename {raid-survival/client/static => games/raid-survival/apps/client/assets}/zombie_cop.png (100%) rename raid-survival/client/systems/packet-handlers/start-game-packet.handler.ts => games/raid-survival/apps/client/src/build-world.ts (86%) create mode 100644 games/raid-survival/apps/client/src/components/ammo-hud.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/build-mode.component.ts (85%) create mode 100644 games/raid-survival/apps/client/src/components/building-interact-indicator.component.ts create mode 100644 games/raid-survival/apps/client/src/components/building.component.ts create mode 100644 games/raid-survival/apps/client/src/components/children.component.ts create mode 100644 games/raid-survival/apps/client/src/components/cursor.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/direction-rotator.component.ts (74%) create mode 100644 games/raid-survival/apps/client/src/components/direction.component.ts create mode 100644 games/raid-survival/apps/client/src/components/floating-text.component.ts create mode 100644 games/raid-survival/apps/client/src/components/game-view.component.ts rename {raid-survival/client/components/renderable => games/raid-survival/apps/client/src/components}/group.component.ts (61%) rename {raid-survival/client => games/raid-survival/apps/client/src}/components/health-bar-fill.component.ts (56%) create mode 100644 games/raid-survival/apps/client/src/components/health.component.ts rename raid-survival/client/components/lobby/lobby-status.ts => games/raid-survival/apps/client/src/components/lobby-status.component.ts (70%) create mode 100644 games/raid-survival/apps/client/src/components/lobby.component.ts create mode 100644 games/raid-survival/apps/client/src/components/money-hud.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/move-controller.component.ts (79%) create mode 100644 games/raid-survival/apps/client/src/components/network-id.component.ts create mode 100644 games/raid-survival/apps/client/src/components/player.component.ts rename {raid-survival/client/components/renderable => games/raid-survival/apps/client/src/components}/rect.component.ts (61%) create mode 100644 games/raid-survival/apps/client/src/components/reload-indicator.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/revive-controller.component.ts (70%) create mode 100644 games/raid-survival/apps/client/src/components/revive-hint-indicator.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/revive-indicator.component.ts (53%) create mode 100644 games/raid-survival/apps/client/src/components/screen.component.ts rename raid-survival/client/components/shoot.controller.ts => games/raid-survival/apps/client/src/components/shoot-controller.component.ts (75%) rename {raid-survival/client/components/renderable => games/raid-survival/apps/client/src/components}/sprite.component.ts (85%) rename {raid-survival/client/components/renderable => games/raid-survival/apps/client/src/components}/text.component.ts (69%) rename {raid-survival/client/components/renderable => games/raid-survival/apps/client/src/components}/textarea.component.ts (96%) create mode 100644 games/raid-survival/apps/client/src/components/tower-level.component.ts create mode 100644 games/raid-survival/apps/client/src/components/transform.component.ts create mode 100644 games/raid-survival/apps/client/src/components/velocity.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/wave-hud.component.ts (65%) create mode 100644 games/raid-survival/apps/client/src/components/weapon-reload-overlay.component.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/components/weapon-shop.component.ts (81%) rename {raid-survival/client => games/raid-survival/apps/client/src}/components/weapon.component.ts (80%) create mode 100644 games/raid-survival/apps/client/src/components/z-index.component.ts create mode 100644 games/raid-survival/apps/client/src/game-view.ts rename raid-survival/client/systems/packet-handlers/ammo-packet.handler.ts => games/raid-survival/apps/client/src/handlers/ammo.handler.ts (59%) rename raid-survival/client/systems/packet-handlers/build-packet.handler.ts => games/raid-survival/apps/client/src/handlers/build.handler.ts (65%) create mode 100644 games/raid-survival/apps/client/src/handlers/direction.handler.ts create mode 100644 games/raid-survival/apps/client/src/handlers/game-over.handler.ts create mode 100644 games/raid-survival/apps/client/src/handlers/handlers.ts rename raid-survival/client/systems/packet-handlers/heal-packet.handler.ts => games/raid-survival/apps/client/src/handlers/heal.handler.ts (60%) rename raid-survival/client/systems/packet-handlers/hit-packet.handler.ts => games/raid-survival/apps/client/src/handlers/hit.handler.ts (61%) rename raid-survival/client/systems/packet-handlers/join-lobby-packet.handler.ts => games/raid-survival/apps/client/src/handlers/join-lobby.handler.ts (67%) rename raid-survival/client/systems/packet-handlers/kill-packet.handler.ts => games/raid-survival/apps/client/src/handlers/kill.handler.ts (65%) rename raid-survival/client/systems/packet-handlers/lobby-info-packet.handler.ts => games/raid-survival/apps/client/src/handlers/lobby-info.handler.ts (57%) rename raid-survival/client/systems/packet-handlers/loot-packet.handler.ts => games/raid-survival/apps/client/src/handlers/loot.handler.ts (67%) create mode 100644 games/raid-survival/apps/client/src/handlers/money.handler.ts create mode 100644 games/raid-survival/apps/client/src/handlers/move.handler.ts rename raid-survival/client/systems/packet-handlers/revive-packet.handler.ts => games/raid-survival/apps/client/src/handlers/revive.handler.ts (75%) rename raid-survival/client/systems/packet-handlers/shop-rejected-packet.handler.ts => games/raid-survival/apps/client/src/handlers/shop-rejected.handler.ts (62%) rename raid-survival/client/systems/packet-handlers/spawn-packet.handler.ts => games/raid-survival/apps/client/src/handlers/spawn.handler.ts (70%) create mode 100644 games/raid-survival/apps/client/src/handlers/start-game.handler.ts rename raid-survival/client/systems/packet-handlers/tower-update-packet.handler.ts => games/raid-survival/apps/client/src/handlers/tower-update.handler.ts (65%) rename raid-survival/client/systems/packet-handlers/wave-info-packet.handler.ts => games/raid-survival/apps/client/src/handlers/wave-info.handler.ts (68%) rename raid-survival/client/systems/packet-handlers/weapon-fired-packet.handler.ts => games/raid-survival/apps/client/src/handlers/weapon-fired.handler.ts (66%) rename raid-survival/client/systems/packet-handlers/weapon-inventory-packet.handler.ts => games/raid-survival/apps/client/src/handlers/weapon-inventory.handler.ts (74%) rename raid-survival/client/systems/packet-handlers/weapon-state-packet.handler.ts => games/raid-survival/apps/client/src/handlers/weapon-state.handler.ts (67%) rename raid-survival/client/systems/packet-handlers/zombie-state-packet.handler.ts => games/raid-survival/apps/client/src/handlers/zombie-state.handler.ts (74%) rename {raid-survival/client/systems => games/raid-survival/apps/client/src}/health-bar-update.ts (75%) rename {raid-survival/client => games/raid-survival/apps/client/src}/hud-helpers.ts (81%) create mode 100644 games/raid-survival/apps/client/src/hud-layout.ts create mode 100644 games/raid-survival/apps/client/src/main.ts create mode 100644 games/raid-survival/apps/client/src/scene-vars.ts create mode 100644 games/raid-survival/apps/client/src/scenes/game-over.scene.ts create mode 100644 games/raid-survival/apps/client/src/scenes/game.scene.ts create mode 100644 games/raid-survival/apps/client/src/scenes/menu.scene.ts create mode 100644 games/raid-survival/apps/client/src/screens.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/build-mode.system.ts (86%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/building-interact-indicator.system.ts (86%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/camera-follow.system.ts (72%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/cursor.system.ts (71%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/floating-text.system.ts (77%) create mode 100644 games/raid-survival/apps/client/src/systems/game-over-screen.system.ts create mode 100644 games/raid-survival/apps/client/src/systems/launch-game.system.ts rename raid-survival/client/systems/packet-senders/lobby-action.senders.ts => games/raid-survival/apps/client/src/systems/lobby-action-senders.system.ts (52%) create mode 100644 games/raid-survival/apps/client/src/systems/menu-screen.system.ts create mode 100644 games/raid-survival/apps/client/src/systems/move-control-sender.system.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/move-control.system.ts (58%) create mode 100644 games/raid-survival/apps/client/src/systems/move.system.ts create mode 100644 games/raid-survival/apps/client/src/systems/packet-dispatch.system.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/player-death.system.ts (83%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/reload-indicator.system.ts (84%) create mode 100644 games/raid-survival/apps/client/src/systems/revive-control-sender.system.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/revive-control.system.ts (76%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/revive-hint-indicator.system.ts (87%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/revive-indicator.system.ts (80%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/rotate-to-direction.system.ts (87%) create mode 100644 games/raid-survival/apps/client/src/systems/shoot-control-sender.system.ts rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/shoot-control.system.ts (72%) rename {raid-survival/client/systems/renderable => games/raid-survival/apps/client/src/systems}/sprite-animator.system.ts (79%) rename {raid-survival/client/systems/renderable => games/raid-survival/apps/client/src/systems}/sprite.system.ts (89%) rename raid-survival/client/systems/renderable/textarea.ts => games/raid-survival/apps/client/src/systems/textarea.system.ts (63%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/transform-children-to-parent.system.ts (83%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/weapon-reload-animation.system.ts (92%) rename {raid-survival/client => games/raid-survival/apps/client/src}/systems/weapon-visibility.system.ts (69%) rename {raid-survival/client/systems/essentials => games/raid-survival/apps/client/src/systems}/z-order.system.ts (69%) rename raid-survival/client/scenes/GameOverScene.ts => games/raid-survival/apps/client/src/views/game-over-view.ts (86%) rename raid-survival/client/scenes/MenuScene.ts => games/raid-survival/apps/client/src/views/menu-view.ts (95%) create mode 100644 games/raid-survival/apps/client/src/views/screen-view.ts delete mode 100644 raid-survival/client/building-catalog.ts delete mode 100644 raid-survival/client/building-economy.ts delete mode 100644 raid-survival/client/components/ammo-hud.component.ts delete mode 100644 raid-survival/client/components/building-interact-indicator.component.ts delete mode 100644 raid-survival/client/components/building.component.ts delete mode 100644 raid-survival/client/components/children.component.ts delete mode 100644 raid-survival/client/components/cursor.component.ts delete mode 100644 raid-survival/client/components/direction.component.ts delete mode 100644 raid-survival/client/components/essentials/transform.component.ts delete mode 100644 raid-survival/client/components/essentials/velocity.component.ts delete mode 100644 raid-survival/client/components/essentials/z-index.component.ts delete mode 100644 raid-survival/client/components/floating-text.component.ts delete mode 100644 raid-survival/client/components/health.component.ts delete mode 100644 raid-survival/client/components/lobby/lobby.component.ts delete mode 100644 raid-survival/client/components/money-hud.component.ts delete mode 100644 raid-survival/client/components/network-id.component.ts delete mode 100644 raid-survival/client/components/player.component.ts delete mode 100644 raid-survival/client/components/reload-indicator.component.ts delete mode 100644 raid-survival/client/components/revive-hint-indicator.component.ts delete mode 100644 raid-survival/client/components/tower-level.component.ts delete mode 100644 raid-survival/client/components/weapon-reload-overlay.component.ts delete mode 100644 raid-survival/client/main.ts delete mode 100644 raid-survival/client/map-data.ts delete mode 100644 raid-survival/client/player-class-catalog.ts delete mode 100644 raid-survival/client/scenes/GameScene.ts delete mode 100644 raid-survival/client/scenes/Scene.ts delete mode 100644 raid-survival/client/scenes/SceneManager.ts delete mode 100644 raid-survival/client/static/client-config.json delete mode 100644 raid-survival/client/static/map-collision.json delete mode 100644 raid-survival/client/systems/move.system.ts delete mode 100644 raid-survival/client/systems/packet-handler.system.ts delete mode 100644 raid-survival/client/systems/packet-handlers/direction-packet.handler.ts delete mode 100644 raid-survival/client/systems/packet-handlers/game-over-packet.handler.ts delete mode 100644 raid-survival/client/systems/packet-handlers/money-packet.handler.ts delete mode 100644 raid-survival/client/systems/packet-handlers/move-packet.handler.ts delete mode 100644 raid-survival/client/systems/packet-senders/move-control.senders.system.ts delete mode 100644 raid-survival/client/systems/packet-senders/revive-control.sender.system.ts delete mode 100644 raid-survival/client/systems/packet-senders/shoot-control.sender.system.ts delete mode 100644 raid-survival/client/systems/scene.ts delete mode 100644 raid-survival/client/weapon-catalog.ts diff --git a/games/raid-survival/.env.example b/games/raid-survival/.env.example index 2a2caa6..9c62d4b 100644 --- a/games/raid-survival/.env.example +++ b/games/raid-survival/.env.example @@ -1,8 +1,6 @@ -# Copy to .env. nf start gives NANOFORGE_CLIENT_X to the client and NANOFORGE_SERVER_X to the -# server, as X. Everything the client gets reaches the browser. +# Copy to .env. nf gives NANOFORGE_CLIENT_X to the client and NANOFORGE_SERVER_X to the server, as +# X. Everything the client gets reaches the browser. NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1 NANOFORGE_CLIENT_SERVER_TCP_PORT=4945 -NANOFORGE_CLIENT_SERVER_UDP_PORT=4944 NANOFORGE_SERVER_LISTENING_TCP_PORT=4945 -NANOFORGE_SERVER_LISTENING_UDP_PORT=4944 diff --git a/raid-survival/client/static/AK-Reload.png b/games/raid-survival/apps/client/assets/AK-Reload.png similarity index 100% rename from raid-survival/client/static/AK-Reload.png rename to games/raid-survival/apps/client/assets/AK-Reload.png diff --git a/raid-survival/client/static/AK-Shot.png b/games/raid-survival/apps/client/assets/AK-Shot.png similarity index 100% rename from raid-survival/client/static/AK-Shot.png rename to games/raid-survival/apps/client/assets/AK-Shot.png diff --git a/raid-survival/client/static/Character-Becca-Idle-Shot.png b/games/raid-survival/apps/client/assets/Character-Becca-Idle-Shot.png similarity index 100% rename from raid-survival/client/static/Character-Becca-Idle-Shot.png rename to games/raid-survival/apps/client/assets/Character-Becca-Idle-Shot.png diff --git a/raid-survival/client/static/Character-Becca-Idle.png b/games/raid-survival/apps/client/assets/Character-Becca-Idle.png similarity index 100% rename from raid-survival/client/static/Character-Becca-Idle.png rename to games/raid-survival/apps/client/assets/Character-Becca-Idle.png diff --git a/raid-survival/client/static/Character-Becca-Run.png b/games/raid-survival/apps/client/assets/Character-Becca-Run.png similarity index 100% rename from raid-survival/client/static/Character-Becca-Run.png rename to games/raid-survival/apps/client/assets/Character-Becca-Run.png diff --git a/raid-survival/client/static/Character-Joe-Idle-Shot.png b/games/raid-survival/apps/client/assets/Character-Joe-Idle-Shot.png similarity index 100% rename from raid-survival/client/static/Character-Joe-Idle-Shot.png rename to games/raid-survival/apps/client/assets/Character-Joe-Idle-Shot.png diff --git a/raid-survival/client/static/Character-Joe-Idle.png b/games/raid-survival/apps/client/assets/Character-Joe-Idle.png similarity index 100% rename from raid-survival/client/static/Character-Joe-Idle.png rename to games/raid-survival/apps/client/assets/Character-Joe-Idle.png diff --git a/raid-survival/client/static/Character-Joe-Run.png b/games/raid-survival/apps/client/assets/Character-Joe-Run.png similarity index 100% rename from raid-survival/client/static/Character-Joe-Run.png rename to games/raid-survival/apps/client/assets/Character-Joe-Run.png diff --git a/raid-survival/client/static/Character-Unknow-Idle-shot.png b/games/raid-survival/apps/client/assets/Character-Unknow-Idle-shot.png similarity index 100% rename from raid-survival/client/static/Character-Unknow-Idle-shot.png rename to games/raid-survival/apps/client/assets/Character-Unknow-Idle-shot.png diff --git a/raid-survival/client/static/Character-Unknow-Idle.png b/games/raid-survival/apps/client/assets/Character-Unknow-Idle.png similarity index 100% rename from raid-survival/client/static/Character-Unknow-Idle.png rename to games/raid-survival/apps/client/assets/Character-Unknow-Idle.png diff --git a/raid-survival/client/static/Character-Unknow-Run.png b/games/raid-survival/apps/client/assets/Character-Unknow-Run.png similarity index 100% rename from raid-survival/client/static/Character-Unknow-Run.png rename to games/raid-survival/apps/client/assets/Character-Unknow-Run.png diff --git a/raid-survival/client/static/GZ2-Zombie-Heavy.png b/games/raid-survival/apps/client/assets/GZ2-Zombie-Heavy.png similarity index 100% rename from raid-survival/client/static/GZ2-Zombie-Heavy.png rename to games/raid-survival/apps/client/assets/GZ2-Zombie-Heavy.png diff --git a/raid-survival/client/static/GZ2-Zombie-Puncher.png b/games/raid-survival/apps/client/assets/GZ2-Zombie-Puncher.png similarity index 100% rename from raid-survival/client/static/GZ2-Zombie-Puncher.png rename to games/raid-survival/apps/client/assets/GZ2-Zombie-Puncher.png diff --git a/raid-survival/client/static/Shotgun-Reload.png b/games/raid-survival/apps/client/assets/Shotgun-Reload.png similarity index 100% rename from raid-survival/client/static/Shotgun-Reload.png rename to games/raid-survival/apps/client/assets/Shotgun-Reload.png diff --git a/raid-survival/client/static/Shotgun-Shot.png b/games/raid-survival/apps/client/assets/Shotgun-Shot.png similarity index 100% rename from raid-survival/client/static/Shotgun-Shot.png rename to games/raid-survival/apps/client/assets/Shotgun-Shot.png diff --git a/raid-survival/client/static/Uzi-Reload.png b/games/raid-survival/apps/client/assets/Uzi-Reload.png similarity index 100% rename from raid-survival/client/static/Uzi-Reload.png rename to games/raid-survival/apps/client/assets/Uzi-Reload.png diff --git a/raid-survival/client/static/Uzi-Shot.png b/games/raid-survival/apps/client/assets/Uzi-Shot.png similarity index 100% rename from raid-survival/client/static/Uzi-Shot.png rename to games/raid-survival/apps/client/assets/Uzi-Shot.png diff --git a/raid-survival/client/static/Zombie-Atk.png b/games/raid-survival/apps/client/assets/Zombie-Atk.png similarity index 100% rename from raid-survival/client/static/Zombie-Atk.png rename to games/raid-survival/apps/client/assets/Zombie-Atk.png diff --git a/raid-survival/client/static/Zombie-Dead.png b/games/raid-survival/apps/client/assets/Zombie-Dead.png similarity index 100% rename from raid-survival/client/static/Zombie-Dead.png rename to games/raid-survival/apps/client/assets/Zombie-Dead.png diff --git a/raid-survival/client/static/Zombie-Walk.png b/games/raid-survival/apps/client/assets/Zombie-Walk.png similarity index 100% rename from raid-survival/client/static/Zombie-Walk.png rename to games/raid-survival/apps/client/assets/Zombie-Walk.png diff --git a/raid-survival/client/static/ak-reload-animations.txt b/games/raid-survival/apps/client/assets/ak-reload-animations.txt similarity index 100% rename from raid-survival/client/static/ak-reload-animations.txt rename to games/raid-survival/apps/client/assets/ak-reload-animations.txt diff --git a/raid-survival/client/static/ak-shot-animations.txt b/games/raid-survival/apps/client/assets/ak-shot-animations.txt similarity index 100% rename from raid-survival/client/static/ak-shot-animations.txt rename to games/raid-survival/apps/client/assets/ak-shot-animations.txt diff --git a/raid-survival/client/static/buildings.png b/games/raid-survival/apps/client/assets/buildings.png similarity index 100% rename from raid-survival/client/static/buildings.png rename to games/raid-survival/apps/client/assets/buildings.png diff --git a/raid-survival/client/static/bullet-animations.txt b/games/raid-survival/apps/client/assets/bullet-animations.txt similarity index 100% rename from raid-survival/client/static/bullet-animations.txt rename to games/raid-survival/apps/client/assets/bullet-animations.txt diff --git a/raid-survival/client/static/hand.png b/games/raid-survival/apps/client/assets/hand.png similarity index 100% rename from raid-survival/client/static/hand.png rename to games/raid-survival/apps/client/assets/hand.png diff --git a/raid-survival/client/static/hands.png b/games/raid-survival/apps/client/assets/hands.png similarity index 100% rename from raid-survival/client/static/hands.png rename to games/raid-survival/apps/client/assets/hands.png diff --git a/raid-survival/client/static/health-bar-fill-animations.txt b/games/raid-survival/apps/client/assets/health-bar-fill-animations.txt similarity index 100% rename from raid-survival/client/static/health-bar-fill-animations.txt rename to games/raid-survival/apps/client/assets/health-bar-fill-animations.txt diff --git a/raid-survival/client/static/health-bar-frame-animations.txt b/games/raid-survival/apps/client/assets/health-bar-frame-animations.txt similarity index 100% rename from raid-survival/client/static/health-bar-frame-animations.txt rename to games/raid-survival/apps/client/assets/health-bar-frame-animations.txt diff --git a/raid-survival/client/static/loot-ammo-animations.txt b/games/raid-survival/apps/client/assets/loot-ammo-animations.txt similarity index 100% rename from raid-survival/client/static/loot-ammo-animations.txt rename to games/raid-survival/apps/client/assets/loot-ammo-animations.txt diff --git a/raid-survival/client/static/loot-gold-animations.txt b/games/raid-survival/apps/client/assets/loot-gold-animations.txt similarity index 100% rename from raid-survival/client/static/loot-gold-animations.txt rename to games/raid-survival/apps/client/assets/loot-gold-animations.txt diff --git a/raid-survival/client/static/loot-heal-animations.txt b/games/raid-survival/apps/client/assets/loot-heal-animations.txt similarity index 100% rename from raid-survival/client/static/loot-heal-animations.txt rename to games/raid-survival/apps/client/assets/loot-heal-animations.txt diff --git a/raid-survival/client/static/map.png b/games/raid-survival/apps/client/assets/map.png similarity index 100% rename from raid-survival/client/static/map.png rename to games/raid-survival/apps/client/assets/map.png diff --git a/raid-survival/client/static/npc-animations.txt b/games/raid-survival/apps/client/assets/npc-animations.txt similarity index 100% rename from raid-survival/client/static/npc-animations.txt rename to games/raid-survival/apps/client/assets/npc-animations.txt diff --git a/raid-survival/client/static/npc.png b/games/raid-survival/apps/client/assets/npc.png similarity index 100% rename from raid-survival/client/static/npc.png rename to games/raid-survival/apps/client/assets/npc.png diff --git a/raid-survival/client/static/objects-animations.txt b/games/raid-survival/apps/client/assets/objects-animations.txt similarity index 100% rename from raid-survival/client/static/objects-animations.txt rename to games/raid-survival/apps/client/assets/objects-animations.txt diff --git a/raid-survival/client/static/objects.png b/games/raid-survival/apps/client/assets/objects.png similarity index 100% rename from raid-survival/client/static/objects.png rename to games/raid-survival/apps/client/assets/objects.png diff --git a/raid-survival/client/static/player-animations.txt b/games/raid-survival/apps/client/assets/player-animations.txt similarity index 100% rename from raid-survival/client/static/player-animations.txt rename to games/raid-survival/apps/client/assets/player-animations.txt diff --git a/raid-survival/client/static/player1.png b/games/raid-survival/apps/client/assets/player1.png similarity index 100% rename from raid-survival/client/static/player1.png rename to games/raid-survival/apps/client/assets/player1.png diff --git a/raid-survival/client/static/player2.png b/games/raid-survival/apps/client/assets/player2.png similarity index 100% rename from raid-survival/client/static/player2.png rename to games/raid-survival/apps/client/assets/player2.png diff --git a/raid-survival/client/static/player3.png b/games/raid-survival/apps/client/assets/player3.png similarity index 100% rename from raid-survival/client/static/player3.png rename to games/raid-survival/apps/client/assets/player3.png diff --git a/raid-survival/client/static/shotgun-reload-animations.txt b/games/raid-survival/apps/client/assets/shotgun-reload-animations.txt similarity index 100% rename from raid-survival/client/static/shotgun-reload-animations.txt rename to games/raid-survival/apps/client/assets/shotgun-reload-animations.txt diff --git a/raid-survival/client/static/shotgun-shot-animations.txt b/games/raid-survival/apps/client/assets/shotgun-shot-animations.txt similarity index 100% rename from raid-survival/client/static/shotgun-shot-animations.txt rename to games/raid-survival/apps/client/assets/shotgun-shot-animations.txt diff --git a/raid-survival/client/static/tower-animations.txt b/games/raid-survival/apps/client/assets/tower-animations.txt similarity index 100% rename from raid-survival/client/static/tower-animations.txt rename to games/raid-survival/apps/client/assets/tower-animations.txt diff --git a/raid-survival/client/static/ui-crosshair-animations.txt b/games/raid-survival/apps/client/assets/ui-crosshair-animations.txt similarity index 100% rename from raid-survival/client/static/ui-crosshair-animations.txt rename to games/raid-survival/apps/client/assets/ui-crosshair-animations.txt diff --git a/raid-survival/client/static/ui-reload-animations.txt b/games/raid-survival/apps/client/assets/ui-reload-animations.txt similarity index 100% rename from raid-survival/client/static/ui-reload-animations.txt rename to games/raid-survival/apps/client/assets/ui-reload-animations.txt diff --git a/raid-survival/client/static/ui.png b/games/raid-survival/apps/client/assets/ui.png similarity index 100% rename from raid-survival/client/static/ui.png rename to games/raid-survival/apps/client/assets/ui.png diff --git a/raid-survival/client/static/uzi-reload-animations.txt b/games/raid-survival/apps/client/assets/uzi-reload-animations.txt similarity index 100% rename from raid-survival/client/static/uzi-reload-animations.txt rename to games/raid-survival/apps/client/assets/uzi-reload-animations.txt diff --git a/raid-survival/client/static/uzi-shot-animations.txt b/games/raid-survival/apps/client/assets/uzi-shot-animations.txt similarity index 100% rename from raid-survival/client/static/uzi-shot-animations.txt rename to games/raid-survival/apps/client/assets/uzi-shot-animations.txt diff --git a/raid-survival/client/static/wall-animations.txt b/games/raid-survival/apps/client/assets/wall-animations.txt similarity index 100% rename from raid-survival/client/static/wall-animations.txt rename to games/raid-survival/apps/client/assets/wall-animations.txt diff --git a/raid-survival/client/static/weapons-animations.txt b/games/raid-survival/apps/client/assets/weapons-animations.txt similarity index 100% rename from raid-survival/client/static/weapons-animations.txt rename to games/raid-survival/apps/client/assets/weapons-animations.txt diff --git a/raid-survival/client/static/weapons.png b/games/raid-survival/apps/client/assets/weapons.png similarity index 100% rename from raid-survival/client/static/weapons.png rename to games/raid-survival/apps/client/assets/weapons.png diff --git a/raid-survival/client/static/zombie-animations.txt b/games/raid-survival/apps/client/assets/zombie-animations.txt similarity index 100% rename from raid-survival/client/static/zombie-animations.txt rename to games/raid-survival/apps/client/assets/zombie-animations.txt diff --git a/raid-survival/client/static/zombie_cop.png b/games/raid-survival/apps/client/assets/zombie_cop.png similarity index 100% rename from raid-survival/client/static/zombie_cop.png rename to games/raid-survival/apps/client/assets/zombie_cop.png diff --git a/raid-survival/client/systems/packet-handlers/start-game-packet.handler.ts b/games/raid-survival/apps/client/src/build-world.ts similarity index 86% rename from raid-survival/client/systems/packet-handlers/start-game-packet.handler.ts rename to games/raid-survival/apps/client/src/build-world.ts index 0bc90dc..80aa148 100644 --- a/raid-survival/client/systems/packet-handlers/start-game-packet.handler.ts +++ b/games/raid-survival/apps/client/src/build-world.ts @@ -1,45 +1,47 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { LobbyStatusComponent } from "../../components/lobby/lobby-status"; -import { playerId, sceneManager } from "../../main"; -import { GameScene } from "../../scenes/GameScene"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { TransformComponent } from "../../components/essentials/transform.component"; -import { Velocity } from "../../components/essentials/velocity.component"; -import { MoveController } from "../../components/move-controller.component"; -import { Arc, Circle, Layer, Rect, Ring, Shape, Vector2d } from "@nanoforge-dev/graphics-2d"; -import { NetworkId } from "../../components/network-id.component"; -import { Direction } from "../../components/direction.component"; -import { ShootController } from "../../components/shoot.controller"; -import { ReviveController } from "../../components/revive-controller.component"; -import { ReviveIndicatorComponent } from "../../components/revive-indicator.component"; -import { ReviveHintIndicatorComponent } from "../../components/revive-hint-indicator.component"; -import { BuildingInteractIndicatorComponent } from "../../components/building-interact-indicator.component"; -import { ChildrenComponent } from "../../components/children.component"; -import { Scene } from "../../scenes/Scene"; -import { DirectionRotatorComponent } from "../../components/direction-rotator.component"; -import { Lobby } from "../../components/lobby/lobby.component"; -import { Health } from "../../components/health.component"; -import { ZIndexComponent } from "../../components/essentials/z-index.component"; -import { HealthBarFill } from "../../components/health-bar-fill.component"; -import { RectComponent } from "../../components/renderable/rect.component"; -import { TextComponent } from "../../components/renderable/text.component"; -import { WaveHudComponent } from "../../components/wave-hud.component"; -import { MoneyHudComponent } from "../../components/money-hud.component"; -import { Player } from "../../components/player.component"; -import { BuildModeComponent, type BuildBarButton } from "../../components/build-mode.component"; -import { MIN_ZOOM, MAX_ZOOM, ZOOM_STEP } from "../build-mode.system"; -import { WeaponShopComponent } from "../../components/weapon-shop.component"; -import { BUILDING_CATALOG, type BuildingType } from "../../building-catalog"; -import { TOWER_RANGE } from "../../building-economy"; -import { WEAPON_CATALOG, type WeaponType } from "../../weapon-catalog"; -import { TILE_SIZE } from "../../map-data"; -import { Weapon } from "../../components/weapon.component"; -import { AmmoHudComponent } from "../../components/ammo-hud.component"; -import { ReloadIndicatorComponent } from "../../components/reload-indicator.component"; -import { WeaponReloadOverlayComponent } from "../../components/weapon-reload-overlay.component"; -import { CursorComponent } from "../../components/cursor.component"; -import { CURSOR_SCALE } from "../cursor.system"; -import { addCoinIcon } from "../../hud-helpers"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/graphics-2d"; +import "@nanoforge-dev/scene"; +import type { ServerMessageOf, StartingPlayer } from "@raid-survival/shared/protocol"; + +import { GameView } from "./components/game-view.component"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { SpriteComponent } from "./components/sprite.component"; +import { TransformComponent } from "./components/transform.component"; +import { Velocity } from "./components/velocity.component"; +import { MoveController } from "./components/move-controller.component"; +import { Arc, Circle, Layer, Rect, Ring, Shape } from "@nanoforge-dev/graphics-2d"; +import type { Vector } from "@raid-survival/shared/protocol"; +import { NetworkId } from "./components/network-id.component"; +import { Direction } from "./components/direction.component"; +import { ShootController } from "./components/shoot-controller.component"; +import { ReviveController } from "./components/revive-controller.component"; +import { ReviveIndicatorComponent } from "./components/revive-indicator.component"; +import { ReviveHintIndicatorComponent } from "./components/revive-hint-indicator.component"; +import { BuildingInteractIndicatorComponent } from "./components/building-interact-indicator.component"; +import { ChildrenComponent } from "./components/children.component"; +import { DirectionRotatorComponent } from "./components/direction-rotator.component"; +import { Lobby } from "./components/lobby.component"; +import { Health } from "./components/health.component"; +import { ZIndexComponent } from "./components/z-index.component"; +import { HealthBarFill } from "./components/health-bar-fill.component"; +import { RectComponent } from "./components/rect.component"; +import { TextComponent } from "./components/text.component"; +import { WaveHudComponent } from "./components/wave-hud.component"; +import { MoneyHudComponent } from "./components/money-hud.component"; +import { Player } from "./components/player.component"; +import { BuildModeComponent, type BuildBarButton } from "./components/build-mode.component"; +import { AMMO_ICON_SIZE, CURSOR_SCALE, MAX_ZOOM, MIN_ZOOM, WEAPON_LOCAL_OFFSET, ZOOM_STEP } from "./hud-layout"; +import { WeaponShopComponent } from "./components/weapon-shop.component"; +import { BUILDING_CATALOG, type BuildingType } from "@raid-survival/shared/building-catalog"; +import { TOWER_RANGE } from "@raid-survival/shared/tower"; +import { WEAPON_CATALOG, type WeaponType } from "@raid-survival/shared/weapon-catalog"; +import { TILE_SIZE } from "@raid-survival/shared/map"; +import { Weapon } from "./components/weapon.component"; +import { AmmoHudComponent } from "./components/ammo-hud.component"; +import { ReloadIndicatorComponent } from "./components/reload-indicator.component"; +import { WeaponReloadOverlayComponent } from "./components/weapon-reload-overlay.component"; +import { CursorComponent } from "./components/cursor.component"; +import { addCoinIcon } from "./hud-helpers"; const HEALTH_BAR_Z_INDEX = 30; // above hands (20) - health bars must render above nearby sprites // Strictly higher than the frame, not equal - zOrderSystem sorts ties by enumeration order, not @@ -99,29 +101,23 @@ const PLAYER_Z_INDEX = 16; // Held weapon sprite, just above the hand in z-order. Each weapon's rest-angle rotation offset // lives in weapon-catalog.ts, since a shotgun's art doesn't rest at the same angle as the pistol's. const WEAPON_Z_INDEX = 21; -// Exported so weapon-reload-animation.system.ts can rebuild a weapon's LocalTransform (this base -// offset plus that weapon's own catalog.handOffsetDelta) when the equipped type changes. -export const WEAPON_LOCAL_OFFSET: Vector2d = { x: 6, y: 12 }; // A weapon's (or its reload overlay's) LocalTransform: WEAPON_LOCAL_OFFSET plus its own // handOffsetDelta, if it has one. The hand and its weapon share one LocalTransform, but each // sprite's own pivot renders at its own position plus its own pivot - so unless a weapon's pivot // numerically matches hand.png's default center pivot (8,8), the two land at different world // points; handOffsetDelta corrects that gap (see weapon-catalog.ts for the derivation). -function weaponLocalOffset(catalog: { spriteKey: string; handOffsetDelta?: Vector2d }): Vector2d { +const weaponLocalOffset = (catalog: { spriteKey: string; handOffsetDelta?: Vector }): Vector => { const delta = catalog.handOffsetDelta; return delta ? { x: WEAPON_LOCAL_OFFSET.x + delta.x, y: WEAPON_LOCAL_OFFSET.y + delta.y } : WEAPON_LOCAL_OFFSET; -} +}; // Ammo HUD, bottom-left of the screen. Hidden entirely whenever nothing is equipped - see // reload-indicator.system.ts. const AMMO_HUD_LEFT_MARGIN = 14; const AMMO_HUD_BOTTOM_MARGIN = 14; -// Exported so weapon-inventory-packet.handler.ts can re-fit-scale the ammo HUD icon when the -// equipped weapon changes after construction. -export const AMMO_ICON_SIZE = { width: 32, height: 32 }; const AMMO_TEXT_SIZE = { width: 100, height: 32 }; const AMMO_HUD_GAP = 10; @@ -147,13 +143,13 @@ const SHOP_ENTRY_GAP = 14; const SHOP_ENTRY_HEIGHT = SHOP_BUY_HEIGHT + SHOP_SELECT_BUTTON_GAP + SHOP_SELECT_BUTTON_HEIGHT; const SHOP_TOP_MARGIN = 110; // clears the wave HUD -export function buildHealthBar( +export const buildHealthBar = ( layer: Layer, registry: Registry, parentEntity: ReturnType, parentWidth: number, health: { current: number; max: number }, -) { +) => { const frameLocalX = (parentWidth - HEALTH_BAR_FRAME_SIZE.width) / 2; const frameLocalY = -HEALTH_BAR_GAP_ABOVE; @@ -199,16 +195,16 @@ export function buildHealthBar( registry.addComponent(fill, new Direction(0, 0)); registry.addComponent(fill, new ZIndexComponent(HEALTH_BAR_FILL_Z_INDEX)); registry.addComponent(fill, new HealthBarFill(cavityLocalX)); -} +}; // "Press E to..." hint text above a tower/wall/the lobby's own health bar - starts empty/hidden; // building-interact-indicator.system.ts drives its text/visibility every tick. -export function buildInteractIndicator( +export const buildInteractIndicator = ( layer: Layer, registry: Registry, parentEntity: ReturnType, parentWidth: number, -) { +) => { const localX = parentWidth / 2; const localY = -INTERACT_INDICATOR_GAP_ABOVE; @@ -237,18 +233,18 @@ export function buildInteractIndicator( ); registry.addComponent(indicator, new Direction(0, 0)); registry.addComponent(indicator, new BuildingInteractIndicatorComponent(textComponent.text)); -} +}; // Grey->green "hold E to revive" progress circle, one per player, starting hidden. // revive-packet.handler.ts drives its visibility/progress from the server's revive.system.ts // events; revive-indicator.system.ts positions it every tick (raw Konva shapes, not a // SpriteComponent, so spriteSystem never touches it). -function buildReviveIndicator( +const buildReviveIndicator = ( layer: Layer, registry: Registry, parentEntity: ReturnType, parentWidth: number, -) { +) => { const localX = parentWidth / 2; const localY = -REVIVE_RING_GAP_ABOVE; @@ -279,16 +275,16 @@ function buildReviveIndicator( ); registry.addComponent(indicator, new Direction(0, 0)); registry.addComponent(indicator, new ReviveIndicatorComponent(background, fill)); -} +}; // "Hold E to revive" hint text above a player's own revive ring, starting hidden - // revive-hint-indicator.system.ts drives its visibility every tick. -function buildReviveHintIndicator( +const buildReviveHintIndicator = ( layer: Layer, registry: Registry, parentEntity: ReturnType, parentWidth: number, -) { +) => { const localX = parentWidth / 2; const localY = -REVIVE_HINT_TEXT_GAP_ABOVE; @@ -317,17 +313,17 @@ function buildReviveHintIndicator( ); registry.addComponent(indicator, new Direction(0, 0)); registry.addComponent(indicator, new ReviveHintIndicatorComponent(textComponent.text)); -} +}; // World-space "Reloading..." label above each player's health bar, starting hidden - // reload-indicator.system.ts drives visibility and repositions it every tick (Text isn't a // Sprite, so spriteSystem never touches it). -function buildReloadIndicator( +const buildReloadIndicator = ( layer: Layer, registry: Registry, parentEntity: ReturnType, parentWidth: number, -) { +) => { const localX = parentWidth / 2; const localY = -RELOAD_TEXT_GAP_ABOVE; @@ -353,24 +349,23 @@ function buildReloadIndicator( ); registry.addComponent(indicator, new Direction(0, 0)); registry.addComponent(indicator, new ReloadIndicatorComponent(textComponent.text)); -} +}; // The single hand + its held weapon for a player. `weaponType` null means unequipped: the weapon // sprite still exists (so weapon-inventory-packet.handler.ts has something to re-point later), // just hidden - reload-indicator.system.ts/weapon-visibility.system.ts own that visibility. -function buildHandAndWeapon( - scene: Scene, +const buildHandAndWeapon = ( + world: Layer, registry: Registry, playerEntity: ReturnType, - playerPosition: Vector2d, + playerPosition: Vector, weaponType: WeaponType | null, -) { - if (!scene.layer) return; +) => { const localOffset = WEAPON_LOCAL_OFFSET; const handEntity = registry.spawnEntity(); registry.addComponent(handEntity, new TransformComponent(playerPosition.x, playerPosition.y)); - registry.addComponent(handEntity, new SpriteComponent("hand.png", { layer: scene.layer })); + registry.addComponent(handEntity, new SpriteComponent("hand.png", { layer: world })); registry.addComponent( handEntity, new ChildrenComponent(playerEntity.getId(), { LocalTransform: localOffset }), @@ -391,7 +386,7 @@ function buildHandAndWeapon( registry.addComponent( weaponEntity, new SpriteComponent(initialCatalog.spriteKey, { - layer: scene.layer, + layer: world, animationsKey: initialCatalog.animationsKey, scale: { x: initialCatalog.scale, y: initialCatalog.scale }, // Where the hand actually grips this weapon's art, if not the frame's default center pivot. @@ -434,7 +429,7 @@ function buildHandAndWeapon( // "idle", so weapon-reload-animation.system.ts applies the real "reload" key once the sprite // actually exists. new SpriteComponent(reloadOverlayCatalog.reloadSpriteKey, { - layer: scene.layer, + layer: world, animationsKey: reloadOverlayCatalog.reloadAnimationsKey, frameRate: reloadOverlayCatalog.reloadFrameCount / reloadOverlayCatalog.reloadSeconds, // Same world-space scale and pivot as the held sprite - it's the same asset pack, same @@ -458,10 +453,14 @@ function buildHandAndWeapon( ); registry.addComponent(reloadOverlayEntity, new ZIndexComponent(WEAPON_Z_INDEX)); registry.addComponent(reloadOverlayEntity, new WeaponReloadOverlayComponent()); -} +}; -function buildPlayer(scene: Scene, playerPacket: any, registry: Registry) { - if (!scene.layer) return; +const buildPlayer = ( + world: Layer, + playerPacket: StartingPlayer, + registry: Registry, + playerId: number | undefined, +) => { const playerEntity = registry.spawnEntity(); registry.addComponent(playerEntity, new NetworkId(playerPacket.id)); @@ -483,7 +482,7 @@ function buildPlayer(scene: Scene, playerPacket: any, registry: Registry) { registry.addComponent( playerEntity, new SpriteComponent(`player${skin}.png`, { - layer: scene.layer, + layer: world, animationsKey: "player-animations.txt", }), ); @@ -497,26 +496,26 @@ function buildPlayer(scene: Scene, playerPacket: any, registry: Registry) { new Health(playerPacket.health.current, playerPacket.health.max), ); buildHealthBar( - scene.layer || new Layer(), + world, registry, playerEntity, PLAYER_SPRITE_SIZE.width, playerPacket.health, ); buildReviveIndicator( - scene.layer || new Layer(), + world, registry, playerEntity, PLAYER_SPRITE_SIZE.width, ); buildReviveHintIndicator( - scene.layer || new Layer(), + world, registry, playerEntity, PLAYER_SPRITE_SIZE.width, ); buildReloadIndicator( - scene.layer || new Layer(), + world, registry, playerEntity, PLAYER_SPRITE_SIZE.width, @@ -525,20 +524,20 @@ function buildPlayer(scene: Scene, playerPacket: any, registry: Registry) { // Every player visibly holds their weapon (not just the local one), so everyone agrees on what // everyone else's loadout looks like. buildHandAndWeapon( - scene, + world, registry, playerEntity, playerPacket.position, playerPacket.weaponType ?? null, ); -} +}; -function buildAmmoHud( +const buildAmmoHud = ( hudLayer: Layer, registry: Registry, weaponType: WeaponType | null, ammo: { magazineAmmo: number; reserveAmmo: number } | undefined, -) { +) => { const iconX = AMMO_HUD_LEFT_MARGIN; const iconY = window.innerHeight - AMMO_ICON_SIZE.height - AMMO_HUD_BOTTOM_MARGIN; @@ -579,9 +578,9 @@ function buildAmmoHud( const hudEntity = registry.spawnEntity(); registry.addComponent(hudEntity, new AmmoHudComponent(textComponent.text, iconSprite)); -} +}; -function buildCursor(hudLayer: Layer, registry: Registry) { +const buildCursor = (hudLayer: Layer, registry: Registry) => { const cursorEntity = registry.spawnEntity(); registry.addComponent( cursorEntity, @@ -596,9 +595,9 @@ function buildCursor(hudLayer: Layer, registry: Registry) { // Must never end up buried under other z-indexed sprites once anything else on the HUD changes // - zOrderSystem only reorders entities that have both ZIndexComponent and SpriteComponent. registry.addComponent(cursorEntity, new ZIndexComponent(CURSOR_Z_INDEX)); -} +}; -function buildLobby(scene: Scene, lobbyPacket: any, registry: Registry) { +const buildLobby = (world: Layer, lobbyPacket: any, registry: Registry) => { const lobbyEntity = registry.spawnEntity(); registry.addComponent(lobbyEntity, new NetworkId(lobbyPacket.id)); registry.addComponent( @@ -608,7 +607,7 @@ function buildLobby(scene: Scene, lobbyPacket: any, registry: Registry) { registry.addComponent( lobbyEntity, new SpriteComponent("objects.png", { - layer: scene.layer || new Layer(), + layer: world, animationsKey: "objects-animations.txt", }), ); @@ -619,21 +618,21 @@ function buildLobby(scene: Scene, lobbyPacket: any, registry: Registry) { new Health(lobbyPacket.health.current, lobbyPacket.health.max), ); buildHealthBar( - scene.layer || new Layer(), + world, registry, lobbyEntity, LOBBY_SPRITE_SIZE.width, lobbyPacket.health, ); buildInteractIndicator( - scene.layer || new Layer(), + world, registry, lobbyEntity, LOBBY_SPRITE_SIZE.width, ); -} +}; -function buildWaveHud(layer: Layer, registry: Registry) { +const buildWaveHud = (layer: Layer, registry: Registry) => { const totalWidth = WAVE_TEXT_SIZE.width + WAVE_HUD_GAP + @@ -727,9 +726,9 @@ function buildWaveHud(layer: Layer, registry: Registry) { countdownTextComponent.text, ), ); -} +}; -function buildMoneyHud(layer: Layer, registry: Registry, amount: number) { +const buildMoneyHud = (layer: Layer, registry: Registry, amount: number) => { const coinIcon = addCoinIcon( layer, MONEY_HUD_LEFT_MARGIN, @@ -756,9 +755,9 @@ function buildMoneyHud(layer: Layer, registry: Registry, amount: number) { hudEntity, new MoneyHudComponent(moneyTextComponent.text, amount, coinIcon), ); -} +}; -function buildBuildMode(worldLayer: Layer, hudLayer: Layer, registry: Registry) { +const buildBuildMode = (worldLayer: Layer, hudLayer: Layer, registry: Registry) => { // World-space, so it pans/scales with the camera and aligns to real tiles for free. const gridShape = new Shape({ stroke: GRID_STROKE, @@ -1067,12 +1066,12 @@ function buildBuildMode(worldLayer: Layer, hudLayer: Layer, registry: Registry) }; buildMode.barButtons.push(button); }); -} +}; // One column, one entry per catalog weapon, shown/hidden alongside the build bar. Clicking a // weapon's top row buys it if unowned, refills ammo if already owned; the row underneath // equips/unequips it - build-mode.system.ts owns the per-tick button state and click handling. -function buildWeaponShop(hudLayer: Layer, registry: Registry, localPlayer: any) { +const buildWeaponShop = (hudLayer: Layer, registry: Registry, localPlayer: any) => { const catalogEntries = Object.entries(WEAPON_CATALOG) as [ WeaponType, (typeof WEAPON_CATALOG)[WeaponType], @@ -1242,53 +1241,60 @@ function buildWeaponShop(hudLayer: Layer, registry: Registry, localPlayer: any) selectLabel: selectLabelComponent.text, }); }); -} - -function launchGame(packet: any, registry: Registry) { - const newScene = new GameScene(); - sceneManager.switchTo(newScene); - - buildLobby(newScene, packet.lobby, registry); +}; - packet.players.forEach((player: any) => { - buildPlayer(newScene, player, registry); +/** + * Builds a game from its `startGame` message: the layers, the map, the lobby, the players and the + * HUD. + */ +export const buildWorld = ( + registry: Registry, + ctx: Context, + packet: ServerMessageOf<"startGame">, +): void => { + const view = new GameView(); + view.world.scale({ x: view.worldScale, y: view.worldScale }); + const stage = ctx.graphics.stage; + stage.add(view.world); + stage.add(view.hud); + // The crosshair of cursor.system.ts replaces the OS cursor; GameView.destroy() restores it. + stage.container().style.cursor = "none"; + registry.addComponent(registry.spawnEntity(), view); + + const map = registry.spawnEntity(); + registry.addComponent(map, new TransformComponent(0, 0)); + registry.addComponent(map, new SpriteComponent("map.png", { layer: view.world })); + + buildLobby(view.world, packet.lobby, registry); + + const playerId = ctx.scenes.vars.get("playerId"); + packet.players.forEach((player) => { + buildPlayer(view.world, player, registry, playerId); }); - if (newScene.hudLayer) { - buildWaveHud(newScene.hudLayer, registry); - buildMoneyHud(newScene.hudLayer, registry, packet.money); - if (newScene.layer) buildBuildMode(newScene.layer, newScene.hudLayer, registry); - - const localPlayer = packet.players.find((player: any) => player.id === playerId); - buildWeaponShop(newScene.hudLayer, registry, localPlayer); - - if (localPlayer) { - // Reserve comes from the shared per-type record; magazine is on the equipped weapon's own - // state and arrives as its own field instead of living inside the weapons[] entry. - const findAmmo = (weaponType: WeaponType | null, magazineAmmo: number) => { - if (!weaponType) return undefined; - const reserveAmmo = - localPlayer.weapons.find((w: any) => w.weaponType === weaponType)?.reserveAmmo ?? 0; - return { magazineAmmo, reserveAmmo }; - }; - buildAmmoHud( - newScene.hudLayer, - registry, - localPlayer.weaponType, - findAmmo(localPlayer.weaponType, localPlayer.magazineAmmo), - ); - } + buildWaveHud(view.hud, registry); + buildMoneyHud(view.hud, registry, packet.money); + buildBuildMode(view.world, view.hud, registry); - buildCursor(newScene.hudLayer, registry); - } -} + const localPlayer = packet.players.find((player) => player.id === playerId); + buildWeaponShop(view.hud, registry, localPlayer); -export function startGamePacketHandler(packet: any, registry: Registry): void { - const entities: { LobbyStatusComponent: LobbyStatusComponent }[] = registry.getZipper([ - LobbyStatusComponent, - ]); - const firstLobbyStatus = entities[0]; + if (localPlayer) { + // Reserve comes from the shared per-type record; magazine is on the equipped weapon's own + // state and arrives as its own field instead of living inside the weapons[] entry. + const findAmmo = (weaponType: WeaponType | null, magazineAmmo: number) => { + if (!weaponType) return undefined; + const reserveAmmo = + localPlayer.weapons.find((w) => w.weaponType === weaponType)?.reserveAmmo ?? 0; + return { magazineAmmo, reserveAmmo }; + }; + buildAmmoHud( + view.hud, + registry, + localPlayer.weaponType, + findAmmo(localPlayer.weaponType, localPlayer.magazineAmmo), + ); + } - if (!firstLobbyStatus) return; - launchGame(packet, registry); -} + buildCursor(view.hud, registry); +}; diff --git a/games/raid-survival/apps/client/src/components/ammo-hud.component.ts b/games/raid-survival/apps/client/src/components/ammo-hud.component.ts new file mode 100644 index 0000000..ace3254 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/ammo-hud.component.ts @@ -0,0 +1,18 @@ +import { Text } from "@nanoforge-dev/graphics-2d"; +import { SpriteComponent } from "./sprite.component"; + +/** + * `icon` is the weapon-icon SpriteComponent (not just its Konva node) so reload-indicator.system.ts + * can toggle this row's visibility based on whether anything is equipped. + * + * @component + * @side client + */ +export class AmmoHudComponent { + name = "AmmoHudComponent"; + + constructor( + public text: Text, + public icon: SpriteComponent, + ) {} +} diff --git a/raid-survival/client/components/build-mode.component.ts b/games/raid-survival/apps/client/src/components/build-mode.component.ts similarity index 85% rename from raid-survival/client/components/build-mode.component.ts rename to games/raid-survival/apps/client/src/components/build-mode.component.ts index bffbcff..4ce5245 100644 --- a/raid-survival/client/components/build-mode.component.ts +++ b/games/raid-survival/apps/client/src/components/build-mode.component.ts @@ -1,5 +1,5 @@ import { Circle, Rect, Shape, Text } from "@nanoforge-dev/graphics-2d"; -import { type BuildingType } from "../building-catalog"; +import { type BuildingType } from "@raid-survival/shared/building-catalog"; export interface BuildBarButton { buildingType: BuildingType; @@ -29,8 +29,15 @@ export interface ScreenBox { height: number; } +/** + * The build mode of the local player: the grid, the placement preview, the build bar, the destroy + * button and the zoom buttons, all Konva nodes made by `buildWorld`. Driven by `buildModeSystem`. + * + * @component + * @side client + */ export class BuildModeComponent { - name = this.constructor.name; + name = "BuildModeComponent"; active: boolean = false; selectedBuildingType: BuildingType | null = null; @@ -62,6 +69,3 @@ export class BuildModeComponent { public targetZoomLevel: number = 1, ) {} } - -// * Required to generate code -export default BuildModeComponent.name; diff --git a/games/raid-survival/apps/client/src/components/building-interact-indicator.component.ts b/games/raid-survival/apps/client/src/components/building-interact-indicator.component.ts new file mode 100644 index 0000000..e13c0ea --- /dev/null +++ b/games/raid-survival/apps/client/src/components/building-interact-indicator.component.ts @@ -0,0 +1,14 @@ +import { Text } from "@nanoforge-dev/graphics-2d"; + +/** + * "Press E to..." hint shown above an interactable building's health bar. The proximity check is + * approximated client-side since Hitbox is server-only - see building-interact-indicator.system.ts. + * + * @component + * @side client + */ +export class BuildingInteractIndicatorComponent { + name = "BuildingInteractIndicatorComponent"; + + constructor(public text: Text) {} +} diff --git a/games/raid-survival/apps/client/src/components/building.component.ts b/games/raid-survival/apps/client/src/components/building.component.ts new file mode 100644 index 0000000..a89d625 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/building.component.ts @@ -0,0 +1,14 @@ +import { type BuildingType } from "@raid-survival/shared/building-catalog"; + +/** + * Marker + which catalog entry - used by build-mode's occupancy preview to know where existing + * buildings already are. + * + * @component + * @side client + */ +export class Building { + name = "Building"; + + constructor(public buildingType: BuildingType) {} +} diff --git a/games/raid-survival/apps/client/src/components/children.component.ts b/games/raid-survival/apps/client/src/components/children.component.ts new file mode 100644 index 0000000..fbe91b0 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/children.component.ts @@ -0,0 +1,22 @@ +import type { Vector } from "@raid-survival/shared/protocol"; + +export interface ChildrenOptions { + LocalTransform?: Vector; +} + +/** + * Makes an entity follow another one (`parentId`), at an offset, with `transformChildrenToParentSystem`. + * + * @component + * @side client + */ +export class ChildrenComponent { + name = "ChildrenComponent"; + parentId: number; + options: ChildrenOptions; + + constructor(parentId: number, options: ChildrenOptions) { + this.parentId = parentId; + this.options = options; + } +} diff --git a/games/raid-survival/apps/client/src/components/cursor.component.ts b/games/raid-survival/apps/client/src/components/cursor.component.ts new file mode 100644 index 0000000..1bbb069 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/cursor.component.ts @@ -0,0 +1,9 @@ +/** + * Marker on the custom crosshair HUD sprite entity - lets cursor.system.ts find it. + * + * @component + * @side client + */ +export class CursorComponent { + name = "CursorComponent"; +} diff --git a/raid-survival/client/components/direction-rotator.component.ts b/games/raid-survival/apps/client/src/components/direction-rotator.component.ts similarity index 74% rename from raid-survival/client/components/direction-rotator.component.ts rename to games/raid-survival/apps/client/src/components/direction-rotator.component.ts index 5217592..24e84cc 100644 --- a/raid-survival/client/components/direction-rotator.component.ts +++ b/games/raid-survival/apps/client/src/components/direction-rotator.component.ts @@ -1,5 +1,11 @@ +/** + * Rotates the sprite of an entity toward its `Direction`, with `rotateToDirectionSystem`. + * + * @component + * @side client + */ export class DirectionRotatorComponent { - name = this.constructor.name; + name = "DirectionRotatorComponent"; enable: boolean = true; offset: number; // A sprite that rotates through the full circle reads upside-down for half its arc unless diff --git a/games/raid-survival/apps/client/src/components/direction.component.ts b/games/raid-survival/apps/client/src/components/direction.component.ts new file mode 100644 index 0000000..0f73a4d --- /dev/null +++ b/games/raid-survival/apps/client/src/components/direction.component.ts @@ -0,0 +1,14 @@ +/** + * Where an entity aims, as a vector, from the server or the mouse. + * + * @component + * @side client + */ +export class Direction { + name = "Direction"; + + constructor( + public x: number, + public y: number, + ) {} +} diff --git a/games/raid-survival/apps/client/src/components/floating-text.component.ts b/games/raid-survival/apps/client/src/components/floating-text.component.ts new file mode 100644 index 0000000..c98b945 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/floating-text.component.ts @@ -0,0 +1,14 @@ +/** + * Marks a free-standing (no ChildrenComponent) Text entity that rises/fades over `duration` + * seconds - not swept by a server "kill" packet's child cascade, purely client-local/ephemeral. + * + * @component + * @side client + */ +export class FloatingTextComponent { + name = "FloatingTextComponent"; + + constructor(public duration: number) {} + + elapsed: number = 0; +} diff --git a/games/raid-survival/apps/client/src/components/game-view.component.ts b/games/raid-survival/apps/client/src/components/game-view.component.ts new file mode 100644 index 0000000..3a7dca5 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/game-view.component.ts @@ -0,0 +1,28 @@ +import { Layer } from "@nanoforge-dev/graphics-2d"; + +/** + * The layers a game is drawn on: `world`, scaled and moved by the camera, and `hud`, fixed on + * screen. The `gameView` system puts them on the stage; `destroy()` removes them when the game + * scene is unloaded. + * + * @component + * @side client + */ +export class GameView { + name = "GameView"; + + /** The map, the players, the zombies and the buildings. */ + readonly world = new Layer({ imageSmoothingEnabled: false }); + /** The screen-space interface: wave, money, ammo, shop, build bar and crosshair. */ + readonly hud = new Layer(); + + constructor( + /** Pixels on screen per world pixel, before the build mode's zoom. */ + public worldScale = 3, + ) {} + + destroy(): void { + this.world.destroy(); + this.hud.destroy(); + } +} diff --git a/raid-survival/client/components/renderable/group.component.ts b/games/raid-survival/apps/client/src/components/group.component.ts similarity index 61% rename from raid-survival/client/components/renderable/group.component.ts rename to games/raid-survival/apps/client/src/components/group.component.ts index 8b1c934..d5e6f0e 100644 --- a/raid-survival/client/components/renderable/group.component.ts +++ b/games/raid-survival/apps/client/src/components/group.component.ts @@ -1,8 +1,13 @@ import { GroupConfig, Group, Container } from "@nanoforge-dev/graphics-2d"; -import { SpriteComponent } from "./sprite.component"; +/** + * A Konva group added to a parent node, to lay out and move a widget as one. + * + * @component + * @side client + */ export class GroupComponent { - name = this.constructor.name; + name = "GroupComponent"; group: Group; constructor(parent: Container, options: GroupConfig) { @@ -10,6 +15,3 @@ export class GroupComponent { parent.add(this.group); } } - -// * Required to generate code -export default SpriteComponent.name; diff --git a/raid-survival/client/components/health-bar-fill.component.ts b/games/raid-survival/apps/client/src/components/health-bar-fill.component.ts similarity index 56% rename from raid-survival/client/components/health-bar-fill.component.ts rename to games/raid-survival/apps/client/src/components/health-bar-fill.component.ts index 7858086..94d7e7e 100644 --- a/raid-survival/client/components/health-bar-fill.component.ts +++ b/games/raid-survival/apps/client/src/components/health-bar-fill.component.ts @@ -1,10 +1,13 @@ +/** + * The fill of a health bar, scaled to the health of the entity it follows (`updateHealthBar`). + * + * @component + * @side client + */ export class HealthBarFill { - name = this.constructor.name; + name = "HealthBarFill"; // Fill's cavity-left-edge X in parent-local space - constant per instance, used to recompute // LocalTransform.x on a health change. constructor(public cavityLocalX: number) {} } - -// * Required to generate code -export default HealthBarFill.name; diff --git a/games/raid-survival/apps/client/src/components/health.component.ts b/games/raid-survival/apps/client/src/components/health.component.ts new file mode 100644 index 0000000..52e9864 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/health.component.ts @@ -0,0 +1,14 @@ +/** + * Health of an entity, as the server sent it. + * + * @component + * @side client + */ +export class Health { + name = "Health"; + + constructor( + public current: number, + public max: number, + ) {} +} diff --git a/raid-survival/client/components/lobby/lobby-status.ts b/games/raid-survival/apps/client/src/components/lobby-status.component.ts similarity index 70% rename from raid-survival/client/components/lobby/lobby-status.ts rename to games/raid-survival/apps/client/src/components/lobby-status.component.ts index 9220c14..6253bba 100644 --- a/raid-survival/client/components/lobby/lobby-status.ts +++ b/games/raid-survival/apps/client/src/components/lobby-status.component.ts @@ -16,8 +16,15 @@ export enum LobbyAction { START_GAME } +/** + * What the menu knows of the lobby: the username and skin entered, whether it joined, the + * players in it, the last error, and the action to send (`lobbyActionSenders`). + * + * @component + * @side client + */ export class LobbyStatusComponent { - name = this.constructor.name; + name = "LobbyStatusComponent"; username = ""; // Chosen character skin (player1.png..player3.png) - sent with the join request. skin: number = 1; @@ -26,4 +33,4 @@ export class LobbyStatusComponent { players: LobbyPlayer[] = []; // Set on a rejected join, rendered by MenuScene, cleared on the next successful join. error: string | null = null; -} \ No newline at end of file +} diff --git a/games/raid-survival/apps/client/src/components/lobby.component.ts b/games/raid-survival/apps/client/src/components/lobby.component.ts new file mode 100644 index 0000000..5320ed2 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/lobby.component.ts @@ -0,0 +1,9 @@ +/** + * Marks the lobby, the building the players defend. + * + * @component + * @side client + */ +export class Lobby { + name = "Lobby"; +} diff --git a/games/raid-survival/apps/client/src/components/money-hud.component.ts b/games/raid-survival/apps/client/src/components/money-hud.component.ts new file mode 100644 index 0000000..5ab2ad3 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/money-hud.component.ts @@ -0,0 +1,19 @@ +import { Text, Circle } from "@nanoforge-dev/graphics-2d"; + +/** + * `amount` is tracked as a plain number (not just baked into the display text) so other systems + * (build-mode's affordability checks) can read the balance directly. `coinIcon` is a raw Konva + * node with no SpriteComponent, so zOrderSystem never manages it - needs its own moveToTop(). + * + * @component + * @side client + */ +export class MoneyHudComponent { + name = "MoneyHudComponent"; + + constructor( + public text: Text, + public amount: number, + public coinIcon: Circle, + ) {} +} diff --git a/raid-survival/client/components/move-controller.component.ts b/games/raid-survival/apps/client/src/components/move-controller.component.ts similarity index 79% rename from raid-survival/client/components/move-controller.component.ts rename to games/raid-survival/apps/client/src/components/move-controller.component.ts index f42aef5..8796604 100644 --- a/raid-survival/client/components/move-controller.component.ts +++ b/games/raid-survival/apps/client/src/components/move-controller.component.ts @@ -1,7 +1,14 @@ import { InputEnum } from "@nanoforge-dev/input"; +/** + * Moves the local player with the keyboard: `moveControl` reads the keys, `sendMoveControl` sends + * them to the server when they change. + * + * @component + * @side client + */ export class MoveController { - name = this.constructor.name; + name = "MoveController"; public keyUp: InputEnum; public keyDown: InputEnum; public keyLeft: InputEnum; diff --git a/games/raid-survival/apps/client/src/components/network-id.component.ts b/games/raid-survival/apps/client/src/components/network-id.component.ts new file mode 100644 index 0000000..9f21e7e --- /dev/null +++ b/games/raid-survival/apps/client/src/components/network-id.component.ts @@ -0,0 +1,13 @@ +/** + * The id of the entity on the server, which the messages name. + * + * @component + * @side client + */ +export class NetworkId { + name = "NetworkId"; + + constructor( + public id: number, + ) {} +} diff --git a/games/raid-survival/apps/client/src/components/player.component.ts b/games/raid-survival/apps/client/src/components/player.component.ts new file mode 100644 index 0000000..7861d76 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/player.component.ts @@ -0,0 +1,9 @@ +/** + * Marker identifying a player entity (e.g. for player-death.system.ts). + * + * @component + * @side client + */ +export class Player { + name = "Player"; +} diff --git a/raid-survival/client/components/renderable/rect.component.ts b/games/raid-survival/apps/client/src/components/rect.component.ts similarity index 61% rename from raid-survival/client/components/renderable/rect.component.ts rename to games/raid-survival/apps/client/src/components/rect.component.ts index 28a84fa..9a682b6 100644 --- a/raid-survival/client/components/renderable/rect.component.ts +++ b/games/raid-survival/apps/client/src/components/rect.component.ts @@ -1,8 +1,13 @@ import { Container, Rect, RectConfig } from "@nanoforge-dev/graphics-2d"; -import { SpriteComponent } from "./sprite.component"; +/** + * A Konva rectangle added to a parent node. + * + * @component + * @side client + */ export class RectComponent { - name = this.constructor.name; + name = "RectComponent"; rect: Rect; constructor(parent: Container, options: RectConfig) { @@ -10,6 +15,3 @@ export class RectComponent { parent.add(this.rect); } } - -// * Required to generate code -export default SpriteComponent.name; \ No newline at end of file diff --git a/games/raid-survival/apps/client/src/components/reload-indicator.component.ts b/games/raid-survival/apps/client/src/components/reload-indicator.component.ts new file mode 100644 index 0000000..6de81cb --- /dev/null +++ b/games/raid-survival/apps/client/src/components/reload-indicator.component.ts @@ -0,0 +1,14 @@ +import { Text } from "@nanoforge-dev/graphics-2d"; + +/** + * World-space "Reloading..." label above a player's health bar. Positioned every tick by + * reload-indicator.system.ts since Text isn't a Sprite - spriteSystem never touches it. + * + * @component + * @side client + */ +export class ReloadIndicatorComponent { + name = "ReloadIndicatorComponent"; + + constructor(public text: Text) {} +} diff --git a/raid-survival/client/components/revive-controller.component.ts b/games/raid-survival/apps/client/src/components/revive-controller.component.ts similarity index 70% rename from raid-survival/client/components/revive-controller.component.ts rename to games/raid-survival/apps/client/src/components/revive-controller.component.ts index c93ddc4..905715c 100644 --- a/raid-survival/client/components/revive-controller.component.ts +++ b/games/raid-survival/apps/client/src/components/revive-controller.component.ts @@ -1,9 +1,14 @@ import { InputEnum } from "@nanoforge-dev/input"; -// Local-player-only controller for the hold-E revive channel. `held` is a plain level-triggered -// hold; range/timing is server-authoritative (see revive.system.ts). +/** + * Local-player-only controller for the hold-E revive channel. `held` is a plain level-triggered + * hold; range/timing is server-authoritative (see revive.system.ts). + * + * @component + * @side client + */ export class ReviveController { - name = this.constructor.name; + name = "ReviveController"; keyRevive: InputEnum = InputEnum.KeyE; held: boolean = false; @@ -15,6 +20,3 @@ export class ReviveController { wasHeld: boolean = false; interactRequested: boolean = false; } - -// * Required to generate code -export default ReviveController.name; diff --git a/games/raid-survival/apps/client/src/components/revive-hint-indicator.component.ts b/games/raid-survival/apps/client/src/components/revive-hint-indicator.component.ts new file mode 100644 index 0000000..f954721 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/revive-hint-indicator.component.ts @@ -0,0 +1,14 @@ +import { Text } from "@nanoforge-dev/graphics-2d"; + +/** + * "Hold E to revive" hint shown above a downed player, visible only to the local player when + * close enough - revive-hint-indicator.system.ts owns the (client-side-approximated) range check. + * + * @component + * @side client + */ +export class ReviveHintIndicatorComponent { + name = "ReviveHintIndicatorComponent"; + + constructor(public text: Text) {} +} diff --git a/raid-survival/client/components/revive-indicator.component.ts b/games/raid-survival/apps/client/src/components/revive-indicator.component.ts similarity index 53% rename from raid-survival/client/components/revive-indicator.component.ts rename to games/raid-survival/apps/client/src/components/revive-indicator.component.ts index 5a19070..98ad413 100644 --- a/raid-survival/client/components/revive-indicator.component.ts +++ b/games/raid-survival/apps/client/src/components/revive-indicator.component.ts @@ -1,10 +1,15 @@ import { Arc, Ring } from "@nanoforge-dev/graphics-2d"; -// Grey->green "hold E to revive" progress circle above a downed player, visible to everyone -// nearby. `background` is the static grey Ring; `fill` is the green Arc whose angle grows 0-360 -// as progress advances. Driven by revive.system.ts's server events via revive-packet.handler.ts. +/** + * Grey->green "hold E to revive" progress circle above a downed player, visible to everyone + * nearby. `background` is the static grey Ring; `fill` is the green Arc whose angle grows 0-360 + * as progress advances. Driven by revive.system.ts's server events via revive-packet.handler.ts. + * + * @component + * @side client + */ export class ReviveIndicatorComponent { - name = this.constructor.name; + name = "ReviveIndicatorComponent"; constructor( public background: Ring, @@ -15,6 +20,3 @@ export class ReviveIndicatorComponent { elapsed: number = 0; durationSeconds: number = 0; } - -// * Required to generate code -export default ReviveIndicatorComponent.name; diff --git a/games/raid-survival/apps/client/src/components/screen.component.ts b/games/raid-survival/apps/client/src/components/screen.component.ts new file mode 100644 index 0000000..53395df --- /dev/null +++ b/games/raid-survival/apps/client/src/components/screen.component.ts @@ -0,0 +1,21 @@ +import type { ScreenView } from "../views/screen-view"; + +/** + * The screen a menu scene shows. Spawned by the scene's system on its first tick, which then + * ticks it; `destroy()` unloads it when the scene is unloaded. + * + * @component + * @side client + */ +export class Screen { + name = "Screen"; + + constructor( + /** The screen, built on the first tick. */ + public view: ScreenView, + ) {} + + destroy(): void { + this.view.unload(); + } +} diff --git a/raid-survival/client/components/shoot.controller.ts b/games/raid-survival/apps/client/src/components/shoot-controller.component.ts similarity index 75% rename from raid-survival/client/components/shoot.controller.ts rename to games/raid-survival/apps/client/src/components/shoot-controller.component.ts index e32416d..e2685ce 100644 --- a/raid-survival/client/components/shoot.controller.ts +++ b/games/raid-survival/apps/client/src/components/shoot-controller.component.ts @@ -1,9 +1,16 @@ -import { Vector2d } from "@nanoforge-dev/graphics-2d"; +import type { Vector } from "@raid-survival/shared/protocol"; import { InputEnum } from "@nanoforge-dev/input"; +/** + * Aims and fires the weapon of the local player: `shootControl` reads the mouse and the keys, + * `sendShootControl` sends them. + * + * @component + * @side client + */ export class ShootController { - name = this.constructor.name; - public position: Vector2d = { x: 0, y: 0 }; + name = "ShootController"; + public position: Vector = { x: 0, y: 0 }; public aimingMode: "mouse" | "arrows" | "joystick"; public keyShoot: InputEnum; @@ -32,6 +39,3 @@ export class ShootController { this.keyShoot = clientConfig.keybinds.shoot; } } - -// * Required to generate code -export default ShootController.name; diff --git a/raid-survival/client/components/renderable/sprite.component.ts b/games/raid-survival/apps/client/src/components/sprite.component.ts similarity index 85% rename from raid-survival/client/components/renderable/sprite.component.ts rename to games/raid-survival/apps/client/src/components/sprite.component.ts index 7498a75..ceb0ebd 100644 --- a/raid-survival/client/components/renderable/sprite.component.ts +++ b/games/raid-survival/apps/client/src/components/sprite.component.ts @@ -1,19 +1,27 @@ -import { Layer, Sprite, Vector2d } from "@nanoforge-dev/graphics-2d"; +import { Layer, Sprite } from "@nanoforge-dev/graphics-2d"; +import type { Vector } from "@raid-survival/shared/protocol"; interface SpriteComponentOptions { animationsKey?: string; layer?: Layer; - scale?: Vector2d; + scale?: Vector; currentAnimation?: string; frameRate?: number; // Native-pixel point within the frame that rotation pivots around and that TransformComponent's // position resolves to (see sprite.system.ts). Defaults to the frame's geometric center; needed // when the art's actual grip/anchor point isn't centered in its crop. - pivot?: Vector2d; + pivot?: Vector; } +/** + * An animated sprite from an image of the assets and its animations file, drawn by `spriteSystem` + * on its layer and animated by `spriteAnimator`. + * + * @component + * @side client + */ export class SpriteComponent { - name = this.constructor.name; + name = "SpriteComponent"; spriteKey: string; sprite: Sprite | undefined; animationsKey?: string | undefined; @@ -26,11 +34,11 @@ export class SpriteComponent { // next setSpriteKey-triggered rebuild, not on an already-live sprite. frameRate: number = 7; - private _scale: Vector2d = { x: 1, y: 1 }; + private _scale: Vector = { x: 1, y: 1 }; private _currentAnimation: string = "idle"; private _flipped: boolean = false; private _flippedY: boolean = false; - private _pivot: Vector2d | undefined; + private _pivot: Vector | undefined; constructor(spriteKey: string, options?: SpriteComponentOptions) { this.spriteKey = spriteKey; @@ -68,22 +76,22 @@ export class SpriteComponent { this.sprite?.animation(animation); } - getScale(): Vector2d { + getScale(): Vector { return this._scale; } - setScale(scale: Vector2d) { + setScale(scale: Vector) { this._scale = scale; this.sprite?.scale(scale); } - getPivot(): Vector2d | undefined { + getPivot(): Vector | undefined { return this._pivot; } // Like frameRate, read by spriteSystem only at construction time - takes effect on the next // setSpriteKey-triggered rebuild, not the live sprite. - setPivot(pivot: Vector2d | undefined) { + setPivot(pivot: Vector | undefined) { this._pivot = pivot; } @@ -117,6 +125,3 @@ export class SpriteComponent { this.sprite?.scaleY(this._scale.y); } } - -// * Required to generate code -export default SpriteComponent.name; \ No newline at end of file diff --git a/raid-survival/client/components/renderable/text.component.ts b/games/raid-survival/apps/client/src/components/text.component.ts similarity index 69% rename from raid-survival/client/components/renderable/text.component.ts rename to games/raid-survival/apps/client/src/components/text.component.ts index 986ce2a..10326cd 100644 --- a/raid-survival/client/components/renderable/text.component.ts +++ b/games/raid-survival/apps/client/src/components/text.component.ts @@ -1,7 +1,13 @@ import { Container, Text, TextConfig } from "@nanoforge-dev/graphics-2d"; +/** + * A Konva text added to a parent node. + * + * @component + * @side client + */ export class TextComponent { - name = this.constructor.name; + name = "TextComponent"; text: Text; constructor(parent: Container, options: TextConfig) { @@ -9,6 +15,3 @@ export class TextComponent { parent.add(this.text); } } - -// * Required to generate code -export default TextComponent.name; \ No newline at end of file diff --git a/raid-survival/client/components/renderable/textarea.component.ts b/games/raid-survival/apps/client/src/components/textarea.component.ts similarity index 96% rename from raid-survival/client/components/renderable/textarea.component.ts rename to games/raid-survival/apps/client/src/components/textarea.component.ts index 37f1dd4..19ce52a 100644 --- a/raid-survival/client/components/renderable/textarea.component.ts +++ b/games/raid-survival/apps/client/src/components/textarea.component.ts @@ -8,8 +8,14 @@ import { TextConfig, } from "@nanoforge-dev/graphics-2d"; +/** + * A text field: a DOM textarea laid over a Konva text, clipped to its group, for the username. + * + * @component + * @side client + */ export class TextAreaComponent { - name = this.constructor.name; + name = "TextAreaComponent"; text: Text; wrapper: HTMLDivElement; textarea: HTMLTextAreaElement; diff --git a/games/raid-survival/apps/client/src/components/tower-level.component.ts b/games/raid-survival/apps/client/src/components/tower-level.component.ts new file mode 100644 index 0000000..73f683e --- /dev/null +++ b/games/raid-survival/apps/client/src/components/tower-level.component.ts @@ -0,0 +1,12 @@ +/** + * Client-side mirror of Tower.level (server), for display only - kept in sync by + * tower-update-packet.handler.ts. + * + * @component + * @side client + */ +export class TowerLevelComponent { + name = "TowerLevelComponent"; + + constructor(public level: number = 1) {} +} diff --git a/games/raid-survival/apps/client/src/components/transform.component.ts b/games/raid-survival/apps/client/src/components/transform.component.ts new file mode 100644 index 0000000..fed89fb --- /dev/null +++ b/games/raid-survival/apps/client/src/components/transform.component.ts @@ -0,0 +1,15 @@ +/** + * Position and rotation of an entity in the world, in pixels and degrees. + * + * @component + * @side client + */ +export class TransformComponent { + name = "TransformComponent"; + + constructor( + public x: number = 0, + public y: number = 0, + public rotation: number = 0, + ) {} +} diff --git a/games/raid-survival/apps/client/src/components/velocity.component.ts b/games/raid-survival/apps/client/src/components/velocity.component.ts new file mode 100644 index 0000000..f8d0375 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/velocity.component.ts @@ -0,0 +1,15 @@ +/** + * Speed of an entity, in pixels per second, from the server: `moveSystem` moves it between two + * messages. + * + * @component + * @side client + */ +export class Velocity { + name = "Velocity"; + + constructor( + public x: number, + public y: number, + ) {} +} diff --git a/raid-survival/client/components/wave-hud.component.ts b/games/raid-survival/apps/client/src/components/wave-hud.component.ts similarity index 65% rename from raid-survival/client/components/wave-hud.component.ts rename to games/raid-survival/apps/client/src/components/wave-hud.component.ts index 06825e7..6f5536a 100644 --- a/raid-survival/client/components/wave-hud.component.ts +++ b/games/raid-survival/apps/client/src/components/wave-hud.component.ts @@ -1,7 +1,13 @@ import { Rect, Text } from "@nanoforge-dev/graphics-2d"; +/** + * The wave HUD: the wave number, its progress, the zombies alive and the countdown to the next wave. + * + * @component + * @side client + */ export class WaveHudComponent { - name = this.constructor.name; + name = "WaveHudComponent"; constructor( public waveText: Text, @@ -12,6 +18,3 @@ export class WaveHudComponent { public countdownText: Text, ) {} } - -// * Required to generate code -export default WaveHudComponent.name; diff --git a/games/raid-survival/apps/client/src/components/weapon-reload-overlay.component.ts b/games/raid-survival/apps/client/src/components/weapon-reload-overlay.component.ts new file mode 100644 index 0000000..730bebd --- /dev/null +++ b/games/raid-survival/apps/client/src/components/weapon-reload-overlay.component.ts @@ -0,0 +1,10 @@ +/** + * Marker on a player's reload-animation overlay sprite entity (only for weapon types with a + * catalog reloadSpriteKey) - found via ChildrenComponent.parentId. + * + * @component + * @side client + */ +export class WeaponReloadOverlayComponent { + name = "WeaponReloadOverlayComponent"; +} diff --git a/raid-survival/client/components/weapon-shop.component.ts b/games/raid-survival/apps/client/src/components/weapon-shop.component.ts similarity index 81% rename from raid-survival/client/components/weapon-shop.component.ts rename to games/raid-survival/apps/client/src/components/weapon-shop.component.ts index 0744555..66eef65 100644 --- a/raid-survival/client/components/weapon-shop.component.ts +++ b/games/raid-survival/apps/client/src/components/weapon-shop.component.ts @@ -1,5 +1,5 @@ import { Circle, Rect, Text } from "@nanoforge-dev/graphics-2d"; -import { type WeaponType } from "../weapon-catalog"; +import { type WeaponType } from "@raid-survival/shared/weapon-catalog"; import { type ScreenBox } from "./build-mode.component"; export interface WeaponShopEntry { @@ -18,10 +18,15 @@ export interface OwnedWeaponAmmo { reserveAmmo: number; } -// Singleton, local player only. Visibility/button state owned by build-mode.system.ts; data kept -// in sync by weapon-inventory-packet.handler.ts and ammo-packet.handler.ts. +/** + * Singleton, local player only. Visibility/button state owned by build-mode.system.ts; data kept + * in sync by weapon-inventory-packet.handler.ts and ammo-packet.handler.ts. + * + * @component + * @side client + */ export class WeaponShopComponent { - name = this.constructor.name; + name = "WeaponShopComponent"; owned: Map = new Map(); equippedWeaponType: WeaponType | null = null; @@ -39,6 +44,3 @@ export class WeaponShopComponent { public hintText: Text, ) {} } - -// * Required to generate code -export default WeaponShopComponent.name; diff --git a/raid-survival/client/components/weapon.component.ts b/games/raid-survival/apps/client/src/components/weapon.component.ts similarity index 80% rename from raid-survival/client/components/weapon.component.ts rename to games/raid-survival/apps/client/src/components/weapon.component.ts index d121978..cf0ac8b 100644 --- a/raid-survival/client/components/weapon.component.ts +++ b/games/raid-survival/apps/client/src/components/weapon.component.ts @@ -1,8 +1,13 @@ -import { type WeaponType } from "../weapon-catalog"; +import { type WeaponType } from "@raid-survival/shared/weapon-catalog"; -// Marker on a player's single weapon child entity - found via ChildrenComponent.parentId. +/** + * Marker on a player's single weapon child entity - found via ChildrenComponent.parentId. + * + * @component + * @side client + */ export class Weapon { - name = this.constructor.name; + name = "Weapon"; constructor( // null while nothing is equipped - sprite is hidden in that state. @@ -23,6 +28,3 @@ export class Weapon { firing: boolean = false; firingElapsed: number = 0; } - -// * Required to generate code -export default Weapon.name; diff --git a/games/raid-survival/apps/client/src/components/z-index.component.ts b/games/raid-survival/apps/client/src/components/z-index.component.ts new file mode 100644 index 0000000..27e9095 --- /dev/null +++ b/games/raid-survival/apps/client/src/components/z-index.component.ts @@ -0,0 +1,13 @@ +/** + * Draw order of a sprite on its layer (`zOrderSystem`): higher is drawn on top. + * + * @component + * @side client + */ +export class ZIndexComponent { + name = "ZIndexComponent"; + + constructor( + public value: number = 0 + ) {} +} diff --git a/games/raid-survival/apps/client/src/game-view.ts b/games/raid-survival/apps/client/src/game-view.ts new file mode 100644 index 0000000..2ab2b8a --- /dev/null +++ b/games/raid-survival/apps/client/src/game-view.ts @@ -0,0 +1,7 @@ +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { GameView } from "./components/game-view.component"; + +/** The layers of the game on screen, while the game scene is loaded. */ +export const gameView = (registry: Registry): GameView | undefined => + (registry.getZipper([GameView]) as { GameView: GameView }[])[0]?.GameView; diff --git a/raid-survival/client/systems/packet-handlers/ammo-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/ammo.handler.ts similarity index 59% rename from raid-survival/client/systems/packet-handlers/ammo-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/ammo.handler.ts index 7d408ea..c827935 100644 --- a/raid-survival/client/systems/packet-handlers/ammo-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/ammo.handler.ts @@ -1,12 +1,14 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { AmmoHudComponent } from "../../components/ammo-hud.component"; -import { WeaponShopComponent } from "../../components/weapon-shop.component"; -import { playerId } from "../../main"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { AmmoHudComponent } from "../components/ammo-hud.component"; +import { WeaponShopComponent } from "../components/weapon-shop.component"; -export function ammoPacketHandler(packet: any, registry: Registry): void { +export const ammoHandler = (packet: ServerMessageOf<"ammo">, registry: Registry, ctx: Context): void => { // Only the local player has an ammo HUD/shop at all - it's a personal readout, not a per-player // one. - if (packet.id !== playerId) return; + if (packet.id !== ctx.scenes.vars.get("playerId")) return; const reserve = packet.reserveAmmo === -1 ? "∞" : packet.reserveAmmo; @@ -25,4 +27,4 @@ export function ammoPacketHandler(packet: any, registry: Registry): void { if (shop) { shop.owned.set(packet.weaponType, { reserveAmmo: packet.reserveAmmo }); } -} +}; diff --git a/raid-survival/client/systems/packet-handlers/build-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/build.handler.ts similarity index 65% rename from raid-survival/client/systems/packet-handlers/build-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/build.handler.ts index e1a86bc..ca935fe 100644 --- a/raid-survival/client/systems/packet-handlers/build-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/build.handler.ts @@ -1,7 +1,8 @@ +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; // A rejection here should only happen from a race (money spent or tile taken between the preview // and the click landing) - not worth full UI plumbing, but worth not silently swallowing. -export function buildPacketHandler(packet: any): void { +export const buildHandler = (packet: ServerMessageOf<"build">): void => { if (packet.result === "rejected") { console.warn("Build rejected:", packet.reason); } -} +}; diff --git a/games/raid-survival/apps/client/src/handlers/direction.handler.ts b/games/raid-survival/apps/client/src/handlers/direction.handler.ts new file mode 100644 index 0000000..7410630 --- /dev/null +++ b/games/raid-survival/apps/client/src/handlers/direction.handler.ts @@ -0,0 +1,14 @@ +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Direction } from "../components/direction.component"; + +export const directionHandler = (packet: ServerMessageOf<"direction">, registry: Registry): void => { + const zipper = registry.getZipper([NetworkId, Direction]); + const it = zipper.find((entity) => { + return entity.NetworkId.id === packet.id; + }); + if (!it) return; + it.Direction.x = packet.direction.x; + it.Direction.y = packet.direction.y; +}; diff --git a/games/raid-survival/apps/client/src/handlers/game-over.handler.ts b/games/raid-survival/apps/client/src/handlers/game-over.handler.ts new file mode 100644 index 0000000..4b82e06 --- /dev/null +++ b/games/raid-survival/apps/client/src/handlers/game-over.handler.ts @@ -0,0 +1,14 @@ +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; + +import { GameOver } from "../scenes/game-over.scene"; + +export const gameOverHandler = (packet: ServerMessageOf<"gameOver">, ctx: Context): void => { + ctx.scenes.vars.set( + "result", + { zombiesKilled: packet.zombiesKilled, won: packet.result === "victory" }, + { persistent: true }, + ); + void ctx.scenes.load(ctx, GameOver); +}; diff --git a/games/raid-survival/apps/client/src/handlers/handlers.ts b/games/raid-survival/apps/client/src/handlers/handlers.ts new file mode 100644 index 0000000..5af254d --- /dev/null +++ b/games/raid-survival/apps/client/src/handlers/handlers.ts @@ -0,0 +1,62 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import type { ServerMessage, ServerMessageOf } from "@raid-survival/shared/protocol"; + +import { ammoHandler } from "./ammo.handler"; +import { buildHandler } from "./build.handler"; +import { directionHandler } from "./direction.handler"; +import { gameOverHandler } from "./game-over.handler"; +import { healHandler } from "./heal.handler"; +import { hitHandler } from "./hit.handler"; +import { joinLobbyHandler } from "./join-lobby.handler"; +import { killHandler } from "./kill.handler"; +import { lobbyInfoHandler } from "./lobby-info.handler"; +import { lootHandler } from "./loot.handler"; +import { moneyHandler } from "./money.handler"; +import { moveHandler } from "./move.handler"; +import { reviveHandler } from "./revive.handler"; +import { shopRejectedHandler } from "./shop-rejected.handler"; +import { spawnHandler } from "./spawn.handler"; +import { startGameHandler } from "./start-game.handler"; +import { towerUpdateHandler } from "./tower-update.handler"; +import { waveInfoHandler } from "./wave-info.handler"; +import { weaponFiredHandler } from "./weapon-fired.handler"; +import { weaponInventoryHandler } from "./weapon-inventory.handler"; +import { weaponStateHandler } from "./weapon-state.handler"; +import { zombieStateHandler } from "./zombie-state.handler"; + +type Handlers = { + [T in ServerMessage["type"]]: ( + message: ServerMessageOf, + registry: Registry, + ctx: Context, + ) => void; +}; + +/** What the client does with each message the server sends, by its `type`. */ +export const SERVER_HANDLERS: Handlers = { + joinLobby: (message, registry, ctx) => joinLobbyHandler(message, registry, ctx), + lobbyInfo: (message, registry) => lobbyInfoHandler(message, registry), + startGame: startGameHandler, + spawn: (message, registry) => spawnHandler(message, registry), + move: (message, registry) => moveHandler(message, registry), + direction: (message, registry) => directionHandler(message, registry), + kill: (message, registry) => killHandler(message, registry), + hit: (message, registry) => hitHandler(message, registry), + heal: (message, registry) => healHandler(message, registry), + towerUpdate: (message, registry) => towerUpdateHandler(message, registry), + zombieState: (message, registry) => zombieStateHandler(message, registry), + waveInfo: (message, registry) => waveInfoHandler(message, registry), + money: (message, registry) => moneyHandler(message, registry), + loot: (message, registry) => lootHandler(message, registry), + revive: (message, registry) => reviveHandler(message, registry), + weaponState: (message, registry) => weaponStateHandler(message, registry), + weaponFired: (message, registry) => weaponFiredHandler(message, registry), + ammo: ammoHandler, + weaponInventory: weaponInventoryHandler, + build: (message) => buildHandler(message), + buyWeapon: shopRejectedHandler, + buyAmmo: shopRejectedHandler, + equipWeapon: shopRejectedHandler, + gameOver: (message, _registry, ctx) => gameOverHandler(message, ctx), +}; diff --git a/raid-survival/client/systems/packet-handlers/heal-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/heal.handler.ts similarity index 60% rename from raid-survival/client/systems/packet-handlers/heal-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/heal.handler.ts index 369483e..2f66583 100644 --- a/raid-survival/client/systems/packet-handlers/heal-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/heal.handler.ts @@ -1,9 +1,10 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { Health } from "../../components/health.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Health } from "../components/health.component"; import { updateHealthBarFill } from "../health-bar-update"; -export function healPacketHandler(packet: any, registry: Registry): void { +export const healHandler = (packet: ServerMessageOf<"heal">, registry: Registry): void => { const targets: { id: number; NetworkId: NetworkId; Health: Health }[] = registry.getIndexedZipper( [NetworkId, Health], ); @@ -14,4 +15,4 @@ export function healPacketHandler(packet: any, registry: Registry): void { target.Health.max = packet.health.max; const fraction = target.Health.max > 0 ? target.Health.current / target.Health.max : 0; updateHealthBarFill(registry, target.id, fraction); -} +}; diff --git a/raid-survival/client/systems/packet-handlers/hit-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/hit.handler.ts similarity index 61% rename from raid-survival/client/systems/packet-handlers/hit-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/hit.handler.ts index 1dd28fe..28e5924 100644 --- a/raid-survival/client/systems/packet-handlers/hit-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/hit.handler.ts @@ -1,9 +1,10 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { Health } from "../../components/health.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Health } from "../components/health.component"; import { updateHealthBarFill } from "../health-bar-update"; -export function hitPacketHandler(packet: any, registry: Registry): void { +export const hitHandler = (packet: ServerMessageOf<"hit">, registry: Registry): void => { const targets: { id: number; NetworkId: NetworkId; Health: Health }[] = registry.getIndexedZipper( [NetworkId, Health], ); @@ -16,4 +17,4 @@ export function hitPacketHandler(packet: any, registry: Registry): void { ); const fraction = target.Health.max > 0 ? target.Health.current / target.Health.max : 0; updateHealthBarFill(registry, target.id, fraction); -} +}; diff --git a/raid-survival/client/systems/packet-handlers/join-lobby-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/join-lobby.handler.ts similarity index 67% rename from raid-survival/client/systems/packet-handlers/join-lobby-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/join-lobby.handler.ts index 899035c..f6ca7c9 100644 --- a/raid-survival/client/systems/packet-handlers/join-lobby-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/join-lobby.handler.ts @@ -1,8 +1,10 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { LobbyState, LobbyStatusComponent } from "../../components/lobby/lobby-status"; -import {setPlayerId} from "../../main"; +import "@nanoforge-dev/scene"; +import type { Context } from "@nanoforge-dev/common"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { LobbyState, LobbyStatusComponent } from "../components/lobby-status.component"; -export function joinLobbyPacketHandler(packet: any, registry: Registry): void { +export const joinLobbyHandler = (packet: ServerMessageOf<"joinLobby">, registry: Registry, ctx: Context): void => { const entities: { LobbyStatusComponent: LobbyStatusComponent }[] = registry.getZipper([ LobbyStatusComponent, ]); @@ -14,14 +16,14 @@ export function joinLobbyPacketHandler(packet: any, registry: Registry): void { firstLobbyStatus.LobbyStatusComponent.state = LobbyState.JOINED; firstLobbyStatus.LobbyStatusComponent.error = null; firstLobbyStatus.LobbyStatusComponent.players = []; - for (const player of packet.players) { + for (const player of packet.players ?? []) { firstLobbyStatus.LobbyStatusComponent.players.push({ id: player.id, username: player.username, skin: player.skin ?? 1, }); if (player.username === firstLobbyStatus.LobbyStatusComponent.username) - setPlayerId(player.id); + ctx.scenes.vars.set("playerId", player.id, { persistent: true }); } } else if (packet.result === "full") { firstLobbyStatus.LobbyStatusComponent.error = "Lobby is full."; @@ -32,4 +34,4 @@ export function joinLobbyPacketHandler(packet: any, registry: Registry): void { } else { console.log(packet); } -} +}; diff --git a/raid-survival/client/systems/packet-handlers/kill-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/kill.handler.ts similarity index 65% rename from raid-survival/client/systems/packet-handlers/kill-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/kill.handler.ts index 4b4f33a..a3fae13 100644 --- a/raid-survival/client/systems/packet-handlers/kill-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/kill.handler.ts @@ -1,16 +1,17 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { ChildrenComponent } from "../../components/children.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { ReviveIndicatorComponent } from "../../components/revive-indicator.component"; -import { ReviveHintIndicatorComponent } from "../../components/revive-hint-indicator.component"; -import { ReloadIndicatorComponent } from "../../components/reload-indicator.component"; -import { BuildingInteractIndicatorComponent } from "../../components/building-interact-indicator.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { ChildrenComponent } from "../components/children.component"; +import { SpriteComponent } from "../components/sprite.component"; +import { ReviveIndicatorComponent } from "../components/revive-indicator.component"; +import { ReviveHintIndicatorComponent } from "../components/revive-hint-indicator.component"; +import { ReloadIndicatorComponent } from "../components/reload-indicator.component"; +import { BuildingInteractIndicatorComponent } from "../components/building-interact-indicator.component"; // registry.killEntity() only removes ECS-level components - the WASM ECS core has no knowledge of // Konva, so it can't touch the actual rendered node. Destroys every component type that owns one // directly, not just SpriteComponent (several indicators wrap a Text/Ring/Arc instead). -function destroySprite(registry: Registry, entityId: number): void { +const destroySprite = (registry: Registry, entityId: number): void => { const entity = registry.entityFromIndex(entityId); registry.getEntityComponent(entity, SpriteComponent)?.sprite?.destroy(); registry.getEntityComponent(entity, ReviveIndicatorComponent)?.background.destroy(); @@ -18,9 +19,9 @@ function destroySprite(registry: Registry, entityId: number): void { registry.getEntityComponent(entity, ReviveHintIndicatorComponent)?.text.destroy(); registry.getEntityComponent(entity, ReloadIndicatorComponent)?.text.destroy(); registry.getEntityComponent(entity, BuildingInteractIndicatorComponent)?.text.destroy(); -} +}; -export function killPacketHandler(packet: any, registry: Registry): void { +export const killHandler = (packet: ServerMessageOf<"kill">, registry: Registry): void => { const zipper = registry.getIndexedZipper([NetworkId]); const it = zipper.find((entity) => { return entity.NetworkId.id === packet.id; @@ -40,4 +41,4 @@ export function killPacketHandler(packet: any, registry: Registry): void { destroySprite(registry, it.id); registry.killEntity(registry.entityFromIndex(it.id)); -} +}; diff --git a/raid-survival/client/systems/packet-handlers/lobby-info-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/lobby-info.handler.ts similarity index 57% rename from raid-survival/client/systems/packet-handlers/lobby-info-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/lobby-info.handler.ts index 4a0347d..78d10cd 100644 --- a/raid-survival/client/systems/packet-handlers/lobby-info-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/lobby-info.handler.ts @@ -1,7 +1,8 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { LobbyStatusComponent } from "../../components/lobby/lobby-status"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { LobbyStatusComponent } from "../components/lobby-status.component"; -export function lobbyInfoPacketHandler(packet: any, registry: Registry): void { +export const lobbyInfoHandler = (packet: ServerMessageOf<"lobbyInfo">, registry: Registry): void => { const entities: { LobbyStatusComponent: LobbyStatusComponent }[] = registry.getZipper([ LobbyStatusComponent, ]); @@ -14,4 +15,4 @@ export function lobbyInfoPacketHandler(packet: any, registry: Registry): void { for (const player of packet.players) { firstLobbyStatus.LobbyStatusComponent.players.push({ id: player.id, username: player.username, skin: player.skin ?? 1 }); } -} +}; diff --git a/raid-survival/client/systems/packet-handlers/loot-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/loot.handler.ts similarity index 67% rename from raid-survival/client/systems/packet-handlers/loot-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/loot.handler.ts index aa8f4ee..d1940f4 100644 --- a/raid-survival/client/systems/packet-handlers/loot-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/loot.handler.ts @@ -1,14 +1,15 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { TextComponent } from "../../components/renderable/text.component"; -import { FloatingTextComponent } from "../../components/floating-text.component"; -import { sceneManager } from "../../main"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import { gameView } from "../game-view"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { TextComponent } from "../components/text.component"; +import { FloatingTextComponent } from "../components/floating-text.component"; const LOOT_TEXT_DURATION = 1.2; // seconds const LOOT_TEXT_SIZE = { width: 60, height: 16 }; // world-layer-local units const LOOT_TEXT_FONT_SIZE = 8; -export function lootPacketHandler(packet: any, registry: Registry): void { - const layer = sceneManager.getScene()?.layer; +export const lootHandler = (packet: ServerMessageOf<"loot">, registry: Registry): void => { + const layer = gameView(registry)?.world; if (!layer) return; const textEntity = registry.spawnEntity(); @@ -28,4 +29,4 @@ export function lootPacketHandler(packet: any, registry: Registry): void { registry.addComponent(textEntity, textComponent); // No ChildrenComponent/NetworkId - untouched by the zombie's own delayed "kill" packet. registry.addComponent(textEntity, new FloatingTextComponent(LOOT_TEXT_DURATION)); -} +}; diff --git a/games/raid-survival/apps/client/src/handlers/money.handler.ts b/games/raid-survival/apps/client/src/handlers/money.handler.ts new file mode 100644 index 0000000..8f6d71d --- /dev/null +++ b/games/raid-survival/apps/client/src/handlers/money.handler.ts @@ -0,0 +1,12 @@ +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { MoneyHudComponent } from "../components/money-hud.component"; + +export const moneyHandler = (packet: ServerMessageOf<"money">, registry: Registry): void => { + const entities: { MoneyHudComponent: MoneyHudComponent }[] = registry.getZipper([MoneyHudComponent]); + const hud = entities[0]?.MoneyHudComponent; + if (!hud) return; + + hud.amount = packet.amount; + hud.text.text(`Coins: ${packet.amount}`); +}; diff --git a/games/raid-survival/apps/client/src/handlers/move.handler.ts b/games/raid-survival/apps/client/src/handlers/move.handler.ts new file mode 100644 index 0000000..11aed25 --- /dev/null +++ b/games/raid-survival/apps/client/src/handlers/move.handler.ts @@ -0,0 +1,18 @@ +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { TransformComponent } from "../components/transform.component"; +import { Velocity } from "../components/velocity.component"; +import { NetworkId } from "../components/network-id.component"; + +export const moveHandler = (packet: ServerMessageOf<"move">, registry: Registry): void => { + const zipper = registry.getZipper([NetworkId, TransformComponent, Velocity]); + const it = zipper.find((entity) => { + return entity.NetworkId.id === packet.id; + }); + if (!it) return; + + it.TransformComponent.x = packet.position.x; + it.TransformComponent.y = packet.position.y; + it.Velocity.x = packet.velocity.x; + it.Velocity.y = packet.velocity.y; +}; diff --git a/raid-survival/client/systems/packet-handlers/revive-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/revive.handler.ts similarity index 75% rename from raid-survival/client/systems/packet-handlers/revive-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/revive.handler.ts index 0bf2a9c..85c1ea0 100644 --- a/raid-survival/client/systems/packet-handlers/revive-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/revive.handler.ts @@ -1,13 +1,14 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { Health } from "../../components/health.component"; -import { ChildrenComponent } from "../../components/children.component"; -import { ReviveIndicatorComponent } from "../../components/revive-indicator.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Health } from "../components/health.component"; +import { ChildrenComponent } from "../components/children.component"; +import { ReviveIndicatorComponent } from "../components/revive-indicator.component"; // Server (revive.system.ts) is authoritative - this just applies its events: show/hide the // target's revive ring, and on "completed" set Health directly (which also flips // player-death.system.ts back to "idle"). -export function revivePacketHandler(packet: any, registry: Registry): void { +export const reviveHandler = (packet: ServerMessageOf<"revive">, registry: Registry): void => { const targets: { id: number; NetworkId: NetworkId; Health: Health }[] = registry.getIndexedZipper( [NetworkId, Health], ); @@ -49,4 +50,4 @@ export function revivePacketHandler(packet: any, registry: Registry): void { } break; } -} +}; diff --git a/raid-survival/client/systems/packet-handlers/shop-rejected-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/shop-rejected.handler.ts similarity index 62% rename from raid-survival/client/systems/packet-handlers/shop-rejected-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/shop-rejected.handler.ts index ef57a1b..887beaf 100644 --- a/raid-survival/client/systems/packet-handlers/shop-rejected-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/shop-rejected.handler.ts @@ -1,9 +1,12 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { TransformComponent } from "../../components/essentials/transform.component"; -import { NetworkId } from "../../components/network-id.component"; -import { TextComponent } from "../../components/renderable/text.component"; -import { FloatingTextComponent } from "../../components/floating-text.component"; -import { playerId, sceneManager } from "../../main"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import { gameView } from "../game-view"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { TransformComponent } from "../components/transform.component"; +import { NetworkId } from "../components/network-id.component"; +import { TextComponent } from "../components/text.component"; +import { FloatingTextComponent } from "../components/floating-text.component"; const REJECTED_TEXT_DURATION = 1.5; // seconds const REJECTED_TEXT_SIZE = { width: 140, height: 16 }; // world-layer-local units @@ -12,13 +15,13 @@ const REJECTED_TEXT_FONT_SIZE = 8; // Shared handler for buyWeapon/buyAmmo/equipWeapon rejections (a success is reflected via the // separate weaponInventory/money/ammo broadcasts instead). Shown as floating text above the local // player, reusing loot-packet.handler.ts's floating-text mechanism. -export function shopRejectedPacketHandler(packet: any, registry: Registry): void { - const layer = sceneManager.getScene()?.layer; +export const shopRejectedHandler = (packet: ServerMessageOf<"buyWeapon" | "buyAmmo" | "equipWeapon">, registry: Registry, ctx: Context): void => { + const layer = gameView(registry)?.world; if (!layer) return; const players: { NetworkId: NetworkId; TransformComponent: TransformComponent }[] = registry.getZipper([NetworkId, TransformComponent]); - const player = players.find((entity) => entity.NetworkId.id === playerId); + const player = players.find((entity) => entity.NetworkId.id === ctx.scenes.vars.get("playerId")); if (!player) return; const textEntity = registry.spawnEntity(); @@ -36,4 +39,4 @@ export function shopRejectedPacketHandler(packet: any, registry: Registry): void }); registry.addComponent(textEntity, textComponent); registry.addComponent(textEntity, new FloatingTextComponent(REJECTED_TEXT_DURATION)); -} +}; diff --git a/raid-survival/client/systems/packet-handlers/spawn-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/spawn.handler.ts similarity index 70% rename from raid-survival/client/systems/packet-handlers/spawn-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/spawn.handler.ts index cf373f9..4c4b205 100644 --- a/raid-survival/client/systems/packet-handlers/spawn-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/spawn.handler.ts @@ -1,22 +1,18 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { TransformComponent } from "../../components/essentials/transform.component"; -import { Velocity } from "../../components/essentials/velocity.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { Direction } from "../../components/direction.component"; -import { Layer } from "@nanoforge-dev/graphics-2d"; -import { clientConfig, sceneManager } from "../../main"; -import { ShootController } from "../../components/shoot.controller"; -import { MoveController } from "../../components/move-controller.component"; -import { Entity } from "@nanoforge-dev/ecs-server"; -import { ChildrenComponent } from "../../components/children.component"; -import { Health } from "../../components/health.component"; -import { ZIndexComponent } from "../../components/essentials/z-index.component"; -import { buildHealthBar, buildInteractIndicator } from "./start-game-packet.handler"; -import { Player } from "../../components/player.component"; -import { Building } from "../../components/building.component"; -import { TowerLevelComponent } from "../../components/tower-level.component"; -import { TILE_SIZE } from "../../map-data"; +import { gameView } from "../game-view"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { TransformComponent } from "../components/transform.component"; +import { Velocity } from "../components/velocity.component"; +import { SpriteComponent } from "../components/sprite.component"; +import { Direction } from "../components/direction.component"; +import { ChildrenComponent } from "../components/children.component"; +import { Health } from "../components/health.component"; +import { ZIndexComponent } from "../components/z-index.component"; +import { buildHealthBar, buildInteractIndicator } from "../build-world"; +import { Building } from "../components/building.component"; +import { TowerLevelComponent } from "../components/tower-level.component"; +import { TILE_SIZE } from "@raid-survival/shared/map"; // Scales wall-animations.txt's 18x27 crop down slightly to fit the tile's 16px width. const BUILDING_SPRITE_SCALE = { x: 0.85, y: 0.85 }; @@ -61,42 +57,9 @@ const LOOT_BOX_ANIMATIONS_KEYS: Record<"heal" | "gold" | "ammo", string> = { ammo: "loot-ammo-animations.txt", }; -function buildPlayer(newEnt: Entity, packet: any, registry: Registry) { - registry.addComponent(newEnt, new Player()); - - if (packet.login === clientConfig.login) { - registry.addComponent(newEnt, new MoveController(clientConfig)); - registry.addComponent(newEnt, new ShootController(clientConfig)); - } - - registry.addComponent(newEnt, new Direction(packet.direction.x, packet.direction.y)); - registry.addComponent(newEnt, new Velocity(packet.velocity.x, packet.velocity.y)); - // Currently unreachable - nothing server-side sends a "spawn" packet with entityType:"player" - // (players are built via start-game-packet.handler.ts's own buildPlayer instead) - but resolved - // to the player's real skin rather than a "player.png" file that doesn't exist, in case that - // ever changes. - const skin = - Number.isInteger(packet.skin) && packet.skin >= 1 && packet.skin <= 3 ? packet.skin : 1; - registry.addComponent( - newEnt, - new SpriteComponent(`player${skin}.png`, { - animationsKey: "player-animations.txt", - scale: { x: 3, y: 3 }, - }), - ); - - const hand = registry.spawnEntity(); - registry.addComponent(hand, new TransformComponent(packet.position.x, packet.position.y)); - registry.addComponent( - hand, - new SpriteComponent("hands.png", { - scale: { x: 3, y: 3 }, - }), - ); - registry.addComponent(hand, new ChildrenComponent(newEnt.getId(), {})); -} - -export function spawnPacketHandler(packet: any, registry: Registry): void { +export const spawnHandler = (packet: ServerMessageOf<"spawn">, registry: Registry): void => { + const world = gameView(registry)?.world; + if (!world) return; const zipper = registry.getZipper([NetworkId]); const it = zipper.find(({ NetworkId }) => { return NetworkId.id === packet.id; @@ -116,9 +79,6 @@ export function spawnPacketHandler(packet: any, registry: Registry): void { registry.addComponent(newEnt, new NetworkId(packet.id)); } switch (packet.entityType) { - case "player": - buildPlayer(newEnt, packet, registry); - break; case "zombie": registry.addComponent(newEnt, new Velocity(packet.velocity.x, packet.velocity.y)); // No Direction component: sprite-animator.system.ts would try to play a "walk" animation @@ -128,12 +88,12 @@ export function spawnPacketHandler(packet: any, registry: Registry): void { registry.addComponent( newEnt, new SpriteComponent("GZ2-Zombie-Puncher.png", { - layer: sceneManager.getScene()?.layer || new Layer(), + layer: world, animationsKey: "zombie-animations.txt", }), ); buildHealthBar( - sceneManager.getScene()?.layer || new Layer(), + world, registry, newEnt, ZOMBIE_SPRITE_SIZE.width, @@ -143,7 +103,7 @@ export function spawnPacketHandler(packet: any, registry: Registry): void { case "building": { // zOrderSystem only reorders entities with both ZIndexComponent and SpriteComponent. registry.addComponent(newEnt, new ZIndexComponent(10)); - const layer = sceneManager.getScene()?.layer || new Layer(); + const layer = world; if (packet.buildingType === "tower") { // "idle" IS level 1's crop, so this renders correctly without an extra setAnimation call. registry.addComponent( @@ -213,7 +173,7 @@ export function spawnPacketHandler(packet: any, registry: Registry): void { registry.addComponent( newEnt, new SpriteComponent("objects.png", { - layer: sceneManager.getScene()?.layer || new Layer(), + layer: world, animationsKey: LOOT_BOX_ANIMATIONS_KEYS[packet.lootType as "heal" | "gold" | "ammo"] ?? LOOT_BOX_ANIMATIONS_KEYS.gold, @@ -232,17 +192,10 @@ export function spawnPacketHandler(packet: any, registry: Registry): void { registry.addComponent( newEnt, new SpriteComponent("weapons.png", { - layer: sceneManager.getScene()?.layer || new Layer(), + layer: world, animationsKey: "bullet-animations.txt", }), ); break; - case "map": - registry.addComponent(newEnt, new SpriteComponent("map.png")); - break; - case "nexus": - break; - default: - console.error("entity type unknow: ", packet.entityType); } -} +}; diff --git a/games/raid-survival/apps/client/src/handlers/start-game.handler.ts b/games/raid-survival/apps/client/src/handlers/start-game.handler.ts new file mode 100644 index 0000000..d41d748 --- /dev/null +++ b/games/raid-survival/apps/client/src/handlers/start-game.handler.ts @@ -0,0 +1,18 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/scene"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; + +import { LobbyStatusComponent } from "../components/lobby-status.component"; +import { Game } from "../scenes/game.scene"; + +/** Moves from the lobby to the game: the `launchGame` system builds the world from `start`. */ +export const startGameHandler = ( + packet: ServerMessageOf<"startGame">, + registry: Registry, + ctx: Context, +): void => { + if (registry.getZipper([LobbyStatusComponent]).length === 0) return; + ctx.scenes.vars.set("start", packet, { persistent: true }); + void ctx.scenes.load(ctx, Game); +}; diff --git a/raid-survival/client/systems/packet-handlers/tower-update-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/tower-update.handler.ts similarity index 65% rename from raid-survival/client/systems/packet-handlers/tower-update-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/tower-update.handler.ts index bfe27c1..41589d2 100644 --- a/raid-survival/client/systems/packet-handlers/tower-update-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/tower-update.handler.ts @@ -1,13 +1,14 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { Health } from "../../components/health.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { TowerLevelComponent } from "../../components/tower-level.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Health } from "../components/health.component"; +import { SpriteComponent } from "../components/sprite.component"; +import { TowerLevelComponent } from "../components/tower-level.component"; import { updateHealthBarFill } from "../health-bar-update"; // Result of a tower heal or upgrade (only `level` tells them apart - unchanged vs. +1). Always // applies Health and re-asserts the sprite frame; setAnimation() no-ops if the key is unchanged. -export function towerUpdatePacketHandler(packet: any, registry: Registry): void { +export const towerUpdateHandler = (packet: ServerMessageOf<"towerUpdate">, registry: Registry): void => { const targets: { id: number; NetworkId: NetworkId; @@ -25,4 +26,4 @@ export function towerUpdatePacketHandler(packet: any, registry: Registry): void target.TowerLevelComponent.level = packet.level; target.SpriteComponent.setAnimation(`level${packet.level}`); -} +}; diff --git a/raid-survival/client/systems/packet-handlers/wave-info-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/wave-info.handler.ts similarity index 68% rename from raid-survival/client/systems/packet-handlers/wave-info-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/wave-info.handler.ts index a106f35..23ca5ce 100644 --- a/raid-survival/client/systems/packet-handlers/wave-info-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/wave-info.handler.ts @@ -1,7 +1,8 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { WaveHudComponent } from "../../components/wave-hud.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { WaveHudComponent } from "../components/wave-hud.component"; -export function waveInfoPacketHandler(packet: any, registry: Registry): void { +export const waveInfoHandler = (packet: ServerMessageOf<"waveInfo">, registry: Registry): void => { const entities: { WaveHudComponent: WaveHudComponent }[] = registry.getZipper([WaveHudComponent]); const hud = entities[0]?.WaveHudComponent; if (!hud) return; @@ -19,4 +20,4 @@ export function waveInfoPacketHandler(packet: any, registry: Registry): void { } else { hud.countdownText.visible(false); } -} +}; diff --git a/raid-survival/client/systems/packet-handlers/weapon-fired-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/weapon-fired.handler.ts similarity index 66% rename from raid-survival/client/systems/packet-handlers/weapon-fired-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/weapon-fired.handler.ts index e282407..7947d3c 100644 --- a/raid-survival/client/systems/packet-handlers/weapon-fired-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/weapon-fired.handler.ts @@ -1,12 +1,13 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { Weapon } from "../../components/weapon.component"; -import { ChildrenComponent } from "../../components/children.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Weapon } from "../components/weapon.component"; +import { ChildrenComponent } from "../components/children.component"; // Server-broadcast at the exact moment a shot fires, so every player's shots animate (not just // the local one). Purely a visual trigger - weapon-reload-animation.system.ts turns this into an // actual animation. -export function weaponFiredPacketHandler(packet: any, registry: Registry): void { +export const weaponFiredHandler = (packet: ServerMessageOf<"weaponFired">, registry: Registry): void => { const players: { id: number; NetworkId: NetworkId }[] = registry.getIndexedZipper([NetworkId]); const player = players.find((p) => p.NetworkId.id === packet.id); if (!player) return; @@ -23,4 +24,4 @@ export function weaponFiredPacketHandler(packet: any, registry: Registry): void match.Weapon.firing = true; match.Weapon.firingElapsed = 0; -} +}; diff --git a/raid-survival/client/systems/packet-handlers/weapon-inventory-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/weapon-inventory.handler.ts similarity index 74% rename from raid-survival/client/systems/packet-handlers/weapon-inventory-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/weapon-inventory.handler.ts index bbb3d8e..1302f8a 100644 --- a/raid-survival/client/systems/packet-handlers/weapon-inventory-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/weapon-inventory.handler.ts @@ -1,17 +1,19 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { ChildrenComponent } from "../../components/children.component"; -import { Weapon } from "../../components/weapon.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { WeaponShopComponent } from "../../components/weapon-shop.component"; -import { AmmoHudComponent } from "../../components/ammo-hud.component"; -import { WEAPON_CATALOG, type WeaponType } from "../../weapon-catalog"; -import { AMMO_ICON_SIZE } from "./start-game-packet.handler"; -import { playerId } from "../../main"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { ChildrenComponent } from "../components/children.component"; +import { Weapon } from "../components/weapon.component"; +import { SpriteComponent } from "../components/sprite.component"; +import { WeaponShopComponent } from "../components/weapon-shop.component"; +import { AmmoHudComponent } from "../components/ammo-hud.component"; +import { WEAPON_CATALOG, type WeaponType } from "@raid-survival/shared/weapon-catalog"; +import { AMMO_ICON_SIZE } from "../hud-layout"; // Handles a buy/ammo-refill/equip result for any player - every client renders every player's // weapon, not just its own. -export function weaponInventoryPacketHandler(packet: any, registry: Registry): void { +export const weaponInventoryHandler = (packet: ServerMessageOf<"weaponInventory">, registry: Registry, ctx: Context): void => { const players: { id: number; NetworkId: NetworkId }[] = registry.getIndexedZipper([NetworkId]); const player = players.find((p) => p.NetworkId.id === packet.id); if (!player) return; @@ -37,7 +39,7 @@ export function weaponInventoryPacketHandler(packet: any, registry: Registry): v } // Local-only: keep the shop panel's "what do I own / what's equipped" state in sync. - if (packet.id !== playerId) return; + if (packet.id !== ctx.scenes.vars.get("playerId")) return; const shops: { WeaponShopComponent: WeaponShopComponent }[] = registry.getZipper([ WeaponShopComponent, @@ -69,4 +71,4 @@ export function weaponInventoryPacketHandler(packet: any, registry: Registry): v hud.icon.setAnimation(catalog.iconAnimation); hud.icon.setScale({ x: fitScale, y: fitScale }); } -} +}; diff --git a/raid-survival/client/systems/packet-handlers/weapon-state-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/weapon-state.handler.ts similarity index 67% rename from raid-survival/client/systems/packet-handlers/weapon-state-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/weapon-state.handler.ts index d191997..ecaa45a 100644 --- a/raid-survival/client/systems/packet-handlers/weapon-state-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/weapon-state.handler.ts @@ -1,9 +1,10 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { Weapon } from "../../components/weapon.component"; -import { ChildrenComponent } from "../../components/children.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { Weapon } from "../components/weapon.component"; +import { ChildrenComponent } from "../components/children.component"; -export function weaponStatePacketHandler(packet: any, registry: Registry): void { +export const weaponStateHandler = (packet: ServerMessageOf<"weaponState">, registry: Registry): void => { const players: { id: number; NetworkId: NetworkId }[] = registry.getIndexedZipper([NetworkId]); const player = players.find((p) => p.NetworkId.id === packet.id); if (!player) return; @@ -23,4 +24,4 @@ export function weaponStatePacketHandler(packet: any, registry: Registry): void // Only present on the "reloading" broadcast - lets the reload animation match the real duration. if (typeof packet.reloadSeconds === "number") match.Weapon.reloadDurationSeconds = packet.reloadSeconds; -} +}; diff --git a/raid-survival/client/systems/packet-handlers/zombie-state-packet.handler.ts b/games/raid-survival/apps/client/src/handlers/zombie-state.handler.ts similarity index 74% rename from raid-survival/client/systems/packet-handlers/zombie-state-packet.handler.ts rename to games/raid-survival/apps/client/src/handlers/zombie-state.handler.ts index 95fcdad..2ec0605 100644 --- a/raid-survival/client/systems/packet-handlers/zombie-state-packet.handler.ts +++ b/games/raid-survival/apps/client/src/handlers/zombie-state.handler.ts @@ -1,10 +1,11 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { NetworkId } from "../../components/network-id.component"; -import { TransformComponent } from "../../components/essentials/transform.component"; -import { Velocity } from "../../components/essentials/velocity.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; +import type { ServerMessageOf } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { NetworkId } from "../components/network-id.component"; +import { TransformComponent } from "../components/transform.component"; +import { Velocity } from "../components/velocity.component"; +import { SpriteComponent } from "../components/sprite.component"; -export function zombieStatePacketHandler(packet: any, registry: Registry): void { +export const zombieStateHandler = (packet: ServerMessageOf<"zombieState">, registry: Registry): void => { const entities: { NetworkId: NetworkId; TransformComponent: TransformComponent; @@ -40,4 +41,4 @@ export function zombieStatePacketHandler(packet: any, registry: Registry): void konvaSprite.on("frameIndexChange.deathFreeze", freezeOnLastFrame); } } -} +}; diff --git a/raid-survival/client/systems/health-bar-update.ts b/games/raid-survival/apps/client/src/health-bar-update.ts similarity index 75% rename from raid-survival/client/systems/health-bar-update.ts rename to games/raid-survival/apps/client/src/health-bar-update.ts index cc7c06c..ce2cc88 100644 --- a/raid-survival/client/systems/health-bar-update.ts +++ b/games/raid-survival/apps/client/src/health-bar-update.ts @@ -1,7 +1,7 @@ -import { Registry } from "@nanoforge-dev/ecs-client"; -import { ChildrenComponent } from "../components/children.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; -import { HealthBarFill } from "../components/health-bar-fill.component"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { ChildrenComponent } from "./components/children.component"; +import { SpriteComponent } from "./components/sprite.component"; +import { HealthBarFill } from "./components/health-bar-fill.component"; // Must match the health bar geometry it was built with (start-game-packet.handler.ts). const HEALTH_BAR_FILL_WIDTH = 12; @@ -9,7 +9,7 @@ const HEALTH_BAR_FILL_CAVITY_WIDTH = 19; const HEALTH_BAR_FILL_MAX_SCALE_X = HEALTH_BAR_FILL_CAVITY_WIDTH / HEALTH_BAR_FILL_WIDTH; // Shared by every packet that changes a target's Health, so they all redraw the bar the same way. -export function updateHealthBarFill(registry: Registry, targetId: number, fraction: number): void { +export const updateHealthBarFill = (registry: Registry, targetId: number, fraction: number): void => { const fills: { ChildrenComponent: ChildrenComponent; SpriteComponent: SpriteComponent; @@ -26,4 +26,4 @@ export function updateHealthBarFill(registry: Registry, targetId: number, fracti y: fill.ChildrenComponent.options.LocalTransform?.y ?? 0, }; fill.SpriteComponent.setScale({ x: fillScaleX, y: 1 }); -} +}; diff --git a/raid-survival/client/hud-helpers.ts b/games/raid-survival/apps/client/src/hud-helpers.ts similarity index 81% rename from raid-survival/client/hud-helpers.ts rename to games/raid-survival/apps/client/src/hud-helpers.ts index f29b54b..b924011 100644 --- a/raid-survival/client/hud-helpers.ts +++ b/games/raid-survival/apps/client/src/hud-helpers.ts @@ -4,7 +4,7 @@ import { Circle, Layer } from "@nanoforge-dev/graphics-2d"; const COIN_FILL = "#F4C74C"; const COIN_STROKE = "#8A6A1E"; -export function addCoinIcon(layer: Layer, x: number, y: number, radius: number): Circle { +export const addCoinIcon = (layer: Layer, x: number, y: number, radius: number): Circle => { const coin = new Circle({ x: x + radius, y: y + radius, @@ -16,4 +16,4 @@ export function addCoinIcon(layer: Layer, x: number, y: number, radius: number): }); layer.add(coin); return coin; -} +}; diff --git a/games/raid-survival/apps/client/src/hud-layout.ts b/games/raid-survival/apps/client/src/hud-layout.ts new file mode 100644 index 0000000..20ed468 --- /dev/null +++ b/games/raid-survival/apps/client/src/hud-layout.ts @@ -0,0 +1,18 @@ +import type { Vector } from "@raid-survival/shared/protocol"; + +// Sizes and limits shared by the game's world building and its systems. + +/** Zoom limits and step of the build mode's zoom buttons, on top of the world's base scale. */ +export const MIN_ZOOM = 0.5; +export const MAX_ZOOM = 2; +export const ZOOM_STEP = 0.1; + +/** The crosshair that replaces the OS cursor during a game: native size and scale. */ +export const CURSOR_ICON_SIZE = { width: 8, height: 8 }; +export const CURSOR_SCALE = 3; + +/** Where a weapon sits relative to its player, before its catalog's `handOffsetDelta`. */ +export const WEAPON_LOCAL_OFFSET: Vector = { x: 6, y: 12 }; + +/** Size of the weapon icon of the ammo HUD, which fit-scales each weapon's art into it. */ +export const AMMO_ICON_SIZE = { width: 32, height: 32 }; diff --git a/games/raid-survival/apps/client/src/main.ts b/games/raid-survival/apps/client/src/main.ts new file mode 100644 index 0000000..3e52a9e --- /dev/null +++ b/games/raid-survival/apps/client/src/main.ts @@ -0,0 +1,89 @@ +import type { ClientRunOptions } from "@nanoforge-dev/common"; +import { NanoforgeFactory } from "@nanoforge-dev/core"; +import { EcsLibrary } from "@nanoforge-dev/ecs/client"; +import { EditorLibrary } from "@nanoforge-dev/editor-lib"; +import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import { InputLibrary } from "@nanoforge-dev/input"; +import { NetworkClientLibrary } from "@nanoforge-dev/network/client"; +import { SceneLibrary } from "@nanoforge-dev/scene"; + +import "./scene-vars"; +import { Game } from "./scenes/game.scene"; +import { GameOver } from "./scenes/game-over.scene"; +import { Menu } from "./scenes/menu.scene"; +import { buildingInteractIndicatorSystem } from "./systems/building-interact-indicator.system"; +import { buildModeSystem } from "./systems/build-mode.system"; +import { cameraFollowSystem } from "./systems/camera-follow.system"; +import { cursorSystem } from "./systems/cursor.system"; +import { floatingTextSystem } from "./systems/floating-text.system"; +import { lobbyActionSenders } from "./systems/lobby-action-senders.system"; +import { sendMoveControl } from "./systems/move-control-sender.system"; +import { moveControl } from "./systems/move-control.system"; +import { moveSystem } from "./systems/move.system"; +import { packetDispatch } from "./systems/packet-dispatch.system"; +import { playerDeathSystem } from "./systems/player-death.system"; +import { reloadIndicatorSystem } from "./systems/reload-indicator.system"; +import { sendReviveControl } from "./systems/revive-control-sender.system"; +import { reviveControlSystem } from "./systems/revive-control.system"; +import { reviveHintIndicatorSystem } from "./systems/revive-hint-indicator.system"; +import { reviveIndicatorSystem } from "./systems/revive-indicator.system"; +import { rotateToDirectionSystem } from "./systems/rotate-to-direction.system"; +import { sendShootControl } from "./systems/shoot-control-sender.system"; +import { shootControl } from "./systems/shoot-control.system"; +import { spriteAnimator } from "./systems/sprite-animator.system"; +import { spriteSystem } from "./systems/sprite.system"; +import { textareaSystem } from "./systems/textarea.system"; +import { transformChildrenToParentSystem } from "./systems/transform-children-to-parent.system"; +import { weaponReloadAnimationSystem } from "./systems/weapon-reload-animation.system"; +import { weaponVisibilitySystem } from "./systems/weapon-visibility.system"; +import { zOrderSystem } from "./systems/z-order.system"; + +export const main = async (options: ClientRunOptions): Promise => { + const app = NanoforgeFactory.createClient(); + const ecs = new EcsLibrary(); + + app.use(ecs); + app.use(new Graphics2DLibrary()); + app.use(new InputLibrary()); + app.use(new NetworkClientLibrary()); + app.use(new SceneLibrary({ initial: Menu, scenes: { Menu, Game, GameOver } })); + app.use(new EditorLibrary()); + + await app.init(options); + + const registry = ecs.registry; + + registry.addSystem(moveControl); + registry.addSystem(textareaSystem); + registry.addSystem(shootControl); + registry.addSystem(reviveControlSystem); + // Must run before buildModeSystem/floatingTextSystem: those two re-assert their own raw Konva + // nodes (no SpriteComponent, so zOrderSystem itself never manages them) to the top of the layer + // every tick. Running zOrderSystem first means their "always on top" reassertion always has the + // last word for the tick, instead of a same-tick sprite reorder winning the top spot back. + registry.addSystem(zOrderSystem); + registry.addSystem(buildModeSystem); + registry.addSystem(playerDeathSystem); + registry.addSystem(spriteAnimator); + registry.addSystem(cameraFollowSystem); + registry.addSystem(moveSystem); + registry.addSystem(spriteSystem); + registry.addSystem(transformChildrenToParentSystem); + registry.addSystem(reloadIndicatorSystem); + registry.addSystem(reviveIndicatorSystem); + registry.addSystem(reviveHintIndicatorSystem); + registry.addSystem(buildingInteractIndicatorSystem); + registry.addSystem(weaponVisibilitySystem); + registry.addSystem(cursorSystem); + registry.addSystem(floatingTextSystem); + // Before rotateToDirectionSystem, which must still consume the offset this sets. + registry.addSystem(weaponReloadAnimationSystem); + registry.addSystem(rotateToDirectionSystem); + registry.addSystem(packetDispatch); + registry.addSystem(sendMoveControl); + registry.addSystem(sendShootControl); + registry.addSystem(sendReviveControl); + registry.addSystem(lobbyActionSenders); + + await app.run(); +}; diff --git a/games/raid-survival/apps/client/src/scene-vars.ts b/games/raid-survival/apps/client/src/scene-vars.ts new file mode 100644 index 0000000..54d8800 --- /dev/null +++ b/games/raid-survival/apps/client/src/scene-vars.ts @@ -0,0 +1,17 @@ +import type { ServerMessage, ServerMessageOf } from "@raid-survival/shared/protocol"; + +/** The scene vars of the client, all persistent: they outlive the scene that sets them. */ +declare module "@nanoforge-dev/scene" { + interface SceneVars { + /** Server entity id of this player's character, set when the lobby accepts them. */ + playerId: number; + /** The `startGame` message, until `launchGame` builds the world from it. */ + start: ServerMessageOf<"startGame">; + /** Messages received after a scene change, handled once the next scene is ready. */ + backlog: ServerMessage[]; + /** How the last game ended, shown by the game over scene. */ + result: { zombiesKilled: number; won: boolean }; + } +} + +export {}; diff --git a/games/raid-survival/apps/client/src/scenes/game-over.scene.ts b/games/raid-survival/apps/client/src/scenes/game-over.scene.ts new file mode 100644 index 0000000..6d90bfd --- /dev/null +++ b/games/raid-survival/apps/client/src/scenes/game-over.scene.ts @@ -0,0 +1,21 @@ +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { clearScene } from "../screens"; +import { gameOverScreen } from "../systems/game-over-screen.system"; + +/** + * The end of a game, won or lost, and the way back to the menu. + * + * @scene + * @side client + */ +export class GameOver extends EcsScene { + override setup(registry: Registry) { + registry.addSystem(gameOverScreen); + } + + override teardown(registry: Registry) { + clearScene(registry); + } +} diff --git a/games/raid-survival/apps/client/src/scenes/game.scene.ts b/games/raid-survival/apps/client/src/scenes/game.scene.ts new file mode 100644 index 0000000..0268698 --- /dev/null +++ b/games/raid-survival/apps/client/src/scenes/game.scene.ts @@ -0,0 +1,21 @@ +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { clearScene } from "../screens"; +import { launchGame } from "../systems/launch-game.system"; + +/** + * A game: the map, the players, the zombie waves and the HUD, built by `launchGame` from the `startGame` message. + * + * @scene + * @side client + */ +export class Game extends EcsScene { + override setup(registry: Registry) { + registry.addSystem(launchGame); + } + + override teardown(registry: Registry) { + clearScene(registry); + } +} diff --git a/games/raid-survival/apps/client/src/scenes/menu.scene.ts b/games/raid-survival/apps/client/src/scenes/menu.scene.ts new file mode 100644 index 0000000..2c449f0 --- /dev/null +++ b/games/raid-survival/apps/client/src/scenes/menu.scene.ts @@ -0,0 +1,21 @@ +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { EcsScene } from "@nanoforge-dev/ecs/scene"; + +import { clearScene } from "../screens"; +import { menuScreen } from "../systems/menu-screen.system"; + +/** + * The main menu: pick a username and a skin, join the lobby, start the game. + * + * @scene + * @side client + */ +export class Menu extends EcsScene { + override setup(registry: Registry) { + registry.addSystem(menuScreen); + } + + override teardown(registry: Registry) { + clearScene(registry); + } +} diff --git a/games/raid-survival/apps/client/src/screens.ts b/games/raid-survival/apps/client/src/screens.ts new file mode 100644 index 0000000..2d5b706 --- /dev/null +++ b/games/raid-survival/apps/client/src/screens.ts @@ -0,0 +1,33 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { GameView } from "./components/game-view.component"; +import { Screen } from "./components/screen.component"; +import type { ScreenView } from "./views/screen-view"; + +/** Shows the scene's screen: builds it on the first tick, then updates it every tick. */ +export const tickScreen = (registry: Registry, ctx: Context, make: () => ScreenView): void => { + let screen = (registry.getZipper([Screen]) as { Screen: Screen }[])[0]?.Screen; + if (!screen) { + screen = new Screen(make()); + registry.addComponent(registry.spawnEntity(), screen); + screen.view.load(registry, ctx); + } + screen.view.tick(registry, ctx); +}; + +/** + * Empties the registry when a scene is unloaded, as the original scene manager did: the screen + * and the game layers first, then every entity, those spawned while playing included. + * + * @remarks + * The scenes spawn nothing in `setup`: `EcsScene` would kill those entities again after this + * `clearEntities()`, and a second kill hands their ids out twice. + */ +export const clearScene = (registry: Registry): void => { + for (const { Screen: screen } of registry.getZipper([Screen]) as { Screen: Screen }[]) + screen.destroy(); + for (const { GameView: view } of registry.getZipper([GameView]) as { GameView: GameView }[]) + view.destroy(); + registry.clearEntities(); +}; diff --git a/raid-survival/client/systems/build-mode.system.ts b/games/raid-survival/apps/client/src/systems/build-mode.system.ts similarity index 86% rename from raid-survival/client/systems/build-mode.system.ts rename to games/raid-survival/apps/client/src/systems/build-mode.system.ts index bfc78fc..a083e8a 100644 --- a/raid-survival/client/systems/build-mode.system.ts +++ b/games/raid-survival/apps/client/src/systems/build-mode.system.ts @@ -1,25 +1,27 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { InputEnum, type InputLibrary } from "@nanoforge-dev/input"; -import { NetworkClientLibrary } from "@nanoforge-dev/network-client"; -import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import "@nanoforge-dev/scene"; +import { gameView } from "../game-view"; +import "@nanoforge-dev/network/client"; +import { ClientPacket } from "@raid-survival/shared/protocol"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { InputEnum } from "@nanoforge-dev/input"; +import "@nanoforge-dev/graphics-2d"; import { BuildModeComponent } from "../components/build-mode.component"; import { MoneyHudComponent } from "../components/money-hud.component"; import { Building } from "../components/building.component"; import { Player } from "../components/player.component"; -import { Lobby } from "../components/lobby/lobby.component"; -import { TransformComponent } from "../components/essentials/transform.component"; -import { BUILDING_CATALOG, canPlaceBuilding, type OccupiedBox } from "../building-catalog"; -import { TOWER_RANGE } from "../building-economy"; -import { TILE_SIZE, MAP_COLS, MAP_ROWS, isTreeCell } from "../map-data"; -import { sceneManager, playerId } from "../main"; +import { Lobby } from "../components/lobby.component"; +import { TransformComponent } from "../components/transform.component"; +import { BUILDING_CATALOG, canPlaceBuilding, type OccupiedBox } from "@raid-survival/shared/building-catalog"; +import { TOWER_RANGE } from "@raid-survival/shared/tower"; +import { TILE_SIZE, MAP_COLS, MAP_ROWS, isTreeCell } from "@raid-survival/shared/map"; import { NetworkId } from "../components/network-id.component"; import { ChildrenComponent } from "../components/children.component"; import { Weapon } from "../components/weapon.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; +import { SpriteComponent } from "../components/sprite.component"; import { WeaponShopComponent } from "../components/weapon-shop.component"; -import { WEAPON_CATALOG } from "../weapon-catalog"; +import { WEAPON_CATALOG } from "@raid-survival/shared/weapon-catalog"; // Must match server/systems/packet-handlers/start-game-packet.handler.ts's LOBBY_COLLISION_BOX // exactly - a real box, not a tile-index check, since the lobby's footprint isn't tile-aligned. @@ -37,17 +39,11 @@ const PLAYER_COLLISION_BOX = { width: 24, height: 24 }; // below as BASE_WORLD_SCALE * zoomLevel. const BASE_WORLD_SCALE = 3; -// Clamp for BuildModeComponent.targetZoomLevel - exported so the zoom buttons' click handlers can -// clamp identically without duplicating the bounds. -export const MIN_ZOOM = 0.5; -export const MAX_ZOOM = 2; -export const ZOOM_STEP = 0.1; - // How much of the remaining gap between zoomLevel and targetZoomLevel closes per tick - matches // CAMERA_SMOOTHING's ease shape so the zoom and the camera glide into place together. const ZOOM_SMOOTHING = 0.1; -export function buildModeSystem(registry: Registry, ctx: Context) { +export const buildModeSystem = (registry: Registry, ctx: Context) => { const entities: { BuildModeComponent: BuildModeComponent }[] = registry.getZipper([ BuildModeComponent, ]); @@ -62,9 +58,8 @@ export function buildModeSystem(registry: Registry, ctx: Context) { // Used by both the weapon shop and the building-placement afford check below. const money = moneyHudEntities[0]?.MoneyHudComponent.amount ?? 0; - const input = ctx.libs.getInput(); - const network = ctx.libs.getNetwork(); - const stage = ctx.libs.getGraphics().stage; + const input = ctx.input; + const stage = ctx.graphics.stage; const togglePressed = !!input.isKeyPressed(InputEnum.KeyB); if (togglePressed && !buildMode.wasTogglePressed) { @@ -85,7 +80,7 @@ export function buildModeSystem(registry: Registry, ctx: Context) { const localPlayers: { id: number; NetworkId: NetworkId }[] = registry.getIndexedZipper([ NetworkId, ]); - const localPlayer = localPlayers.find((p) => p.NetworkId.id === playerId); + const localPlayer = localPlayers.find((p) => p.NetworkId.id === ctx.scenes.vars.get("playerId")); if (localPlayer) { const weapons: { id: number; Weapon: Weapon; ChildrenComponent: ChildrenComponent }[] = registry.getIndexedZipper([Weapon, ChildrenComponent]); @@ -121,14 +116,12 @@ export function buildModeSystem(registry: Registry, ctx: Context) { // Eases the live zoomLevel toward targetZoomLevel and applies it to the world scale, so a // zoom-button click glides rather than snaps. - // - // Gated on the scene actually being GameScene, not just having a `layer` - nothing kills this - // system on game-over, and MenuScene has its own unrelated unscaled layer. + buildMode.zoomLevel += (buildMode.targetZoomLevel - buildMode.zoomLevel) * ZOOM_SMOOTHING; - const scene = sceneManager.getScene(); - if (scene?.name === "GameScene" && scene.layer) { + const world = gameView(registry)?.world; + if (world) { const worldScale = BASE_WORLD_SCALE * buildMode.zoomLevel; - const oldScale = scene.layer.scaleX(); + const oldScale = world.scaleX(); // Only while the scale is actually changing, so this doesn't keep nudging position by // sub-pixel drift once zoomLevel has settled, fighting cameraFollowSystem's edge clamp. @@ -137,14 +130,14 @@ export function buildModeSystem(registry: Registry, ctx: Context) { // changing scale without correcting position would make every world point leap toward/away // from that corner. Re-solving position keeps the same world point centered across the // scale change instead. - const viewWidth = scene.layer.width(); - const viewHeight = scene.layer.height(); - const pos = scene.layer.position(); + const viewWidth = world.width(); + const viewHeight = world.height(); + const pos = world.position(); const centeredWorldX = (viewWidth / 2 - pos.x) / oldScale; const centeredWorldY = (viewHeight / 2 - pos.y) / oldScale; - scene.layer.scale({ x: worldScale, y: worldScale }); - scene.layer.position({ + world.scale({ x: worldScale, y: worldScale }); + world.position({ x: viewWidth / 2 - centeredWorldX * worldScale, y: viewHeight / 2 - centeredWorldY * worldScale, }); @@ -220,17 +213,13 @@ export function buildModeSystem(registry: Registry, ctx: Context) { const weaponType = weaponShop.pendingBuyType; weaponShop.pendingBuyType = null; const packetType = weaponShop.owned.has(weaponType) ? "buyAmmo" : "buyWeapon"; - network.tcp.sendData( - new TextEncoder().encode(JSON.stringify({ type: packetType, weaponType })), - ); + ctx.network.packets.send(ClientPacket, { type: packetType, weaponType }); } if (weaponShop.pendingEquip) { const { weaponType } = weaponShop.pendingEquip; weaponShop.pendingEquip = null; - network.tcp.sendData( - new TextEncoder().encode(JSON.stringify({ type: "equipWeapon", weaponType })), - ); + ctx.network.packets.send(ClientPacket, { type: "equipWeapon", weaponType }); } } @@ -254,7 +243,7 @@ export function buildModeSystem(registry: Registry, ctx: Context) { const overShop = !!weaponShop && overBox(weaponShop.shopBounds); const overZoomButtons = overBox(buildMode.zoomBounds); - const pointerPosition = sceneManager.getScene()?.layer?.getRelativePointerPosition(); + const pointerPosition = gameView(registry)?.world.getRelativePointerPosition(); // Over any HUD panel, or the cursor isn't over the map - no preview, a click here belongs to // that panel's own button handler, not a placement attempt. @@ -302,11 +291,7 @@ export function buildModeSystem(registry: Registry, ctx: Context) { buildMode.previewRect.fill("rgba(220, 60, 60, 0.55)"); if (clickPressed && !buildMode.wasPlaceClickPressed) { - network.tcp.sendData( - new TextEncoder().encode( - JSON.stringify({ type: "destroyBuilding", id: target.NetworkId.id }), - ), - ); + ctx.network.packets.send(ClientPacket, { type: "destroyBuilding", id: target.NetworkId.id }); } } else { buildMode.previewRect.visible(false); @@ -394,19 +379,12 @@ export function buildModeSystem(registry: Registry, ctx: Context) { } if (clickPressed && !buildMode.wasPlaceClickPressed && valid) { - network.tcp.sendData( - new TextEncoder().encode( - JSON.stringify({ + ctx.network.packets.send(ClientPacket, { type: "build", tileX, tileY, buildingType: buildMode.selectedBuildingType, - }), - ), - ); + }); } buildMode.wasPlaceClickPressed = clickPressed; -} - -// * Required to generate code -export default buildModeSystem.name; +}; diff --git a/raid-survival/client/systems/building-interact-indicator.system.ts b/games/raid-survival/apps/client/src/systems/building-interact-indicator.system.ts similarity index 86% rename from raid-survival/client/systems/building-interact-indicator.system.ts rename to games/raid-survival/apps/client/src/systems/building-interact-indicator.system.ts index 0d5915d..2f061d7 100644 --- a/raid-survival/client/systems/building-interact-indicator.system.ts +++ b/games/raid-survival/apps/client/src/systems/building-interact-indicator.system.ts @@ -1,10 +1,12 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { NetworkId } from "../components/network-id.component"; -import { TransformComponent } from "../components/essentials/transform.component"; +import { TransformComponent } from "../components/transform.component"; import { ChildrenComponent } from "../components/children.component"; import { Health } from "../components/health.component"; -import { Lobby } from "../components/lobby/lobby.component"; +import { Lobby } from "../components/lobby.component"; import { TowerLevelComponent } from "../components/tower-level.component"; import { BuildingInteractIndicatorComponent } from "../components/building-interact-indicator.component"; import { @@ -13,8 +15,7 @@ import { TOWER_MAX_LEVEL, TOWER_UPGRADE_COST, WALL_HEAL_COST_PER_HP, -} from "../building-economy"; -import { playerId } from "../main"; +} from "@raid-survival/shared/tower"; // Approximates the local player's center for the proximity check below. const LOCAL_PLAYER_SIZE = { width: 24, height: 24 }; @@ -24,7 +25,7 @@ const DISPLAY_INTERACT_RANGE = 46; // Shows a tower/wall/lobby's "Press E to..." hint near the local player: heal cost while // damaged, or a full-HP tower's next upgrade cost and level. -export function buildingInteractIndicatorSystem(registry: Registry) { +export const buildingInteractIndicatorSystem = (registry: Registry, ctx: Context) => { const indicators: { BuildingInteractIndicatorComponent: BuildingInteractIndicatorComponent; ChildrenComponent: ChildrenComponent; @@ -38,7 +39,7 @@ export function buildingInteractIndicatorSystem(registry: Registry) { const players: { NetworkId: NetworkId; TransformComponent: TransformComponent }[] = registry.getZipper([NetworkId, TransformComponent]); - const localPlayer = players.find((p) => p.NetworkId.id === playerId); + const localPlayer = players.find((p) => p.NetworkId.id === ctx.scenes.vars.get("playerId")); const playerCenter = localPlayer ? { x: localPlayer.TransformComponent.x + LOCAL_PLAYER_SIZE.width / 2, @@ -94,7 +95,4 @@ export function buildingInteractIndicatorSystem(registry: Registry) { indicator.text.visible(false); } } -} - -// * Required to generate code -export default buildingInteractIndicatorSystem.name; +}; diff --git a/raid-survival/client/systems/camera-follow.system.ts b/games/raid-survival/apps/client/src/systems/camera-follow.system.ts similarity index 72% rename from raid-survival/client/systems/camera-follow.system.ts rename to games/raid-survival/apps/client/src/systems/camera-follow.system.ts index bc65041..cc41f3b 100644 --- a/raid-survival/client/systems/camera-follow.system.ts +++ b/games/raid-survival/apps/client/src/systems/camera-follow.system.ts @@ -1,7 +1,7 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { TransformComponent } from "../components/essentials/transform.component"; +import { gameView } from "../game-view"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { TransformComponent } from "../components/transform.component"; import { MoveController } from "../components/move-controller.component"; -import { sceneManager } from "../main"; const CAMERA_SMOOTHING = 0.1; @@ -11,7 +11,7 @@ const MAP_BOUNDS = { x: 0, y: 0, width: 1600, height: 1600 }; // Clamps a camera target so the viewport never scrolls past the map's edge on this axis. If the // map is smaller than the viewport (scaled) on this axis, there's no position that avoids // showing empty space on both sides - center it instead of hugging one edge arbitrarily. -function clampCameraAxis(target: number, viewSize: number, mapOrigin: number, mapSize: number, scale: number): number { +const clampCameraAxis = (target: number, viewSize: number, mapOrigin: number, mapSize: number, scale: number): number => { const mapSizeScaled = mapSize * scale; if (mapSizeScaled <= viewSize) { return viewSize / 2 - (mapOrigin + mapSize / 2) * scale; @@ -19,21 +19,20 @@ function clampCameraAxis(target: number, viewSize: number, mapOrigin: number, ma const max = -mapOrigin * scale; const min = max - (mapSizeScaled - viewSize); return Math.min(max, Math.max(min, target)); -} +}; export const cameraFollowSystem = (registry: Registry) => { const entities: { MoveController: MoveController; TransformComponent: TransformComponent }[] = registry.getZipper([MoveController, TransformComponent]); - const scene = sceneManager.getScene() - - if (!scene || !scene.layer) return; + const layer = gameView(registry)?.world; + if (!layer) return; for (const entity of entities) { - const viewWidth = scene.layer.width(); - const viewHeight = scene.layer.height(); + const viewWidth = layer.width(); + const viewHeight = layer.height(); - const scale = scene.layer.scaleX(); + const scale = layer.scaleX(); let targetX = viewWidth / 2 - entity.TransformComponent.x * scale; let targetY = viewHeight / 2 - entity.TransformComponent.y * scale; @@ -41,8 +40,8 @@ export const cameraFollowSystem = (registry: Registry) => { targetX = clampCameraAxis(targetX, viewWidth, MAP_BOUNDS.x, MAP_BOUNDS.width, scale); targetY = clampCameraAxis(targetY, viewHeight, MAP_BOUNDS.y, MAP_BOUNDS.height, scale); - const current = scene.layer.position(); - scene.layer.position({ + const current = layer.position(); + layer.position({ x: current.x + (targetX - current.x) * CAMERA_SMOOTHING, y: current.y + (targetY - current.y) * CAMERA_SMOOTHING }); diff --git a/raid-survival/client/systems/cursor.system.ts b/games/raid-survival/apps/client/src/systems/cursor.system.ts similarity index 71% rename from raid-survival/client/systems/cursor.system.ts rename to games/raid-survival/apps/client/src/systems/cursor.system.ts index f282a9a..8bea906 100644 --- a/raid-survival/client/systems/cursor.system.ts +++ b/games/raid-survival/apps/client/src/systems/cursor.system.ts @@ -1,18 +1,17 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { Graphics2DLibrary } from "@nanoforge-dev/graphics-2d"; +import type { Context } from "@nanoforge-dev/common"; +import { CURSOR_ICON_SIZE, CURSOR_SCALE } from "../hud-layout"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/graphics-2d"; import { CursorComponent } from "../components/cursor.component"; -import { TransformComponent } from "../components/essentials/transform.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; +import { TransformComponent } from "../components/transform.component"; +import { SpriteComponent } from "../components/sprite.component"; import { BuildModeComponent } from "../components/build-mode.component"; -export const CURSOR_ICON_SIZE = { width: 8, height: 8 }; -export const CURSOR_SCALE = 3; // Follows the mouse every tick with a custom crosshair, replacing the OS cursor. Build mode wants // the normal OS cursor instead - this system steps back entirely rather than fighting it. -export function cursorSystem(registry: Registry, ctx: Context) { +export const cursorSystem = (registry: Registry, ctx: Context) => { const cursors: { SpriteComponent: SpriteComponent; TransformComponent: TransformComponent }[] = registry.getZipper([CursorComponent, SpriteComponent, TransformComponent]); const cursor = cursors[0]; @@ -25,7 +24,7 @@ export function cursorSystem(registry: Registry, ctx: Context) { cursor.SpriteComponent.sprite?.visible(!buildModeActive); - const graphics = ctx.libs.getGraphics(); + const graphics = ctx.graphics; if (buildModeActive) { // Only replaces "none" (the crosshair's state) so this doesn't fight the build bar's own @@ -43,7 +42,4 @@ export function cursorSystem(registry: Registry, ctx: Context) { // only Y needs a manual offset here. cursor.TransformComponent.x = pointerPosition.x; cursor.TransformComponent.y = pointerPosition.y - (CURSOR_ICON_SIZE.height * CURSOR_SCALE) / 2; -} - -// * Required to generate code -export default cursorSystem.name; +}; diff --git a/raid-survival/client/systems/floating-text.system.ts b/games/raid-survival/apps/client/src/systems/floating-text.system.ts similarity index 77% rename from raid-survival/client/systems/floating-text.system.ts rename to games/raid-survival/apps/client/src/systems/floating-text.system.ts index 121b8a7..b473c99 100644 --- a/raid-survival/client/systems/floating-text.system.ts +++ b/games/raid-survival/apps/client/src/systems/floating-text.system.ts @@ -1,12 +1,12 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { FloatingTextComponent } from "../components/floating-text.component"; -import { TextComponent } from "../components/renderable/text.component"; +import { TextComponent } from "../components/text.component"; const RISE_SPEED = 8; // world-layer-local px/sec -export function floatingTextSystem(registry: Registry, ctx: Context) { +export const floatingTextSystem = (registry: Registry, ctx: Context) => { const entities: { id: number; FloatingTextComponent: FloatingTextComponent; @@ -34,7 +34,4 @@ export function floatingTextSystem(registry: Registry, ctx: Context) { // No SpriteComponent, so zOrderSystem never manages it - force it on top every tick instead. node.moveToTop(); } -} - -// * Required to generate code -export default floatingTextSystem.name; +}; diff --git a/games/raid-survival/apps/client/src/systems/game-over-screen.system.ts b/games/raid-survival/apps/client/src/systems/game-over-screen.system.ts new file mode 100644 index 0000000..4a12a74 --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/game-over-screen.system.ts @@ -0,0 +1,17 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/scene"; + +import { tickScreen } from "../screens"; +import { GameOverView } from "../views/game-over-view"; + +/** + * Shows how the game ended (the `result` scene var), and the button back to the menu. + * + * @system + * @side client + */ +export const gameOverScreen = (registry: Registry, ctx: Context) => { + const result = ctx.scenes.vars.get("result") ?? { zombiesKilled: 0, won: false }; + tickScreen(registry, ctx, () => new GameOverView(result.zombiesKilled, result.won)); +}; diff --git a/games/raid-survival/apps/client/src/systems/launch-game.system.ts b/games/raid-survival/apps/client/src/systems/launch-game.system.ts new file mode 100644 index 0000000..5b91cde --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/launch-game.system.ts @@ -0,0 +1,19 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/scene"; + +import { buildWorld } from "../build-world"; + +/** + * Builds the game from the `startGame` message (the `start` scene var), once, then lets + * `packetDispatch` handle the messages that came after it. + * + * @system + * @side client + */ +export const launchGame = (registry: Registry, ctx: Context) => { + const start = ctx.scenes.vars.get("start"); + if (!start) return; + ctx.scenes.vars.remove("start"); + buildWorld(registry, ctx, start); +}; diff --git a/raid-survival/client/systems/packet-senders/lobby-action.senders.ts b/games/raid-survival/apps/client/src/systems/lobby-action-senders.system.ts similarity index 52% rename from raid-survival/client/systems/packet-senders/lobby-action.senders.ts rename to games/raid-survival/apps/client/src/systems/lobby-action-senders.system.ts index 7e1d84c..20ccd8c 100644 --- a/raid-survival/client/systems/packet-senders/lobby-action.senders.ts +++ b/games/raid-survival/apps/client/src/systems/lobby-action-senders.system.ts @@ -1,36 +1,28 @@ -import type { Registry } from "@nanoforge-dev/ecs-client"; +import "@nanoforge-dev/network/client"; +import { ClientPacket } from "@raid-survival/shared/protocol"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import type { Context } from "@nanoforge-dev/common"; -import { NetworkClientLibrary } from "@nanoforge-dev/network-client"; -import { LobbyAction, LobbyStatusComponent } from "../../components/lobby/lobby-status"; +import { LobbyAction, LobbyStatusComponent } from "../components/lobby-status.component"; -export function lobbyActionSenders(registry: Registry, ctx: Context) { +export const lobbyActionSenders = (registry: Registry, ctx: Context) => { const entities: {LobbyStatusComponent: LobbyStatusComponent}[] = registry.getZipper([LobbyStatusComponent]); - const network = ctx.libs.getNetwork(); const firstLobbyStatus = entities[0]; if (!firstLobbyStatus) return; switch (firstLobbyStatus.LobbyStatusComponent.action) { case LobbyAction.JOIN_LOBBY: - network.tcp.sendData( - new TextEncoder().encode( - JSON.stringify({ + ctx.network.packets.send(ClientPacket, { type: "joinLobby", username: firstLobbyStatus.LobbyStatusComponent.username, skin: firstLobbyStatus.LobbyStatusComponent.skin, - }), - ), - ); + }); break; case LobbyAction.START_GAME: - network.tcp.sendData( - new TextEncoder().encode( - JSON.stringify({ + ctx.network.packets.send(ClientPacket, { type: "startGame" - }), - ), - ); + }); break; } firstLobbyStatus.LobbyStatusComponent.action = LobbyAction.EMPTY; -} \ No newline at end of file +}; \ No newline at end of file diff --git a/games/raid-survival/apps/client/src/systems/menu-screen.system.ts b/games/raid-survival/apps/client/src/systems/menu-screen.system.ts new file mode 100644 index 0000000..8f25f78 --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/menu-screen.system.ts @@ -0,0 +1,15 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { tickScreen } from "../screens"; +import { MenuView } from "../views/menu-view"; + +/** + * Shows the main menu: username, skin, then the lobby and its start button. + * + * @system + * @side client + */ +export const menuScreen = (registry: Registry, ctx: Context) => { + tickScreen(registry, ctx, () => new MenuView()); +}; diff --git a/games/raid-survival/apps/client/src/systems/move-control-sender.system.ts b/games/raid-survival/apps/client/src/systems/move-control-sender.system.ts new file mode 100644 index 0000000..e018b11 --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/move-control-sender.system.ts @@ -0,0 +1,30 @@ +import "@nanoforge-dev/network/client"; +import { type ClientMessageOf, ClientPacket } from "@raid-survival/shared/protocol"; + +type MoveKey = "up" | "down" | "left" | "right"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { MoveController } from "../components/move-controller.component"; +import { Velocity } from "../components/velocity.component"; + +const compareStringArrays = (array1: string[], array2: string[]) => { + if (array1.length !== array2.length) return false; + for (let i = 0; i < array1.length; i++) if (array1[i] !== array2[i]) return false; + return true; +}; + +export const sendMoveControl = (registry: Registry, ctx: Context) => { + const entities = registry.getZipper([MoveController, Velocity]); + + entities.forEach(({ MoveController }) => { + const keys: ClientMessageOf<"input"> & { moveKeys: MoveKey[] } = { type: "input", moveKeys: [] }; + if (MoveController.movingUp) keys.moveKeys.push("up"); + if (MoveController.movingDown) keys.moveKeys.push("down"); + if (MoveController.movingLeft) keys.moveKeys.push("left"); + if (MoveController.movingRight) keys.moveKeys.push("right"); + if (!compareStringArrays(keys.moveKeys, MoveController.lastMoveKeys)) + ctx.network.packets.send(ClientPacket, keys); + MoveController.lastMoveKeys = keys.moveKeys; + }); +}; diff --git a/raid-survival/client/systems/move-control.system.ts b/games/raid-survival/apps/client/src/systems/move-control.system.ts similarity index 58% rename from raid-survival/client/systems/move-control.system.ts rename to games/raid-survival/apps/client/src/systems/move-control.system.ts index b2b70d9..b3caff3 100644 --- a/raid-survival/client/systems/move-control.system.ts +++ b/games/raid-survival/apps/client/src/systems/move-control.system.ts @@ -1,12 +1,12 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { type InputLibrary } from "@nanoforge-dev/input"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/input"; import { MoveController } from "../components/move-controller.component"; -export function moveControl(registry: Registry, ctx: Context) { +export const moveControl = (registry: Registry, ctx: Context) => { const entities = registry.getZipper([MoveController]); - const input = ctx.libs.getInput(); + const input = ctx.input; entities.forEach(({ MoveController }) => { MoveController.movingUp = input.isKeyPressed(MoveController.keyUp); @@ -14,6 +14,4 @@ export function moveControl(registry: Registry, ctx: Context) { MoveController.movingLeft = input.isKeyPressed(MoveController.keyLeft); MoveController.movingRight = input.isKeyPressed(MoveController.keyRight); }); -} -// * Required to generate code -export default moveControl.name; +}; diff --git a/games/raid-survival/apps/client/src/systems/move.system.ts b/games/raid-survival/apps/client/src/systems/move.system.ts new file mode 100644 index 0000000..40452ba --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/move.system.ts @@ -0,0 +1,14 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { TransformComponent } from "../components/transform.component"; +import { Velocity } from "../components/velocity.component"; + +export const moveSystem = (registry: Registry, ctx: Context) => { + const entities = registry.getZipper([TransformComponent, Velocity]); + + entities.forEach(({ TransformComponent, Velocity }) => { + TransformComponent.x += (Velocity.x * ctx.app.delta) / 1000; + TransformComponent.y += (Velocity.y * ctx.app.delta) / 1000; + }); +}; diff --git a/games/raid-survival/apps/client/src/systems/packet-dispatch.system.ts b/games/raid-survival/apps/client/src/systems/packet-dispatch.system.ts new file mode 100644 index 0000000..63e941e --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/packet-dispatch.system.ts @@ -0,0 +1,47 @@ +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/network/client"; +import "@nanoforge-dev/scene"; +import { type ServerMessage, ServerPacket } from "@raid-survival/shared/protocol"; + +import { SERVER_HANDLERS } from "../handlers/handlers"; + +/** Messages that change the scene: the ones after them wait until the new scene is loaded. */ +const SCENE_CHANGES = new Set(["startGame", "gameOver"]); + +/** + * Handles the messages of the server, in the order they came. After a scene change, it keeps the + * rest in the `backlog` scene var, and waits for the next scene to be loaded and, for a game, for + * `launchGame` to build its world (the `start` var is then gone). + * + * @system + * @side client + */ +export const packetDispatch = (registry: Registry, ctx: Context) => { + const backlog = ctx.scenes.vars.get("backlog") ?? []; + const messages = [ + ...backlog, + ...ctx.network.packets.read(ServerPacket).map(({ data }) => data), + ]; + if (ctx.scenes.vars.has("start")) { + ctx.scenes.vars.set("backlog", messages, { persistent: true }); + return; + } + ctx.scenes.vars.set("backlog", [], { persistent: true }); + for (const [index, message] of messages.entries()) { + const handler = SERVER_HANDLERS[message.type] as ( + message: ServerMessage, + registry: Registry, + ctx: Context, + ) => void; + try { + handler(message, registry, ctx); + } catch (error) { + console.error(`[packet:${message.type}]`, error); + } + if (SCENE_CHANGES.has(message.type)) { + ctx.scenes.vars.set("backlog", messages.slice(index + 1), { persistent: true }); + return; + } + } +}; diff --git a/raid-survival/client/systems/player-death.system.ts b/games/raid-survival/apps/client/src/systems/player-death.system.ts similarity index 83% rename from raid-survival/client/systems/player-death.system.ts rename to games/raid-survival/apps/client/src/systems/player-death.system.ts index 8dd1dc9..7ebb5a8 100644 --- a/raid-survival/client/systems/player-death.system.ts +++ b/games/raid-survival/apps/client/src/systems/player-death.system.ts @@ -1,12 +1,12 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { Player } from "../components/player.component"; import { Health } from "../components/health.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; +import { SpriteComponent } from "../components/sprite.component"; // The only thing that sets a player's animation to "death", and the only thing that clears it // again on revive. sprite-animator.system.ts is guarded to never override "death" on its own. -export function playerDeathSystem(registry: Registry) { +export const playerDeathSystem = (registry: Registry) => { const entities: { Player: Player; Health: Health; SpriteComponent: SpriteComponent }[] = registry.getZipper([Player, Health, SpriteComponent]); @@ -30,7 +30,4 @@ export function playerDeathSystem(registry: Registry) { sprite.sprite?.start(); } } -} - -// * Required to generate code -export default playerDeathSystem.name; +}; diff --git a/raid-survival/client/systems/reload-indicator.system.ts b/games/raid-survival/apps/client/src/systems/reload-indicator.system.ts similarity index 84% rename from raid-survival/client/systems/reload-indicator.system.ts rename to games/raid-survival/apps/client/src/systems/reload-indicator.system.ts index c37ee43..ab220be 100644 --- a/raid-survival/client/systems/reload-indicator.system.ts +++ b/games/raid-survival/apps/client/src/systems/reload-indicator.system.ts @@ -1,20 +1,21 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { NetworkId } from "../components/network-id.component"; import { ChildrenComponent } from "../components/children.component"; -import { TransformComponent } from "../components/essentials/transform.component"; +import { TransformComponent } from "../components/transform.component"; import { Weapon } from "../components/weapon.component"; import { ReloadIndicatorComponent } from "../components/reload-indicator.component"; import { AmmoHudComponent } from "../components/ammo-hud.component"; -import { WEAPON_CATALOG } from "../weapon-catalog"; -import { AMMO_ICON_SIZE } from "./packet-handlers/start-game-packet.handler"; -import { playerId } from "../main"; +import { WEAPON_CATALOG } from "@raid-survival/shared/weapon-catalog"; +import { AMMO_ICON_SIZE } from "../hud-layout"; // Two concerns off the same weapon-by-parent lookup: the world-space "Reloading..." label above // every player's health bar (Text isn't a Sprite, so spriteSystem never repositions it - done // here instead), and the local ammo-HUD row's visibility. Driven every tick, not just on state // change, since spriteSystem creates the underlying Konva node lazily. -export function reloadIndicatorSystem(registry: Registry) { +export const reloadIndicatorSystem = (registry: Registry, ctx: Context) => { const weapons: { Weapon: Weapon; ChildrenComponent: ChildrenComponent }[] = registry.getZipper([ Weapon, ChildrenComponent, @@ -39,7 +40,7 @@ export function reloadIndicatorSystem(registry: Registry) { // Local-only from here on. const players: { id: number; NetworkId: NetworkId }[] = registry.getIndexedZipper([NetworkId]); - const localPlayer = players.find((p) => p.NetworkId.id === playerId); + const localPlayer = players.find((p) => p.NetworkId.id === ctx.scenes.vars.get("playerId")); const localWeapon = localPlayer ? findWeaponByParent(localPlayer.id) : undefined; const ammoHuds: { AmmoHudComponent: AmmoHudComponent }[] = registry.getZipper([AmmoHudComponent]); @@ -63,7 +64,4 @@ export function reloadIndicatorSystem(registry: Registry) { } } } -} - -// * Required to generate code -export default reloadIndicatorSystem.name; +}; diff --git a/games/raid-survival/apps/client/src/systems/revive-control-sender.system.ts b/games/raid-survival/apps/client/src/systems/revive-control-sender.system.ts new file mode 100644 index 0000000..299ecb2 --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/revive-control-sender.system.ts @@ -0,0 +1,24 @@ +import "@nanoforge-dev/network/client"; +import { ClientPacket } from "@raid-survival/shared/protocol"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { ReviveController } from "../components/revive-controller.component"; + +export const sendReviveControl = (registry: Registry, ctx: Context) => { + const entities: { ReviveController: ReviveController }[] = registry.getZipper([ReviveController]); + + entities.forEach(({ ReviveController }) => { + // Sent only on change - the server recomputes range/progress every tick regardless. + if (ReviveController.held !== ReviveController.lastSentHeld) { + ctx.network.packets.send(ClientPacket, { type: "input", reviveKeyHeld: ReviveController.held }); + ReviveController.lastSentHeld = ReviveController.held; + } + + // One-shot: sent once per fresh E press, then cleared. + if (ReviveController.interactRequested) { + ctx.network.packets.send(ClientPacket, { type: "input", interactRequested: true }); + ReviveController.interactRequested = false; + } + }); +}; diff --git a/raid-survival/client/systems/revive-control.system.ts b/games/raid-survival/apps/client/src/systems/revive-control.system.ts similarity index 76% rename from raid-survival/client/systems/revive-control.system.ts rename to games/raid-survival/apps/client/src/systems/revive-control.system.ts index 7fbc066..2b37a5b 100644 --- a/raid-survival/client/systems/revive-control.system.ts +++ b/games/raid-survival/apps/client/src/systems/revive-control.system.ts @@ -1,17 +1,17 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { type InputLibrary } from "@nanoforge-dev/input"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import "@nanoforge-dev/input"; import { ReviveController } from "../components/revive-controller.component"; import { BuildModeComponent } from "../components/build-mode.component"; // Hold-to-channel poll of the revive key - server-authoritative range/timing lives in // revive.system.ts; this only reports whether the local player is holding E right now. -export function reviveControlSystem(registry: Registry, ctx: Context) { +export const reviveControlSystem = (registry: Registry, ctx: Context) => { const entities: { ReviveController: ReviveController }[] = registry.getZipper([ReviveController]); if (entities.length === 0) return; - const input = ctx.libs.getInput(); + const input = ctx.input; const buildModeEntities: { BuildModeComponent: BuildModeComponent }[] = registry.getZipper([ BuildModeComponent, @@ -29,7 +29,4 @@ export function reviveControlSystem(registry: Registry, ctx: Context) { ReviveController.wasHeld = held; ReviveController.held = held; }); -} - -// * Required to generate code -export default reviveControlSystem.name; +}; diff --git a/raid-survival/client/systems/revive-hint-indicator.system.ts b/games/raid-survival/apps/client/src/systems/revive-hint-indicator.system.ts similarity index 87% rename from raid-survival/client/systems/revive-hint-indicator.system.ts rename to games/raid-survival/apps/client/src/systems/revive-hint-indicator.system.ts index be292f2..e4d2085 100644 --- a/raid-survival/client/systems/revive-hint-indicator.system.ts +++ b/games/raid-survival/apps/client/src/systems/revive-hint-indicator.system.ts @@ -1,12 +1,13 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { NetworkId } from "../components/network-id.component"; -import { TransformComponent } from "../components/essentials/transform.component"; +import { TransformComponent } from "../components/transform.component"; import { ChildrenComponent } from "../components/children.component"; import { Health } from "../components/health.component"; import { BuildModeComponent } from "../components/build-mode.component"; import { ReviveHintIndicatorComponent } from "../components/revive-hint-indicator.component"; -import { playerId } from "../main"; // Approximates the local player's center for the proximity check below. const LOCAL_PLAYER_SIZE = { width: 24, height: 24 }; @@ -16,7 +17,7 @@ const DISPLAY_REVIVE_RANGE = 46; // Shows "Hold E to revive" above a downed teammate, to the local player only, while they're alive // and not in build mode. -export function reviveHintIndicatorSystem(registry: Registry) { +export const reviveHintIndicatorSystem = (registry: Registry, ctx: Context) => { const indicators: { ReviveHintIndicatorComponent: ReviveHintIndicatorComponent; ChildrenComponent: ChildrenComponent; @@ -29,7 +30,7 @@ export function reviveHintIndicatorSystem(registry: Registry) { TransformComponent: TransformComponent; Health: Health; }[] = registry.getZipper([NetworkId, TransformComponent, Health]); - const localPlayer = players.find((p) => p.NetworkId.id === playerId); + const localPlayer = players.find((p) => p.NetworkId.id === ctx.scenes.vars.get("playerId")); const localAlive = !!localPlayer && localPlayer.Health.current > 0; const playerCenter = localPlayer ? { @@ -71,7 +72,4 @@ export function reviveHintIndicatorSystem(registry: Registry) { // revive-indicator.system.ts's ring/arc. if (visible) indicator.text.moveToTop(); } -} - -// * Required to generate code -export default reviveHintIndicatorSystem.name; +}; diff --git a/raid-survival/client/systems/revive-indicator.system.ts b/games/raid-survival/apps/client/src/systems/revive-indicator.system.ts similarity index 80% rename from raid-survival/client/systems/revive-indicator.system.ts rename to games/raid-survival/apps/client/src/systems/revive-indicator.system.ts index a237265..e0cdaf5 100644 --- a/raid-survival/client/systems/revive-indicator.system.ts +++ b/games/raid-survival/apps/client/src/systems/revive-indicator.system.ts @@ -1,14 +1,14 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; -import { TransformComponent } from "../components/essentials/transform.component"; +import { TransformComponent } from "../components/transform.component"; import { ReviveIndicatorComponent } from "../components/revive-indicator.component"; // Positions each revive ring pair and fills the green Arc in from the grey Ring underneath as // `elapsed` counts toward `durationSeconds`. Arc/Ring aren't Sprites, so spriteSystem never // positions them - this does that job for these two shapes. Must run after // transform-children-to-parent.system.ts. -export function reviveIndicatorSystem(registry: Registry, ctx: Context) { +export const reviveIndicatorSystem = (registry: Registry, ctx: Context) => { const entities: { TransformComponent: TransformComponent; ReviveIndicatorComponent: ReviveIndicatorComponent; @@ -35,7 +35,4 @@ export function reviveIndicatorSystem(registry: Registry, ctx: Context) { : 1; indicator.fill.angle(360 * fraction); } -} - -// * Required to generate code -export default reviveIndicatorSystem.name; +}; diff --git a/raid-survival/client/systems/rotate-to-direction.system.ts b/games/raid-survival/apps/client/src/systems/rotate-to-direction.system.ts similarity index 87% rename from raid-survival/client/systems/rotate-to-direction.system.ts rename to games/raid-survival/apps/client/src/systems/rotate-to-direction.system.ts index 68eb656..d5845b2 100644 --- a/raid-survival/client/systems/rotate-to-direction.system.ts +++ b/games/raid-survival/apps/client/src/systems/rotate-to-direction.system.ts @@ -1,10 +1,10 @@ -import type { Registry } from "@nanoforge-dev/ecs-client"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { Direction } from "../components/direction.component"; import { DirectionRotatorComponent } from "../components/direction-rotator.component"; -import { TransformComponent } from "../components/essentials/transform.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; +import { TransformComponent } from "../components/transform.component"; +import { SpriteComponent } from "../components/sprite.component"; -export function rotateToDirectionSystem(registry: Registry) { +export const rotateToDirectionSystem = (registry: Registry) => { const entities: { id: number; TransformComponent: TransformComponent; @@ -43,4 +43,4 @@ export function rotateToDirectionSystem(registry: Registry) { // pointing roughly 2*offset degrees away from the actual aim direction. entity.TransformComponent.rotation = flipped ? aimAngle - offset : aimAngle + offset; } -} \ No newline at end of file +}; \ No newline at end of file diff --git a/games/raid-survival/apps/client/src/systems/shoot-control-sender.system.ts b/games/raid-survival/apps/client/src/systems/shoot-control-sender.system.ts new file mode 100644 index 0000000..11a8cf0 --- /dev/null +++ b/games/raid-survival/apps/client/src/systems/shoot-control-sender.system.ts @@ -0,0 +1,35 @@ +import "@nanoforge-dev/network/client"; +import { ClientPacket } from "@raid-survival/shared/protocol"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { Velocity } from "../components/velocity.component"; +import { ShootController } from "../components/shoot-controller.component"; +import { Direction } from "../components/direction.component"; +import type { Vector } from "@raid-survival/shared/protocol"; + +export const sendShootControl = (registry: Registry, ctx: Context) => { + const entities: { ShootController: ShootController; Velocity: Vector; Direction: Direction }[] = + registry.getZipper([ShootController, Velocity, Direction]); + + entities.forEach(({ ShootController, Direction }) => { + // Only send "shooting" on change - the server recomputes firing/cooldown every tick regardless. + if (ShootController.shooting !== ShootController.lastSentShooting) { + ctx.network.packets.send(ClientPacket, { type: "input", shooting: ShootController.shooting }); + ShootController.lastSentShooting = ShootController.shooting; + } + + if (ShootController.reloadRequested) { + ctx.network.packets.send(ClientPacket, { type: "input", reload: true }); + ShootController.reloadRequested = false; + } + + // `direction` is now purely visual - the server recomputes the actual aim vector from + // `mousePosition` at the exact moment a shot fires, so it's never stale by even one packet. + ctx.network.packets.send(ClientPacket, { + type: "input", + direction: { x: Direction.x, y: Direction.y }, + mousePosition: { x: ShootController.position.x, y: ShootController.position.y }, + }); + }); +}; diff --git a/raid-survival/client/systems/shoot-control.system.ts b/games/raid-survival/apps/client/src/systems/shoot-control.system.ts similarity index 72% rename from raid-survival/client/systems/shoot-control.system.ts rename to games/raid-survival/apps/client/src/systems/shoot-control.system.ts index 2a198d2..25cab9f 100644 --- a/raid-survival/client/systems/shoot-control.system.ts +++ b/games/raid-survival/apps/client/src/systems/shoot-control.system.ts @@ -1,31 +1,31 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { InputEnum, type InputLibrary } from "@nanoforge-dev/input"; +import { gameView } from "../game-view"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { InputEnum } from "@nanoforge-dev/input"; -import { ShootController } from "../components/shoot.controller"; +import { ShootController } from "../components/shoot-controller.component"; import { Direction } from "../components/direction.component"; -import { Vector2d } from "@nanoforge-dev/graphics-2d"; -import { TransformComponent } from "../components/essentials/transform.component"; +import type { Vector } from "@raid-survival/shared/protocol"; +import { TransformComponent } from "../components/transform.component"; import { BuildModeComponent } from "../components/build-mode.component"; -import { sceneManager } from "../main"; -const PLAYER_SPRITE_SIZE: Vector2d = { x: 24, y: 24 }; +const PLAYER_SPRITE_SIZE: Vector = { x: 24, y: 24 }; -export function shootControl(registry: Registry, ctx: Context) { +export const shootControl = (registry: Registry, ctx: Context) => { const entities: { ShootController: ShootController; Direction: Direction; TransformComponent: TransformComponent; }[] = registry.getZipper([ShootController, Direction, TransformComponent]); - const input = ctx.libs.getInput(); + const input = ctx.input; const buildModeEntities: { BuildModeComponent: BuildModeComponent }[] = registry.getZipper([ BuildModeComponent, ]); const buildModeActive = buildModeEntities[0]?.BuildModeComponent.active ?? false; - const pointerPosition: Vector2d | null = - sceneManager.getScene()?.layer?.getRelativePointerPosition() || null; + const pointerPosition: Vector | null = + gameView(registry)?.world.getRelativePointerPosition() || null; entities.forEach(({ ShootController, Direction, TransformComponent }) => { if (buildModeActive) { @@ -63,6 +63,4 @@ export function shootControl(registry: Registry, ctx: Context) { Direction.y = dy / length; } }); -} -// * Required to generate code -export default shootControl.name; +}; diff --git a/raid-survival/client/systems/renderable/sprite-animator.system.ts b/games/raid-survival/apps/client/src/systems/sprite-animator.system.ts similarity index 79% rename from raid-survival/client/systems/renderable/sprite-animator.system.ts rename to games/raid-survival/apps/client/src/systems/sprite-animator.system.ts index 87cba47..cdf12c4 100644 --- a/raid-survival/client/systems/renderable/sprite-animator.system.ts +++ b/games/raid-survival/apps/client/src/systems/sprite-animator.system.ts @@ -1,7 +1,7 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; -import { Velocity } from "../../components/essentials/velocity.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { Direction } from "../../components/direction.component"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { Velocity } from "../components/velocity.component"; +import { SpriteComponent } from "../components/sprite.component"; +import { Direction } from "../components/direction.component"; export const spriteAnimator = (registry: Registry) => { const entities: { Direction: Direction; SpriteComponent: SpriteComponent; Velocity: Velocity }[] = diff --git a/raid-survival/client/systems/renderable/sprite.system.ts b/games/raid-survival/apps/client/src/systems/sprite.system.ts similarity index 89% rename from raid-survival/client/systems/renderable/sprite.system.ts rename to games/raid-survival/apps/client/src/systems/sprite.system.ts index b5d7d09..2eb7011 100644 --- a/raid-survival/client/systems/renderable/sprite.system.ts +++ b/games/raid-survival/apps/client/src/systems/sprite.system.ts @@ -1,10 +1,9 @@ import { type Context, NfFile } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Registry } from "@nanoforge-dev/ecs/client"; -import { Graphics2DLibrary, Sprite } from "@nanoforge-dev/graphics-2d"; -import { TransformComponent } from "../../components/essentials/transform.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager"; +import { Sprite } from "@nanoforge-dev/graphics-2d"; +import { TransformComponent } from "../components/transform.component"; +import { SpriteComponent } from "../components/sprite.component"; type Animations = Record; @@ -13,9 +12,9 @@ type Animations = Record; const ASSET_LOAD_MAX_ATTEMPTS = 3; const ASSET_LOAD_RETRY_DELAY_MS = 300; -function sleep(ms: number): Promise { +const sleep = (ms: number): Promise => { return new Promise((resolve) => setTimeout(resolve, ms)); -} +}; async function withRetry(load: () => Promise): Promise { let lastError: unknown; @@ -33,16 +32,16 @@ async function withRetry(load: () => Promise): Promise { const imageCache = new Map(); const imageLoading = new Map>(); -function loadImageOnce(path: string): Promise { +const loadImageOnce = (path: string): Promise => { return new Promise((resolve, reject) => { const image = new Image(); image.onload = () => resolve(image); image.onerror = () => reject(new Error(`Failed to load image: ${path}`)); image.src = path; }); -} +}; -function loadImage(path: string): Promise { +const loadImage = (path: string): Promise => { if (imageCache.has(path)) return Promise.resolve(imageCache.get(path)); if (imageLoading.has(path)) return Promise.resolve(imageLoading.get(path)); @@ -59,12 +58,12 @@ function loadImage(path: string): Promise { imageLoading.set(path, promise); return promise; -} +}; const animationsCache = new Map(); const animationsLoading = new Map>(); -function loadAnimations(file: NfFile): Promise { +const loadAnimations = (file: NfFile): Promise => { if (animationsCache.has(file.path)) return Promise.resolve(animationsCache.get(file.path)); if (animationsLoading.has(file.path)) return Promise.resolve(animationsLoading.get(file.path)); @@ -99,7 +98,7 @@ function loadAnimations(file: NfFile): Promise { animationsLoading.set(file.path, promise); return promise; -} +}; export const spriteSystem = async (registry: Registry, ctx: Context) => { const entities: { @@ -107,8 +106,8 @@ export const spriteSystem = async (registry: Registry, ctx: Context) => { TransformComponent: TransformComponent; SpriteComponent: SpriteComponent; }[] = registry.getIndexedZipper([TransformComponent, SpriteComponent]); - const graphics = ctx.libs.getGraphics(); - const assetManager = ctx.libs.getAssetManager(); + const graphics = ctx.graphics; + const assetManager = ctx.assets; for (const entity of entities) { if ( @@ -197,6 +196,3 @@ export const spriteSystem = async (registry: Registry, ctx: Context) => { graphics.stage.batchDraw(); }; - -// * Required to generate code -export default spriteSystem.name; diff --git a/raid-survival/client/systems/renderable/textarea.ts b/games/raid-survival/apps/client/src/systems/textarea.system.ts similarity index 63% rename from raid-survival/client/systems/renderable/textarea.ts rename to games/raid-survival/apps/client/src/systems/textarea.system.ts index 26c20e5..3b63fd4 100644 --- a/raid-survival/client/systems/renderable/textarea.ts +++ b/games/raid-survival/apps/client/src/systems/textarea.system.ts @@ -1,5 +1,5 @@ -import type { Registry } from "@nanoforge-dev/ecs-client"; -import { TextAreaComponent } from "../../components/renderable/textarea.component"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { TextAreaComponent } from "../components/textarea.component"; export const textareaSystem = async (registry: Registry) => { const entities: {TextAreaComponent: TextAreaComponent}[] = registry.getIndexedZipper([TextAreaComponent]); diff --git a/raid-survival/client/systems/transform-children-to-parent.system.ts b/games/raid-survival/apps/client/src/systems/transform-children-to-parent.system.ts similarity index 83% rename from raid-survival/client/systems/transform-children-to-parent.system.ts rename to games/raid-survival/apps/client/src/systems/transform-children-to-parent.system.ts index fda021c..8aef0df 100644 --- a/raid-survival/client/systems/transform-children-to-parent.system.ts +++ b/games/raid-survival/apps/client/src/systems/transform-children-to-parent.system.ts @@ -1,9 +1,9 @@ -import type { Registry } from "@nanoforge-dev/ecs-client"; -import { TransformComponent } from "../components/essentials/transform.component"; +import type { Registry } from "@nanoforge-dev/ecs/client"; +import { TransformComponent } from "../components/transform.component"; import { ChildrenComponent } from "../components/children.component"; import { Direction } from "../components/direction.component"; -export function transformChildrenToParentSystem(registry: Registry) { +export const transformChildrenToParentSystem = (registry: Registry) => { const entities: { ChildrenComponent: ChildrenComponent; TransformComponent: TransformComponent; @@ -30,4 +30,4 @@ export function transformChildrenToParentSystem(registry: Registry) { entity.Direction.y = parentDirection.y; } } -} \ No newline at end of file +}; \ No newline at end of file diff --git a/raid-survival/client/systems/weapon-reload-animation.system.ts b/games/raid-survival/apps/client/src/systems/weapon-reload-animation.system.ts similarity index 92% rename from raid-survival/client/systems/weapon-reload-animation.system.ts rename to games/raid-survival/apps/client/src/systems/weapon-reload-animation.system.ts index d802c52..0559dc8 100644 --- a/raid-survival/client/systems/weapon-reload-animation.system.ts +++ b/games/raid-survival/apps/client/src/systems/weapon-reload-animation.system.ts @@ -1,13 +1,13 @@ -import { type Context } from "@nanoforge-dev/common"; -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { Weapon } from "../components/weapon.component"; import { ChildrenComponent } from "../components/children.component"; import { DirectionRotatorComponent } from "../components/direction-rotator.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; +import { SpriteComponent } from "../components/sprite.component"; import { WeaponReloadOverlayComponent } from "../components/weapon-reload-overlay.component"; -import { WEAPON_CATALOG } from "../weapon-catalog"; -import { WEAPON_LOCAL_OFFSET } from "./packet-handlers/start-game-packet.handler"; +import { WEAPON_CATALOG } from "@raid-survival/shared/weapon-catalog"; +import { WEAPON_LOCAL_OFFSET } from "../hud-layout"; // Procedural fallback for any weapon with no dedicated reload animation asset (currently // smallGun): an oscillating tilt on top of the normal aim-tracking rotation. @@ -21,7 +21,7 @@ const RELOAD_TILT_AMPLITUDE = 25; // degrees // this system only ever forces the main sprite *hidden* while a reload overlay plays instead, so // that write needs to be the last word for the tick, not clobbered by those systems re-asserting // visibility the same tick. -export function weaponReloadAnimationSystem(registry: Registry, ctx: Context) { +export const weaponReloadAnimationSystem = (registry: Registry, ctx: Context) => { const weapons: { Weapon: Weapon; ChildrenComponent: ChildrenComponent; @@ -125,7 +125,4 @@ export function weaponReloadAnimationSystem(registry: Registry, ctx: Context) { weapon.baseRotationOffset + Math.sin(weapon.reloadElapsed * RELOAD_TILT_SPEED) * RELOAD_TILT_AMPLITUDE; } -} - -// * Required to generate code -export default weaponReloadAnimationSystem.name; +}; diff --git a/raid-survival/client/systems/weapon-visibility.system.ts b/games/raid-survival/apps/client/src/systems/weapon-visibility.system.ts similarity index 69% rename from raid-survival/client/systems/weapon-visibility.system.ts rename to games/raid-survival/apps/client/src/systems/weapon-visibility.system.ts index d29257d..34c1cf5 100644 --- a/raid-survival/client/systems/weapon-visibility.system.ts +++ b/games/raid-survival/apps/client/src/systems/weapon-visibility.system.ts @@ -1,16 +1,17 @@ -import { type Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/scene"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { NetworkId } from "../components/network-id.component"; import { ChildrenComponent } from "../components/children.component"; import { Weapon } from "../components/weapon.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; -import { playerId } from "../main"; +import { SpriteComponent } from "../components/sprite.component"; // Hides the weapon sprite for every player with nothing equipped, except the local player - // build-mode.system.ts already owns that one entirely (it also factors in build-mode visibility). -export function weaponVisibilitySystem(registry: Registry) { +export const weaponVisibilitySystem = (registry: Registry, ctx: Context) => { const players: { id: number; NetworkId: NetworkId }[] = registry.getIndexedZipper([NetworkId]); - const localPlayer = players.find((p) => p.NetworkId.id === playerId); + const localPlayer = players.find((p) => p.NetworkId.id === ctx.scenes.vars.get("playerId")); const weapons: { Weapon: Weapon; @@ -22,7 +23,4 @@ export function weaponVisibilitySystem(registry: Registry) { if (localPlayer && w.ChildrenComponent.parentId === localPlayer.id) continue; w.SpriteComponent.sprite?.visible(w.Weapon.weaponType !== null); } -} - -// * Required to generate code -export default weaponVisibilitySystem.name; +}; diff --git a/raid-survival/client/systems/essentials/z-order.system.ts b/games/raid-survival/apps/client/src/systems/z-order.system.ts similarity index 69% rename from raid-survival/client/systems/essentials/z-order.system.ts rename to games/raid-survival/apps/client/src/systems/z-order.system.ts index c787a24..b099af2 100644 --- a/raid-survival/client/systems/essentials/z-order.system.ts +++ b/games/raid-survival/apps/client/src/systems/z-order.system.ts @@ -1,10 +1,10 @@ -import { ZIndexComponent } from "../../components/essentials/z-index.component"; -import { SpriteComponent } from "../../components/renderable/sprite.component"; -import { Registry } from "@nanoforge-dev/ecs-client"; +import { ZIndexComponent } from "../components/z-index.component"; +import { SpriteComponent } from "../components/sprite.component"; +import type { Registry } from "@nanoforge-dev/ecs/client"; let lastOrder: number[] = []; -export function zOrderSystem(registry: Registry) { +export const zOrderSystem = (registry: Registry) => { const entities: {ZIndexComponent: ZIndexComponent, SpriteComponent: SpriteComponent}[] = registry.getZipper([ZIndexComponent, SpriteComponent]); const sorted = [...entities].sort((a, b) => a.ZIndexComponent.value - b.ZIndexComponent.value); @@ -16,4 +16,4 @@ export function zOrderSystem(registry: Registry) { sorted.forEach(({ SpriteComponent: sc }) => sc.sprite?.moveToTop()); lastOrder = currentOrder; -} \ No newline at end of file +}; \ No newline at end of file diff --git a/raid-survival/client/scenes/GameOverScene.ts b/games/raid-survival/apps/client/src/views/game-over-view.ts similarity index 86% rename from raid-survival/client/scenes/GameOverScene.ts rename to games/raid-survival/apps/client/src/views/game-over-view.ts index 5112df6..7d73516 100644 --- a/raid-survival/client/scenes/GameOverScene.ts +++ b/games/raid-survival/apps/client/src/views/game-over-view.ts @@ -1,15 +1,17 @@ -import { Scene } from "./Scene"; -import { Registry } from "@nanoforge-dev/ecs-client"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/graphics-2d"; +import "@nanoforge-dev/scene"; + +import type { ScreenView } from "./screen-view"; +import type { Registry } from "@nanoforge-dev/ecs/client"; import { Layer, Stage } from "@nanoforge-dev/graphics-2d"; -import { RectComponent } from "../components/renderable/rect.component"; -import { TextComponent } from "../components/renderable/text.component"; -import { MenuScene } from "./MenuScene"; -import { sceneManager } from "../main"; +import { RectComponent } from "../components/rect.component"; +import { TextComponent } from "../components/text.component"; +import { Menu } from "../scenes/menu.scene"; // Doubles as the victory screen - same layout and Retry flow either way, just the headline/accent // color changes based on `won`. -export class GameOverScene implements Scene { - readonly name = "gameOver"; +export class GameOverView implements ScreenView { layer: Layer | undefined; private stage!: Stage; @@ -18,8 +20,8 @@ export class GameOverScene implements Scene { private won: boolean = false, ) {} - load(registry: Registry, stage: Stage): void { - this.stage = stage; + load(registry: Registry, ctx: Context): void { + this.stage = ctx.graphics.stage; this.layer = new Layer(); this.stage.add(this.layer); @@ -123,7 +125,7 @@ export class GameOverScene implements Scene { }); retryButtonComponent.rect.on("click", () => { this.stage.container().style.cursor = "default"; - sceneManager.switchTo(new MenuScene()); + void ctx.scenes.load(ctx, Menu); }); registry.addComponent( diff --git a/raid-survival/client/scenes/MenuScene.ts b/games/raid-survival/apps/client/src/views/menu-view.ts similarity index 95% rename from raid-survival/client/scenes/MenuScene.ts rename to games/raid-survival/apps/client/src/views/menu-view.ts index 68f9eae..4973fe0 100644 --- a/raid-survival/client/scenes/MenuScene.ts +++ b/games/raid-survival/apps/client/src/views/menu-view.ts @@ -1,16 +1,20 @@ -import { Scene } from "./Scene"; +import "@nanoforge-dev/scene"; +import type { Context } from "@nanoforge-dev/common"; +import "@nanoforge-dev/graphics-2d"; +import "@nanoforge-dev/scene"; + +import type { ScreenView } from "./screen-view"; import { Container, Easings, Group, Layer, Stage, Tween } from "@nanoforge-dev/graphics-2d"; -import { Registry } from "@nanoforge-dev/ecs-client"; - -import { RectComponent } from "../components/renderable/rect.component"; -import { TextAreaComponent } from "../components/renderable/textarea.component"; -import { GroupComponent } from "../components/renderable/group.component"; -import { TextComponent } from "../components/renderable/text.component"; -import { SpriteComponent } from "../components/renderable/sprite.component"; -import { TransformComponent } from "../components/essentials/transform.component"; -import { LobbyAction, LobbyState, LobbyStatusComponent } from "../components/lobby/lobby-status"; -import { classForSkin, PLAYER_CLASS_INFO } from "../player-class-catalog"; -import { playerId } from "../main"; +import type { Registry } from "@nanoforge-dev/ecs/client"; + +import { RectComponent } from "../components/rect.component"; +import { TextAreaComponent } from "../components/textarea.component"; +import { GroupComponent } from "../components/group.component"; +import { TextComponent } from "../components/text.component"; +import { SpriteComponent } from "../components/sprite.component"; +import { TransformComponent } from "../components/transform.component"; +import { LobbyAction, LobbyState, LobbyStatusComponent } from "../components/lobby-status.component"; +import { classForSkin, PLAYER_CLASS_CATALOG } from "@raid-survival/shared/player-class-catalog"; // player1.png..player3.png only - player4.png is a differently sized sheet and renders garbled. const SKIN_COLORS = ["#D9A441", "#5CA9DC", "#E07856"]; @@ -18,18 +22,18 @@ const SKIN_COUNT = SKIN_COLORS.length; // Native, unscaled frame size shared by every player*.png sheet (player-animations.txt). const SPRITE_NATIVE_SIZE = 24; -function skinColor(index: number): string { +const skinColor = (index: number): string => { return SKIN_COLORS[index] ?? SKIN_COLORS[0] ?? "#D9A441"; -} +}; // Shortest signed distance from `index` to `selected` around a `count`-item ring - gives the // carousel its wrap-around feel instead of side previews bunching up on one edge. -function carouselOffset(index: number, selected: number, count: number): number { +const carouselOffset = (index: number, selected: number, count: number): number => { let raw = ((index - selected) % count) + count; raw %= count; if (raw > count / 2) raw -= count; return raw; -} +}; const ACCENT = "#D9A441"; const MUTED_TEXT = "#8FBB9B"; @@ -86,17 +90,17 @@ const KEYBINDS: { key: string; description: string }[] = [ // Cheap line-count estimate (no dynamic reflow measurement available before the Text node is // actually laid out by Konva) used purely to size each side panel's background/spacing ahead of // time - not pixel-perfect, but close enough for menu copy at these widths/font sizes. -function estimateWrappedHeight( +const estimateWrappedHeight = ( text: string, width: number, fontSize: number, lineHeight = 1.4, -): number { +): number => { const avgCharWidth = fontSize * 0.55; const charsPerLine = Math.max(1, Math.floor(width / avgCharWidth)); const lines = Math.max(1, Math.ceil(text.length / charsPerLine)); return lines * fontSize * lineHeight; -} +}; interface CarouselItem { sprite: SpriteComponent; @@ -116,8 +120,7 @@ interface LobbySlot { localTopY: number; } -export class MenuScene implements Scene { - readonly name = "menu"; +export class MenuView implements ScreenView { layer: Layer | undefined; private stage!: Stage; @@ -132,8 +135,8 @@ export class MenuScene implements Scene { private menu: "User" | "Lobby" = "User"; private joinErrorText: TextComponent | undefined; - // Backed by a real DOM