Vendor FrameworkV3 as a submodule and add a Windows-friendly build.
Co-authored-by: Cursor <cursoragent@cursor.com>
@@ -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/frameworkv33
url = https://gitlab.com/Timfa/frameworkv3.git@@ -0,0 +1 @@
1
Subproject commit 8dd31a0ea18975495c2775cea1920dfc66588d46
@@ -0,0 +1 @@1
Subproject commit 8dd31a0ea18975495c2775cea1920dfc66588d46@@ -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 @@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}`);@@ -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 fi129
129
130
## FrameworkV3 client bootstrap130
## FrameworkV3 client bootstrap131
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 contract136
## 16×16 sprite contract137
137