Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64aa16fcbb | ||
|
|
176bd9259e | ||
|
|
962baf5513 | ||
|
|
5b473c9216 | ||
|
|
124a94d435 | ||
|
|
b28057676b | ||
|
|
c7d53fe1ac | ||
|
|
385f0f363b | ||
|
|
2e7740ca7e | ||
|
|
8078297fd4 | ||
|
|
c450b47442 | ||
|
|
017168cd5f | ||
|
|
2dd1a96c11 | ||
|
|
5a48f4f6c7 | ||
|
|
03d022f63c | ||
|
|
5d900483b6 | ||
|
|
26262762b5 | ||
|
|
2da6688bbb | ||
|
|
c7bc8166c0 | ||
|
|
da57f49fda | ||
|
|
2989f06596 | ||
|
|
3b7fbaf580 | ||
|
|
01a0e713b1 | ||
|
|
31f81c5bc8 | ||
|
|
83a4474f6e | ||
|
|
f427e4ebf8 | ||
|
|
cae2a76bf7 | ||
|
|
e1d21f73c6 | ||
|
|
39bd9244b4 | ||
|
|
5e609079d1 | ||
|
|
206d8fb44e | ||
|
|
adb06f3601 | ||
|
|
53da267e0b | ||
|
|
a2b000e86c | ||
|
|
4af9b5ff59 | ||
|
|
d2f6bd2000 | ||
|
|
a9e6431c8c | ||
|
|
7fc2015e1c | ||
|
|
6b252de400 | ||
|
|
4f819eb9a1 | ||
|
|
82c2b0ee6b | ||
|
|
d83816947e | ||
|
|
3af275d715 | ||
|
|
05945bc215 | ||
|
|
7b6721ad64 | ||
|
|
5d81d93b19 | ||
|
|
e195648b0e | ||
|
|
7c18096041 | ||
|
|
d5530c5c37 | ||
|
|
3f855f915a | ||
|
|
98f2f354d3 | ||
|
|
7555e7f5ab | ||
|
|
2fa52f64eb | ||
|
|
071259ed68 | ||
|
|
e7e4af32f1 | ||
|
|
58d313763d | ||
|
|
76f2d2f861 | ||
|
|
99d9ad7773 | ||
|
|
a74e871cf4 | ||
|
|
014734a3f6 | ||
|
|
873bdd899c | ||
|
|
9f560d053f | ||
|
|
c9140d218d | ||
|
|
e419214567 | ||
|
|
5d76586f88 | ||
|
|
d9a0c66ca2 | ||
|
|
c5d5d911ab | ||
|
|
2eff5ff010 | ||
|
|
262e49275f | ||
|
|
a0dd2a26cb | ||
|
|
f1f8862d21 | ||
|
|
da22f80ec3 | ||
|
|
28d2424b47 | ||
|
|
57128cc9db | ||
|
|
af296359a1 | ||
|
|
d3f0a52556 | ||
|
|
30b84c5144 | ||
|
|
06da4cd505 | ||
|
|
2ccacdea5b | ||
|
|
cd565b99e1 | ||
|
|
8c6e7af9fc | ||
|
|
cb36ad8b06 | ||
|
|
39f87865b1 |
No files matched your search
@@ -0,0 +1,75 @@
|
||||
name: CrazyGames
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: wurm-crazygames
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and test CrazyGames edition
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
ZIRAN_PAR_THREADS: '1'
|
||||
MAKEFLAGS: -j1
|
||||
OMP_NUM_THREADS: '1'
|
||||
YUE_DESKTOP_RECOVERY: '0'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: waozixyz/wurm
|
||||
steps:
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||
with:
|
||||
path: waozixyz/wurm
|
||||
persist-credentials: false
|
||||
- name: Set up locked Ziran and build tools
|
||||
uses: ziranlang/ziran/.github/actions/setup@979159a55bcf1f9edb9eb8f26ea10aca421412e2
|
||||
with:
|
||||
project: waozixyz/wurm
|
||||
path: ziranlang/ziran
|
||||
fetch: true
|
||||
packages: >-
|
||||
build-essential cmake pkg-config zlib1g-dev ffmpeg libssl-dev
|
||||
- uses: mymindstorm/setup-emsdk@v14
|
||||
with:
|
||||
version: '6.0.6'
|
||||
actions-cache-folder: emsdk-cache
|
||||
- name: Build CrazyGames package
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
CRAZYGAMES_LEADERBOARD_KEY: ${{ secrets.CRAZYGAMES_LEADERBOARD_KEY }}
|
||||
CRAZYGAMES_ADS_ENABLED: ${{ vars.CRAZYGAMES_ADS_ENABLED || 'false' }}
|
||||
run: |
|
||||
export EMCC="$(command -v emcc)"
|
||||
ziran run --target=c tools/build_web.zi -- crazygames
|
||||
- name: Test CrazyGames package
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: |
|
||||
CHROMIUM="$(command -v google-chrome || command -v chromium)" ziran run --target=c tests/run_local.zi -- crazygames
|
||||
- name: Upload tested web root
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wurm-crazygames
|
||||
path: waozixyz/wurm/build/crazygames/web/
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
- name: Upload failed browser fixture and exact web root
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wurm-crazygames-failure
|
||||
path: |
|
||||
waozixyz/wurm/build/web-test/failure.png
|
||||
waozixyz/wurm/build/web-test/fallback-*.png
|
||||
waozixyz/wurm/build/crazygames/web/
|
||||
if-no-files-found: warn
|
||||
retention-days: 7
|
||||
@@ -22,6 +22,8 @@ jobs:
|
||||
MAKEFLAGS: -j1
|
||||
OMP_NUM_THREADS: '1'
|
||||
YUE_DESKTOP_RECOVERY: '0'
|
||||
outputs:
|
||||
published: ${{ steps.publish.outputs.published }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: waozixyz/wurm
|
||||
@@ -33,11 +35,9 @@ jobs:
|
||||
- name: Read the release version
|
||||
id: version
|
||||
run: |
|
||||
python3 - <<'PY' >> "$GITHUB_OUTPUT"
|
||||
import json
|
||||
from pathlib import Path
|
||||
print('version=' + json.loads(Path('version.json').read_text())['version'])
|
||||
PY
|
||||
version=$(sed -n 's/^ *"version": "\([^"]*\)".*/\1/p' version.json)
|
||||
test -n "$version"
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
# The locked compiler comes prebuilt, the package checkouts cached, and
|
||||
# Ubuntu packages from the canonical archive.
|
||||
- name: Set up the locked Ziran, its packages and the build tools
|
||||
@@ -47,10 +47,7 @@ jobs:
|
||||
path: ziranlang/ziran
|
||||
fetch: true
|
||||
packages: >-
|
||||
build-essential cmake pkg-config python3-pil python3-numpy ffmpeg libssl-dev libsdl2-dev libcairo2-dev libfreetype-dev libfontconfig-dev libpango1.0-dev libgtk-3-dev libx11-dev libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl1-mesa-dev xvfb xauth xdotool imagemagick
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
build-essential cmake nasm meson ninja-build pkg-config zlib1g-dev ffmpeg libssl-dev libsdl2-dev libcairo2-dev libfreetype-dev libfontconfig-dev libpango1.0-dev libgtk-3-dev libx11-dev libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl1-mesa-dev libdrm-dev libgbm-dev libegl-dev libgles-dev xvfb xdotool python3-pil
|
||||
- uses: mymindstorm/setup-emsdk@v14
|
||||
with:
|
||||
version: '6.0.6'
|
||||
@@ -66,43 +63,73 @@ jobs:
|
||||
run: |
|
||||
sh update_version.sh
|
||||
git diff --exit-code -- version.json
|
||||
# Only the Google Play edition may name a Google library, in its build
|
||||
# files as in its APK.
|
||||
- name: Keep Google libraries out of the normal and F-Droid build files
|
||||
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
|
||||
with:
|
||||
source: waozixyz/wurm
|
||||
# Tests and tools are native Ziran programs; ziran run builds each once.
|
||||
- name: Run the game and asset tests
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tests/run_local.zi
|
||||
- name: Build the portable release for Arcade
|
||||
run: |
|
||||
python3 tests/android_release_test.py
|
||||
sh tests/run_local.sh
|
||||
python3 tests/portable_export_test.py
|
||||
python3 tools/build_portable.py
|
||||
- name: Exercise the app on its own private display
|
||||
run: python3 tests/private_ui_test.py
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tests/run_local.zi -- ui
|
||||
- name: Build and exercise the shared account interface
|
||||
run: |
|
||||
python3 tools/build_desktop.py
|
||||
python3 tests/account_ui_test.py
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tests/run_local.zi -- account-ui
|
||||
- name: Build and play the browser edition
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: |
|
||||
python3 tools/build_web.py
|
||||
CHROMIUM="$(command -v google-chrome || command -v chromium)" node tests/web_test.mjs
|
||||
export EMCC="$(command -v emcc)"
|
||||
ziran run --target=c tools/build_web.zi
|
||||
CHROMIUM="$(command -v google-chrome || command -v chromium)" ziran run --target=c tests/run_local.zi -- web
|
||||
- name: Package the verified browser edition
|
||||
env:
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import os, zipfile
|
||||
from pathlib import Path
|
||||
root = Path('build/web')
|
||||
output = Path('build/downloads')
|
||||
output.mkdir(parents=True, exist_ok=True)
|
||||
with zipfile.ZipFile(output / ('wurm-web-v' + os.environ['VERSION'] + '.zip'), 'w', zipfile.ZIP_DEFLATED) as archive:
|
||||
for path in sorted(root.rglob('*')):
|
||||
if path.is_file():
|
||||
archive.write(path, path.relative_to(root))
|
||||
PY
|
||||
mkdir -p build/downloads
|
||||
(cd build/web && zip -q -r -X "../downloads/wurm-web-v$VERSION.zip" .)
|
||||
- name: Build both ARM architectures in one production APK
|
||||
run: python3 tools/build_android.py --release --abi universal
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tools/build_android.zi -- --release --abi universal
|
||||
- name: Build the separate Google Play APK
|
||||
run: python3 tools/build_android.py --release --abi universal --edition gplay
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tools/build_android.zi -- --release --abi universal --edition gplay
|
||||
# The normal APK is also the F-Droid download; the Google Play APK must
|
||||
# still show Play Billing, or the check proves nothing.
|
||||
- name: Keep Google libraries out of the normal and F-Droid APK
|
||||
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
|
||||
with:
|
||||
packages: waozixyz/wurm/build/android/Apfelwurm-universal-release-unsigned.apk
|
||||
source: ''
|
||||
- name: Find Play Billing in the Google Play APK
|
||||
uses: kryonlabs/kryon/.github/actions/google-free@7217475dfa7f462939e47e3f0bc918aef248b179
|
||||
with:
|
||||
packages: waozixyz/wurm/build/android/Apfelwurm-universal-gplay-release-unsigned.apk
|
||||
source: ''
|
||||
expect-google: 'true'
|
||||
- name: Verify the reminder receiver in both release APKs
|
||||
run: >-
|
||||
python3 tests/android_notification_packaging_test.py
|
||||
--apk build/android/Apfelwurm-universal-release-unsigned.apk
|
||||
--apk build/android/Apfelwurm-universal-gplay-release-unsigned.apk
|
||||
- name: Sign and verify the Google-free downloads and Google Play APK
|
||||
env:
|
||||
KEYSTORE: ${{ secrets.WURM_ANDROID_KEYSTORE }}
|
||||
PASSWORD: ${{ secrets.WURM_ANDROID_KEYSTORE_PASSWORD }}
|
||||
LDLIBS: -lz
|
||||
run: |
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
@@ -110,9 +137,9 @@ jobs:
|
||||
trap 'rm -f "$RUNNER_TEMP/wurm-release.p12" "$RUNNER_TEMP/wurm-password"' EXIT
|
||||
printf '%s' "$KEYSTORE" | base64 -d > "$RUNNER_TEMP/wurm-release.p12"
|
||||
printf '%s\n' "$PASSWORD" > "$RUNNER_TEMP/wurm-password"
|
||||
python3 tools/android_release.py sign build/android/Apfelwurm-universal-release-unsigned.apk \
|
||||
ziran run --target=c tools/android_release.zi -- sign build/android/Apfelwurm-universal-release-unsigned.apk \
|
||||
--keystore "$RUNNER_TEMP/wurm-release.p12" --password-file "$RUNNER_TEMP/wurm-password"
|
||||
python3 tools/android_release.py sign build/android/Apfelwurm-universal-gplay-release-unsigned.apk --edition gplay \
|
||||
ziran run --target=c tools/android_release.zi -- sign build/android/Apfelwurm-universal-gplay-release-unsigned.apk --edition gplay \
|
||||
--keystore "$RUNNER_TEMP/wurm-release.p12" --password-file "$RUNNER_TEMP/wurm-password"
|
||||
# Publish from this verified workspace: GitHub Actions artifact storage
|
||||
# is account-wide and must not block the owner's release downloads.
|
||||
@@ -124,16 +151,17 @@ jobs:
|
||||
test -f "build/downloads/wurm-$VERSION-fdroid.apk"
|
||||
test -f "build/downloads/wurm-v$VERSION-gplay.apk"
|
||||
test -f "build/downloads/wurm-web-v$VERSION.zip"
|
||||
test -s "build/downloads/wurm-portable-v$VERSION.tar.gz"
|
||||
cmp "build/downloads/wurm-v$VERSION.apk" "build/downloads/wurm-$VERSION-fdroid.apk"
|
||||
python3 - <<'PY' > build/release-notes.md
|
||||
import os, re
|
||||
from pathlib import Path
|
||||
text = Path('CHANGELOG.md').read_text()
|
||||
section = re.search(r'^## \[' + re.escape(os.environ['VERSION']) + r'\] - .*?\n(.*?)(?=^## |\Z)', text, re.M | re.S)
|
||||
assert section
|
||||
print(section[1].strip())
|
||||
PY
|
||||
# This version's section of CHANGELOG.md, without surrounding blank lines.
|
||||
awk -v heading="## [$VERSION] - " '
|
||||
index($0, heading) == 1 { found = 1; next }
|
||||
found && /^## / { exit }
|
||||
found { if (length($0)) { printf "%s", pending; pending = ""; print } else if (started) pending = pending "\n"; if (length($0)) started = 1 }
|
||||
' CHANGELOG.md > build/release-notes.md
|
||||
test -s build/release-notes.md
|
||||
- name: Publish this version only after its downloads are ready
|
||||
id: publish
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
@@ -149,8 +177,9 @@ jobs:
|
||||
if [ "$state" = missing ]; then
|
||||
gh release create "$tag" --draft --target "$GITHUB_SHA" --title "Apfelwurm $VERSION" --notes-file build/release-notes.md
|
||||
fi
|
||||
gh release upload "$tag" "build/downloads/wurm-v$VERSION.apk" "build/downloads/wurm-$VERSION-fdroid.apk" "build/downloads/wurm-v$VERSION-gplay.apk" "build/downloads/wurm-web-v$VERSION.zip" --clobber
|
||||
gh release upload "$tag" "build/downloads/wurm-v$VERSION.apk" "build/downloads/wurm-$VERSION-fdroid.apk" "build/downloads/wurm-v$VERSION-gplay.apk" "build/downloads/wurm-web-v$VERSION.zip" "build/downloads/wurm-portable-v$VERSION.tar.gz" --clobber
|
||||
gh release edit "$tag" --draft=false --latest
|
||||
echo "published=true" >> "$GITHUB_OUTPUT"
|
||||
- name: Install itch.io Butler
|
||||
run: |
|
||||
curl --fail --show-error --location --retry 3 \
|
||||
@@ -185,3 +214,11 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
gh workflow run game-updates.yml -R waozixyz/arcade --ref master
|
||||
|
||||
google-play:
|
||||
needs: build
|
||||
if: ${{ always() && needs.build.outputs.published == 'true' }}
|
||||
uses: ./.github/workflows/play-bundle.yml
|
||||
with:
|
||||
revision: ${{ github.sha }}
|
||||
secrets: inherit
|
||||
@@ -1,15 +1,20 @@
|
||||
name: Google Play bundle
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
revision:
|
||||
required: true
|
||||
type: string
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
revision:
|
||||
description: Full published Wurm release commit (defaults to this run)
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: wurm-play-bundle
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
bundle:
|
||||
name: Signed Google Play App Bundle
|
||||
@@ -20,21 +25,38 @@ jobs:
|
||||
MAKEFLAGS: -j1
|
||||
OMP_NUM_THREADS: '1'
|
||||
YUE_DESKTOP_RECOVERY: '0'
|
||||
concurrency:
|
||||
group: wurm-google-play
|
||||
cancel-in-progress: false
|
||||
outputs:
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
version_code: ${{ steps.version.outputs.version_code }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: waozixyz/wurm
|
||||
steps:
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||
with:
|
||||
ref: ${{ inputs.revision || github.sha }}
|
||||
path: waozixyz/wurm
|
||||
persist-credentials: false
|
||||
- name: Read the release version
|
||||
id: version
|
||||
run: |
|
||||
python3 - <<'PY' >> "$GITHUB_OUTPUT"
|
||||
import json
|
||||
from pathlib import Path
|
||||
print('version=' + json.loads(Path('version.json').read_text())['version'])
|
||||
version=$(sed -n 's/^ *"version": "\([^"]*\)".*/\1/p' version.json)
|
||||
test -n "$version"
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
echo "version_code=$(python3 -c 'import json; print(json.load(open("version.json"))["version_code"])')" >> "$GITHUB_OUTPUT"
|
||||
- name: Require an already published GitHub release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import json, os, subprocess
|
||||
release = json.loads(subprocess.check_output(
|
||||
['gh', 'release', 'view', 'v' + os.environ['VERSION'], '--json', 'isDraft,publishedAt'], text=True))
|
||||
assert not release['isDraft'] and release['publishedAt'], 'Publish the GitHub release first'
|
||||
PY
|
||||
# The locked compiler comes prebuilt, the package checkouts cached, and
|
||||
# Ubuntu packages from the canonical archive.
|
||||
@@ -45,7 +67,7 @@ jobs:
|
||||
path: ziranlang/ziran
|
||||
fetch: true
|
||||
packages: >-
|
||||
build-essential cmake pkg-config python3-pil python3-numpy libssl-dev
|
||||
build-essential cmake nasm meson ninja-build pkg-config zlib1g-dev libssl-dev
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
@@ -58,11 +80,14 @@ jobs:
|
||||
sh update_version.sh
|
||||
git diff --exit-code -- version.json
|
||||
- name: Build both ARM architectures in one Google Play edition bundle
|
||||
run: python3 tools/build_android.py --bundle --abi universal
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tools/build_android.zi -- --bundle --abi universal
|
||||
- name: Sign with the Apfelwurm upload key and verify
|
||||
env:
|
||||
KEYSTORE: ${{ secrets.WURM_ANDROID_KEYSTORE }}
|
||||
PASSWORD: ${{ secrets.WURM_ANDROID_KEYSTORE_PASSWORD }}
|
||||
LDLIBS: -lz
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -n "$KEYSTORE" && test -n "$PASSWORD"
|
||||
@@ -73,7 +98,7 @@ jobs:
|
||||
trap 'rm -f "$RUNNER_TEMP/wurm-release.p12" "$RUNNER_TEMP/wurm-password"' EXIT
|
||||
printf '%s' "$KEYSTORE" | base64 -d > "$RUNNER_TEMP/wurm-release.p12"
|
||||
printf '%s\n' "$PASSWORD" > "$RUNNER_TEMP/wurm-password"
|
||||
python3 tools/android_release.py sign build/android/Apfelwurm-release-unsigned.aab \
|
||||
ziran run --target=c tools/android_release.zi -- sign build/android/Apfelwurm-release-unsigned.aab \
|
||||
--keystore "$RUNNER_TEMP/wurm-release.p12" --password-file "$RUNNER_TEMP/wurm-password" \
|
||||
--bundletool "$RUNNER_TEMP/bundletool.jar"
|
||||
cat backup/android-release/play-verification.json
|
||||
@@ -83,3 +108,20 @@ jobs:
|
||||
path: waozixyz/wurm/build/downloads/wurm-v${{ steps.version.outputs.version }}-gplay.aab
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
- name: Upload only the Google Play edition to internal testing
|
||||
uses: r0adkll/upload-google-play@e738b9dd8f2476ea806d921b64aacd24f34515a5 # v1.1.5
|
||||
with:
|
||||
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||
packageName: xyz.waozi.wurm
|
||||
releaseFiles: waozixyz/wurm/build/downloads/wurm-v${{ steps.version.outputs.version }}-gplay.aab
|
||||
releaseName: ${{ steps.version.outputs.version }}
|
||||
track: internal
|
||||
status: completed
|
||||
|
||||
closed-testing:
|
||||
needs: bundle
|
||||
uses: ./.github/workflows/play-promote.yml
|
||||
with:
|
||||
version: ${{ needs.bundle.outputs.version }}
|
||||
version_code: ${{ needs.bundle.outputs.version_code }}
|
||||
secrets: inherit
|
||||
@@ -0,0 +1,180 @@
|
||||
name: Google Play closed testing
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
required: true
|
||||
type: string
|
||||
version_code:
|
||||
required: true
|
||||
type: string
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: Exact published version completed on internal testing
|
||||
type: string
|
||||
version_code:
|
||||
description: Exact internal version code
|
||||
type: string
|
||||
inspect_only:
|
||||
description: Read all Play tracks and tester configuration without publishing
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: wurm-google-play
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
promote:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||
- name: Validate the published release
|
||||
if: ${{ !inputs.inspect_only }}
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
VERSION: ${{ inputs.version }}
|
||||
VERSION_CODE: ${{ inputs.version_code }}
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import json, os, re, subprocess
|
||||
version = os.environ['VERSION']
|
||||
assert re.fullmatch(r'\d+\.\d+\.\d+', version), 'Use a numeric release version'
|
||||
assert re.fullmatch(r'[1-9][0-9]*', os.environ['VERSION_CODE']), 'Use a positive version code'
|
||||
release = json.loads(subprocess.check_output(
|
||||
['gh', 'release', 'view', 'v' + version, '--json', 'isDraft,publishedAt'], text=True))
|
||||
assert not release['isDraft'] and release['publishedAt'], 'The version must already be published on GitHub'
|
||||
PY
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
||||
with:
|
||||
repository: waozixyz/entity
|
||||
ref: 2062597cecba5ce1bf54a20e6d5a2bdda148a06b
|
||||
path: play-entity
|
||||
persist-credentials: false
|
||||
- name: Test promotion boundaries
|
||||
run: python3 tests/play_promotion_test.py
|
||||
- name: Read tracks and complete closed testing
|
||||
env:
|
||||
GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||
PLAY_PACKAGE: xyz.waozi.wurm
|
||||
VERSION: ${{ inputs.version }}
|
||||
VERSION_CODE: ${{ inputs.version_code }}
|
||||
INSPECT_ONLY: ${{ inputs.inspect_only }}
|
||||
CLOSED_TRACK: ${{ vars.GOOGLE_PLAY_CLOSED_TRACK || 'alpha' }}
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import copy
|
||||
import importlib.util
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import tempfile
|
||||
|
||||
CLOSED_TRACK = os.environ.get('CLOSED_TRACK', 'alpha')
|
||||
|
||||
|
||||
def closed_release(tracks, version, code, target=CLOSED_TRACK):
|
||||
# This allowlist is deliberately independent of workflow inputs.
|
||||
if target != CLOSED_TRACK or target in ('production', 'internal', 'beta'):
|
||||
raise ValueError('Only the configured closed testing track may be promoted')
|
||||
if not re.fullmatch(r'\d+\.\d+\.\d+', version):
|
||||
raise ValueError('Use a numeric release version')
|
||||
if not re.fullmatch(r'[1-9][0-9]*', code):
|
||||
raise ValueError('Use a positive version code')
|
||||
internal = next((t for t in tracks if t['track'] == 'internal'), {})
|
||||
source = [r for r in internal.get('releases', [])
|
||||
if r.get('name') == version and r.get('versionCodes') == [code]
|
||||
and r.get('status') == 'completed']
|
||||
if len(source) != 1:
|
||||
raise ValueError('The exact version must be completed on internal testing')
|
||||
closed = next((t for t in tracks if t['track'] == target), None)
|
||||
if closed is None:
|
||||
raise ValueError('Configured closed testing track is absent; inspect Play Console')
|
||||
existing = closed.get('releases', [])
|
||||
if (len(existing) == 1 and existing[0].get('name') == version
|
||||
and existing[0].get('versionCodes') == [code]
|
||||
and existing[0].get('status') == 'completed'
|
||||
and 'userFraction' not in existing[0]):
|
||||
return None
|
||||
if any(int(c) > int(code) for r in existing for c in r.get('versionCodes', [])):
|
||||
raise ValueError('Refusing to replace a newer closed testing release')
|
||||
release = copy.deepcopy(source[0])
|
||||
release['status'] = 'completed'
|
||||
release.pop('userFraction', None)
|
||||
return {'track': target, 'releases': [release]}
|
||||
|
||||
|
||||
def call(play, method, path, body=None):
|
||||
status, answer = play.call(method, path, body)
|
||||
if status != 200:
|
||||
raise RuntimeError(f'Play {method} {path}: HTTP {status}: {answer}')
|
||||
return answer
|
||||
|
||||
|
||||
def state(play, edit, label):
|
||||
tracks = call(play, 'GET', f'/edits/{edit}/tracks').get('tracks', [])
|
||||
testers = {}
|
||||
for track in tracks:
|
||||
name = track['track']
|
||||
if name != 'production':
|
||||
status, answer = play.call('GET', f'/edits/{edit}/testers/{name}')
|
||||
# Report the API response shape/count without publishing group addresses.
|
||||
testers[name] = {'http_status': status,
|
||||
'api_fields': sorted(answer) if isinstance(answer, dict) else [],
|
||||
'googleGroups_count': len(answer.get('googleGroups', [])) if isinstance(answer, dict) else 0}
|
||||
if status != 200:
|
||||
testers[name]['error'] = answer
|
||||
print(json.dumps({'phase': label, 'package': play.package,
|
||||
'tracks': tracks, 'testers': testers}, sort_keys=True))
|
||||
return tracks
|
||||
|
||||
|
||||
def promote(play, version, code, inspect_only=False):
|
||||
edit = call(play, 'POST', '/edits', {})['id']
|
||||
committed = False
|
||||
try:
|
||||
tracks = state(play, edit, 'before')
|
||||
if inspect_only:
|
||||
return
|
||||
update = closed_release(tracks, version, code)
|
||||
if update is not None:
|
||||
# Never construct a URL from a dispatch input or an API track name.
|
||||
call(play, 'PUT', f'/edits/{edit}/tracks/{CLOSED_TRACK}', update)
|
||||
call(play, 'POST', f'/edits/{edit}:validate', {})
|
||||
call(play, 'POST', f'/edits/{edit}:commit', {})
|
||||
committed = True
|
||||
finally:
|
||||
if not committed:
|
||||
play.call('DELETE', f'/edits/{edit}')
|
||||
verification = call(play, 'POST', '/edits', {})['id']
|
||||
try:
|
||||
tracks = state(play, verification, 'after')
|
||||
if closed_release(tracks, version, code) is not None:
|
||||
raise RuntimeError('Fresh API read did not confirm completed closed testing')
|
||||
finally:
|
||||
play.call('DELETE', f'/edits/{verification}')
|
||||
|
||||
|
||||
def main():
|
||||
spec = importlib.util.spec_from_file_location(
|
||||
'play_dew', Path('play-entity/tools/play_dew_products.py'))
|
||||
provider = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(provider)
|
||||
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', dir='.') as key:
|
||||
key.write(os.environ['GOOGLE_PLAY_SERVICE_ACCOUNT_JSON'])
|
||||
key.flush()
|
||||
promote(provider.Play(key.name, os.environ['PLAY_PACKAGE']),
|
||||
os.environ.get('VERSION', ''), os.environ.get('VERSION_CODE', ''),
|
||||
os.environ.get('INSPECT_ONLY') == 'true')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
PY
|
||||
@@ -1,5 +1,124 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Use the Apps frame type so Apfelwurm and its editor open in Arcade inside Breeze.
|
||||
|
||||
- Use Mesh naming and its canonical local referral fixture for browser tests.
|
||||
|
||||
- Use Ziran’s standard audio mixer and SDL, Android and WebAudio sinks, preserving music transitions and volume while testing playback, pause, seek and loop behavior. Take desktop codecs from Kryon’s desktop artifact.
|
||||
|
||||
- Give every opening key and switch lesson a visible interior gate that protects a useful garden area, with its control in a reachable court instead of locking only the exit.
|
||||
- Show the shader-lit terrain from a board's very first frame: the old tile textures no longer flash before it. The editor, its brushes and local multiplayer use the same terrain, Arcade lays the same painted materials as tiles, and the old tile art is gone.
|
||||
|
||||
## [0.2.34] - 2026-11-16
|
||||
|
||||
- Replace campaign levels 1–50 with authored gardens that teach route planning, growth, portals, keys, switches and readable patrols in a paced progression.
|
||||
- Give each of the first 50 normal campaign levels a non-move-count spatial challenge—ordered fruit, landmarks, clean runs, portals, keys or switches—with account-specific completion stars and migration of earlier puzzle clears.
|
||||
- Refresh the journey presentation with illustrated landscape cards, crafted board frames, richer terrain/material variants, clearer walls and objectives, restored classic worm proportions, and stronger basic-skin colors.
|
||||
- Prevent buffered turns at the next level’s entrance from causing an immediate death.
|
||||
- Paint every board with real shader-lit terrain: each landscape's painted grass, leaves, pines, rock and water are lit by two Kryon material shaders with rounded raised hedges and stones, soft shadows and contact shading, sun flecks under the trees, deep water with a foam line and wet shore, and drifting glints. The desktop runs the shaders on the GPU when one is available; other editions run the same shaders a few milliseconds per frame, Arcade keeps the classic tiles, and level previews use the new terrain. Tile sizes, collision and the worm are unchanged.
|
||||
|
||||
## [0.2.33] - 2026-11-07
|
||||
|
||||
- Runs in the latest Inner Breeze and Arcade.
|
||||
|
||||
## [0.2.32] - 2026-11-03
|
||||
|
||||
- Include Apfelwurm and its editor in Arcade's automatic game updates.
|
||||
|
||||
## [0.2.31] - 2026-11-03
|
||||
|
||||
- Ctrl+A selects the entire backup password even when the keys are released quickly.
|
||||
|
||||
## [0.2.30] - 2026-11-03
|
||||
|
||||
- New backup passwords need at least 8 characters, a number and a lowercase letter; uppercase letters are optional.
|
||||
- The backup page uses shorter, practical instructions.
|
||||
- Daily rewards show the gifts without a separate streak caption.
|
||||
- Refresh the shared Profile and password editing.
|
||||
|
||||
- Keep browser play compatible with the shared console controller and game controls.
|
||||
|
||||
- Open Wurm at its normal title in Arcade, with the level editor inside the game and a compatible link to retained editor addon drafts.
|
||||
|
||||
- Keep the account key out of Android system backups, which have no passphrase.
|
||||
- On Android, Continue as can use the account from another signed-in Waozi app, once you approve it there.
|
||||
- Profile signs in with your backup file and its password, and saves backups named after your username or public ID.
|
||||
|
||||
- Keyboard turns share one frame snapshot across all four local players; swipes use shared relative steering without adding turns from held input.
|
||||
|
||||
- Collection sharing discards cancelled requests and old account replies before adding or updating your levels.
|
||||
|
||||
- Collection names and community searches keep text selection and Unicode edits consistent.
|
||||
|
||||
- CrazyGames has a native Skins, Stages and Coins shop with personalized platform prices, verified purchases, restore, and safe earned-coin spending.
|
||||
|
||||
- Shop has a Stages tab offering Mountains for 20 Dew from the start, with confirmed purchases shown as owned.
|
||||
- The title has one main button: Play, then Continue at the furthest level reached.
|
||||
- Stages shows the five landscapes as painted cards with your finished levels; each opens its levels.
|
||||
- Settings on computers offer the same swipe and direction pad choices as phones; the keys still always steer.
|
||||
- The worm moves only slightly faster in each later landscape instead of much faster after the Meadow.
|
||||
- The jittery squirrels are gone; Leafwood keeps its regular creatures.
|
||||
- Meadow level 19 has wide garden paths instead of narrow corridors, tiny pockets and dead ends.
|
||||
- All thirteen skins have connected, shaded bodies, tapered tails and clearer heads that stay upright when turning left.
|
||||
- Daily rewards show the seven-day streak with claimed gifts marked.
|
||||
- Daily rewards and Dew days only advance on consecutive days. Missing a day restarts the plan at day 1; earned coins and skins stay.
|
||||
|
||||
- The separate CrazyGames edition swipes between Play/Continue and the editor, starts with one Play click, saves private editor levels and campaign progress through your portal profile, and restores paid Mountains ownership through CrazyGames inventory.
|
||||
- It supports CrazyGames leaderboards and optional platform-approved video ads between levels, while respecting platform language and sound settings.
|
||||
- Continue as no longer crashes the other app when it was closed.
|
||||
|
||||
## [0.2.29] - 2026-11-02
|
||||
|
||||
- Android can remind you at 19:00 local about your reward chest on days you have not opened Apfelwurm. Opening the game silences that day's reminder.
|
||||
|
||||
## [0.2.28] - 2026-10-30
|
||||
|
||||
- The editor title painting includes the Apfelwurm Editor logo in portrait and landscape.
|
||||
|
||||
## [0.2.27] - 2026-10-29
|
||||
|
||||
- Earn coins for every level you clear and spend them on new skins.
|
||||
- Claim a daily reward from the chest on the title: 30 days of coins, two new skins and rare Dew on days 10 and 25.
|
||||
- The title has painted Shop, Profile, Leaderboard and Settings icons, with your coins and Dew beside the Shop.
|
||||
- The Shop has Skins, Coins and Dew tabs: buy coin packs with Dew and top up Dew without leaving it.
|
||||
- Browse thirteen skins with slimmer bodies, closer segments, clean edges and matching leaderboard pictures.
|
||||
- Open the level editor directly from the title. Settings previews both touch control styles, or shows the steering keys on a computer.
|
||||
- The level editor has its own title screen. Start a **New level** in any landscape you have reached, or copy one **From a level**.
|
||||
- Keep your levels in **My levels**, in collections you can name and reorder. They stay private to you.
|
||||
- Share a collection with your friends or everyone, and find other players' collections in **Community**. Added collections become your own private copies.
|
||||
- Campaign levels you changed before still play as you made them; **Campaign changes** lists them so you can reset each one.
|
||||
- Open the editor as its own **Apfelwurm Editor** app in Arcade.
|
||||
- Play local desktop rounds with two to four players, separate bottom entrances and four keyboard control sets.
|
||||
- Name each local player and pick their skin; start local rounds from Settings. Each open entrance has rock posts beside it.
|
||||
- Play every level in the same layout in portrait and landscape, shaped after the portrait, with roomier portrait boards.
|
||||
- Your own portrait level now also shapes its landscape until you save a landscape of your own.
|
||||
- On a computer, play starts without asking how to steer, also inside Breeze and Arcade, and the keyboard steers without an on-screen pad.
|
||||
- Level 19 is roomier: every side passage is wide enough to turn and come back out.
|
||||
|
||||
## [0.2.26] - 2026-10-29
|
||||
|
||||
- The new skins have calmer, plainer bodies.
|
||||
|
||||
## [0.2.25] - 2026-10-29
|
||||
|
||||
- Mint, Berry, Rose, Night owl, Golden apple and Explorer have new hand-painted looks; skins you own stay yours.
|
||||
- Runs in the newest Inner Breeze.
|
||||
|
||||
## [0.2.24] - 2026-10-29
|
||||
|
||||
- Keep the entrance area free of enemies: none start there or wander in, so nothing vanishes when you lose a life.
|
||||
- Restart Profile and Leaderboard by themselves if they stop, or say why instead of showing an empty page.
|
||||
|
||||
## [0.2.23] - 2026-10-29
|
||||
|
||||
- Move a little faster throughout the campaign, with a consistent pace across Meadow.
|
||||
|
||||
## [0.2.22] - 2026-10-28
|
||||
|
||||
- Keep the leaderboard visible when you or a friend uses a special Wurm skin.
|
||||
|
||||
## [0.2.21] - 2026-10-28
|
||||
|
||||
- Keep Leaderboard rows visible when an account finishes changing while the board is open.
|
||||
|
||||
@@ -27,19 +27,28 @@ F-Droid editions use Monero for Dew top-ups.
|
||||
|
||||
## Five landscapes. Forty levels each.
|
||||
|
||||
- **Meadow:** learn at a gentle pace on spacious orchard paths. The first 20 levels have no moving enemies; matching portal rings introduce a simple shortcut from level 10.
|
||||
- **Meadow:** learn on fifty newly authored orchard and woodland puzzles. Open paths teach movement and growth before portals, keys, patrols and switches begin to combine.
|
||||
- **Leafwood:** weave through leafy rooms, mossy courtyards and branching trails.
|
||||
- **Pinewood:** follow fir-lined passages and watch the patrols around the next corner.
|
||||
- **Lake:** cross the shores, channels and islands without running out of room.
|
||||
- **Mountains:** wind through rock corridors, terraces and the final ascent.
|
||||
|
||||
Layouts take inspiration from the recovered original game's rooms, spirals
|
||||
and crossings. Wandering fire, bouncing patrols and chasing enemies make the
|
||||
journey more demanding as you climb.
|
||||
The first 50 levels are individual authored compositions rather than shuffled
|
||||
wall variants. They move through open orchards, dividers, courtyards, loops,
|
||||
linked rooms and long-body routes in a teach–confirm–combine rhythm. Portals,
|
||||
keys, switches and readable patrols arrive in their own spacious lessons before
|
||||
appearing together. Every board has a verified route in landscape and portrait.
|
||||
Levels 51–200 keep their established layouts, while personal editor layouts
|
||||
continue to take priority over every published default.
|
||||
|
||||
Meadow's landscape boards follow the portrait gardens' hedges and clear routes.
|
||||
Portal lessons appear on levels 10, 12, 16, 23, 31 and 38, with open exits and no
|
||||
moving enemies. Personal editor layouts keep priority over the new defaults.
|
||||
Each landscape carries its own illustrated journey cards and palette, and
|
||||
its boards are painted by real terrain shaders: meadow grass, woodland
|
||||
litter, pine crowns, lakeshore sand, rock and water are lit with rounded,
|
||||
raised hedges and stones that cast soft shadows, sun flecks under the
|
||||
trees, deep water with a foam line and wet shore, and glints drifting on
|
||||
the water. Routes stay readable and tile size, collision and solutions are
|
||||
unchanged. The worm retains its classic proportions and skin silhouettes;
|
||||
the basic color skins use clearer, richer companion colors.
|
||||
|
||||
Press **Play** and you are straight in the game. The levels follow one after
|
||||
another through all five landscapes. After each goal, preview the next board
|
||||
@@ -48,35 +57,71 @@ while you look around. You start
|
||||
with three lives and earn more as your score grows. Score and lives carry
|
||||
between levels throughout your run. **Continue** starts the furthest level
|
||||
reached in your journey with three lives and a fresh score, even after a game
|
||||
over or closing the game. **Play from start** begins a new run at level 1
|
||||
without erasing your progress.
|
||||
over or closing the game.
|
||||
|
||||
**Choose level** lets you browse all five landscapes, see a large board preview for unlocked levels and a lock for later levels.
|
||||
**Stages** shows the five landscapes as painted cards with how many of their
|
||||
levels you have finished; stages not reached yet stay locked. Open a stage to
|
||||
see a large board preview for each unlocked level and a lock for later levels.
|
||||
Complete a level to unlock the next one.
|
||||
After a game over, **Try again** starts the furthest unlocked level with
|
||||
three lives and a fresh score.
|
||||
|
||||
## Challenges in the journey
|
||||
|
||||
Every one of the first 50 normal levels has an optional spatial challenge.
|
||||
Some ask you to collect the authored fruit route in order, reach a marked
|
||||
garden stone or finish without colliding. The portal, key and switch lessons
|
||||
ask you to use that interaction while completing the level. These are normal
|
||||
real-time stages—not a separate mode, and never a move-count puzzle.
|
||||
|
||||
The ready card and live board show the current goal. Completing it earns a
|
||||
star on that level card, saved separately for each account. Missing a challenge
|
||||
does not block the next level: finish the garden normally and return later for
|
||||
its star.
|
||||
|
||||
## Play your way
|
||||
|
||||
Choose **swipe steering** or a **direction pad** on first play. With swipe
|
||||
steering, move your finger in the direction you want to turn and keep it on
|
||||
the screen for the next corner. Change your choice from Pause at any time.
|
||||
On a phone or tablet, choose **swipe steering** or a **direction pad** on first
|
||||
play. With swipe steering, move your finger in the direction you want to turn
|
||||
and keep it on the screen for the next corner. Change your choice from Pause at
|
||||
any time.
|
||||
|
||||
On a keyboard, use the arrow keys or WASD. Space or Escape pauses; M mutes.
|
||||
On a computer, steer with the arrow keys or WASD; Settings shows those keys.
|
||||
Space or Escape pauses; M mutes.
|
||||
Collect every apple, then leave through the opening at the top of the board.
|
||||
|
||||
Desktop **Local multiplayer**, in Settings, puts two to four players on one
|
||||
keyboard; give each player a name and a skin you own. Everyone
|
||||
enters through a separate bottom lane. Collect the shared apples, grow, and stay
|
||||
clear of every worm: the last one alive wins. Player 1 uses the arrows, Player 2
|
||||
WASD, Player 3 IJKL, and Player 4 the numeric keypad's 8/4/5/6. Space or Escape
|
||||
pauses the round. Local rounds keep their own scores.
|
||||
|
||||
Portrait and landscape use their own board layouts. Your unfinished run stays
|
||||
on this device. Android and the browser can play offline after their assets
|
||||
are loaded. Signing in syncs earned completion marks and preferences.
|
||||
|
||||
## Make a path of your own
|
||||
|
||||
Open the level editor with **E** from the title. Browse all 200 boards,
|
||||
paint terrain and enemies, adjust the apple goal, then playtest from the entrance.
|
||||
Open **Level editor** from the title, or press **E**. Start a **New level**
|
||||
on an empty board in any landscape you have reached, or copy a level you have
|
||||
reached with **From a level**. Paint terrain and enemies, adjust the apple
|
||||
goal, then playtest from the entrance. In Arcade, the editor is also its own
|
||||
**Apfelwurm Editor** app.
|
||||
|
||||
**Landscape** and **Portrait** are independent editor modes. Start a missing
|
||||
portrait layout from a best guess, refine it, and save without changing the
|
||||
other version. Playtest always uses the selected layout.
|
||||
Your levels live in **My levels**, in collections you can name, reorder and
|
||||
delete. They are private: only you see them, and they follow your account.
|
||||
**Share** a collection with your friends or everyone, or make it private
|
||||
again; Shovey uses the same sharing. **Community** shows collections other
|
||||
players shared, newest first or by player name. **Add to My levels** keeps
|
||||
a private copy you can rename, play and change.
|
||||
Campaign levels you changed in older versions still play as you made them;
|
||||
**Campaign changes** lists them so you can reset each one.
|
||||
|
||||
**Landscape** and **Portrait** are independent editor modes. A portrait you
|
||||
have not made yet shows the mirror of the landscape, so both play alike;
|
||||
refine it and save without changing the landscape. Playtest always uses the
|
||||
selected layout.
|
||||
|
||||
<p align="center"><img src="assets/marketing/editor.png" alt="The portrait level editor with separate Landscape and Portrait modes, terrain brushes and six enemies" width="85%"></p>
|
||||
|
||||
@@ -91,13 +136,25 @@ Completion marks, active playtime, preferences and your chosen skin follow the
|
||||
signed-in account. Guest progress and each account stay separate. Your
|
||||
unfinished run and personal editor records stay on this device.
|
||||
|
||||
The title's **Skin shop** offers Mint for **10 Dew**, Berry for **20 Dew** and
|
||||
Rose for **30 Dew**, with confirmation before buying. Retrying a purchase,
|
||||
The title's **Shop** shows your coins and Dew beside it. Its **Skins** tab
|
||||
offers Mint for **10 Dew**, Berry for **20 Dew** and Rose for **30 Dew**, with
|
||||
confirmation before buying. **Coins** sells 150, 400 or 900 coins for 2, 5 or
|
||||
10 Dew, and **Dew** tops up your Dew. Retrying a purchase,
|
||||
including from another device, cannot charge for that skin twice. Earn
|
||||
**Night owl** by playing actively for **5 hours**, **Golden apple** by
|
||||
reaching **level 40**, or **Explorer** by opening **waozi.xyz** from the shop.
|
||||
Levels unlock through play; Dew buys optional cosmetics.
|
||||
|
||||
Earn **10 coins** for a level's first clear and **2 coins** when replaying it.
|
||||
Coins unlock **Moss** for 120, **River** for 240 and **Mushroom** for 360.
|
||||
The chest on the title glows when a **Daily reward** is ready; tap it to see
|
||||
the next few days. The 30-day plan gives mostly coins, Mushroom on day 7 and
|
||||
**Aurora** on day 30. Dew is rare: a connected account collects 2 Dew on day 10
|
||||
and 3 Dew on day 25, once, after the node has counted that many daily
|
||||
check-ins. Guests receive coins on those days. Claims reset at midnight UTC; missing a day keeps your
|
||||
place. Later calendars give coins in place of Dew and skin gifts. Already-owned
|
||||
gift skins give 100 coins. Winter cheer remains claimable in December 2026.
|
||||
|
||||
Account sync and Dew need a connection. There is no advertising or analytics,
|
||||
and personal editor records are kept out of published packages.
|
||||
|
||||
@@ -111,9 +168,9 @@ Built with [Ziran](https://ziran-lang.org) and [Kryon](https://kryonlabs.com).
|
||||
The desktop, Android and browser editions share the same game rules.
|
||||
|
||||
```sh
|
||||
python3 tools/build_desktop.py
|
||||
LDLIBS=-lz ziran run --target=c tools/build_desktop.zi
|
||||
build/account-desktop/wurm
|
||||
sh tests/run_local.sh
|
||||
LDLIBS=-lz ziran run --target=c tests/run_local.zi
|
||||
```
|
||||
|
||||
See the [build and development guide](docs/building.md) for the editor's
|
||||
|
||||
@@ -1,12 +1,30 @@
|
||||
{
|
||||
"id": "xyz.waozi.wurm-player",
|
||||
"title": "Apfelwurm",
|
||||
"apps": [{
|
||||
"manifest": "catalog.json",
|
||||
"cover": {
|
||||
"portrait": "assets/art/title-portrait.png",
|
||||
"landscape": "assets/art/title.png",
|
||||
"action": "play"
|
||||
"apps": [
|
||||
{
|
||||
"manifest": "catalog.json",
|
||||
"cover": {
|
||||
"portrait": "assets/art/title-portrait.png",
|
||||
"landscape": "assets/art/title.png",
|
||||
"action": "play",
|
||||
"caption": "Classic"
|
||||
},
|
||||
"shared_records": [
|
||||
"reach.dat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"manifest": "editor/catalog.json",
|
||||
"cover": {
|
||||
"portrait": "assets/art/editor-title-portrait.png",
|
||||
"landscape": "assets/art/editor-title.png",
|
||||
"caption": "Editor",
|
||||
"action": "open"
|
||||
},
|
||||
"requires": [
|
||||
"xyz.waozi.wurm"
|
||||
]
|
||||
}
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 2.9 MiB |
|
Before Width: | Height: | Size: 1.5 MiB |
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"source": "/home/wao/.codex/generated_images/01a18385-718a-7a20-b897-3f36ab938b70/exec-a6318dc8-fc89-433a-a7cc-80f189e0f86f.png",
|
||||
"prompt": "Create a game texture bitmap: a large uninterrupted top-down surface of calm shallow turquoise pond water, matching a cozy illustrated mobile game with softly painted natural colors. Entire image is ONLY water edge to edge. Absolutely no shoreline, land, rocks, borders, tile outlines, grid, framed cells, text, plants, objects or perspective. Even medium teal/aqua base, subtle broad soft currents, sparse delicate pale turquoise curved ripples and soft underwater mottling. Flat overhead view, gentle non-directional lighting with no edge vignettes. Fairly low contrast, no bright white highlights or glossy bevels. This will be sampled once across an entire 40-by-30-cell game board and masked by terrain cells, so all touching cells must show continuous flowing water, never individual puddles. Landscape 4:3 composition, high resolution.",
|
||||
"transparent_background": false,
|
||||
"size": [
|
||||
1448,
|
||||
1086
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 14 KiB |