Экспорт клиента: новая структура проекта, основной пакет 70 КБ
Deploy Static Site / deploy (push) Successful in 11s
Deploy Static Site / deploy (push) Successful in 11s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
## Что это за репо
|
# grid-world — готовая веб-сборка игры
|
||||||
тут кароче содержиться экспорт из годота, и он автоматически летит на сервер с помощью CI/CD
|
|
||||||
Сюда просто идет экспорт из godot в формате Web
|
Здесь только **результат экспорта** из Godot (проект — в соседнем репозитории `my-world`). Руками ничего не правится.
|
||||||
|
Пуш в `main` запускает CI (`.gitea/workflows/deploy.yml`): ssh на сервер и `git pull` в `/opt/grid-world`, откуда nginx отдаёт сайт.
|
||||||
|
|
||||||
|
| Файл | Что это | Размер |
|
||||||
|
|---|---|---|
|
||||||
|
| `index.html`, `index.js`, `index.png`, `index.icon.png`, `index.apple-touch-icon.png`, `index.audio*.js` | страница и загрузчик | мелочь |
|
||||||
|
| `index.wasm` | движок Godot | 39,5 МБ (~10 МБ по сети с gzip) |
|
||||||
|
| `index.pck` | основная игра: хаб, игрок, сеть, порталы | ~70 КБ |
|
||||||
|
| `world.pck` | карта «Песочница» (качается при входе в портал) | ~13,6 МБ |
|
||||||
|
| `backrooms.pck` | карта «Backrooms» (качается при входе в портал) | ~21,3 МБ |
|
||||||
|
|
||||||
|
Пакеты карт (`*.pck`) должны быть выложены **вместе** с `index.*` и той же версией: клиент качает их при первом входе в портал.
|
||||||
|
Как собрать: в проекте `my-world` выполнить `tools/export_all.sh`. Подробности, деплой сервера и устройство — в `my-world/README.md`.
|
||||||
|
|||||||
Binary file not shown.
+1
-1
@@ -111,7 +111,7 @@ body {
|
|||||||
|
|
||||||
<script src="index.js"></script>
|
<script src="index.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":2101900,"index.wasm":39514754},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4};
|
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":66968,"index.wasm":39514754},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4};
|
||||||
const GODOT_THREADS_ENABLED = false;
|
const GODOT_THREADS_ENABLED = false;
|
||||||
const engine = new Engine(GODOT_CONFIG);
|
const engine = new Engine(GODOT_CONFIG);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user