Compare commits

...
12 Commits
137 changed files with 4106 additions and 367 deletions

No files matched your search

+5 -1
View File
@@ -48,7 +48,7 @@ jobs:
- 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 ffmpeg 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
sudo apt-get install -y --no-install-recommends 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'
@@ -78,6 +78,10 @@ jobs:
run: sh tests/run_local.sh
- name: Exercise the app on its own private display
run: python3 tests/private_ui_test.py
- name: Build and exercise the shared account interface
run: |
python3 tools/build_desktop.py
python3 tests/account_ui_test.py
- name: Build and play the browser edition
run: |
python3 tools/build_web.py
+1
View File
@@ -4,3 +4,4 @@ droid/
ziran.local.toml
__pycache__/
assets/campaign-levels/
assets/entity.zx
+44
View File
@@ -1,5 +1,49 @@
# Changelog
## [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.
+36 -11
View File
@@ -18,7 +18,8 @@ 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.
Free to play. No account, no ads and no in-game purchases.
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.
## Five landscapes. Forty levels each.
@@ -32,10 +33,18 @@ 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.
Finish a landscape to unlock the next. Return to any unlocked stage or
cleared level from **Your journey**.
Press **Play** and you are straight in the game. The levels follow one after
another through all five landscapes. 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.
<p align="center"><img src="assets/marketing/journey.png" alt="Your journey: five illustrated landscapes with progress and stage unlocks" width="85%"></p>
**Choose level** lets you browse all five landscapes, see a large board preview for unlocked levels 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.
## Play your way
@@ -46,9 +55,9 @@ 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.
Collect every apple, then leave through the opening at the top of the board.
Portrait and landscape use their own board layouts. Your stage progress and
control choice stay on your device. Android plays offline; the browser edition
keeps its saves in this browser.
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
@@ -63,9 +72,24 @@ other version. Playtest always uses the selected layout.
## Keep the journey yours
Progress, control choices and personal levels are stored locally. There is no
account or tracking. The Android edition needs no network permission, and
personal editor records are kept out of the published game packages.
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 **Skin shop** offers Mint for **10 Dew**, Berry for **20 Dew** and
Rose for **30 Dew**, with confirmation before buying. 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.
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)
@@ -77,7 +101,8 @@ 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 desktop
python3 tools/build_desktop.py
build/account-desktop/wurm
sh tests/run_local.sh
```
Binary file not shown.

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 723 B

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 977 B

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 839 B

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1003 B

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

+4
View File
@@ -37,6 +37,10 @@
{
"path": "assets/art-source/forest-canopy.png",
"prompt": "Use case: stylized-concept. Asset type: overhead forest canopy texture for the connected solid walls of a top-down nature snake game. Landscape 4:3 image, 1280 by 960 pixels or 1448 by 1086. Fill the whole canvas with ONE unbroken dense woodland canopy, seen straight down from above. Many softly overlapping rounded oak crowns and small conifer clusters, broad leaves, deep forest green and muted teal, pockets of natural dark shade, restrained painterly cartoon detail with clear large forms readable on mobile. Tree crowns should be irregular sizes about one tenth of image width and overlap so there is no exposed ground anywhere. This image will be sampled continuously across neighbouring wall cells: NO grid, square patches, cell boundaries, margins, outlines around the image or individual tiles, rows of isolated tree icons, trunks seen from the side, paths, clearings, grass floor, flowers, characters, text, fruit, perspective, UI or single giant tree. All four canvas edges are filled with leaves that continue naturally beyond the frame. Rich but calm forest mass, warm daylight highlights, gentle depth, matching a friendly storybook garden game. This is a continuous top-down forest texture, not a tileset atlas. Actual final bitmap."
},
{
"path": "assets/art/ground-meadow.png",
"prompt": "Create a production game texture for Apfelwurm, a warm illustrated top-down worm-and-apples puzzle game. Asset: one continuous grass ground field, landscape 4:3 composition, ideally 1280 by 960. Orthographic straight overhead view, absolutely flat evenly lit ground all the way to every edge. Soft hand-painted natural meadow grass, muted sage and moss green with restrained warm olive variation. Tiny sparse brush marks suggest blades, very low contrast and calm detail so a small orange worm and red apples remain easy to see when the entire image is reduced to a 320px-wide phone board. No checkerboard, no tiled grid, no square patches, no borders, no repeated motifs, no beveled squares, no seams, no neon yellow-green, no flowers, no stones, no objects, no worm, no text, no horizon, no perspective, no cast shadows, no vignettes. It must read as one uninterrupted matte painted grass surface, with quiet organic nonrepeating variation and consistent brightness."
}
],
"packing": "tools/make_art.py packs overhead terrain and orange body cells, rotating head-profile.png to the four movement directions. Connected walls share a surface with outlines only on exposed edges. Forest walls sample one board-wide canopy; the portrait mirror is mechanically rotated, preserving every join.",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

+61 -17
View File
@@ -3,9 +3,9 @@
Application id `xyz.waozi.wurm`.
A native Ziran and Kryon game. The illustrated Apfelwurm title has one
**Play** button. Choose swipe steering or a direction pad on first play,
then select your stage in **Your journey**. Follow the little orange worm
A native Ziran and Kryon game. The illustrated Apfelwurm title offers
**Choose level**, **Play from start** and, after unlocking another level, **Continue**.
Choose swipe steering or a direction pad on first play. Follow the little orange worm
through **200 unique original-inspired levels**, with 40 each in Meadow,
deciduous Leafwood, coniferous Pinewood, Lake and Mountains.
Rooms, spirals, crossings, islands and narrow passes draw from 83 recovered
@@ -13,8 +13,14 @@ layouts. The six original enemy types include wandering fire, bouncing
patrols and chasing creatures. Enemy counts and apple goals increase across
stages, while the first six levels introduce movement without enemies.
Opening Meadow levels move more slowly before reaching the original pace.
Complete all 40 levels to unlock the next landscape. Unlocked stages and
cleared levels remain selectable; progress and the control choice persist.
Levels follow in order through every landscape. Choose level offers a
scrollable grid for each landscape; unlocked levels have large board previews and future levels show a lock. The run (level, lives and score carried into that level) and the
control choice persist. Unlocked progress is saved after every completed
level and survives game over, closing the game and starting a new run.
Continue starts the highest unlocked level with three lives and a fresh
score; Play from start begins at level 1. Earlier save records are imported.
Try again after game over also starts the highest unlocked level with fresh
lives and score, including after replaying an earlier level.
`tools/design_levels.py` regenerates the boards and static route certificates.
The local engine replay wins all 200 levels in both orientations with enemies
active, using recorded seeds and routes from `tests/campaign_cases.json`.
@@ -34,23 +40,26 @@ losing the last one ends the game at zero.
## Controls
- Click Play, Enter or Space: choose controls, then a stage and level; Enter or Space also retries
- Click Play, Enter or Space: choose controls on first play, then start at level 1; Enter or Space also retries
- Click Continue or press C on the title: start the highest unlocked level with three lives and a fresh score
- Click Choose level or press L on the title: browse landscapes and replay an unlocked level; Escape returns to the title
- Arrows, WASD, a held finger moving over the board, or the direction pad: steer immediately
- Pause > Controls: change between swipe steering and the direction pad
- Pause > Stages: select an unlocked stage and level
- Escape, Space or P: pause and resume
- Q while paused: back to the title
- R: restart the current level
- R: restart the current level with the lives and score the run brought into it
- M: mute and unmute
- E on the title: open the level editor
Collect the apples, then leave through the top opening. Levels within each landscape
connect automatically, keeping lives and score. A completed landscape returns
to Your journey with the next stage unlocked.
Collect the apples, then leave through the top opening. Every level, across
all five landscapes, connects automatically, keeping lives and score. Lives lost
are saved immediately; lives earned within a level are kept by finishing it.
Hosted in Arcade, the cover is the title, so opening the game goes straight
into play.
## Mobile-first layout
In play, a cream status bar shows the chapter, level, hearts, apples and score.
In play, a themed 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
@@ -117,7 +126,8 @@ The portable host plays packed sound effects. The native editions keep the
streaming soundtrack and secondary-pointer editor controls.
```sh
ziran run --locked desktop
python3 tools/build_desktop.py
build/account-desktop/wurm
python3 tools/build_android.py --abi arm64-v8a
ziran run --locked shot > build/stages.ppm
WORM_SHOT_LEVEL=200 ziran run --locked shot > build/forest-finale.ppm
@@ -225,10 +235,44 @@ original Windows dialogs and DirectPlay multiplayer have not been ported.
`python3 tools/build_web.py` compiles the same game with Kryon's Canvas2D host
and Emscripten. `node tests/web_test.mjs` runs a private browser test, including
control selection, stage selection, portrait resizing and persistent saves.
control selection, the direct start, portrait resizing and persistent saves.
The browser stores records through Kryon's IndexedDB provider.
The Downloads workflow packages the verified web build beside the signed APKs.
The website repository pins that release in `site/data/wurm-release.json` and
deploys its verified browser archive to the `wurm` Cloudflare Pages project at
https://wurm.waozi.xyz using the website's existing deployment credentials.
The website repository's Apfelwurm site workflow checks for a newer published
release every ten minutes and deploys its verified browser archive to the
`wurm` Cloudflare Pages project at https://wurm.waozi.xyz automatically, using
the website's existing deployment credentials. Nothing needs updating by hand.
## Profile, appearance and cosmetics
The release desktop build uses `tools/build_desktop.py`. Android and browser
builds use the same native Entity account provider through `src/account.zi`;
keys stay in the provider. Desktop profile data lives in
`$XDG_DATA_HOME/wurm/profile` (or `~/.local/share/wurm/profile`), Android uses
private app storage, and the browser uses IndexedDB. `WURM_PROFILE_DIR` selects
a private fixture. Do not point tests at an owner's profile.
Earned marks use Entity's merged `game-progress` record named `wurm`. Runs are
local and completion masks are account scoped. Account changes end the current
view without publishing its old run under the new account. Guest marks never
seed another account automatically. Offline pending completions survive restart.
`wurm-player` has one record per provider device ID, so active milliseconds from
different devices are summed rather than overwritten. Pauses and suspended
frames do not count. `wurm-settings` keeps the selected skin, theme, sound and
controls. A website unlock records opening the explicit `https://waozi.xyz/`
link; it makes no claim to track visits or browsing.
The provider's `entity.game-shop` spends exact integer millionths of Dew and
restores ownership from account-scoped ledger receipts. One stable product key
is shared across retries and devices. The game grants paid skins only after a
confirmed receipt. The three prices are 10, 20 and 30 Dew.
`tests/account_test.zi` covers account changes, completion-only publication,
offline retry and playtime unlocks. `tests/account_ui_test.py` drives the actual
account build on its own verified Xvfb display in both orientations. Entity's
`python3 scripts/game_shop_test.py` additionally verifies authenticated private
node spending, retry deduplication, fresh-device restore and isolation with
throwaway accounts and Dew. GitHub Actions and live deployment are verified
separately from these local tests.
+106
View File
@@ -0,0 +1,106 @@
// Portable games receive only bounded services. Native editions keep keys in
// Entity's provider, in this application's private profile directory.
#import "kryon/session"
#import "kryon/geometry"
#if #defined(WURM_ACCOUNT_TEST) {
test_api :: #system_library "host_api";
WurmAccountService :: (name: string, request: string) -> string #foreign test_api;
Service :: (name: string, request: string) -> string { return WurmAccountService(name, request) }
} else #if #defined(WURM_PORTABLE) {
Runtime :: #import "portable_runtime";
#import "std/text_buffer"
shop_request: [128]u8;
Service :: (name: string, request: string) -> string {
if name == "entity.game-shop" && request.count < 120 {
prefix := "shop:"
for byte, index: prefix { shop_request[index] = byte }
for byte, index: request { shop_request[index + 5] = byte }
shop_request[request.count + 5] = 0
return Runtime.Service("entity.dew", TextUntilNul(shop_request[:]))
}
return Runtime.Service(name, request)
}
Pump :: () {}
OpenProfile :: () { unused Service("entity.profile", "open") }
ProfileVisible :: () -> bool { return false }
DrawProfile :: (session: Session, bounds: Rectangle, key: s32, dark: bool) {}
Back :: () {}
VisitWebsite :: () -> bool { return Service("entity.game-shop", "visit") == "queued" }
} else #if #defined(WURM_ACCOUNTS) {
Entity :: #import "entity/native_host";
Records :: #import "entity/entity_records";
Dew :: #import "entity/entity_dew";
Shop :: #import "entity/game_shop_native";
Files :: #import "entity/native_files";
File :: #import "std/file";
#import "std/text_buffer"
#import "kryon/app_files"
#import "kryon/tree_input"
#import "kryon/key_input"
#import "kryon/text_input_props"
#import "kryon/open_uri"
#if #defined(ANDROID_BUILD) {
#import "kryon/android_jni"
Assets :: #import "kryon/app_asset";
}
started: bool;
ready: bool;
visible: bool;
profile_bytes: string;
Root :: (output: []u8) -> string {
#if #defined(PLATFORM_WEB) {
return "/kryon-apps/wurm-profile"
}
override := Files.NativeEnvironment("WURM_PROFILE_DIR")
if override != "" { return override }
base: [4096]u8
#if #defined(ANDROID_BUILD) {
return Files.NativeJoin(output, AndroidPrivateDataPath(base[:]), "profile")
} else {
data := Files.NativeEnvironment("XDG_DATA_HOME")
if data == "" { data = Files.NativeJoin(base[:], Files.NativeEnvironment("HOME"), ".local/share") }
app: [4096]u8
return Files.NativeJoin(output, Files.NativeJoin(app[:], data, "wurm"), "profile")
}
}
Pump :: () {
if !started {
started = true
#if #defined(ANDROID_BUILD) {
profile_bytes = Assets.ReadAppAsset("assets/entity.zx")
} else {
bytes, found := File.ReadEntireFile("assets/entity.zx")
if found { profile_bytes = bytes }
}
root: [4096]u8
if profile_bytes != "" { ready = Entity.EntityHostOpen(profile_bytes, Root(root[:]), "arcade", true) }
}
if ready { Entity.EntityHostPump() }
}
Service :: (name: string, request: string) -> string {
if !ready { return "" }
if name == "entity.records" { return Records.EntityRecordsAnswer(request) }
if name == "entity.dew" { return Dew.EntityDewAnswer(request) }
if name == "entity.game-shop" { return Shop.EntityGameShopAnswer(request) }
if name == "entity.profile" && request == "open" { OpenProfile(); return "available" }
return ""
}
OpenProfile :: () { if ready { Entity.EntityHostReload(); visible = true } }
ProfileVisible :: () -> bool { return visible }
DrawProfile :: (session: Session, bounds: Rectangle, key: s32, dark: bool) {
typed: [1024]u8
input := TextFieldInputFor(key, KeyboardModifiers(session), TypedTextTake(session, typed[:]))
unused Entity.EntityHostFrame(session, bounds, key, KeyboardModifiers(session), input, dark)
}
Back :: () { if !Entity.EntityHostBack() && Entity.EntityHostSave() { visible = false } }
VisitWebsite :: () -> bool { return OpenUri("https://waozi.xyz/") }
} else {
#import "kryon/open_uri"
Service :: (name: string, request: string) -> string { unused name; unused request; return "" }
Pump :: () {}
OpenProfile :: () {}
ProfileVisible :: () -> bool { return false }
DrawProfile :: (session: Session, bounds: Rectangle, key: s32, dark: bool) {}
Back :: () {}
VisitWebsite :: () -> bool { return OpenUri("https://waozi.xyz/") }
}
+534 -217
View File
File diff suppressed because it is too large. Load diff
+36
View File
@@ -0,0 +1,36 @@
#import "kryon/widget_palette"
#import "kryon/drawing_props"
Records :: #import, file "controls.zi";
mode: s32 = -1;
Load :: () {
if mode >= 0 { return }
mode = 0
bytes: [2]u8
if Records.ReadRecord("appearance.dat", bytes[:]) == 1 && bytes[0] < 3 { mode = cast(s32)bytes[0] }
}
Set :: (value: s32) {
if value < 0 || value > 2 { return }
mode = value
bytes: [1]u8 = .[cast(u8)value]
unused Records.WriteRecord("appearance.dat", bytes[:])
}
Palette :: () -> WidgetPalette {
Load()
if mode == 2 {
return WidgetPalette.{.background = 0xc3cbb7ff, .base = 0xdde1cfff, .text = 0x263b30ff,
.selected = 0x476c50ff, .selected_text = 0xf2f0e2ff, .border = 0xa1b198ff,
.danger = 0xad4e4eff, .warning = 0x997028ff, .success = 0x476c50ff}
}
return WidgetPalette.{.background = ifx mode == 1 then 0x111d19ff else 0x202b26ff,
.base = ifx mode == 1 then 0x1c2c25ff else 0x303c33ff, .text = 0xe0e7d9ff,
.selected = 0x71986aff, .selected_text = 0x142217ff, .border = 0x52634fff,
.danger = 0xdd8982ff, .warning = 0xd4b66fff, .success = 0x71986aff}
}
Canvas :: () -> Color { return ColorFromPacked(Palette().background) }
Surface :: () -> Color { return ColorFromPacked(Palette().base) }
Border :: () -> Color { return ColorFromPacked(Palette().border) }
TextColor :: () -> Color { return ColorFromPacked(Palette().text) }
ArtworkShade :: () -> Color {
Load()
return Color.{13, 28, 20, ifx mode == 2 then 18 else ifx mode == 1 then 105 else 60}
}
+9 -4
View File
@@ -8,6 +8,7 @@
#import "kryon/tree"
#import "kryon/tree_input"
#import "kryon/Frame"
#import "kryon/TestDriver"
File :: #import "std/file_linux";
App :: #import "app";
@@ -32,8 +33,11 @@ FindAssets :: () -> bool {
path[index] = 0
if ChangeDirectory(*path[0]) != 0 { return false }
if File.PathExists("assets/art/title.png") { return true }
if !CopyCString("..", link[:]) || ChangeDirectory(*link[0]) != 0 { return false }
return File.PathExists("assets/art/title.png")
for parent: 0..2 {
if !CopyCString("..", link[:]) || ChangeDirectory(*link[0]) != 0 { return false }
if File.PathExists("assets/art/title.png") { return true }
}
return false
}
window_width: s32;
@@ -81,10 +85,10 @@ StartScreen :: () {
DrawFrame :: (session: Session) -> bool {
BeginDesktopFrame()
viewport := DesktopViewport()
pointer := PollPointer()
pointer := TestDriverPointer(session, PollPointer())
TreePointerUpdate(session, pointer)
TreeSecondaryPointerUpdate(session, PollSecondaryPointer())
wheel := DesktopWheelMove()
wheel := TestDriverWheel(DesktopWheelMove())
PointerWheelSend(session, pointer.x, pointer.y, wheel)
if cast(s32)BeginFrame(session, 1, viewport) != 0 { return false }
if App.Frame(session, viewport) != 0 {
@@ -92,6 +96,7 @@ DrawFrame :: (session: Session) -> bool {
return false
}
if cast(s32)EndFrame(session) != 0 { return false }
TestDriverFrame(session)
unused DesktopCursor(session)
return EndDesktopFrame()
}
+3 -2
View File
@@ -33,8 +33,9 @@ MODE_FINISHED :: 4;
MODE_VICTORY :: 5;
MODE_EDITOR :: 6;
MODE_CONTROLS :: 7;
MODE_JOURNEY :: 8;
MODE_LEVELS :: 9;
MODE_LEVELS :: 8;
MODE_SETTINGS :: 9;
MODE_SHOP :: 10;
// A gentle Meadow introduction, reaching the recovered pace at Leafwood.
TickInterval :: (level: s32) -> s64 {
+120
View File
@@ -1,3 +1,123 @@
[wurm_back]
Zpět
---
[wurm_ui_0]
Zpět
---
[wurm_ui_1]
Profil
---
[wurm_ui_2]
Nastavení
---
[wurm_ui_3]
Obchod se vzhledy
---
[wurm_ui_4]
Malá změna postavičky.
---
[wurm_ui_5]
Vzhled
---
[wurm_ui_6]
Jemnější barvy pro tvé dobrodružství.
---
[wurm_ui_7]
Soumrak
---
[wurm_ui_8]
Les
---
[wurm_ui_9]
Šalvěj
---
[wurm_ui_10]
Ovládání
---
[wurm_ui_11]
Tažení
---
[wurm_ui_12]
Směrový ovladač
---
[wurm_ui_13]
Zvuk
---
[wurm_ui_14]
Zapnuto
---
[wurm_ui_15]
Vypnuto
---
[wurm_ui_16]
Máta
---
[wurm_ui_17]
Bobule
---
[wurm_ui_18]
Růže
---
[wurm_ui_19]
Noční sova
---
[wurm_ui_20]
Zlaté jablko
---
[wurm_ui_21]
Průzkumník
---
[wurm_ui_22]
Tvůj první společník
---
[wurm_ui_23]
Hraj 5 hodin
---
[wurm_ui_24]
Dosáhni úrovně 40
---
[wurm_ui_25]
Navštiv waozi.xyz
---
[wurm_ui_26]
Používáš
---
[wurm_ui_27]
Použít
---
[wurm_ui_28]
Koupit
---
[wurm_ui_29]
Navštívit
---
[wurm_ui_30]
Zamčeno
---
[wurm_ui_31]
Zrušit
---
[wurm_ui_32]
Přihlásit se
---
[wurm_ui_33]
Počkej…
---
[wurm_ui_34]
Potvrdit nákup
---
[wurm_ui_35]
Nákup nepotvrzen. Zkontroluj Dew a zkus to znovu.
---
[wurm_ui_36]
Dokonči úrovně a odemkni další
---
[wurm_ui_37]
Připraveno
---
[wurm_ui_38]
Dokončeno
---
[wurm_ui_39]
Vybrat úroveň
---
+120
View File
@@ -1,3 +1,123 @@
[wurm_back]
Zurück
---
[wurm_ui_0]
Zurück
---
[wurm_ui_1]
Profil
---
[wurm_ui_2]
Einstellungen
---
[wurm_ui_3]
Skin-Shop
---
[wurm_ui_4]
Ein kleiner Typwechsel.
---
[wurm_ui_5]
Aussehen
---
[wurm_ui_6]
Sanftere Farben für dein Apfelabenteuer.
---
[wurm_ui_7]
Abend
---
[wurm_ui_8]
Wald
---
[wurm_ui_9]
Salbei
---
[wurm_ui_10]
Steuerung
---
[wurm_ui_11]
Wischen
---
[wurm_ui_12]
Steuerkreuz
---
[wurm_ui_13]
Ton
---
[wurm_ui_14]
An
---
[wurm_ui_15]
Aus
---
[wurm_ui_16]
Minze
---
[wurm_ui_17]
Beere
---
[wurm_ui_18]
Rose
---
[wurm_ui_19]
Nachteule
---
[wurm_ui_20]
Goldapfel
---
[wurm_ui_21]
Entdecker
---
[wurm_ui_22]
Dein erster Begleiter
---
[wurm_ui_23]
5 Stunden spielen
---
[wurm_ui_24]
Level 40 erreichen
---
[wurm_ui_25]
waozi.xyz besuchen
---
[wurm_ui_26]
Ausgewählt
---
[wurm_ui_27]
Auswählen
---
[wurm_ui_28]
Kaufen
---
[wurm_ui_29]
Besuchen
---
[wurm_ui_30]
Gesperrt
---
[wurm_ui_31]
Abbrechen
---
[wurm_ui_32]
Anmelden
---
[wurm_ui_33]
Bitte warten…
---
[wurm_ui_34]
Kauf bestätigen
---
[wurm_ui_35]
Kauf unbestätigt. Dew prüfen und erneut versuchen.
---
[wurm_ui_36]
Schließe Level ab, um weitere freizuschalten
---
[wurm_ui_37]
Spielbereit
---
[wurm_ui_38]
Abgeschlossen
---
[wurm_ui_39]
Level wählen
---
+120
View File
@@ -1,3 +1,123 @@
[wurm_back]
Back
---
[wurm_ui_0]
Back
---
[wurm_ui_1]
Profile
---
[wurm_ui_2]
Settings
---
[wurm_ui_3]
Skin shop
---
[wurm_ui_4]
A little change of character.
---
[wurm_ui_5]
Appearance
---
[wurm_ui_6]
Softer colours for your apple adventure.
---
[wurm_ui_7]
Dusk
---
[wurm_ui_8]
Forest
---
[wurm_ui_9]
Sage
---
[wurm_ui_10]
Controls
---
[wurm_ui_11]
Swipe
---
[wurm_ui_12]
Direction pad
---
[wurm_ui_13]
Sound
---
[wurm_ui_14]
On
---
[wurm_ui_15]
Off
---
[wurm_ui_16]
Mint
---
[wurm_ui_17]
Berry
---
[wurm_ui_18]
Rose
---
[wurm_ui_19]
Night owl
---
[wurm_ui_20]
Golden apple
---
[wurm_ui_21]
Explorer
---
[wurm_ui_22]
Your first companion
---
[wurm_ui_23]
Play for 5 hours
---
[wurm_ui_24]
Reach level 40
---
[wurm_ui_25]
Visit waozi.xyz
---
[wurm_ui_26]
Wearing
---
[wurm_ui_27]
Wear
---
[wurm_ui_28]
Buy
---
[wurm_ui_29]
Visit
---
[wurm_ui_30]
Locked
---
[wurm_ui_31]
Cancel
---
[wurm_ui_32]
Sign in
---
[wurm_ui_33]
Please wait…
---
[wurm_ui_34]
Confirm purchase
---
[wurm_ui_35]
Purchase not confirmed. Check your Dew and retry.
---
[wurm_ui_36]
Finish levels to unlock more
---
[wurm_ui_37]
Ready to play
---
[wurm_ui_38]
Completed
---
[wurm_ui_39]
Choose level
---
+120
View File
@@ -1,3 +1,123 @@
[wurm_back]
Atrás
---
[wurm_ui_0]
Atrás
---
[wurm_ui_1]
Perfil
---
[wurm_ui_2]
Ajustes
---
[wurm_ui_3]
Tienda de aspectos
---
[wurm_ui_4]
Un pequeño cambio de personaje.
---
[wurm_ui_5]
Apariencia
---
[wurm_ui_6]
Colores suaves para tu aventura.
---
[wurm_ui_7]
Atardecer
---
[wurm_ui_8]
Bosque
---
[wurm_ui_9]
Salvia
---
[wurm_ui_10]
Controles
---
[wurm_ui_11]
Deslizar
---
[wurm_ui_12]
Cruceta
---
[wurm_ui_13]
Sonido
---
[wurm_ui_14]
Activado
---
[wurm_ui_15]
Desactivado
---
[wurm_ui_16]
Menta
---
[wurm_ui_17]
Baya
---
[wurm_ui_18]
Rosa
---
[wurm_ui_19]
Búho nocturno
---
[wurm_ui_20]
Manzana dorada
---
[wurm_ui_21]
Explorador
---
[wurm_ui_22]
Tu primer compañero
---
[wurm_ui_23]
Juega 5 horas
---
[wurm_ui_24]
Alcanza el nivel 40
---
[wurm_ui_25]
Visita waozi.xyz
---
[wurm_ui_26]
En uso
---
[wurm_ui_27]
Usar
---
[wurm_ui_28]
Comprar
---
[wurm_ui_29]
Visitar
---
[wurm_ui_30]
Bloqueado
---
[wurm_ui_31]
Cancelar
---
[wurm_ui_32]
Iniciar sesión
---
[wurm_ui_33]
Espera…
---
[wurm_ui_34]
Confirmar compra
---
[wurm_ui_35]
Compra sin confirmar. Revisa tu Dew e inténtalo de nuevo.
---
[wurm_ui_36]
Completa niveles para desbloquear más
---
[wurm_ui_37]
Disponible
---
[wurm_ui_38]
Completado
---
[wurm_ui_39]
Elegir nivel
---
+120
View File
@@ -1,3 +1,123 @@
[wurm_back]
Retour
---
[wurm_ui_0]
Retour
---
[wurm_ui_1]
Profil
---
[wurm_ui_2]
Réglages
---
[wurm_ui_3]
Boutique de styles
---
[wurm_ui_4]
Un petit changement de personnage.
---
[wurm_ui_5]
Apparence
---
[wurm_ui_6]
Des couleurs douces pour votre aventure.
---
[wurm_ui_7]
Crépuscule
---
[wurm_ui_8]
Forêt
---
[wurm_ui_9]
Sauge
---
[wurm_ui_10]
Commandes
---
[wurm_ui_11]
Glisser
---
[wurm_ui_12]
Croix directionnelle
---
[wurm_ui_13]
Son
---
[wurm_ui_14]
Activé
---
[wurm_ui_15]
Désactivé
---
[wurm_ui_16]
Menthe
---
[wurm_ui_17]
Baie
---
[wurm_ui_18]
Rose
---
[wurm_ui_19]
Oiseau de nuit
---
[wurm_ui_20]
Pomme d’or
---
[wurm_ui_21]
Explorateur
---
[wurm_ui_22]
Votre premier compagnon
---
[wurm_ui_23]
Jouez pendant 5 h
---
[wurm_ui_24]
Atteignez le niveau 40
---
[wurm_ui_25]
Visitez waozi.xyz
---
[wurm_ui_26]
Équipé
---
[wurm_ui_27]
Équiper
---
[wurm_ui_28]
Acheter
---
[wurm_ui_29]
Visiter
---
[wurm_ui_30]
Verrouillé
---
[wurm_ui_31]
Annuler
---
[wurm_ui_32]
Se connecter
---
[wurm_ui_33]
Patientez…
---
[wurm_ui_34]
Confirmer l’achat
---
[wurm_ui_35]
Achat non confirmé. Vérifiez vos Dew et réessayez.
---
[wurm_ui_36]
Terminez des niveaux pour en débloquer
---
[wurm_ui_37]
Disponible
---
[wurm_ui_38]
Terminé
---
[wurm_ui_39]
Choisir un niveau
---
+120
View File
@@ -1,3 +1,123 @@
[wurm_back]
Kembali
---
[wurm_ui_0]
Kembali
---
[wurm_ui_1]
Profil
---
[wurm_ui_2]
Pengaturan
---
[wurm_ui_3]
Toko tampilan
---
[wurm_ui_4]
Sedikit perubahan karakter.
---
[wurm_ui_5]
Tampilan
---
[wurm_ui_6]
Warna lembut untuk petualanganmu.
---
[wurm_ui_7]
Senja
---
[wurm_ui_8]
Hutan
---
[wurm_ui_9]
Sage
---
[wurm_ui_10]
Kontrol
---
[wurm_ui_11]
Geser
---
[wurm_ui_12]
Tombol arah
---
[wurm_ui_13]
Suara
---
[wurm_ui_14]
Aktif
---
[wurm_ui_15]
Nonaktif
---
[wurm_ui_16]
Mint
---
[wurm_ui_17]
Beri
---
[wurm_ui_18]
Mawar
---
[wurm_ui_19]
Burung malam
---
[wurm_ui_20]
Apel emas
---
[wurm_ui_21]
Penjelajah
---
[wurm_ui_22]
Teman pertamamu
---
[wurm_ui_23]
Main selama 5 jam
---
[wurm_ui_24]
Capai level 40
---
[wurm_ui_25]
Kunjungi waozi.xyz
---
[wurm_ui_26]
Dipakai
---
[wurm_ui_27]
Pakai
---
[wurm_ui_28]
Beli
---
[wurm_ui_29]
Kunjungi
---
[wurm_ui_30]
Terkunci
---
[wurm_ui_31]
Batal
---
[wurm_ui_32]
Masuk
---
[wurm_ui_33]
Tunggu…
---
[wurm_ui_34]
Konfirmasi pembelian
---
[wurm_ui_35]
Pembelian belum terkonfirmasi. Periksa Dew dan coba lagi.
---
[wurm_ui_36]
Selesaikan level untuk membuka yang lain
---
[wurm_ui_37]
Siap dimainkan
---
[wurm_ui_38]
Selesai
---
[wurm_ui_39]
Pilih level
---
Loaded 100 of 137 files, more files were not shown because too many files have changed in this diff. Show more