Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
900c4764d1 | ||
|
|
aa4f23ef1c | ||
|
|
d9d982145a | ||
|
|
6ec98bc9bb | ||
|
|
024c766998 | ||
|
|
b50296086b | ||
|
|
39bd9545b9 | ||
|
|
ca53082bf7 | ||
|
|
cbf9b9a3c6 | ||
|
|
4fe63f302a | ||
|
|
54b93f7f28 | ||
|
|
5773d2a2d7 | ||
|
|
c0a8a64ad8 | ||
|
|
cc3ff26523 | ||
|
|
9a672b073c | ||
|
|
cdd1c0b670 | ||
|
|
572c02199b | ||
|
|
77ff2f62b4 | ||
|
|
4484ca1089 |
@@ -85,20 +85,33 @@ jobs:
|
||||
cp icon.ico tools/
|
||||
# go-winres (from the CI image) puts the icon into the exe
|
||||
(cd tools && go-winres patch --in winres.json --no-backup template.exe)
|
||||
sed -i "s|^custom_template/release=.*|custom_template/release=\"$PWD/tools/template.exe\"|" export_presets.cfg
|
||||
# only the first preset (Windows Desktop): the Web preset keeps the official web template
|
||||
sed -i "0,/^custom_template\/release=.*/s||custom_template/release=\"$PWD/tools/template.exe\"|" export_presets.cfg
|
||||
# version for the in-game updater: tag v1.0.4 -> 1.0.4
|
||||
sed -i "s|^config/version=.*|config/version=\"${GITHUB_REF_NAME#v}\"|" project.godot
|
||||
mkdir -p ../game_godot
|
||||
godot --headless --path . --export-release "Windows Desktop" ../game_godot/TinMerezhi.exe
|
||||
ls -l ../game_godot/TinMerezhi.exe
|
||||
|
||||
- name: Export Web build (itch.io channel html, played in the browser)
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
# the exe release must not depend on the web build: without game_web/ the itch step just skips the html channel
|
||||
continue-on-error: true
|
||||
working-directory: source_godot
|
||||
run: |
|
||||
# official single-threaded web template (~10 MB taken from the 1 GB tpz by HTTP Range): no SharedArrayBuffer needed on itch
|
||||
python3 tools/fetch_template.py web_nothreads_release.zip
|
||||
mkdir -p ../game_web
|
||||
godot --headless --path . --export-release "Web" ../game_web/index.html
|
||||
test -s ../game_web/index.wasm && ls -l ../game_web
|
||||
|
||||
- name: Windows exe under Wine (the game, tests and screenshots on the real template)
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
working-directory: source_godot
|
||||
run: |
|
||||
TEMPLATE=tools/template.exe sh ../ci/wine_check.sh ../game_godot/TinMerezhi.exe /tmp/shots
|
||||
|
||||
- name: Mirror on the droplet (fast download for the updater)
|
||||
- name: Mirror on the droplet (fast download for the updater, game page site/index.html)
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
# repo secret MIRROR_SSH_KEY: private key of the sftp-only user "mirror" on the droplet; without it this step is skipped
|
||||
@@ -106,6 +119,8 @@ jobs:
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
if [ -z "$KEY" ] || [ ! -s ci/mirror_known_hosts ]; then echo "mirror: no MIRROR_SSH_KEY or ci/mirror_known_hosts, skipped (the updater falls back to Gitea)"; exit 0; fi
|
||||
python3 ci/news.py source_godot/whatsnew.gd /tmp/news.json
|
||||
echo "$TAG" > /tmp/version.txt # before umask 077: sftp put keeps the mode, Caddy must be able to read it
|
||||
umask 077; printf '%s\n' "$KEY" > /tmp/mirror_key
|
||||
# before the Release: once the game sees the new tag, the mirror already has its exe (the updater checks the size)
|
||||
sftp -b - -i /tmp/mirror_key -o UserKnownHostsFile=ci/mirror_known_hosts -o StrictHostKeyChecking=yes mirror@46.101.222.25 <<EOF \
|
||||
@@ -114,9 +129,22 @@ jobs:
|
||||
put game_godot/TinMerezhi.exe /srv/tm/$TAG/TinMerezhi.exe.tmp
|
||||
-rm /srv/tm/$TAG/TinMerezhi.exe
|
||||
rename /srv/tm/$TAG/TinMerezhi.exe.tmp /srv/tm/$TAG/TinMerezhi.exe
|
||||
-rm /srv/tm/TinMerezhi.exe
|
||||
symlink /srv/tm/$TAG/TinMerezhi.exe /srv/tm/TinMerezhi.exe
|
||||
put /tmp/version.txt /srv/tm/version.txt
|
||||
put /tmp/news.json /srv/tm/news.json
|
||||
-mkdir /srv/tm/img
|
||||
put itch/wide_cover_2520x1080.png /srv/tm/img/
|
||||
put itch/social_1200x630.png /srv/tm/img/
|
||||
put itch/favicon_512.png /srv/tm/img/
|
||||
put itch/screenshots/1_start.png /srv/tm/img/
|
||||
put itch/screenshots/2_crack.png /srv/tm/img/
|
||||
put itch/screenshots/6_act5.png /srv/tm/img/
|
||||
put itch/screenshots/11_endless_en.png /srv/tm/img/
|
||||
put site/index.html /srv/tm/index.html
|
||||
EOF
|
||||
rm -f /tmp/mirror_key
|
||||
echo "mirror: https://46-101-222-25.sslip.io/$TAG/TinMerezhi.exe"
|
||||
echo "mirror: https://tinmerezhi.duckdns.org/$TAG/TinMerezhi.exe"
|
||||
|
||||
- name: Upload to Release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
@@ -155,6 +183,7 @@ jobs:
|
||||
run: |
|
||||
if [ -z "$BUTLER_API_KEY" ] || [ -z "$ITCH_TARGET" ]; then echo "itch.io: no BUTLER_API_KEY / ITCH_TARGET, skipped"; exit 0; fi
|
||||
butler push game_godot "$ITCH_TARGET:windows" --userversion "${TAG#v}"
|
||||
if [ -s game_web/index.html ]; then butler push game_web "$ITCH_TARGET:html" --userversion "${TAG#v}"; else echo "::warning::no web build, html channel not updated"; fi
|
||||
|
||||
- name: Latest exe into game_godot/ on main (Git LFS, replaces the previous one)
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -19,3 +19,4 @@ Thumbs.db
|
||||
desktop.ini
|
||||
ci/template.exe
|
||||
__pycache__/
|
||||
game_web/
|
||||
|
||||
1
ci/mirror_known_hosts
Normal file
1
ci/mirror_known_hosts
Normal file
@@ -0,0 +1 @@
|
||||
46.101.222.25 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDWagZdsEc7Ljc7qO0TudlpbCMtZZ4hlGbfvSwqxiJNc
|
||||
18
ci/news.py
Normal file
18
ci/news.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Game news for the page on the mirror: whatsnew.gd CHANGES (game-only, uk/en) -> news.json [{"v", "uk": [...], "en": [...]}], newest first.
|
||||
import json, re, sys
|
||||
|
||||
src, out = sys.argv[1], sys.argv[2]
|
||||
body = open(src, encoding="utf-8").read().split("const CHANGES := [", 1)[1].split("\n]", 1)[0]
|
||||
news = []
|
||||
for line in body.splitlines():
|
||||
line = line.strip().rstrip(",")
|
||||
if not line.startswith("["):
|
||||
continue
|
||||
v, uk, en = json.loads(line)
|
||||
if not news or news[-1]["v"] != v:
|
||||
news.append({"v": v, "uk": [], "en": []})
|
||||
news[-1]["uk"].append(uk)
|
||||
news[-1]["en"].append(en)
|
||||
assert news and all(len(n["uk"]) == len(n["en"]) for n in news), "no CHANGES parsed"
|
||||
json.dump(news, open(out, "w", encoding="utf-8"), ensure_ascii=False)
|
||||
print(f"news.json: {len(news)} versions")
|
||||
BIN
game_godot/TinMerezhi.exe
(Stored with Git LFS)
BIN
game_godot/TinMerezhi.exe
(Stored with Git LFS)
Binary file not shown.
99
itch/devlog/04_v1.0.77-v1.0.91.md
Normal file
99
itch/devlog/04_v1.0.77-v1.0.91.md
Normal file
@@ -0,0 +1,99 @@
|
||||
# Допис 4 журналу розробки (v1.0.77 – v1.0.91)
|
||||
|
||||
**Title:** Оновлення v1.0.91: нова заставка, чесніший злам і українські шифри / Update v1.0.91: new splash, fairer cracking and Ukrainian ciphers
|
||||
**Post type:** General Update
|
||||
**Tags:** update, gameplay, balance
|
||||
**Languages:** Українська, English (повний переклад)
|
||||
**Cover image:** нова обкладинка itch/cover_630x500.png (капюшон з оком мережі)
|
||||
|
||||
## Content
|
||||
|
||||
Найпростіше вставити через кнопку `<>` (джерело HTML) у редакторі itch, тоді списки й заголовки збережуться. Перед збереженням вийди з режиму `<>`, інакше itch пише "body: expected text".
|
||||
|
||||
```html
|
||||
<h2>Що нового в останніх версіях</h2>
|
||||
|
||||
<p>Тінь Мережі отримала нове обличчя: тінь у капюшоні з оком мережі над нічним Києвом. А всередині злам став чеснішим, складності точніше налаштовані, а шифри в українській версії тепер справді українські.</p>
|
||||
|
||||
<h3>Нова заставка й обкладинка</h3>
|
||||
<ul>
|
||||
<li>При запуску гра показує нову заставку: тінь у капюшоні з оком мережі над нічним Києвом.</li>
|
||||
<li>Та сама картинка тепер на обкладинці гри.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Шифри українською</h3>
|
||||
<ul>
|
||||
<li>У шифр-замку й крипто-гаманцях української версії ключ тепер українське слово, а шифр іде по українській абетці з 33 літер.</li>
|
||||
<li>В англійській версії все як раніше.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Злам і складність</h3>
|
||||
<ul>
|
||||
<li>Пароль зовнішнього шару більше не змінюється, коли відступаєш: усе, що ти про нього з'ясував, лишається до наступного візиту.</li>
|
||||
<li>Параноя: трасування вище (+90% замість +50%), щоб вона лишилася такою ж важкою, але без безкінечних повторних зламів.</li>
|
||||
<li>Новачок легший: трасування −30% замість −25%, а в термінових главах на 20% більше дій.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Чесні правила</h3>
|
||||
<ul>
|
||||
<li>Арешт, коли в тебе файл із замовлення «піти без логів», конфіскує цей файл. Главу чи замовлення більше не зарахувати простим <code>connect</code> і <code>disconnect</code> після арешту.</li>
|
||||
<li>Перегони із суперником за замовлення «піти без логів» тепер зараховуються як виграні, коли ти чисто відключився.</li>
|
||||
<li><code>update</code> посеред зламу більше не перезапускає гру (це було б як висмикнути кабель): спершу заверши злам.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Дрібніші зміни</h3>
|
||||
<ul>
|
||||
<li>Ефект CRT на нулі тепер справді вимкнений, тож на слабких ноутбуках гра менше навантажує відеокарту.</li>
|
||||
<li>«Менше анімацій» зупиняє ще й стрічку новин і дощ символів.</li>
|
||||
<li>Дуже довгий журнал більше не втрачає кольорів емблем, листів і підказок зламу.</li>
|
||||
<li>Команда <code>update</code> качає нові версії зі швидшого сервера, а якщо він недоступний, то як раніше.</li>
|
||||
<li>У гри з'явилася власна сторінка з таблицею рекордів українською й англійською: <a href="https://tinmerezhi.duckdns.org">tinmerezhi.duckdns.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Оновлення підтягується в грі командою <code>update</code>. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>English</h2>
|
||||
|
||||
<h2>What's new in recent versions</h2>
|
||||
|
||||
<p>Shadow Net has a new face: a hooded shadow with a network eye over night Kyiv. Inside, cracking is fairer, the difficulties are tuned more precisely, and the ciphers in the Ukrainian version are now truly Ukrainian.</p>
|
||||
|
||||
<h3>New splash and cover</h3>
|
||||
<ul>
|
||||
<li>On launch the game shows a new splash screen: a hooded shadow with a network eye over night Kyiv.</li>
|
||||
<li>The same picture is now the game's cover.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Ciphers in Ukrainian</h3>
|
||||
<ul>
|
||||
<li>In the Ukrainian version the cipher lock and crypto wallets now use a Ukrainian word as the key, and the cipher runs over the 33-letter Ukrainian alphabet.</li>
|
||||
<li>The English version stays as before.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Cracking and difficulty</h3>
|
||||
<ul>
|
||||
<li>The outer layer password no longer changes when you retreat: everything you learned about it stays until your next visit.</li>
|
||||
<li>Paranoid: higher trace (+90% instead of +50%) so it stays just as hard, without endless repeated cracks.</li>
|
||||
<li>Novice is easier: trace −30% instead of −25%, and 20% more actions in urgent chapters.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Fair rules</h3>
|
||||
<ul>
|
||||
<li>An arrest while you hold a file from a "leave no logs" job confiscates that file. A chapter or job can no longer be completed with a plain <code>connect</code> and <code>disconnect</code> after the arrest.</li>
|
||||
<li>A rival race for a "leave no logs" job now counts as won when you disconnect cleanly.</li>
|
||||
<li><code>update</code> in the middle of a crack no longer restarts the game (that would be like pulling the cable): finish the crack first.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Smaller changes</h3>
|
||||
<ul>
|
||||
<li>The CRT effect at zero is now truly off, so the game puts less load on the GPU of weak laptops.</li>
|
||||
<li>"Fewer animations" now also stops the news ticker and the symbol rain.</li>
|
||||
<li>A very long log no longer loses the colours of emblems, mails and crack hints.</li>
|
||||
<li>The <code>update</code> command downloads new versions from a faster server, and falls back to the old one if it is unavailable.</li>
|
||||
<li>The game now has its own page with a leaderboard in Ukrainian and English: <a href="https://tinmerezhi.duckdns.org">tinmerezhi.duckdns.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Get the update in game with the <code>update</code> command. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!</p>
|
||||
```
|
||||
75
itch/devlog/04_v1.0.77-v1.0.91.txt
Normal file
75
itch/devlog/04_v1.0.77-v1.0.91.txt
Normal file
@@ -0,0 +1,75 @@
|
||||
Що нового в останніх версіях
|
||||
|
||||
Тінь Мережі отримала нове обличчя: тінь у капюшоні з оком мережі над нічним Києвом. А всередині злам став чеснішим, складності точніше налаштовані, а шифри в українській версії тепер справді українські.
|
||||
|
||||
Нова заставка й обкладинка
|
||||
|
||||
• При запуску гра показує нову заставку: тінь у капюшоні з оком мережі над нічним Києвом.
|
||||
• Та сама картинка тепер на обкладинці гри.
|
||||
|
||||
Шифри українською
|
||||
|
||||
• У шифр-замку й крипто-гаманцях української версії ключ тепер українське слово, а шифр іде по українській абетці з 33 літер.
|
||||
• В англійській версії все як раніше.
|
||||
|
||||
Злам і складність
|
||||
|
||||
• Пароль зовнішнього шару більше не змінюється, коли відступаєш: усе, що ти про нього з'ясував, лишається до наступного візиту.
|
||||
• Параноя: трасування вище (+90% замість +50%), щоб вона лишилася такою ж важкою, але без безкінечних повторних зламів.
|
||||
• Новачок легший: трасування −30% замість −25%, а в термінових главах на 20% більше дій.
|
||||
|
||||
Чесні правила
|
||||
|
||||
• Арешт, коли в тебе файл із замовлення «піти без логів», конфіскує цей файл. Главу чи замовлення більше не зарахувати простим connect і disconnect після арешту.
|
||||
• Перегони із суперником за замовлення «піти без логів» тепер зараховуються як виграні, коли ти чисто відключився.
|
||||
• update посеред зламу більше не перезапускає гру (це було б як висмикнути кабель): спершу заверши злам.
|
||||
|
||||
Дрібніші зміни
|
||||
|
||||
• Ефект CRT на нулі тепер справді вимкнений, тож на слабких ноутбуках гра менше навантажує відеокарту.
|
||||
• «Менше анімацій» зупиняє ще й стрічку новин і дощ символів.
|
||||
• Дуже довгий журнал більше не втрачає кольорів емблем, листів і підказок зламу.
|
||||
• Команда update качає нові версії зі швидшого сервера, а якщо він недоступний, то як раніше.
|
||||
• У гри з'явилася власна сторінка з таблицею рекордів українською й англійською: https://tinmerezhi.duckdns.org
|
||||
|
||||
Оновлення підтягується в грі командою update. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!
|
||||
|
||||
──────────
|
||||
|
||||
English
|
||||
|
||||
What's new in recent versions
|
||||
|
||||
Shadow Net has a new face: a hooded shadow with a network eye over night Kyiv. Inside, cracking is fairer, the difficulties are tuned more precisely, and the ciphers in the Ukrainian version are now truly Ukrainian.
|
||||
|
||||
New splash and cover
|
||||
|
||||
• On launch the game shows a new splash screen: a hooded shadow with a network eye over night Kyiv.
|
||||
• The same picture is now the game's cover.
|
||||
|
||||
Ciphers in Ukrainian
|
||||
|
||||
• In the Ukrainian version the cipher lock and crypto wallets now use a Ukrainian word as the key, and the cipher runs over the 33-letter Ukrainian alphabet.
|
||||
• The English version stays as before.
|
||||
|
||||
Cracking and difficulty
|
||||
|
||||
• The outer layer password no longer changes when you retreat: everything you learned about it stays until your next visit.
|
||||
• Paranoid: higher trace (+90% instead of +50%) so it stays just as hard, without endless repeated cracks.
|
||||
• Novice is easier: trace −30% instead of −25%, and 20% more actions in urgent chapters.
|
||||
|
||||
Fair rules
|
||||
|
||||
• An arrest while you hold a file from a "leave no logs" job confiscates that file. A chapter or job can no longer be completed with a plain connect and disconnect after the arrest.
|
||||
• A rival race for a "leave no logs" job now counts as won when you disconnect cleanly.
|
||||
• update in the middle of a crack no longer restarts the game (that would be like pulling the cable): finish the crack first.
|
||||
|
||||
Smaller changes
|
||||
|
||||
• The CRT effect at zero is now truly off, so the game puts less load on the GPU of weak laptops.
|
||||
• "Fewer animations" now also stops the news ticker and the symbol rain.
|
||||
• A very long log no longer loses the colours of emblems, mails and crack hints.
|
||||
• The update command downloads new versions from a faster server, and falls back to the old one if it is unavailable.
|
||||
• The game now has its own page with a leaderboard in Ukrainian and English: https://tinmerezhi.duckdns.org
|
||||
|
||||
Get the update in game with the update command. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!
|
||||
@@ -184,9 +184,18 @@ class H(BaseHTTPRequestHandler):
|
||||
self.send_response(code)
|
||||
self.send_header("Content-Type", "application/json; charset=utf-8")
|
||||
self.send_header("Content-Length", str(len(b)))
|
||||
self.send_header("Access-Control-Allow-Origin", "*") # веб-версія гри на itch.io (інший домен); без кук, тож * безпечно
|
||||
self.end_headers()
|
||||
self.wfile.write(b)
|
||||
|
||||
def do_OPTIONS(self): # preflight браузера перед POST з Content-Type: application/json
|
||||
self.send_response(204)
|
||||
self.send_header("Access-Control-Allow-Origin", "*")
|
||||
self.send_header("Access-Control-Allow-Methods", "GET, POST")
|
||||
self.send_header("Access-Control-Allow-Headers", "Content-Type")
|
||||
self.send_header("Access-Control-Max-Age", "86400")
|
||||
self.end_headers()
|
||||
|
||||
def do_GET(self):
|
||||
p, q = self.path_q()
|
||||
if p == "/":
|
||||
|
||||
@@ -47,4 +47,8 @@ assert req("/event", {"sid": S, "ev": "start", "ch": 5})[0] == 200 and req("/sta
|
||||
assert server.H.timeout > 0, "тайм-аут з'єднання"
|
||||
codes = [req("/event", {"sid": S, "ev": "start", "ch": 0}, ip="9.9.9.9")[0] for _ in range(35)]
|
||||
assert codes.count(429) == 5, "ліміт 30 за хвилину"
|
||||
with urllib.request.urlopen(urllib.request.Request(URL + "/score", method="OPTIONS")) as f:
|
||||
assert f.status == 204 and f.headers["Access-Control-Allow-Origin"] == "*" and "Content-Type" in f.headers["Access-Control-Allow-Headers"], "CORS preflight"
|
||||
with urllib.request.urlopen(URL + "/health") as f:
|
||||
assert f.headers["Access-Control-Allow-Origin"] == "*", "CORS у відповіді"
|
||||
print("server OK")
|
||||
|
||||
185
site/index.html
Normal file
185
site/index.html
Normal file
@@ -0,0 +1,185 @@
|
||||
<!doctype html>
|
||||
<html lang="uk">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>ТінМережі · Shadow Net</title>
|
||||
<meta name="description" content="Хакерська гра в терміналі українською та англійською · A hacking game played in a terminal, in Ukrainian and English">
|
||||
<meta property="og:title" content="ТінМережі · Shadow Net">
|
||||
<meta property="og:image" content="https://tinmerezhi.duckdns.org/img/social_1200x630.png">
|
||||
<link rel="icon" href="img/favicon_512.png">
|
||||
<!-- Сторінка гри на дзеркалі (CI кладе site/ та itch/ картинки в /srv/tm). Рекорди: /api/* → Caddy → сервер онлайн-рекордів (/tm-api). -->
|
||||
<style>
|
||||
:root { --bg: #0b0f0c; --panel: #111814; --line: #1f2e24; --fg: #c8f5d4; --dim: #6f9a7c; --acc: #39ff7a; --warn: #ffcc4d; --bad: #ff5c6c; }
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; }
|
||||
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; }
|
||||
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||
h1 { color: var(--acc); font-size: 34px; margin: 0; text-shadow: 0 0 14px rgba(57,255,122,.45); }
|
||||
h2 { color: var(--acc); font-size: 20px; margin: 36px 0 12px; }
|
||||
h3 { color: var(--acc); font-size: 16px; margin: 0 0 10px; }
|
||||
a { color: var(--acc); }
|
||||
.lang button { background: var(--panel); color: var(--dim); border: 1px solid var(--line); padding: 4px 10px; font: inherit; cursor: pointer; border-radius: 6px; }
|
||||
.lang button.on { color: var(--acc); border-color: var(--acc); }
|
||||
.tag { color: var(--dim); margin: 6px 0 20px; }
|
||||
.hero { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
|
||||
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
|
||||
.btn { display: inline-block; background: var(--acc); color: #04140a; font-weight: bold; padding: 12px 20px; border-radius: 8px; text-decoration: none; }
|
||||
.btn.alt { background: var(--panel); color: var(--acc); border: 1px solid var(--line); font-weight: normal; }
|
||||
.small { color: var(--dim); font-size: 14px; }
|
||||
ul.feat { padding-left: 20px; }
|
||||
ul.feat li { margin: 4px 0; }
|
||||
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 12px; }
|
||||
.shots img { width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; }
|
||||
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
|
||||
section.b { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
|
||||
th { color: var(--dim); font-weight: normal; font-size: 13px; }
|
||||
.n { text-align: right; font-variant-numeric: tabular-nums; }
|
||||
tr.first td { color: var(--warn); }
|
||||
.empty { color: var(--dim); }
|
||||
.bad { color: var(--bad); }
|
||||
.nv { color: var(--warn); margin: 14px 0 2px; }
|
||||
#news ul { margin: 0; padding-left: 20px; }
|
||||
#more { background: var(--panel); color: var(--acc); border: 1px solid var(--line); padding: 6px 12px; font: inherit; cursor: pointer; border-radius: 6px; margin-top: 10px; }
|
||||
footer { color: var(--dim); font-size: 13px; margin-top: 36px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<header>
|
||||
<h1 data-t="title">▓ ТІНЬ МЕРЕЖІ</h1>
|
||||
<div class="lang"><button data-l="uk">УКР</button> <button data-l="en">ENG</button></div>
|
||||
</header>
|
||||
<p class="tag" data-t="tag"></p>
|
||||
<img class="hero" src="img/wide_cover_2520x1080.png" alt="ТінМережі / Shadow Net">
|
||||
<div class="cta">
|
||||
<a class="btn" href="TinMerezhi.exe" data-t="dl"></a>
|
||||
<a class="btn alt" href="https://tuberon.itch.io/tinmerezhi">🎮 itch.io</a>
|
||||
<a class="btn alt" href="#records" data-t="recs"></a>
|
||||
<span class="small"><span data-t="ver"></span> <span id="ver">…</span> · Windows 10/11 · <span data-t="noinst"></span></span>
|
||||
</div>
|
||||
<p data-t="story"></p>
|
||||
<ul class="feat" id="feat"></ul>
|
||||
<h2 id="news-h" data-t="news"></h2>
|
||||
<div id="news"></div>
|
||||
<button id="more" class="lang" style="display:none"></button>
|
||||
<h2 data-t="shots"></h2>
|
||||
<div class="shots">
|
||||
<img src="img/1_start.png" alt="" loading="lazy">
|
||||
<img src="img/2_crack.png" alt="" loading="lazy">
|
||||
<img src="img/6_act5.png" alt="" loading="lazy">
|
||||
<img src="img/11_endless_en.png" alt="" loading="lazy">
|
||||
</div>
|
||||
<h2 id="records" data-t="recs"></h2>
|
||||
<p class="small" data-t="recnote"></p>
|
||||
<div class="grid" id="boards"></div>
|
||||
<footer data-t="foot"></footer>
|
||||
</main>
|
||||
<script>
|
||||
const T = {
|
||||
uk: {
|
||||
title: "▓ ТІНЬ МЕРЕЖІ", tag: "Хакерська гра, де все робиш у терміналі.",
|
||||
dl: "⬇ Завантажити для Windows", recs: "🏆 Рекорди", ver: "Версія", noinst: "без встановлення",
|
||||
story: "Ти — Shadow, хакер-одинак. Таємничий Оракул дає завдання: від Wi-Fi кав'ярні до Нульового вузла, де ховається серце Пуйла. Скануй мережу, підбирай коди, відкривай порти, будуй маршрут через зламані сервери й стирай логи, бо трасування росте з кожною помилкою.",
|
||||
feat: ["6 актів, 48 глав і кілька кінцівок, що залежать від твоїх виборів",
|
||||
"45 серверів на анімованій мапі мережі: шари шифрування, закриті порти, активне трасування",
|
||||
"Міні-ігри зламу: обхід фаєрвола і словникова атака",
|
||||
"Суперники-хакери Cobra, Mantis і Nyx: перегони за замовлення, крадіжки й помста",
|
||||
"Соціальна інженерія, криптоголоволомки, чорний ринок експлойтів і рідкісні побічні квести",
|
||||
"Після фіналу: Нескінченна мережа з рекордами, щоденний виклик і New Game+",
|
||||
"Три складності: Новачок, Звичайний і Параноя (без збережень)",
|
||||
"Адаптивна синтвейв-музика, українська та англійська мови, автооновлення"],
|
||||
shots: "📸 Скриншоти", news: "📰 Що нового", more: "Показати старіші",
|
||||
recnote: "Онлайн-рекорди надсилаються з гри лише за згодою (налаштування → онлайн-рекорди). Таблиці оновлюються щохвилини.",
|
||||
foot: "Розробник: JunioR. Гра і код — під ліцензією MIT. Рушій Godot.",
|
||||
boards: ["♾ Нескінченна мережа", "📅 Виклик дня", "🤖 1 · Кур'єр", "🤖 2 · Прибиральник", "🤖 3 · Збирач", "🤖 4 · Нічний рейс"],
|
||||
nick: "Нік", score: "Рахунок", depth: "Глибина", diff: "Складність", jobs: "Замовлень", lines: "Рядків", steps: "Кроків",
|
||||
diffs: ["Новачок", "Звичайний", "Параноя"], empty: "Поки порожньо. Стань першим!", down: "Сервер рекордів недоступний"
|
||||
},
|
||||
en: {
|
||||
title: "▓ SHADOW NET", tag: "A hacking game played entirely in a terminal.",
|
||||
dl: "⬇ Download for Windows", recs: "🏆 Leaderboards", ver: "Version", noinst: "no install",
|
||||
story: "You are Shadow, a lone hacker. The mysterious Oracle sends you jobs, from a café's Wi-Fi all the way to the Zero Node where Puilo's heart hides. Scan the network, crack codes, open ports, route through hacked servers and wipe your logs, because every mistake raises the trace.",
|
||||
feat: ["6 acts, 48 chapters and several endings shaped by your choices",
|
||||
"45 servers on an animated network map: encryption layers, closed ports, active tracing",
|
||||
"Hacking mini-games: firewall bypass and dictionary attack",
|
||||
"Rival hackers Cobra, Mantis and Nyx race you for jobs, steal from you and take revenge",
|
||||
"Social engineering, crypto puzzles, a black market of exploits and rare side quests",
|
||||
"After the finale: the Endless Network with leaderboards, a daily challenge and New Game+",
|
||||
"Three difficulties: Novice, Normal and Paranoid (no saves)",
|
||||
"Adaptive synthwave music, English and Ukrainian, auto-update"],
|
||||
shots: "📸 Screenshots", news: "📰 What's new", more: "Show older",
|
||||
recnote: "Scores are sent from the game only if you opt in (settings → online leaderboards). Tables refresh every minute.",
|
||||
foot: "Developer: JunioR. The game and its code are MIT-licensed. Godot engine.",
|
||||
boards: ["♾ Endless Network", "📅 Daily", "🤖 1 · Courier", "🤖 2 · Janitor", "🤖 3 · Collector", "🤖 4 · Night Flight"],
|
||||
nick: "Nick", score: "Score", depth: "Depth", diff: "Difficulty", jobs: "Jobs", lines: "Lines", steps: "Steps",
|
||||
diffs: ["Novice", "Normal", "Paranoid"], empty: "Empty so far. Be the first!", down: "Leaderboard server unavailable"
|
||||
}
|
||||
};
|
||||
const DAY = "d" + new Date().toISOString().slice(0, 10).replaceAll("-", ""); // виклик дня — за UTC, як у грі
|
||||
const IDS = ["endless", DAY, "agent0", "agent1", "agent2", "agent3"];
|
||||
let lang = "uk";
|
||||
try { lang = localStorage.getItem("lang") || (navigator.language.startsWith("uk") ? "uk" : "en"); } catch (e) {}
|
||||
if (new URLSearchParams(location.search).get("lang") in T) lang = new URLSearchParams(location.search).get("lang");
|
||||
let tops = {};
|
||||
let news = [], newsAll = false; // news.json: ігрові зміни з whatsnew.gd (CI, ci/news.py) // кеш таблиць, щоб перемикання мови не ходило в мережу
|
||||
|
||||
function el(tag, text, cls) { const e = document.createElement(tag); if (text !== undefined) e.textContent = text; if (cls) e.className = cls; return e; }
|
||||
|
||||
function render() {
|
||||
const t = T[lang];
|
||||
document.documentElement.lang = lang;
|
||||
for (const e of document.querySelectorAll("[data-t]")) e.textContent = t[e.dataset.t];
|
||||
for (const b of document.querySelectorAll("[data-l]")) b.classList.toggle("on", b.dataset.l === lang);
|
||||
document.getElementById("feat").replaceChildren(...t.feat.map(f => el("li", f)));
|
||||
const shown = newsAll ? news : news.slice(0, 5);
|
||||
document.getElementById("news").replaceChildren(...shown.flatMap(n => [el("div", "v" + n.v, "nv"), (() => { const u = el("ul"); u.append(...n[lang].map(x => el("li", x))); return u; })()]));
|
||||
const more = document.getElementById("more");
|
||||
more.style.display = !newsAll && news.length > 5 ? "" : "none";
|
||||
more.textContent = t.more;
|
||||
document.getElementById("news-h").style.display = news.length ? "" : "none";
|
||||
document.getElementById("boards").replaceChildren(...IDS.map((id, k) => {
|
||||
const s = el("section", undefined, "b"), tb = el("table"), head = el("tr");
|
||||
s.append(el("h3", t.boards[k]));
|
||||
const cols = k === 0 ? ["#", t.nick, t.score, t.depth, t.diff] : k === 1 ? ["#", t.nick, t.score, t.jobs] : ["#", t.nick, t.lines, t.steps];
|
||||
cols.forEach((c, i) => head.append(el("th", c, i > 1 && c !== t.diff ? "n" : "")));
|
||||
tb.append(head); s.append(tb);
|
||||
const top = tops[id];
|
||||
if (top === undefined) s.append(el("p", "…", "empty"));
|
||||
else if (top === null) s.append(el("p", t.down, "bad"));
|
||||
else if (!top.length) s.append(el("p", t.empty, "empty"));
|
||||
else top.forEach((r, i) => {
|
||||
const tr = el("tr");
|
||||
tr.append(el("td", i + 1), el("td", r.nick), el("td", r.a.toLocaleString(lang), "n"), el("td", r.b, "n"));
|
||||
if (k === 0) tr.append(el("td", t.diffs[r.diff] ?? ""));
|
||||
if (i === 0) tr.className = "first";
|
||||
tb.append(tr);
|
||||
});
|
||||
return s;
|
||||
}));
|
||||
}
|
||||
|
||||
async function load() {
|
||||
await Promise.all(IDS.map(async id => {
|
||||
try { const r = await fetch("api/top?board=" + id, {cache: "no-store"}); tops[id] = r.ok ? (await r.json()).top : null; }
|
||||
catch (e) { tops[id] = null; }
|
||||
}));
|
||||
render();
|
||||
}
|
||||
|
||||
for (const b of document.querySelectorAll("[data-l]")) b.onclick = () => {
|
||||
lang = b.dataset.l;
|
||||
try { localStorage.setItem("lang", lang); } catch (e) {}
|
||||
render();
|
||||
};
|
||||
document.getElementById("more").onclick = () => { newsAll = true; render(); };
|
||||
fetch("news.json", {cache: "no-store"}).then(r => r.ok ? r.json() : []).then(d => { news = d; render(); }).catch(() => {});
|
||||
fetch("version.txt", {cache: "no-store"}).then(r => r.ok ? r.text() : "–").then(v => document.getElementById("ver").textContent = v.trim()).catch(() => {});
|
||||
render();
|
||||
load();
|
||||
setInterval(load, 60000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -44,13 +44,13 @@ const HELP := {
|
||||
"about": "about — про гру і розробника.",
|
||||
"update": "update — перевірити й завантажити нову версію гри.",
|
||||
"choose": "choose 1|2 — вибір у фіналі акту.",
|
||||
"difficulty": "difficulty novice|normal|paranoid — складність (лише до першого зламу).\nНовачок: трасування −25%, слідчі повільніші, +2 арешти, +20% дій у термінових главах. Параноя: трасування +90%, слідчі швидші, на 1 арешт менше, за замками серверів ще й код, збереження лише на початку кожного акту.",
|
||||
"difficulty": "difficulty novice|normal|paranoid — складність (лише до першого зламу).\nНовачок: трасування −30%, слідчі повільніші, +2 арешти, +20% дій у термінових главах. Параноя: трасування +90%, слідчі швидші, на 1 арешт менше, за замками серверів ще й код, збереження лише на початку кожного акту.",
|
||||
"firewall": "firewall — міні-гра \"Обхід фаєрвола\" перед зламом: вимкни всі фільтри (перемикач змінює себе й сусідів).\nУспіх — трасування на сервері −40% до відключення. Провал — +10%. Одна спроба за підключення.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.",
|
||||
"dict": "dict — міні-гра \"Словникова атака\": вгадай пароль адміна серед слів дампу (видно, скільки літер на місцях).\nУспіх — наступний crack почнеться з 2 відомими цифрами. Одна спроба за підключення.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.",
|
||||
"rivals": "rivals — суперники-хакери: хто в кого що вкрав і хто має на тебе образу.\nНа сервері із замовленням суперник може почати перегони: забери файл, поки не минув час, інакше оплата вдвічі менша.\nПереможений тримає образу і може злити твій IP слідчим, поки ти онлайн.",
|
||||
"quests": "quests — дивні прохання незнайомців: рідкісні одноразові квести з унікальною нагородою.\nІнколи після зламу сервера пише незнайомець: забери (download) його файл з іншого сервера.\nНагороди — записи в журналі, відзнаки, ретро-запрошення або копія програми. Кожен квест — лише раз за гру.",
|
||||
"call": "call — соціальна інженерія перед зламом: подзвони працівнику сервера і вивідай частину пароля.\nТри репліки, на кожну — відповідь 1–3: слухай, що за людина. Одна помилка дозволена (дві — з навичкою social 3+).\nУспіх — наступний crack почнеться з 2 відомими цифрами. Провал — трасування як за невдалу спробу. Одна спроба за підключення.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.",
|
||||
"decrypt": "decrypt — криптоголоволомка: розшифруй гаманець wallet.dat на зламаному сервері (видно в ls).\nКлюч — англійське слово, відома його перша літера. Число 1–9 — пробний зсув назад (3 рази), слово — спроба (3 рази).\nУспіх — крипта 🪙 (стільки, який захист сервера). Провал — гаманець стирає себе, +5% трасування.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.",
|
||||
"decrypt": "decrypt — криптоголоволомка: розшифруй гаманець wallet.dat на зламаному сервері (видно в ls).\nКлюч — українське слово, відома його перша літера. Число 1–9 — пробний зсув назад (3 рази), слово — спроба (3 рази).\nУспіх — крипта 🪙 (стільки, який захист сервера). Провал — гаманець стирає себе, +5% трасування.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.",
|
||||
"market": "market [id] — чорний ринок: список експлойтів або купити один. Платять лише криптою 🪙 з гаманців (decrypt).\nlayer — відкрити поточний шар шифрування, jam — прогнати суперника з перегонів,\nbribe — закрити всі розслідування, alibi — само скасовує наступний арешт.\nice — розтопити чорний лід (🧊 у scan): помилки зламу знову звичайні.",
|
||||
"exploit": "exploit <id> — застосувати експлойт із чорного ринку (layer — під час зламу). alibi діє само.",
|
||||
"daily": "daily — щоденний виклик: 10 замовлень Брокера, однакових для всіх гравців сьогодні (за UTC), той самий набір\nі складність. Рахунок — оплата плюс бонус за швидкість. Онлайн-таблиця дня — top. З нової гри або після кінця гри.",
|
||||
|
||||
@@ -8,7 +8,7 @@ dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter="tests/*,tools/*"
|
||||
exclude_filter="tests/*,tools/*,fonts/DejaVu*,fonts/JetBrains*"
|
||||
export_path="../game_godot/TinMerezhi.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
@@ -41,3 +41,36 @@ application/export_angle=0
|
||||
application/export_d3d12=0
|
||||
application/d3d12_agility_sdk_multiarch=true
|
||||
ssh_remote_deploy/enabled=false
|
||||
|
||||
[preset.1]
|
||||
|
||||
name="Web"
|
||||
platform="Web"
|
||||
runnable=false
|
||||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter="tests/*,tools/*"
|
||||
export_path="../game_web/index.html"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
script_export_mode=2
|
||||
|
||||
[preset.1.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
variant/extensions_support=false
|
||||
variant/thread_support=false
|
||||
vram_texture_compression/for_desktop=true
|
||||
vram_texture_compression/for_mobile=false
|
||||
html/export_icon=true
|
||||
html/custom_html_shell=""
|
||||
html/head_include=""
|
||||
html/canvas_resize_policy=2
|
||||
html/focus_canvas_on_start=true
|
||||
html/experimental_virtual_keyboard=false
|
||||
progressive_web_app/enabled=false
|
||||
|
||||
BIN
source_godot/fonts/DejaVuSansMono-Bold.ttf
Normal file
BIN
source_godot/fonts/DejaVuSansMono-Bold.ttf
Normal file
Binary file not shown.
36
source_godot/fonts/DejaVuSansMono-Bold.ttf.import
Normal file
36
source_godot/fonts/DejaVuSansMono-Bold.ttf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://vgruetf7qsxc"
|
||||
path="res://.godot/imported/DejaVuSansMono-Bold.ttf-2869c267b6229069bac4acc3bc3ecdef.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://fonts/DejaVuSansMono-Bold.ttf"
|
||||
dest_files=["res://.godot/imported/DejaVuSansMono-Bold.ttf-2869c267b6229069bac4acc3bc3ecdef.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=3
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
BIN
source_godot/fonts/DejaVuSansMono.ttf
Normal file
BIN
source_godot/fonts/DejaVuSansMono.ttf
Normal file
Binary file not shown.
36
source_godot/fonts/DejaVuSansMono.ttf.import
Normal file
36
source_godot/fonts/DejaVuSansMono.ttf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://couvuivyg1i75"
|
||||
path="res://.godot/imported/DejaVuSansMono.ttf-8e135b2c7e25a27d178cdccaa11decf7.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://fonts/DejaVuSansMono.ttf"
|
||||
dest_files=["res://.godot/imported/DejaVuSansMono.ttf-8e135b2c7e25a27d178cdccaa11decf7.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=3
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
BIN
source_godot/fonts/JetBrainsMonoNL-btc.ttf
Normal file
BIN
source_godot/fonts/JetBrainsMonoNL-btc.ttf
Normal file
Binary file not shown.
36
source_godot/fonts/JetBrainsMonoNL-btc.ttf.import
Normal file
36
source_godot/fonts/JetBrainsMonoNL-btc.ttf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://d1q4rrpph31h8"
|
||||
path="res://.godot/imported/JetBrainsMonoNL-btc.ttf-97d151dc4c4d36b15c2b2dbc9728030c.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://fonts/JetBrainsMonoNL-btc.ttf"
|
||||
dest_files=["res://.godot/imported/JetBrainsMonoNL-btc.ttf-97d151dc4c4d36b15c2b2dbc9728030c.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=3
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
78
source_godot/fonts/LICENSE-DejaVu.txt
Normal file
78
source_godot/fonts/LICENSE-DejaVu.txt
Normal file
@@ -0,0 +1,78 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: DejaVu fonts
|
||||
Upstream-Author: Stepan Roh <src@users.sourceforge.net> (original author),
|
||||
see /usr/share/doc/fonts-dejavu-core/AUTHORS for full list
|
||||
Source: https://dejavu-fonts.github.io/
|
||||
|
||||
Files: *
|
||||
Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
|
||||
Bitstream Vera is a trademark of Bitstream, Inc.
|
||||
DejaVu changes are in public domain.
|
||||
License: bitstream-vera
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of the fonts accompanying this license ("Fonts") and associated
|
||||
documentation files (the "Font Software"), to reproduce and distribute the
|
||||
Font Software, including without limitation the rights to use, copy, merge,
|
||||
publish, distribute, and/or sell copies of the Font Software, and to permit
|
||||
persons to whom the Font Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
.
|
||||
The above copyright and trademark notices and this permission notice shall
|
||||
be included in all copies of one or more of the Font Software typefaces.
|
||||
.
|
||||
The Font Software may be modified, altered, or added to, and in particular
|
||||
the designs of glyphs or characters in the Fonts may be modified and
|
||||
additional glyphs or characters may be added to the Fonts, only if the fonts
|
||||
are renamed to names not containing either the words "Bitstream" or the word
|
||||
"Vera".
|
||||
.
|
||||
This License becomes null and void to the extent applicable to Fonts or Font
|
||||
Software that has been modified and is distributed under the "Bitstream
|
||||
Vera" names.
|
||||
.
|
||||
The Font Software may be sold as part of a larger software package but no
|
||||
copy of one or more of the Font Software typefaces may be sold by itself.
|
||||
.
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
||||
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
||||
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
|
||||
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
|
||||
FONT SOFTWARE.
|
||||
.
|
||||
Except as contained in this notice, the names of Gnome, the Gnome
|
||||
Foundation, and Bitstream Inc., shall not be used in advertising or
|
||||
otherwise to promote the sale, use or other dealings in this Font Software
|
||||
without prior written authorization from the Gnome Foundation or Bitstream
|
||||
Inc., respectively. For further information, contact: fonts at gnome dot
|
||||
org.
|
||||
|
||||
Files: debian/*
|
||||
Copyright: (C) 2005-2006 Peter Cernak <pce@users.sourceforge.net>
|
||||
(C) 2006-2011 Davide Viti <zinosat@tiscali.it>
|
||||
(C) 2011-2013 Christian Perrier <bubulle@debian.org>
|
||||
(C) 2013 Fabian Greffrath <fabian+debian@greffrath.com>
|
||||
License: GPL-2+
|
||||
This program is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
.
|
||||
This program is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE. See the GNU General Public License for more
|
||||
details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public
|
||||
License along with this package; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
Boston, MA 02110-1301 USA
|
||||
.
|
||||
On Debian systems, the full text of the GNU General Public
|
||||
License version 2 can be found in the file
|
||||
/usr/share/common-licenses/GPL-2'.
|
||||
93
source_godot/fonts/LICENSE-JetBrainsMono.txt
Normal file
93
source_godot/fonts/LICENSE-JetBrainsMono.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -1274,8 +1274,8 @@ const EN := {
|
||||
"Тут немає зашифрованого гаманця.": "There's no encrypted wallet here.",
|
||||
"шифр Цезаря: кожну літеру зсунуто вперед на 1–%d": "Caesar cipher: every letter is shifted forward by 1–%d",
|
||||
"шифр Цезаря (зсув 1–%d), а слово записано задом наперед": "Caesar cipher (shift 1–%d), and the word is written backwards",
|
||||
"Атбаш (a↔z, b↔y, c↔x…), потім Цезар зі зсувом 1–%d": "Atbash (a↔z, b↔y, c↔x…), then Caesar with shift 1–%d",
|
||||
"🔐 КРИПТО-ГАМАНЕЦЬ. Ключ — англійське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.": "🔐 CRYPTO WALLET. The key is an English word, %s.\nThe metadata shows the key's first letter: \"%s\".\nEnter the key word, or a number 1–%d for a test shift back. abort — give up.",
|
||||
"Атбаш (а↔я, б↔ю, в↔ь…), потім Цезар зі зсувом 1–%d": "Atbash (a↔z, b↔y, c↔x…), then Caesar with shift 1–%d",
|
||||
"🔐 КРИПТО-ГАМАНЕЦЬ. Ключ — українське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.": "🔐 CRYPTO WALLET. The key is an English word, %s.\nThe metadata shows the key's first letter: \"%s\".\nEnter the key word, or a number 1–%d for a test shift back. abort — give up.",
|
||||
"🔐 %s спроб: %d, пробних зсувів: %d": "🔐 %s tries: %d, test shifts: %d",
|
||||
"Гаманець заблокувався і стер себе.": "The wallet locked itself and wiped itself.",
|
||||
"Зсув — від 1 до %d.": "The shift is from 1 to %d.",
|
||||
@@ -1313,7 +1313,7 @@ const EN := {
|
||||
"Криптоголоволомка: розшифруй ключ гаманця — отримаєш крипту для чорного ринку": "Crypto puzzle: decrypt the wallet key — get crypto for the black market",
|
||||
"Чорний ринок: експлойти за крипту з гаманців": "Black market: exploits for crypto from wallets",
|
||||
"call — соціальна інженерія перед зламом: подзвони працівнику сервера і вивідай частину пароля.\nТри репліки, на кожну — відповідь 1–3: слухай, що за людина. Одна помилка дозволена (дві — з навичкою social 3+).\nУспіх — наступний crack почнеться з 2 відомими цифрами. Провал — трасування як за невдалу спробу. Одна спроба за підключення.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.": "call — social engineering before a crack: phone the server's employee and coax out part of the password.\nThree lines, answer each with 1–3: listen to what kind of person it is. One mistake is allowed (two with the social skill 3+).\nSuccess — the next crack starts with 2 known digits. Failure — trace like a failed attempt. One try per connection.\nLock: on some servers (🧱 📖 📞 🔐 in scan) this attack opens the outer layer instead of the code.",
|
||||
"decrypt — криптоголоволомка: розшифруй гаманець wallet.dat на зламаному сервері (видно в ls).\nКлюч — англійське слово, відома його перша літера. Число 1–9 — пробний зсув назад (3 рази), слово — спроба (3 рази).\nУспіх — крипта 🪙 (стільки, який захист сервера). Провал — гаманець стирає себе, +5% трасування.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.": "decrypt — crypto puzzle: decrypt the wallet.dat wallet on a hacked server (shown in ls).\nThe key is an English word, its first letter is known. A number 1–9 is a test shift back (3 times), a word is an attempt (3 times).\nSuccess — crypto 🪙 (as much as the server's defense). Failure — the wallet wipes itself, +5% trace.\nLock: on some servers (🧱 📖 📞 🔐 in scan) this attack opens the outer layer instead of the code.",
|
||||
"decrypt — криптоголоволомка: розшифруй гаманець wallet.dat на зламаному сервері (видно в ls).\nКлюч — українське слово, відома його перша літера. Число 1–9 — пробний зсув назад (3 рази), слово — спроба (3 рази).\nУспіх — крипта 🪙 (стільки, який захист сервера). Провал — гаманець стирає себе, +5% трасування.\nЗамок: на деяких серверах (🧱 📖 📞 🔐 у scan) саме ця атака відкриває зовнішній шар замість коду.": "decrypt — crypto puzzle: decrypt the wallet.dat wallet on a hacked server (shown in ls).\nThe key is an English word, its first letter is known. A number 1–9 is a test shift back (3 times), a word is an attempt (3 times).\nSuccess — crypto 🪙 (as much as the server's defense). Failure — the wallet wipes itself, +5% trace.\nLock: on some servers (🧱 📖 📞 🔐 in scan) this attack opens the outer layer instead of the code.",
|
||||
"market [id] — чорний ринок: список експлойтів або купити один. Платять лише криптою 🪙 з гаманців (decrypt).\nlayer — відкрити поточний шар шифрування, jam — прогнати суперника з перегонів,\nbribe — закрити всі розслідування, alibi — само скасовує наступний арешт.\nice — розтопити чорний лід (🧊 у scan): помилки зламу знову звичайні.": "market [id] — black market: list of exploits or buy one. Crypto 🪙 from wallets only (decrypt).\nlayer — open the current encryption layer, jam — chase a rival out of a race,\nbribe — close all investigations, alibi — cancels the next arrest by itself.\nice — melt black ice (🧊 in scan): crack mistakes are normal again.",
|
||||
"exploit <id> — застосувати експлойт із чорного ринку (layer — під час зламу). alibi діє само.": "exploit <id> — use an exploit from the black market (layer — during a crack). alibi works by itself.",
|
||||
"🌐 Онлайн-рекорди": "🌐 Online leaderboards",
|
||||
@@ -1372,7 +1372,7 @@ const EN := {
|
||||
"🤍 Біла команда: \"Ключ від клітки — у тебе. Ми довіряємо тобі більше, ніж будь-якому замку.\"": "🤍 White Team: \"You hold the key to the cage. We trust you more than any lock.\"",
|
||||
"🌀 Відлуння: \"Він був моїм початком. Тепер мережу вартую я — і я не забуду третього правила.\"": "🌀 Echo: \"He was my beginning. Now I guard the network — and I won't forget the third rule.\"",
|
||||
"🌀 Відлуння вартує клітку Пуйла: батька стереже його ж відлуння. \"Він питає, чому я не такий, як він. Я кажу: через Shadow.\"": "🌀 Echo guards Puilo's cage: the father watched by his own echo. \"He asks why I'm not like him. I tell him: because of Shadow.\"",
|
||||
"difficulty novice|normal|paranoid — складність (лише до першого зламу).\nНовачок: трасування −25%, слідчі повільніші, +2 арешти, +20% дій у термінових главах. Параноя: трасування +90%, слідчі швидші, на 1 арешт менше, за замками серверів ще й код, збереження лише на початку кожного акту.": "difficulty novice|normal|paranoid — difficulty (only before your first crack).\nNovice: trace −25%, investigators slower, +2 arrests, +20% actions in urgent chapters. Paranoid: trace +90%, investigators faster, 1 arrest fewer, server locks still have a code behind them, saves only at the start of each act.",
|
||||
"difficulty novice|normal|paranoid — складність (лише до першого зламу).\nНовачок: трасування −30%, слідчі повільніші, +2 арешти, +20% дій у термінових главах. Параноя: трасування +90%, слідчі швидші, на 1 арешт менше, за замками серверів ще й код, збереження лише на початку кожного акту.": "difficulty novice|normal|paranoid — difficulty (only before your first crack).\nNovice: trace −30%, investigators slower, +2 arrests, +20% actions in urgent chapters. Paranoid: trace +90%, investigators faster, 1 arrest fewer, server locks still have a code behind them, saves only at the start of each act.",
|
||||
"🆕 Нові команди: %s (докладно — help <команда>).": "🆕 New commands: %s (details — help <command>).",
|
||||
" ще: daily, top, settings, lang, sound, save, update, about, achievements, newgame, clear": " more: daily, top, settings, lang, sound, save, update, about, achievements, newgame, clear",
|
||||
"🔒 Ще %d команд відкриються з рівнем і сюжетом. help all — повний список.": "🔒 %d more commands unlock with your level and the story. help all — the full list.",
|
||||
@@ -1385,7 +1385,7 @@ const EN := {
|
||||
"🔎 Ціль невідома: прочитай %s (cat) на \"%s\" (№%d).": "🔎 Target unknown: read %s (cat) on \"%s\" (#%d).",
|
||||
" Частин залито: %d/%d.": " Parts uploaded: %d/%d.",
|
||||
"☠ Параноя: гра зберігається лише на початку кожного акту.": "☠ Paranoid: the game only saves at the start of each act.",
|
||||
"🎚 Складність: %s. Варіанти: novice (Новачок: трасування −25%%, +2 арешти, +20%% дій у термінових главах), normal, paranoid (Параноя: трасування +90%%, слідчі швидші, на 1 арешт менше, за замками ще й код, ЗБЕРЕЖЕННЯ ЛИШЕ НА ПОЧАТКУ АКТУ).": "🎚 Difficulty: %s. Options: novice (Novice: trace −25%%, +2 arrests, +20%% actions in urgent chapters), normal, paranoid (Paranoid: trace +90%%, faster investigators, 1 arrest fewer, a code behind every lock, SAVES ONLY AT THE START OF AN ACT).",
|
||||
"🎚 Складність: %s. Варіанти: novice (Новачок: трасування −30%%, +2 арешти, +20%% дій у термінових главах), normal, paranoid (Параноя: трасування +90%%, слідчі швидші, на 1 арешт менше, за замками ще й код, ЗБЕРЕЖЕННЯ ЛИШЕ НА ПОЧАТКУ АКТУ).": "🎚 Difficulty: %s. Options: novice (Novice: trace −30%%, +2 arrests, +20%% actions in urgent chapters), normal, paranoid (Paranoid: trace +90%%, faster investigators, 1 arrest fewer, a code behind every lock, SAVES ONLY AT THE START OF AN ACT).",
|
||||
"☠ Параноя: гра зберігається лише на початку кожного акту. Закриєш вікно — повернешся на початок акту.": "☠ Paranoid: the game only saves at the start of each act. Close the window — and you go back to the start of the act.",
|
||||
"🌐 Онлайн-рекорди і статистика": "🌐 Online leaderboards and stats",
|
||||
"Твої результати в Нескінченній мережі, щоденному виклику й задачах агентів можуть потрапити в спільну онлайн-таблицю (top). Надсилаються лише нік і рахунок.\n\nАнонімна статистика допомагає розробнику побачити, на якій главі гравці застрягають: номер глави, кількість дій і арештів, складність, мова й версія. Без ніка, імені чи IP.\n\nОбидва вимкнені, поки ти їх не ввімкнеш. Змінити можна будь-коли командою settings.": "Your Endless Network, daily challenge and agent task results can go to a shared online leaderboard (top). Only your nickname and score are sent.\n\nAnonymous stats help the developer see which chapter players get stuck on: chapter number, action and arrest counts, difficulty, language and version. No nickname, name or IP.\n\nBoth are off until you turn them on. You can change this any time with the settings command.",
|
||||
@@ -1411,7 +1411,7 @@ const EN := {
|
||||
"Розтоплювач льоду": "Ice melter",
|
||||
"на сервері з чорним льодом: розтоплює його, помилки знову звичайні": "on a server with black ice: melts it, mistakes are normal again",
|
||||
"Замок уже заблокувався після спроби. Відключись і повернись пізніше.": "The lock jammed after the attempt. Disconnect and come back later.",
|
||||
"🔐 ШИФР-ЗАМОК. Ключ — англійське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.": "🔐 CIPHER LOCK. The key is an English word, %s.\nThe metadata shows the key's first letter: \"%s\".\nType the key word, or a number 1–%d to try shifting back. abort — give up.",
|
||||
"🔐 ШИФР-ЗАМОК. Ключ — українське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.": "🔐 CIPHER LOCK. The key is an English word, %s.\nThe metadata shows the key's first letter: \"%s\".\nType the key word, or a number 1–%d to try shifting back. abort — give up.",
|
||||
"🔓 Шифр розгадано: ключ \"%s\".": "🔓 Cipher solved: the key is \"%s\".",
|
||||
"🚨 Замок заблокувався, адмін отримав сповіщення. Ключ був \"%s\".": "🚨 The lock jammed and the admin got an alert. The key was \"%s\".",
|
||||
"Тут немає чорного льоду.": "There's no black ice here.",
|
||||
|
||||
@@ -69,7 +69,7 @@ var note_wave := "sq"
|
||||
var alarm_t := 0.0
|
||||
const DIGITS := ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
||||
const HOME := Vector2(150, 468)
|
||||
var RAIN_CHARS := "01ТІНЬМЕРЕЖІ#$%&@アカサタナ" if L.current() == "uk" else "01SHADOWNET#$%&@アカサタナ"
|
||||
var RAIN_CHARS := ("01ТІНЬМЕРЕЖІ#$%&@" if L.current() == "uk" else "01SHADOWNET#$%&@") + ("" if OS.has_feature("web") else "アカサタナ") # у браузері нема шрифту з катаканою
|
||||
const COL := {
|
||||
"": Color("#33ff66"), "info": Color("#66ccff"), "warn": Color("#ffdd33"), "err": Color("#ff5555"),
|
||||
"big": Color.WHITE, "mail": Color("#ff99ff"),
|
||||
@@ -1231,7 +1231,7 @@ func c_difficulty(a: String) -> void:
|
||||
if a.is_valid_int() and int(a) >= 1 and int(a) <= 3:
|
||||
i = int(a) - 1
|
||||
if i < 0:
|
||||
say(L.t("🎚 Складність: %s. Варіанти: novice (Новачок: трасування −25%%, +2 арешти, +20%% дій у термінових главах), normal, paranoid (Параноя: трасування +90%%, слідчі швидші, на 1 арешт менше, за замками ще й код, ЗБЕРЕЖЕННЯ ЛИШЕ НА ПОЧАТКУ АКТУ).") % L.t(T.DIFF_NAMES[diff]), "info")
|
||||
say(L.t("🎚 Складність: %s. Варіанти: novice (Новачок: трасування −30%%, +2 арешти, +20%% дій у термінових главах), normal, paranoid (Параноя: трасування +90%%, слідчі швидші, на 1 арешт менше, за замками ще й код, ЗБЕРЕЖЕННЯ ЛИШЕ НА ПОЧАТКУ АКТУ).") % L.t(T.DIFF_NAMES[diff]), "info")
|
||||
return
|
||||
if not can_change_diff():
|
||||
say(L.t("Складність обирають на початку гри (до першого зламу). Почни нову гру: newgame."), "err")
|
||||
|
||||
@@ -14,6 +14,11 @@ const FAIL_TRACE := 5
|
||||
const MAX_SHIFT := 9
|
||||
const WORDS := ["shadow", "kernel", "cipher", "crypto", "socket", "packet", "router", "binary", "signal", "mirror",
|
||||
"falcon", "rocket", "hunter", "matrix", "secret", "legacy", "spirit", "planet", "dragon", "silver"]
|
||||
# українською — свої слова й абетка (теж по 6 літер, щоб баланс не змінився)
|
||||
const WORDS_UK := ["сервер", "пароль", "захист", "мережа", "сигнал", "модуль", "доступ", "дракон", "ракета", "секрет",
|
||||
"привид", "кордон", "комета", "бункер", "ліхтар", "журнал", "запуск", "вектор", "сканер", "кіборг"]
|
||||
const ABC_EN := "abcdefghijklmnopqrstuvwxyz"
|
||||
const ABC_UK := "абвгґдеєжзиіїйклмнопрстуфхцчшщьюя"
|
||||
|
||||
# id → [назва, ціна в 🪙, опис, скільки можна мати]
|
||||
const EXPLOITS := {
|
||||
@@ -44,16 +49,22 @@ static func ls_line(g: Main) -> void:
|
||||
g.say(L.t(" 🔐 wallet.dat — зашифрований крипто-гаманець (decrypt)"), "warn")
|
||||
|
||||
# ── криптоголоволомка ──
|
||||
# абетку видно з самого слова: латиниця чи кирилиця
|
||||
static func abc(w: String) -> String:
|
||||
return ABC_EN if w[0] in ABC_EN else ABC_UK
|
||||
|
||||
static func _caesar(w: String, k: int) -> String:
|
||||
var a := abc(w)
|
||||
var r := ""
|
||||
for c in w:
|
||||
r += String.chr(97 + posmod(c.unicode_at(0) - 97 + k, 26))
|
||||
r += a[posmod(a.find(c) + k, a.length())]
|
||||
return r
|
||||
|
||||
static func _atbash(w: String) -> String:
|
||||
var a := abc(w)
|
||||
var r := ""
|
||||
for c in w:
|
||||
r += String.chr(122 - (c.unicode_at(0) - 97))
|
||||
r += a[a.length() - 1 - a.find(c)]
|
||||
return r
|
||||
|
||||
static func encode(w: String, kind: int, k: int) -> String:
|
||||
@@ -83,19 +94,20 @@ static func start(g: Main) -> void:
|
||||
static func _begin(g: Main, lock: bool) -> void:
|
||||
var lvl: int = g.cur["lvl"]
|
||||
var kind := 0 if lvl <= 3 else (1 if lvl <= 6 else 2)
|
||||
var w: String = WORDS[g.bm_rng.randi() % WORDS.size()]
|
||||
var ws: Array = WORDS if L.current() == "en" else WORDS_UK
|
||||
var w: String = ws[g.bm_rng.randi() % ws.size()]
|
||||
var k: int = 1 + g.bm_rng.randi() % MAX_SHIFT
|
||||
g.mg = {"kind": "cipher", "word": w, "type": kind, "shift": k, "text": encode(w, kind, k), "tries": TRIES, "peeks": PEEKS, "lock": lock}
|
||||
var how: String = [L.t("шифр Цезаря: кожну літеру зсунуто вперед на 1–%d"), L.t("шифр Цезаря (зсув 1–%d), а слово записано задом наперед"),
|
||||
L.t("Атбаш (a↔z, b↔y, c↔x…), потім Цезар зі зсувом 1–%d")][kind] % MAX_SHIFT
|
||||
g.say((L.t("🔐 ШИФР-ЗАМОК. Ключ — англійське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.") if lock else L.t("🔐 КРИПТО-ГАМАНЕЦЬ. Ключ — англійське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.")) % [how, w[0], MAX_SHIFT], "info")
|
||||
L.t("Атбаш (а↔я, б↔ю, в↔ь…), потім Цезар зі зсувом 1–%d")][kind] % MAX_SHIFT
|
||||
g.say((L.t("🔐 ШИФР-ЗАМОК. Ключ — українське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.") if lock else L.t("🔐 КРИПТО-ГАМАНЕЦЬ. Ключ — українське слово, %s.\nЗ метаданих видно: перша літера ключа — \"%s\".\nВведи слово-ключ, або число 1–%d — пробний зсув назад. abort — здатися.")) % [how, w[0], MAX_SHIFT], "info")
|
||||
show(g)
|
||||
|
||||
static func show(g: Main) -> void:
|
||||
var m = g.mg
|
||||
g.say(L.t("🔐 %s спроб: %d, пробних зсувів: %d") % [m["text"].to_upper(), m["tries"], m["peeks"]], "warn")
|
||||
if m["type"] == 2:
|
||||
g.say(" abcdefghijklm\n zyxwvutsrqpon", "info")
|
||||
g.say(" abcdefghijklm\n zyxwvutsrqpon" if abc(m["text"]) == ABC_EN else " абвгґдеєжзиіїйкл м\n яюьщшчцхфутсрпон м", "info")
|
||||
|
||||
static func input(g: Main, line: String) -> void:
|
||||
var m = g.mg
|
||||
|
||||
@@ -6,6 +6,8 @@ const OLD_NAME := "Тінь Мережі"
|
||||
const MARKER := ".migrated"
|
||||
|
||||
func _init() -> void:
|
||||
if OS.has_feature("web"): # у браузері старої папки збережень нема (user:// там — IndexedDB)
|
||||
return
|
||||
var new_dir := OS.get_user_data_dir()
|
||||
var n := run(new_dir.get_base_dir().path_join(OLD_NAME), new_dir)
|
||||
if n > 0:
|
||||
|
||||
@@ -25,6 +25,10 @@ boot_splash/bg_color=Color(0.0118, 0.0314, 0.102, 1)
|
||||
boot_splash/show_image=true
|
||||
boot_splash/image="res://boot_splash.png"
|
||||
|
||||
[audio]
|
||||
|
||||
general/default_playback_type.web=0
|
||||
|
||||
[autoload]
|
||||
|
||||
Migrate="*res://migrate.gd"
|
||||
|
||||
@@ -55,12 +55,13 @@ static func apply_scale(g: Main, resize := false) -> void:
|
||||
if want != _want or resize:
|
||||
_want = want
|
||||
# у вікні (не розгорнутому) збільшуємо й саме вікно, не більше екрана
|
||||
if DisplayServer.get_name() != "headless" and w.mode == Window.MODE_WINDOWED:
|
||||
if DisplayServer.get_name() != "headless" and w.mode == Window.MODE_WINDOWED and not OS.has_feature("web"): # у браузері розмір задає сторінка
|
||||
var area := DisplayServer.screen_get_usable_rect(w.current_screen)
|
||||
w.size = Vector2i((Vector2(BASE) * want).min(Vector2(area.size) * 0.95))
|
||||
w.position = area.position + (area.size - w.size) / 2
|
||||
var fit := minf(float(w.size.x) / BASE.x, float(w.size.y) / BASE.y)
|
||||
var s := maxf(1.0, minf(want, floorf(fit * 100.0) / 100.0))
|
||||
# у браузері вікно буває менше за 1366x860 і більшим не стане: тоді зменшуємо (не дрібніше 60%)
|
||||
var s := maxf(0.6 if OS.has_feature("web") else 1.0, minf(want, floorf(fit * 100.0) / 100.0))
|
||||
if not is_equal_approx(w.content_scale_factor, s):
|
||||
w.content_scale_factor = s
|
||||
g.ui.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) # контейнер сам не стискається назад після більшого масштабу
|
||||
|
||||
@@ -287,14 +287,16 @@ func solve_cipher() -> void:
|
||||
var MK = g.Market
|
||||
var t: String = g.mg["text"]
|
||||
var first: String = g.mg["word"][0] # її гра показує гравцю
|
||||
var a: String = MK.abc(t)
|
||||
var d := func(x: String, y: String) -> int: return a.find(x) - a.find(y)
|
||||
var w := ""
|
||||
match int(g.mg["type"]):
|
||||
0:
|
||||
w = MK._caesar(t, -posmod(t.unicode_at(0) - first.unicode_at(0), 26))
|
||||
w = MK._caesar(t, -d.call(t[0], first))
|
||||
1:
|
||||
w = MK._caesar(t, -posmod(t.unicode_at(t.length() - 1) - first.unicode_at(0), 26)).reverse()
|
||||
w = MK._caesar(t, -d.call(t[t.length() - 1], first)).reverse()
|
||||
2:
|
||||
w = MK._atbash(MK._caesar(t, -posmod(t.unicode_at(0) - MK._atbash(first).unicode_at(0), 26)))
|
||||
w = MK._atbash(MK._caesar(t, -d.call(t[0], MK._atbash(first))))
|
||||
act(w)
|
||||
|
||||
func decrypt() -> void:
|
||||
|
||||
@@ -22,6 +22,7 @@ func _run() -> void:
|
||||
var en: Dictionary = load("res://lang_en.gd").EN
|
||||
var lit := RegEx.create_from_string('"((?:[^"\\\\\\n]|\\\\.)*)"')
|
||||
var cyr := RegEx.create_from_string(CYR)
|
||||
var uk_key := RegEx.create_from_string("^[а-яіїєґ \\n]+$") # market.gd: українські ключі шифру й абетка — дані, англійською не показуються
|
||||
var missing := []
|
||||
for f in DirAccess.get_files_at("res://"):
|
||||
if not f.ends_with(".gd") or f.begins_with("lang") or f == "whatsnew.gd": # whatsnew.gd тримає English поруч (перевіряє features.gd)
|
||||
@@ -33,7 +34,7 @@ func _run() -> void:
|
||||
code = line.substr(0, hash_at)
|
||||
for m in lit.search_all(code):
|
||||
var s: String = m.get_string(1).c_unescape()
|
||||
if cyr.search(s) and not en.has(s) and not s in ["01ТІНЬМЕРЕЖІ#$%&@アカサタナ", "Українська", "🌐 Мова / Language"]:
|
||||
if cyr.search(s) and not en.has(s) and not (f == "market.gd" and uk_key.search(s)) and not s in ["01ТІНЬМЕРЕЖІ#$%&@", "Українська", "🌐 Мова / Language"]:
|
||||
missing.append("%s: %s" % [f, s.left(60)])
|
||||
ok(missing.is_empty(), "усі українські рядки перекладено" + ("" if missing.is_empty() else ": %d без перекладу, напр. %s" % [missing.size(), missing.slice(0, 5)]))
|
||||
# 2. перекладені рядки мають ті самі %-місця
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
import os, struct, subprocess, sys, zlib
|
||||
|
||||
URL = "https://github.com/godotengine/godot/releases/download/4.7.2-stable/Godot_v4.7.2-stable_export_templates.tpz"
|
||||
WANT = ["templates/windows_release_x86_64.exe", "templates/version.txt"]
|
||||
# names inside templates/ from argv (e.g. web_nothreads_release.zip), the Windows exe by default
|
||||
WANT = ["templates/" + n for n in (sys.argv[1:] or ["windows_release_x86_64.exe"])] + ["templates/version.txt"]
|
||||
DEST = os.path.expanduser("~/.local/share/godot/export_templates/4.7.2.stable")
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ const REFLEX_ADD := 4 # Рефлекси: + дій до термі
|
||||
# ── рівні складності: 0 — Новачок, 1 — Звичайний, 2 — Параноя ──
|
||||
const DIFF_NAMES := ["Новачок", "Звичайний", "Параноя"]
|
||||
const DIFF_IDS := ["novice", "normal", "paranoid"]
|
||||
const DIFF_TRACE := [0.75, 1.04, 2.0] # множник усього трасування (v1.0.62: було 0.6/1.0; 1.08 на Звичайному — запізнення в главах 32–33; v1.0.81 Параноя 1.5 → 2.0, бо зовнішній шар тепер пам'ятається після відступу)
|
||||
const DIFF_TRACE := [0.7, 1.04, 2.0] # множник усього трасування (v1.0.89: Новачок 0.75 → 0.7; v1.0.62: було 0.6/1.0; 1.08 на Звичайному — запізнення в главах 32–33; v1.0.81 Параноя 1.5 → 2.0, бо зовнішній шар тепер пам'ятається після відступу)
|
||||
const DIFF_INVEST := [1.4, 1.0, 0.7] # множник часу до арешту за лишені логи
|
||||
const DIFF_BUSTS := [2, 0, -1] # + арештів до кінця гри
|
||||
const DIFF_LIMIT := [1.2, 1.0, 1.0] # множник дій у термінових главах (v1.0.80: Новачок запізнювався так само часто, як Звичайний)
|
||||
|
||||
@@ -7,14 +7,23 @@ const L = preload("res://lang.gd")
|
||||
static func build(g: Main) -> void:
|
||||
# кольорові емодзі вбудовані в гру (Noto Color Emoji, OFL) — однаково на будь-якій системі
|
||||
var emoji: Font = load("res://fonts/NotoColorEmoji.ttf")
|
||||
var sys := SystemFont.new()
|
||||
sys.font_names = PackedStringArray(["Consolas", "Cascadia Mono", "DejaVu Sans Mono", "Liberation Mono", "monospace"])
|
||||
sys.fallbacks = [emoji]
|
||||
var sys: Font
|
||||
var bold: Font
|
||||
if OS.has_feature("web"): # у браузері системних шрифтів нема: моноширинний вбудований (у exe не входить)
|
||||
var btc: Font = load("res://fonts/JetBrainsMonoNL-btc.ttf") # лише ₿, якого нема в DejaVu
|
||||
sys = load("res://fonts/DejaVuSansMono.ttf")
|
||||
bold = load("res://fonts/DejaVuSansMono-Bold.ttf")
|
||||
sys.fallbacks = [btc, emoji]
|
||||
bold.fallbacks = [btc, emoji]
|
||||
else:
|
||||
sys = SystemFont.new()
|
||||
sys.font_names = PackedStringArray(["Consolas", "Cascadia Mono", "DejaVu Sans Mono", "Liberation Mono", "monospace"])
|
||||
sys.fallbacks = [emoji]
|
||||
bold = SystemFont.new()
|
||||
bold.font_names = sys.font_names
|
||||
bold.font_weight = 700
|
||||
bold.fallbacks = [emoji]
|
||||
g.font = sys
|
||||
var bold := SystemFont.new()
|
||||
bold.font_names = sys.font_names
|
||||
bold.font_weight = 700
|
||||
bold.fallbacks = [emoji]
|
||||
var th := Theme.new()
|
||||
th.default_font = sys
|
||||
th.default_font_size = 16
|
||||
|
||||
@@ -8,7 +8,7 @@ const L = preload("res://lang.gd")
|
||||
const API := "https://serv.tail9357bc.ts.net/api/v1/repos/junior/TinMerezhi/releases/latest"
|
||||
const ASSET := "TinMerezhi.exe"
|
||||
# Дзеркало exe на дроплеті (CI кладе <тег>/TinMerezhi.exe): швидше за Funnel; якщо не вийшло — качаємо з Gitea.
|
||||
const MIRROR := "https://46-101-222-25.sslip.io/"
|
||||
const MIRROR := "https://tinmerezhi.duckdns.org/"
|
||||
|
||||
var g # main.gd
|
||||
var http := HTTPRequest.new()
|
||||
|
||||
@@ -8,6 +8,9 @@ const Updater = preload("res://updater.gd")
|
||||
const MAX_ITEMS := 8 # коротко: вікно має влазити й з великим шрифтом
|
||||
|
||||
const CHANGES := [
|
||||
["1.0.92", "Гру можна запустити просто в браузері на сторінці itch.io. Збереження там окремі від exe.", "The game can now be played right in the browser on the itch.io page. Saves there are separate from the exe."],
|
||||
["1.0.90", "Шифр-замок і крипто-гаманці українською: ключ — українське слово, шифр по українській абетці (33 літери).", "Cipher lock and crypto wallets in Ukrainian now use Ukrainian words; English stays as before."],
|
||||
["1.0.89", "Новачок трохи легший: трасування −30% замість −25%.", "Novice is a bit easier: trace −30% instead of −25%."],
|
||||
["1.0.84", "Команда update качає нові версії зі швидшого сервера, а якщо він недоступний — як раніше.", "The update command downloads new versions from a faster server, and falls back to the old one if it is unavailable."],
|
||||
["1.0.81", "Пароль зовнішнього шару більше не змінюється, коли відступаєш: усе, що ти про нього з'ясував, лишається до наступного візиту.", "The outer layer password no longer changes when you retreat: everything you learned about it stays until your next visit."],
|
||||
["1.0.81", "Параноя: трасування вище (+90% замість +50%), щоб вона лишилась такою ж важкою, але без безкінечних повторних зламів.", "Paranoid: higher trace (+90% instead of +50%) so it stays just as hard, without endless repeated cracks."],
|
||||
|
||||
Reference in New Issue
Block a user