BlueGit

timfa questward

Vendor FrameworkV3 as a submodule and add a Windows-friendly build.

Co-authored-by: Cursor <cursoragent@cursor.com>

timfa Tim Falken · pushed by timfa

Authored 2026-08-24 · 2 months ago

Hash
613df7cd962dfea39d49d678601e19cc2f53c73a
Parent
2833c721
4 files changed +58 −3
.gitmodules added +3 −0
@@ -0,0 +1,3 @@
1 [submodule "client/frameworkv3"]
2 path = client/frameworkv3
3 url = https://gitlab.com/Timfa/frameworkv3.git
@@ -0,0 +1,3 @@
1[submodule "client/frameworkv3"]
2 path = client/frameworkv3
3 url = https://gitlab.com/Timfa/frameworkv3.git
client/frameworkv3 added +1 −0
@@ -0,0 +1 @@
1 Subproject commit 8dd31a0ea18975495c2775cea1920dfc66588d46
@@ -0,0 +1 @@
1Subproject commit 8dd31a0ea18975495c2775cea1920dfc66588d46
client/scripts/build-framework.mjs added +51 −0
@@ -0,0 +1,51 @@
1 import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
2 import { dirname, join } from "node:path";
3 import { fileURLToPath } from "node:url";
4
5 const root = join(fileURLToPath(new URL(".", import.meta.url)), "..", "frameworkv3");
6 const outFile = join(root, "js", "framework.js");
7 const files = [
8 "framework/extensions/polyfills.js",
9 "framework/extensions/extentions.js",
10 "framework/extensions/thirdparty.js",
11 "framework/util/vector.js",
12 "framework/util/ease.js",
13 "framework/util/timingUtil.js",
14 "framework/util/signal.js",
15 "framework/util/cookie.js",
16 "framework/util/urlParams.js",
17 "framework/util/input.js",
18 "framework/util/audio.js",
19 "framework/util/ray.js",
20 "framework/util/quadTree.js",
21 "framework/util/particleEmitter.js",
22 "framework/engine/gl/shader.js",
23 "framework/engine/gl/builtinShaders.js",
24 "framework/engine/gl/glContext.js",
25 "framework/engine/renderLayer.js",
26 "framework/engine/objectComponents/transform.js",
27 "framework/engine/objectComponents/collider.js",
28 "framework/engine/objectComponents/renderer.js",
29 "framework/engine/image.js",
30 "framework/engine/gameobject.js",
31 "framework/engine/scene.js",
32 "framework/engine/game.js"
33 ];
34
35 mkdirSync(dirname(outFile), { recursive: true });
36 let output = `/*
37 * AUTO-GENERATED FILE — DO NOT EDIT BY HAND.
38 * Built by client/scripts/build-framework.mjs from client/frameworkv3.
39 */
40 `;
41
42 for (const file of files)
43 {
44 const path = join(root, file);
45 output += `\n/*\n * Start File:\n * ${file}\n */ \n`;
46 output += readFileSync(path, "utf8");
47 output += `\n/*\n * End File:\n * ${file}\n */ \n`;
48 }
49
50 writeFileSync(outFile, output);
51 console.log(`Wrote ${outFile}`);
@@ -0,0 +1,51 @@
1import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
2import { dirname, join } from "node:path";
3import { fileURLToPath } from "node:url";
4
5const root = join(fileURLToPath(new URL(".", import.meta.url)), "..", "frameworkv3");
6const outFile = join(root, "js", "framework.js");
7const files = [
8 "framework/extensions/polyfills.js",
9 "framework/extensions/extentions.js",
10 "framework/extensions/thirdparty.js",
11 "framework/util/vector.js",
12 "framework/util/ease.js",
13 "framework/util/timingUtil.js",
14 "framework/util/signal.js",
15 "framework/util/cookie.js",
16 "framework/util/urlParams.js",
17 "framework/util/input.js",
18 "framework/util/audio.js",
19 "framework/util/ray.js",
20 "framework/util/quadTree.js",
21 "framework/util/particleEmitter.js",
22 "framework/engine/gl/shader.js",
23 "framework/engine/gl/builtinShaders.js",
24 "framework/engine/gl/glContext.js",
25 "framework/engine/renderLayer.js",
26 "framework/engine/objectComponents/transform.js",
27 "framework/engine/objectComponents/collider.js",
28 "framework/engine/objectComponents/renderer.js",
29 "framework/engine/image.js",
30 "framework/engine/gameobject.js",
31 "framework/engine/scene.js",
32 "framework/engine/game.js"
33];
34
35mkdirSync(dirname(outFile), { recursive: true });
36let output = `/*
37 * AUTO-GENERATED FILE — DO NOT EDIT BY HAND.
38 * Built by client/scripts/build-framework.mjs from client/frameworkv3.
39 */
40`;
41
42for (const file of files)
43{
44 const path = join(root, file);
45 output += `\n/*\n * Start File:\n * ${file}\n */ \n`;
46 output += readFileSync(path, "utf8");
47 output += `\n/*\n * End File:\n * ${file}\n */ \n`;
48}
49
50writeFileSync(outFile, output);
51console.log(`Wrote ${outFile}`);
docs/FEATURES.md +3 −3
@@ -129,9 +129,9 @@ Each entry is a short note on behaviour and where the code lives. Update this fi
129 129
130 130 ## FrameworkV3 client bootstrap
131 131
132 **Status:** not implemented
133 **Spec:** FrameworkV3 is a git submodule at `client/frameworkv3`, built first. Game code lives in `client/src`. Server does not import it.
134 **Code:** —
132 **Status:** full
133 **Spec:** FrameworkV3 is a git submodule at `client/frameworkv3`, built first via `npm run build:client`. Game code lives in `client/src`. Server does not import it.
134 **Code:** `.gitmodules`, `client/frameworkv3`, `client/scripts/build-framework.mjs`
135 135
136 136 ## 16×16 sprite contract
137 137
@@ -129,9 +129,9 @@ Each entry is a short note on behaviour and where the code lives. Update this fi
129
129
130## FrameworkV3 client bootstrap
130## FrameworkV3 client bootstrap
131
131
132**Status:** not implemented
132**Status:** full
133**Spec:** FrameworkV3 is a git submodule at `client/frameworkv3`, built first. Game code lives in `client/src`. Server does not import it.
133**Spec:** FrameworkV3 is a git submodule at `client/frameworkv3`, built first via `npm run build:client`. Game code lives in `client/src`. Server does not import it.
134**Code:** —
134**Code:** `.gitmodules`, `client/frameworkv3`, `client/scripts/build-framework.mjs`
135
135
136## 16×16 sprite contract
136## 16×16 sprite contract
137
137