Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
921801756d | ||
|
|
217aeb9fb3 | ||
|
|
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 | ||
|
|
49b274620f | ||
|
|
7aa87cc2eb | ||
|
|
90f6e2051f | ||
|
|
cbca2c6241 | ||
|
|
90c2927183 | ||
|
|
a2d9de1032 | ||
|
|
ac9e2f7e4a | ||
|
|
a206a5aefd | ||
|
|
368d6868f6 | ||
|
|
2ab0004674 | ||
|
|
ec9ffa68dd | ||
|
|
36e933781e | ||
|
|
58d2148c8d | ||
|
|
19c9845784 | ||
|
|
c20bc6afa8 | ||
|
|
cea906d1d7 | ||
|
|
b48163b8c8 | ||
|
|
6906dd012a | ||
|
|
a7b8a134ee | ||
|
|
bbc77d91dc | ||
|
|
241df86fdf | ||
|
|
b98f381db7 | ||
|
|
47c065576d | ||
|
|
8c24471081 | ||
|
|
1a040c0597 | ||
|
|
1af02f6777 | ||
|
|
4f6ee7fbcf | ||
|
|
8ac690e93f | ||
|
|
84ba9bb57f | ||
|
|
40ae522f4b | ||
|
|
f2622e2b51 | ||
|
|
4f697bb244 | ||
|
|
8332bb879e | ||
|
|
b4508b84a7 | ||
|
|
cbdcbdd40e | ||
|
|
6cc71cf7c4 | ||
|
|
7c19cb8a6b | ||
|
|
2adc4a37a7 | ||
|
|
497f6d4487 | ||
|
|
616cef608a | ||
|
|
1dafcae9d6 | ||
|
|
4aae7a0e52 | ||
|
|
7b6a74f429 | ||
|
|
080ab50d84 | ||
|
|
e505aee537 | ||
|
|
b9ca6de322 | ||
|
|
1562681f0a | ||
|
|
5fdb457f8e | ||
|
|
3cead1f217 | ||
|
|
941c0c1b73 | ||
|
|
a2798e2a2f | ||
|
|
61551e9ef2 | ||
|
|
76e95cd951 | ||
|
|
280d44a282 | ||
|
|
7ac1b9f83e | ||
|
|
d5c325f0c7 | ||
|
|
e5c6b72678 | ||
|
|
43731ea4bf | ||
|
|
481ec2a6cd | ||
|
|
0565000f23 | ||
|
|
a0958fe146 | ||
|
|
118437d731 | ||
|
|
318d649e21 | ||
|
|
eb35fe6899 | ||
|
|
a6aebdbb5a | ||
|
|
0e4035720d | ||
|
|
fd22b1dc22 | ||
|
|
952a750dd2 |
No files matched your search
@@ -0,0 +1,64 @@
|
||||
name: Wurm portable download
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
target:
|
||||
description: Build target
|
||||
type: choice
|
||||
required: true
|
||||
default: zx
|
||||
options: [zx]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: wurm-portable
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
zx:
|
||||
if: github.ref == 'refs/heads/master' && inputs.target == 'zx'
|
||||
runs-on: build-native-wurm-zx
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
BUILD_NATIVE_TARGET: ${{ inputs.target }}
|
||||
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
|
||||
with:
|
||||
path: waozixyz/wurm
|
||||
persist-credentials: false
|
||||
- name: Resolve first-party sources on Gitea
|
||||
run: |
|
||||
git config --global url.https://git.waozi.xyz/waozi/.insteadOf https://github.com/waozixyz/
|
||||
git config --global url.https://git.waozi.xyz/ziranlang/.insteadOf https://github.com/ziranlang/
|
||||
git config --global url.https://git.waozi.xyz/kryonlabs/.insteadOf https://github.com/kryonlabs/
|
||||
- name: Set up the locked compiler and packages
|
||||
uses: https://git.waozi.xyz/ziranlang/ziran/.github/actions/setup@979159a55bcf1f9edb9eb8f26ea10aca421412e2
|
||||
with:
|
||||
project: waozixyz/wurm
|
||||
path: ziranlang/ziran
|
||||
fetch: true
|
||||
packages: build-essential python3 zlib1g-dev
|
||||
- name: Build the game-owned portable downloads
|
||||
run: |
|
||||
python3 tests/portable_export_test.py
|
||||
python3 tools/build_portable.py
|
||||
python3 tests/portable_export_test.py --built
|
||||
- name: Keep Wurm's portable downloads
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wurm-portable
|
||||
path: |
|
||||
waozixyz/wurm/build/downloads/wurm.zx
|
||||
waozixyz/wurm/build/downloads/wurm-portable-v*.tar.gz
|
||||
if-no-files-found: error
|
||||
retention-days: 7
|
||||
@@ -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
|
||||
@@ -30,25 +32,26 @@ jobs:
|
||||
with:
|
||||
path: waozixyz/wurm
|
||||
persist-credentials: false
|
||||
- name: Read the locked compiler and release version
|
||||
- name: Read the release version
|
||||
id: version
|
||||
run: |
|
||||
python3 - <<'PY' >> "$GITHUB_OUTPUT"
|
||||
import json
|
||||
from pathlib import Path
|
||||
print('compiler=' + json.loads(Path('ziran.lock').read_text())['toolchain']['commit'])
|
||||
print('version=' + json.loads(Path('version.json').read_text())['version'])
|
||||
PY
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
||||
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
|
||||
uses: ziranlang/ziran/.github/actions/setup@979159a55bcf1f9edb9eb8f26ea10aca421412e2
|
||||
with:
|
||||
repository: ziranlang/ziran
|
||||
ref: ${{ steps.version.outputs.compiler }}
|
||||
project: waozixyz/wurm
|
||||
path: ziranlang/ziran
|
||||
persist-credentials: false
|
||||
- name: Install native and private-display test tools
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends build-essential cmake pkg-config python3-pil python3-numpy libssl-dev libsdl2-dev libcairo2-dev libfreetype-dev libfontconfig-dev libpango1.0-dev libx11-dev libxcursor-dev libxinerama-dev libxrandr-dev libxi-dev libgl1-mesa-dev xvfb xauth xdotool imagemagick
|
||||
fetch: true
|
||||
packages: >-
|
||||
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'
|
||||
actions-cache-folder: emsdk-cache
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
@@ -56,27 +59,77 @@ jobs:
|
||||
- name: Install the pinned Android SDK tools
|
||||
run: |
|
||||
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" 'ndk;28.2.13676358' 'build-tools;36.0.0' 'platforms;android-36' 'cmake;3.22.1'
|
||||
- name: Build the locked compiler
|
||||
working-directory: ziranlang/ziran
|
||||
run: |
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY make -j1
|
||||
echo "$PWD/build/bin" >> "$GITHUB_PATH"
|
||||
- name: Fetch only locked packages
|
||||
run: ziran fetch --locked
|
||||
- name: Verify release metadata
|
||||
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
|
||||
run: sh tests/run_local.sh
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tests/run_local.zi
|
||||
- name: Build the portable release and standalone download
|
||||
run: |
|
||||
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
|
||||
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: |
|
||||
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: |
|
||||
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
|
||||
- name: Sign and verify the standard and F-Droid-style downloads
|
||||
env:
|
||||
LDLIBS: -lz
|
||||
run: ziran run --target=c tools/build_android.zi -- --release --abi universal
|
||||
- name: Build the separate Google Play APK
|
||||
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
|
||||
@@ -84,26 +137,33 @@ 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"
|
||||
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.
|
||||
- name: Require both download names and extract release notes
|
||||
- name: Require all download editions and extract release notes
|
||||
env:
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
test -f "build/downloads/wurm-v$VERSION.apk"
|
||||
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"
|
||||
test -s build/downloads/wurm.zx
|
||||
cmp build/games/wurm.zx build/downloads/wurm.zx
|
||||
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 }}
|
||||
@@ -119,5 +179,48 @@ 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" --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" build/downloads/wurm.zx --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 \
|
||||
https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default \
|
||||
--output "$RUNNER_TEMP/butler.zip"
|
||||
mkdir -p "$RUNNER_TEMP/butler"
|
||||
unzip -q "$RUNNER_TEMP/butler.zip" -d "$RUNNER_TEMP/butler"
|
||||
chmod +x "$RUNNER_TEMP/butler/butler"
|
||||
echo "$RUNNER_TEMP/butler" >> "$GITHUB_PATH"
|
||||
- name: Publish the tested browser and Android editions to itch.io
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.ITCH_API_KEY }}
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -n "$BUTLER_API_KEY" || { echo '::error::Set the ITCH_API_KEY repository secret to enable automatic itch.io updates.'; exit 1; }
|
||||
test -f build/web/index.html
|
||||
test -f "build/downloads/wurm-v$VERSION.apk"
|
||||
butler push build/web waozi/wurm:html5 --userversion "$VERSION"
|
||||
butler push "build/downloads/wurm-v$VERSION.apk" waozi/wurm:android --userversion "$VERSION"
|
||||
butler status waozi/wurm
|
||||
# Arcade follows this release now, not at its next timer, and Breeze
|
||||
# then publishes it to the node. RELEASE_FOLLOW_TOKEN may only start
|
||||
# workflows in Arcade and Breeze; Game updates takes no input and finds
|
||||
# the newest game releases itself. Without it Arcade's timer follows.
|
||||
- name: Start Arcade's game update
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.RELEASE_FOLLOW_TOKEN }}
|
||||
run: |
|
||||
if [ -z "$GH_TOKEN" ]; then
|
||||
echo "No RELEASE_FOLLOW_TOKEN: Arcade's Game updates picks this release up on its timer."
|
||||
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
|
||||
@@ -0,0 +1,127 @@
|
||||
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
|
||||
|
||||
jobs:
|
||||
bundle:
|
||||
name: Signed Google Play App Bundle
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 75
|
||||
env:
|
||||
ZIRAN_PAR_THREADS: '1'
|
||||
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: |
|
||||
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.
|
||||
- name: Set up the locked Ziran, its packages and the build tools
|
||||
uses: ziranlang/ziran/.github/actions/setup@979159a55bcf1f9edb9eb8f26ea10aca421412e2
|
||||
with:
|
||||
project: waozixyz/wurm
|
||||
path: ziranlang/ziran
|
||||
fetch: true
|
||||
packages: >-
|
||||
build-essential cmake nasm meson ninja-build pkg-config zlib1g-dev libssl-dev
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
- name: Install the pinned Android SDK tools
|
||||
run: |
|
||||
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" 'ndk;28.2.13676358' 'build-tools;36.0.0' 'platforms;android-36' 'cmake;3.22.1'
|
||||
- name: Verify release metadata
|
||||
run: |
|
||||
sh update_version.sh
|
||||
git diff --exit-code -- version.json
|
||||
- name: Build both ARM architectures in one Google Play edition bundle
|
||||
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"
|
||||
curl --fail --show-error --location --retry 3 \
|
||||
https://github.com/google/bundletool/releases/download/1.18.3/bundletool-all-1.18.3.jar \
|
||||
--output "$RUNNER_TEMP/bundletool.jar"
|
||||
umask 077
|
||||
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"
|
||||
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
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wurm-play-${{ steps.version.outputs.version }}
|
||||
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
|
||||
@@ -3,3 +3,7 @@ backup/
|
||||
droid/
|
||||
ziran.local.toml
|
||||
__pycache__/
|
||||
assets/campaign-levels/
|
||||
assets/entity.zx
|
||||
.yue/
|
||||
work/
|
||||
@@ -1,5 +1,310 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Offer the standalone Wurm ZX download in Wurm’s own releases, alongside its portable archive.
|
||||
|
||||
- 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.
|
||||
- Leave Apfelwurm reliably with Android Back from the title.
|
||||
|
||||
## [0.2.20] - 2026-10-28
|
||||
|
||||
- Open Leaderboard repeatedly without a black board or losing Android Back.
|
||||
- See a newly chosen Wurm skin immediately on this device and after account sync.
|
||||
|
||||
## [0.2.19] - 2026-10-28
|
||||
|
||||
- Hear three related calm scores rotate as levels progress, with phrase-aligned 4.8-second crossfades.
|
||||
- Keep the score playing through Ready and blend cleanly between levels instead of restarting the same tune.
|
||||
|
||||
## [0.2.18] - 2026-10-28
|
||||
|
||||
- Keep every Meadow level at the same slower pace.
|
||||
- Bring Moon dragon segments together, turn its head with steering and fade every skin smoothly when a life is lost.
|
||||
- Buy Mountains for 20 Dew and play its levels without finishing earlier stages.
|
||||
- Show friends' pictures and Wurm skins, with the default worm when no skin is selected.
|
||||
- Save alias display capitals directly and show when the leaderboard is loading.
|
||||
- Keep the skin shop minimal and hide prices and unlock requirements for owned skins.
|
||||
|
||||
## [0.2.17] - 2026-10-28
|
||||
|
||||
- Explore easier Meadow gardens with wider routes and landscape layouts inspired by their portrait versions.
|
||||
- Start with 20 enemy-free levels, short apple goals and only occasional simple patrols afterward.
|
||||
- Learn matching portal rings on level 10 and revisit them in five later Meadow puzzles, with clear exits and a translated hint.
|
||||
- Keep personal editor layouts, saved progress and every level's clear starting area.
|
||||
|
||||
## [0.2.16] - 2026-10-28
|
||||
|
||||
- Start the next level from a dedicated preview dialog when you are ready.
|
||||
- Play at a gentler pace while keeping the same scoring and level progression.
|
||||
- Send and accept friend requests reliably and see friends' chosen classic or abstract pictures.
|
||||
- Choose larger Profile pictures, with Avatar temporarily hidden and Material controls throughout.
|
||||
- Keep storage usage and storage plans out of the game's Profile and Dew pages.
|
||||
- Buy the distinctive Moon dragon skin for 50 Dew; owned skins restore across devices.
|
||||
- Claim Winter cheer for free during December 2026 and keep it afterward.
|
||||
- See Apfelwurm's original slimmer appearance in the skin shop and equipped skins on the leaderboard.
|
||||
- Read translated Start level and Volume labels in every supported language.
|
||||
|
||||
## [0.2.15] - 2026-10-28
|
||||
|
||||
- Preview each next level with a dimmed board and press Start level when you are ready.
|
||||
- Start every level with a clear entrance and room to turn on mobile.
|
||||
- See the app version in Settings.
|
||||
- Load your saved account alias across devices and manage your account directly in Profile.
|
||||
- Use Android Back to navigate inside the app.
|
||||
- Choose your Profile picture in a modal and open Friends from the same shared Profile.
|
||||
- Open Leaderboard and Dew directly from the title and return there with Back.
|
||||
- Choose the shared theme, accent and widget appearance options.
|
||||
- Adjust the sound volume from the dropdown immediately left of Pause.
|
||||
|
||||
## [0.2.14] - 2026-10-28
|
||||
|
||||
- Include the latest saved Meadow layouts for levels 3, 13 and 35.
|
||||
|
||||
## [0.2.13] - 2026-10-28
|
||||
|
||||
- Play the updated editor-made campaign layouts, including readable YUM hedges in level 14.
|
||||
- Paint connected water with a continuous surface and shorelines only along its outside edges.
|
||||
- Choose a level or brush without accidentally painting the board; click or drag on the board to paint.
|
||||
|
||||
## [0.2.12] - 2026-10-28
|
||||
|
||||
- Download the Google Play edition as a separate `-gplay.apk`. The standard and F-Droid APKs exclude Google libraries and keep Monero top-ups.
|
||||
|
||||
## [0.2.11] - 2026-10-28
|
||||
|
||||
- Buy a small 10 Dew pack in the Google Play edition and see each larger pack’s savings per Dew.
|
||||
|
||||
## [0.2.10] - 2026-10-28
|
||||
|
||||
- Keep signed-in progress and unfinished runs after closing or updating Apfelwurm inside Arcade and Breeze.
|
||||
- Restore earned unlocks from older account saves without changing completed levels or the current run.
|
||||
- Give Apfelwurm its own Android launcher icon.
|
||||
|
||||
## [0.2.9] - 2026-10-27
|
||||
|
||||
- More portal rooms in the mountains: five more boards have a walled corner room whose doorway closes, so a ring is the only way in, and boards there that bring portals use their room. Seven of the last twenty boards now have a portal room.
|
||||
|
||||
## [0.2.8] - 2026-10-27
|
||||
|
||||
- After the meadow, a new idea arrives every few dozen levels and keeps coming back: squirrels that dash and sit from level 45, hedgehogs that curl into a spiky ball as you come close from 85, keys that open a gate from 101, frogs that hop two tiles from 125, switch stones that open and close a gate from 141, rolling stones from 165 and portal rooms, reached only through a ring, from 181.
|
||||
- Each new idea takes every other board for ten levels. After that, the ideas you have met take turns, with no more than two plain boards in a row.
|
||||
- A gate closes a doorway up to four tiles wide. Its key opens it for good and is worth 2 points; a switch stone flips it each time you arrive on it. Boards with a gate or a portal room score more.
|
||||
- New pictures for the squirrel, hedgehog, frog, rolling stone, key, switch stone and gate.
|
||||
|
||||
## [0.2.7] - 2026-10-27
|
||||
|
||||
- On the desktop, Play starts right away with mouse steering; the keyboard always works, and Pause still switches to the direction pad.
|
||||
- wurm.waozi.xyz opens faster with a much lighter loading picture.
|
||||
|
||||
## [0.2.6] - 2026-10-27
|
||||
|
||||
- Glowing portals arrive from level 61: first on a few boards, then more often, with two pairs late in the mountains. Steer into one ring to come out of its partner, keeping your direction. Each ring stands in open ground, so you can always go around it.
|
||||
- See your best run on the Profile leaderboard: the furthest level you reached and your highest score, as separate Level and Score columns ranked against your friends.
|
||||
- Sign in once for every waozi.xyz site: a profile signed in on Arcade, Dew or here is used by the others in the same browser.
|
||||
- Buy Dew inside the Google Play version through Google Play, priced in your own currency. The direct download and F-Droid versions keep buying Dew with Monero.
|
||||
- The privacy page explains Google Play purchases and how to delete your account.
|
||||
|
||||
## [0.2.5] - 2026-10-27
|
||||
|
||||
- Score more on harder boards: each level's apples are worth one to nine points by how many creatures roam it, how many apples it asks for and how tight its walls are. Extra lives still come about every 33 apples.
|
||||
- The Profile always opens. If it cannot start on this device, it says why instead of doing nothing, and a saved account key that cannot be read is kept aside.
|
||||
|
||||
## [0.2.4] - 2026-10-27
|
||||
|
||||
- Play on the whole page at wurm.waozi.xyz, without a title bar above the game.
|
||||
|
||||
## [0.2.3] - 2026-10-27
|
||||
|
||||
- Top up in the Profile opens dew.waozi.xyz, where you can buy Dew with Monero in any amount or with almost any other coin.
|
||||
|
||||
## [0.2.2] - 2026-10-27
|
||||
|
||||
- Set an account alias with capitals, an @ or spaces; a taken alias now says so.
|
||||
|
||||
## [0.2.1] - 2026-10-26
|
||||
|
||||
- Use Arcade or Inner Breeze's Profile, Dew and navigation when playing inside them, without duplicate title controls or an extra Back button.
|
||||
- Open the shared Profile reliably from the skin shop's sign-in button.
|
||||
|
||||
## [0.2.0] - 2026-10-26
|
||||
|
||||
- Play with softer Dusk, Forest and Sage themes, with saved sound and control settings.
|
||||
- See a continuous painted meadow instead of a repeating grass grid, and clear Profile and Dew icons on the title.
|
||||
- Sign in through the shared Profile to sync completed levels, playtime, settings and your chosen character across devices.
|
||||
- Browse the skin shop from the title beside Profile and your Dew balance. Mint, Berry and Rose cost 10, 20 and 30 Dew, with confirmation before buying.
|
||||
- Earn Night owl after five hours of active play, Golden apple by reaching level 40, and Explorer by visiting waozi.xyz. Purchased skins belong to your account.
|
||||
- Unlock all 200 levels by playing. The mobile selector shows large previews for unlocked levels and only a lock for later ones. Dew is used for optional cosmetics.
|
||||
|
||||
## [0.1.8] - 2026-10-26
|
||||
|
||||
- Level previews now appear only after you unlock them.
|
||||
|
||||
## [0.1.7] - 2026-10-26
|
||||
|
||||
- See a glowing touch guide follow your finger while swipe steering.
|
||||
- Steer with a larger direction pad, with more space from the edges in portrait and landscape.
|
||||
|
||||
## [0.1.6] - 2026-10-26
|
||||
|
||||
- Try again after game over starts the furthest unlocked level with three lives and a fresh score.
|
||||
- Choose level from the title to browse all five landscapes, preview each board and replay any unlocked level. Future levels remain locked until you reach them.
|
||||
- Use Escape to pause or go back in the browser without stopping the game.
|
||||
|
||||
## [0.1.5] - 2026-10-26
|
||||
|
||||
- Continue from the furthest level unlocked on this device with three lives and a fresh score. Progress saves after every completed level and survives closing the game or a game over.
|
||||
- Play from start for a full run, carrying score and lives between levels without erasing unlocked progress.
|
||||
- Keep levels reached in existing saves available through Continue.
|
||||
|
||||
## [0.1.4] - 2026-10-25
|
||||
|
||||
- Press Play and go straight into the game: no stage or level select. Play every level in order through all five landscapes, earning lives as your score grows; a game over starts again from level 1.
|
||||
- Continue your run from the start of the level you reached; existing stage progress continues from your first uncleared level.
|
||||
|
||||
## [0.1.3] - 2026-10-25
|
||||
|
||||
- Play the complete game in your browser at wurm.waozi.xyz, with progress and personal levels saved on your device.
|
||||
|
||||
- Explore 200 distinct levels inspired by the original Worm game, with 40 challenges in each landscape and more demanding encounters as the journey climbs.
|
||||
- Meet wandering fire, bouncing patrols and chasing enemies among original-inspired rooms, spirals, islands and mountain passes.
|
||||
- Unlock each landscape by completing its 40 levels, then return to any unlocked stage or level from Your journey.
|
||||
- Choose swipe steering or a direction pad on first play, remember that choice and change it from Pause.
|
||||
- Learn at a gentler pace in the opening Meadow levels before reaching the original speed.
|
||||
- Edit and playtest independent Landscape and Portrait layouts; start missing portrait boards from a best guess, with clear gate approaches and a separate portrait level 2.
|
||||
- Browse all 200 boards in the editor while keeping edits from the earlier campaign separate.
|
||||
|
||||
## [0.1.2] - 2026-10-25
|
||||
|
||||
- Travel through all 66 levels from Meadow through deciduous Leafwood, coniferous Pinewood and Lake to the Mountains, with distinct terrain and challenges throughout.
|
||||
- Turn as your finger moves while touching the board, and make successive corners without lifting.
|
||||
- Browse and edit every landscape while keeping existing personal level edits.
|
||||
- Hear continuous acoustic music across landscape changes, with smoother looping and playback on slower phones.
|
||||
|
||||
## [0.1.1] - 2026-10-25
|
||||
|
||||
- Download Apfelwurm separately from Arcade and play the same Garden and Forest campaign.
|
||||
- Keep portable level-editor changes in the game's private saves and return to Arcade from the title.
|
||||
|
||||
## [0.1.0] - 2026-10-25
|
||||
|
||||
- Play 66 distinct Garden and Forest challenges, with five apples in the opening levels and a gentler level 2.
|
||||
|
||||
@@ -1,181 +1,191 @@
|
||||
<p align="center">
|
||||
<img src="assets/art/title.png" alt="Apfelwurm — a little orange worm, an apple meadow and a mountain to climb" width="100%">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<strong>A little worm. A long journey.</strong><br>
|
||||
<a href="https://wurm.waozi.xyz/"><strong>Play free in your browser</strong></a>
|
||||
· <a href="https://github.com/waozixyz/wurm/releases/latest"><strong>Download for Android</strong></a>
|
||||
· <a href="CHANGELOG.md">What's new</a>
|
||||
</p>
|
||||
|
||||
# Apfelwurm
|
||||
|
||||
Application id `xyz.waozi.wurm`.
|
||||
Collect the apples. Find the gate. Keep growing.
|
||||
|
||||
Guide a little orange worm from sunny apple meadows through woodland and
|
||||
lakeshores to the mountains. Apfelwurm brings the spirit of the original
|
||||
Worm game to **200 distinct levels**, with illustrated landscapes, a gentle
|
||||
acoustic soundtrack and controls that respond while your finger stays down.
|
||||
|
||||
A native Ziran and Kryon game. The illustrated Apfelwurm title has one
|
||||
**Play** button: start in the Garden, then continue into the Forest as the
|
||||
same worm. There are **66 unique designed levels**, 33 per chapter, with
|
||||
wide paths, solid hedges, stone and ponds on the original 40x30 grid.
|
||||
The opening levels need five apples; later levels mix longer goals and
|
||||
more involved routes with gentler breaks. The campaign contains no passive
|
||||
decoration props or monsters. `tools/design_levels.py` regenerates the
|
||||
boards and complete route certificates. Local tests verify every layout
|
||||
and complete all 66 levels in both orientations with three apple seeds.
|
||||
The **99 recovered levels** from the owner's `The-Worm_Win_EN/
|
||||
ONLY.ONE` archive stay the byte-exact reference in `assets/original`. The game shows new art and sound: each
|
||||
chapter has its own terrain (`assets/art`), with the same worm, apples and
|
||||
woodland creatures throughout. Nature music and sound effects live in
|
||||
`assets/sounds`. The recovered tilesets, title artwork, sounds and scores stay in
|
||||
`assets/original` as the reference for the level data.
|
||||
Free to play. All 200 levels can be unlocked through play. No ads. An optional account keeps your
|
||||
progress and character choices in sync, with cosmetic skins available for Dew.
|
||||
|
||||
The executable was disassembled to recover the single-player rules: movement
|
||||
by four pixels every 25 Ms, sequential apples, progressive growth, passable
|
||||
decorative tiles, six monster types, lives, scoring, and the bottom entrance
|
||||
and top exit. Collect the level's apples, then guide the worm through the
|
||||
opening at the top centre. An extra life is awarded every 33 points. You start with three lives;
|
||||
losing the last one ends the game at zero.
|
||||
The standard Android APK and the `-fdroid.apk` download exclude Google libraries.
|
||||
Choose the separate `-gplay.apk` for Google Play Billing. The standard and
|
||||
F-Droid editions use Monero for Dew top-ups.
|
||||
|
||||
## Controls
|
||||
## Five landscapes. Forty levels each.
|
||||
|
||||
- Click Play, Enter or Space: start immediately; Enter or Space also retries
|
||||
- Arrows, WASD or a swipe over the board: steer
|
||||
- Escape, Space or P: pause and resume
|
||||
- Q while paused: back to the title
|
||||
- R: restart the current level
|
||||
- M: mute and unmute
|
||||
- E on the title: open the level editor
|
||||
- **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.
|
||||
|
||||
Collect the apples, then leave through the top opening. Garden level 33
|
||||
continues directly into Forest level 1, keeping your lives and score.
|
||||
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.
|
||||
|
||||
## Mobile-first layout
|
||||
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.
|
||||
|
||||
In play, a cream status bar shows the chapter, level, hearts, apples and score.
|
||||
Its status chips move onto a second row on narrow phones, keeping the 48-unit
|
||||
Pause button clear. Pause, game-over and completion dialogs use large stacked
|
||||
touch buttons and a compact composition for short landscape screens; the title artwork fills the
|
||||
whole screen with a composition for each orientation. Landscape letterboxes
|
||||
the 640x480 board. In portrait
|
||||
the same level data stands on its side as a 30x40 board that fills the
|
||||
screen edge to edge, and the gates follow the board: the worm still enters
|
||||
from the bottom edge and exits at the top. Steering keys and swipes stay
|
||||
natural, so Up is always visually up. The gates carve only their own hole;
|
||||
the neighbouring walls keep their tiles. Open entrance and exit gates show
|
||||
stone posts on both sides, in either orientation. The worm follows its full
|
||||
long path with slightly spaced orange segments and a top-down head whose
|
||||
mouth faces the direction of travel. The desktop window opens from
|
||||
`WURM_WINDOW=WxH` (default 1280x760); `WURM_WINDOW=480x700` shows the
|
||||
portrait phone layout.
|
||||
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
|
||||
and press **Start level** (or Enter/Space) when ready. The worm and enemies wait
|
||||
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.
|
||||
|
||||
Touching hedge, stone and water tiles have borders only on exposed edges.
|
||||
Forest walls sample one continuous overhead woodland image; the portrait
|
||||
version rotates that same field so neighbouring tiles keep matching.
|
||||
**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.
|
||||
|
||||
## Level editor
|
||||
## Challenges in the journey
|
||||
|
||||
Press E from the title, or launch with `WURM_START=editor`;
|
||||
the editor opens facing its level selector: one card per level with the
|
||||
level's rendered board as its picture, a green frame on saved edits, and
|
||||
one click to edit that level. Tab or Enter playtests. The held left button paints the selected brush across the canvas, the
|
||||
right button restores the recovered original tile, and the palette offers the
|
||||
stage's floors and solid obstacles. The apple goal
|
||||
is set with the - and + buttons or keys. Up/Down switches levels (saving
|
||||
first), Enter playtests from the entrance, and E returns to the title.
|
||||
Saving is automatic on switch, exit and playtest, plus the Save button; Reset
|
||||
(deleting the override) restores the designed campaign level. T or the turn
|
||||
button stands the working level up exactly as portrait plays it and back,
|
||||
so the sideways view can be edited and playtested directly.
|
||||
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.
|
||||
|
||||
Edits live in `assets/levels/level<N>.dat`, one file per edited level:
|
||||
apple count, the 40x30 tiles, then the 40x30 object ids, all in column
|
||||
order. The palette paints floors (grass, dirt, sand), a smart hedge that
|
||||
fits its own edge and corner pieces, plain hedges, stone and solid water.
|
||||
Existing object data remains readable, but passive props are not rendered.
|
||||
A level without a file plays its designed campaign board, so removing a file
|
||||
restores it. The entrance (bottom centre, green marker) and exit (top centre, red
|
||||
marker) are carved at runtime from the tiles above and below the edges; the
|
||||
editor warns when a level could not be entered or left. `WURM_LEVEL_DIR`
|
||||
redirects where overrides are read and written.
|
||||
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.
|
||||
|
||||
## Build
|
||||
## Play your way
|
||||
|
||||
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 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 **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.
|
||||
|
||||
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>
|
||||
|
||||
## Keep the journey yours
|
||||
|
||||
Open **Settings** on the title to choose the softer Dusk, Forest or Sage theme,
|
||||
change controls or switch sound on and off. **Profile** uses the same account
|
||||
system as Shovey: create an account, import your key or link another device.
|
||||
Inside Arcade or Inner Breeze, the host supplies Profile, Dew and navigation;
|
||||
the game's title keeps Shop and Settings without duplicating those controls.
|
||||
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 **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.
|
||||
|
||||
[Play Apfelwurm](https://wurm.waozi.xyz/)
|
||||
· [Android downloads](https://github.com/waozixyz/wurm/releases/latest)
|
||||
· [Browser privacy](https://wurm.waozi.xyz/privacy.html)
|
||||
|
||||
## Build and contribute
|
||||
|
||||
Built with [Ziran](https://ziran-lang.org) and [Kryon](https://kryonlabs.com).
|
||||
The desktop, Android and browser editions share the same game rules.
|
||||
|
||||
```sh
|
||||
ziran run --locked desktop
|
||||
python3 tools/build_android.py --abi arm64-v8a
|
||||
ziran run --locked shot > build/stages.ppm
|
||||
WORM_SHOT_LEVEL=66 ziran run --locked shot > build/forest-finale.ppm
|
||||
ziran check --locked
|
||||
sh tests/run_local.sh
|
||||
LDLIBS=-lz ziran run --target=c tools/build_desktop.zi
|
||||
build/account-desktop/wurm
|
||||
LDLIBS=-lz ziran run --target=c tests/run_local.zi
|
||||
```
|
||||
|
||||
`tests/private_ui_test.py` additionally exercises the real desktop build on
|
||||
its own verified Xvfb server. It checks all three dialogs in 320x568 portrait
|
||||
and 640x360 landscape, including their primary and Back to title actions.
|
||||
It never uses the owner's desktop. The audio
|
||||
test uses SDL's dummy drivers and verifies that all effects and scores mix.
|
||||
See the [build and development guide](docs/building.md) for the editor's
|
||||
save files, Android and portable builds, asset recovery and verification.
|
||||
[Report a bug or suggest a level](https://github.com/waozixyz/wurm/issues).
|
||||
|
||||
The Android debug APK is written to `build/android/`. Use `--abi armeabi-v7a`
|
||||
for the development Moto. `tests/android_controls_test.py APK` verifies touch
|
||||
start, pause, resume, steering and return to the title on that USB device.
|
||||
Use `--verification` on both commands for the separate
|
||||
`xyz.waozi.wurm.verification` install, preserving the normal game and data.
|
||||
The device test leaves its own game open on the title.
|
||||
On phones, swipe over the board to steer, use the top pause button, and tap
|
||||
the pause or game-over card's buttons to continue or return to the title.
|
||||
## Portable downloads
|
||||
|
||||
## Signed Android downloads
|
||||
`python3 tools/build_portable.py` builds Wurm and its editor in this repository.
|
||||
It writes the complete portable archive and the identical standalone game to
|
||||
`build/downloads/wurm.zx`. Verify their agreement with
|
||||
`python3 tests/portable_export_test.py --built`.
|
||||
|
||||
Start each numeric release in `CHANGELOG.md`, then run `sh update_version.sh`.
|
||||
The generated `version.json` supplies the Android version and increasing
|
||||
version code. Build and sign both ARM architectures with:
|
||||
|
||||
```sh
|
||||
python3 tools/build_android.py --release --abi universal
|
||||
python3 tools/android_release.py sign build/android/Apfelwurm-universal-release-unsigned.apk
|
||||
```
|
||||
|
||||
Signing uses the preserved private key in ignored `backup/android-signing/`.
|
||||
Only its public certificate is tracked in `packaging/android/certificate.pem`.
|
||||
The signing tool verifies the package, version, certificate, both ARM native
|
||||
libraries, 16 KB ZIP alignment and current game assets. It produces identical
|
||||
signed `wurm-v<VERSION>.apk` and `wurm-<VERSION>-fdroid.apk` downloads, following
|
||||
Shovey's naming format. The F-Droid filename is a source-build distribution
|
||||
artifact; it does not imply a listing or approval in the F-Droid catalog.
|
||||
|
||||
On every push to master, the Downloads workflow runs the game and private
|
||||
display tests, builds a production APK and signs both names using repository
|
||||
secrets `WURM_ANDROID_KEYSTORE` and `WURM_ANDROID_KEYSTORE_PASSWORD`. A new
|
||||
changelog version is published only after those jobs succeed. Tags are created
|
||||
by that workflow. Publishing uploads directly from the verified build to
|
||||
GitHub Releases, without using the shared Actions artifact quota. An already
|
||||
published version is kept; a new download requires a new changelog version.
|
||||
|
||||
## Art and sound
|
||||
|
||||
The landscape and portrait title illustrations were generated with the built-in
|
||||
image tool; `assets/art/title.json` records their prompts. The title assets
|
||||
live at `assets/art/title.png` and `assets/art/title-portrait.png`. Direct
|
||||
launches resolve their assets relative to the executable, including when
|
||||
launched from `build/`.
|
||||
|
||||
The title uses detailed sunlit storybook art, and the tiles and creatures use clean cartoon
|
||||
art generated with the built-in image tool. Source atlases live in
|
||||
`assets/art-source`; their prompts are recorded in `assets/art/title.json`.
|
||||
`tools/make_art.py` crops and packs those cells into the Garden and Forest
|
||||
sheets without changing gameplay tile IDs or collision rules. It also writes
|
||||
the display-free `.argb` mirrors. Run it with `--check` to verify the packed
|
||||
art matches its sources. The same golden orange worm and red apples appear in both
|
||||
chapters. `assets/sounds/sounds.json` records the OpenRouter model and prompt
|
||||
of every sound; the scores are trimmed and crossfaded into seamless loops.
|
||||
|
||||
## Recover the assets again
|
||||
|
||||
```sh
|
||||
python3 tools/extract_original.py /mnt/storage/Games/The-Worm_Win_EN
|
||||
python3 tools/render_music.py
|
||||
```
|
||||
|
||||
The extractor validates the complete archive, preserves every packed file,
|
||||
decodes the original PIX run-length encoding and VGA palettes, and generates
|
||||
`src/original_levels.zi` without changing tile values or column order.
|
||||
`assets/original/manifest.json` records the archive and extracted file hashes.
|
||||
The original executable remains outside this repository and is never modified.
|
||||
|
||||
Recovery uses Python/Pillow and FFmpeg. Offline music rendering additionally
|
||||
uses libfluidsynth and a General MIDI soundfont (TimGM6mb by default). MIDI
|
||||
events and timing are preserved; instrument timbre depends on the soundfont,
|
||||
as the original depended on the Windows MIDI synthesizer.
|
||||
|
||||
The maintained game is single-player, with desktop and Android builds. The
|
||||
original Windows dialogs and DirectPlay multiplayer have not been ported.
|
||||
The Gitea `portable.yml` workflow on `master` accepts only `target=zx` and uses
|
||||
the repository-scoped `build-native-wurm-zx` runner. It builds portable downloads
|
||||
without starting the Android or browser release jobs and retains the outputs as
|
||||
build artifacts. Installing that runner and verifying a hosted run are separate
|
||||
from the local packaging test. Published downloads belong to Wurm’s own releases.
|
||||
@@ -0,0 +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",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"generator": "built-in image_gen",
|
||||
"reference": "assets/art-source/head-profile.png",
|
||||
"purpose": "Android launcher icon",
|
||||
"prompt": "Use case: logo-brand. Asset type: finished square Android launcher app icon for Apfelwurm, a calm hand-illustrated worm puzzle game. Reference image: assets/art-source/head-profile.png is the existing character: orange worm, big blue eyes, friendly little mouth. Create a new icon, not a sprite sheet: one charming rounded light-orange worm head peeking up over a gentle curved body, a very small red apple tucked beside it, against a simple deep jade green and muted lake-blue garden background. Single strong silhouette, exceptionally legible at 48 pixels, soft hand-painted 2D shading, earth-brown outlines, restrained detail, friendly and playful. Keep the worm and apple within the central two thirds for Android circular/squircle masking. Full square opaque edge-to-edge background; no rounded square border or baked corner mask. No lettering, no numbers, no watermark, no UI, no glossy plastic, no glow. 1024x1024 square.",
|
||||
"dimensions": [
|
||||
1254,
|
||||
1254
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.7 MiB |
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"tool": "built-in image_gen",
|
||||
"prompt": "Use case: stylized-concept. Asset type: transparent 2D game sprite atlas, four animation frames for the ORIGINAL Wurm game's wandering fire enemy, redrawn to match Apfelwurm's clean friendly storybook cartoon sprites. Use the reference sheet only for line weight, clean shading and visual style; do not copy any worms, apples or insects. Create EXACTLY a 2 by 2 grid of four equal square transparent cells, no border, no gutters, no text. Each cell contains the SAME small upright flame hazard centered at the same baseline and scale, four successive gentle flickering poses, row-major. Hot red-orange outer flame silhouette, golden yellow core, a slight soft glow INSIDE the silhouette, crisp readable outline. No face, limbs, eyes, props, ground, cast shadow or background. Leave clean transparent space around each frame and preserve genuine alpha transparency. This is a moving hazard, clearly distinct from the orange worm and beetles. All four flames fill about 78 percent of their square's height and 60 percent of its width, consistent proportions and pivot. Square atlas.",
|
||||
"layout": "2 by 2 flame animation frames",
|
||||
"file": "fire.png"
|
||||
}
|
||||
|
After Width: | Height: | Size: 742 KiB |
|
Before Width: | Height: | Size: 2.9 MiB |
|
After Width: | Height: | Size: 186 KiB |
|
After Width: | Height: | Size: 3.8 MiB |
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"generator": "built-in image_gen",
|
||||
"source": "special-skins.png",
|
||||
"layout": {
|
||||
"columns": 4,
|
||||
"rows": 1,
|
||||
"width": 2172,
|
||||
"height": 724
|
||||
},
|
||||
"sprites": [
|
||||
"lunar-dragon-head",
|
||||
"lunar-dragon-body",
|
||||
"christmas-2026-head",
|
||||
"christmas-2026-body"
|
||||
],
|
||||
"prompt": "Cozy glossy storybook game sprite atlas: a midnight teal lunar dragon worm head with ivory horns and golden crescent scales, matching round body; a green Christmas worm head with Santa hat and red scarf, matching round body with a gold bell. Four equal transparent cells, heads facing right, no text or scenery."
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.2 MiB |
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"tool": "built-in image_gen",
|
||||
"prompt": "Use case: illustration-story. Asset type: a production landscape cover atlas for the five Apfelwurm stages, matching the supplied approved-direction stage-selector concept's soft detailed storybook nature paintings. Create EXACTLY FIVE equal horizontal strips stacked vertically with no borders, labels, UI, text, frames or gaps. Each strip is a distinct wide landscape painting, 3:1 aspect ratio, all five fill a single 3:5 portrait atlas. Top to bottom: 1 a sunny green apple meadow with short grass, red apples on trees, a low rustic fence and distant mountains; 2 a leafy deciduous woodland with broad oak and beech crowns, dappled sunlight, a moss path and roots; 3 a conifer forest with recognizable pointed firs and pines, cool blue-green needles, mossy gray rocks and a clear narrow trail; 4 a bright turquoise mountain lake with rounded pebble shores, reeds, little islands and a distant wooded bank; 5 a rugged pale-gray alpine mountain pass with sparse alpine grass, rocky terraces, distant snowy peaks and warm sunlight. Cool green and blue palette, earthy brown and restrained warm orange, calm gentle adventure. No characters, no worms, no fire, no signs, no words, no watermarks. Clean edge-to-edge artwork; exact boundaries at one fifth, two fifths, three fifths and four fifths of image height so cells can be cropped mathematically.",
|
||||
"layout": "five equal landscape strips",
|
||||
"file": "stage-covers.png"
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.5 MiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 13 KiB |