Compare commits
39
Commits
1450b2420c
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8cd3c50a58 | ||
|
|
de353321b5 | ||
|
|
b91b2b8674 | ||
|
|
9ab5030136 | ||
|
|
9f17f9d86d | ||
|
|
1ddd83983a | ||
|
|
e49bd51704 | ||
|
|
68aa0045ee | ||
|
|
a08b255ac5 | ||
|
|
7ef8bd7672 | ||
|
|
8ae3056386 | ||
|
|
96ada4dad6 | ||
|
|
3e20ea4f99 | ||
|
|
4cb11893b8 | ||
|
|
daadd6819a | ||
|
|
1b2d2fa9d8 | ||
|
|
d50a63bcfe | ||
|
|
b2e3146505 | ||
|
|
935415dbef | ||
|
|
200d1eccbd | ||
|
|
35f7659638 | ||
|
|
9135f4481a | ||
|
|
4171989e84 | ||
|
|
628760e091 | ||
|
|
dffb8147fc | ||
|
|
101c2c8bb6 | ||
|
|
4e5b0ae823 | ||
|
|
20242c4c19 | ||
|
|
46430c89e9 | ||
|
|
bda09d1e04 | ||
|
|
2f3688427b | ||
|
|
e9d50dc4ad | ||
|
|
c1b2703038 | ||
|
|
6c33c1c3db | ||
|
|
88a48b44b7 | ||
|
|
2c71a4aaf6 | ||
|
|
443f32addd | ||
|
|
d4dfd6574f | ||
|
|
c8f7e44903 |
@@ -0,0 +1,19 @@
|
||||
name: Deploy Static Site
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Pull latest changes via SSH
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
script: |
|
||||
cd /opt/grid-world/
|
||||
git pull origin main
|
||||
echo all good
|
||||
@@ -0,0 +1,15 @@
|
||||
# grid-world — готовая веб-сборка игры
|
||||
|
||||
Здесь только **результат экспорта** из 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.
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.2 KiB |
+3
-3
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
|
||||
<title>Мой Мирок</title>
|
||||
<title>Aman's World</title>
|
||||
<style>
|
||||
html, body, #canvas {
|
||||
margin: 0;
|
||||
@@ -38,7 +38,7 @@ body {
|
||||
}
|
||||
|
||||
#status {
|
||||
background-color: #242424;
|
||||
background-color: #08080a;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
@@ -111,7 +111,7 @@ body {
|
||||
|
||||
<script src="index.js"></script>
|
||||
<script>
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":27465612,"index.wasm":37900721},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4};
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":1773292,"index.wasm":39514754},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4};
|
||||
const GODOT_THREADS_ENABLED = false;
|
||||
const engine = new Engine(GODOT_CONFIG);
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 93 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user