diff --git a/hl-engine-js.md b/hl-engine-js.md new file mode 100644 index 0000000..625ef12 --- /dev/null +++ b/hl-engine-js.md @@ -0,0 +1,11 @@ +Problem with hl-engine-js is that the `init()` method simply takes "location", a url to a directory +containing all the engine files. + +https://github.com/steren/hl-engine-js/blob/main/lib/hl-engine.js#L145 +- loadXash would need to be changed +- `Module.memoryInitializerPrefixURL = params.location + "/";` is where all the emscripten-specific + files are loaded. This can be replaced with [Module.locateFile](https://emscripten.org/docs/api_reference/module.html#Module.locateFile) + +### Cool ideas + +https://github.com/leonill007/vgui.css diff --git a/subrepo/Xash3D-Emscripten b/subrepo/Xash3D-Emscripten new file mode 160000 index 0000000..0c2f84f --- /dev/null +++ b/subrepo/Xash3D-Emscripten @@ -0,0 +1 @@ +Subproject commit 0c2f84f9ae9855a7d4dc8692e8a11536fac6e1c0