54 Commits
Author SHA1 Message Date
waozi a14d8a9ad9 Pin Game2D dependencies to verified Gitea objects 2026-11-20 04:28:38 -03:00
waozi 417141f028 Align Game2D with the shared Kryon pin 2026-11-20 00:07:59 -03:00
waozi ef23109691 Align the Kryon and Ziran dependency revisions 2026-11-19 14:34:51 -03:00
waozi ff8a0761f3 Use the aligned published Kryon and Ziran dependencies
Resolve the validated upstream image/cache, asset digest and ARM fixes without local overrides.
2026-11-18 20:17:37 -03:00
waoziandClaude Opus 5.5 fcacb49c1e Pin Kryon 0.6.0 and Ziran 0.7.0
Kryon v0.6.0 (8d5d2e75) on Ziran 0.7.0 (55b01768) is the released base
every root shares, so this package moves to it with the rest of the set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 15:57:30 -03:00
waozi 8cca2a0169 Send Game2D shapes to SDL in batches
Every shape was its own SDL_RenderGeometry call, and Kasaival draws about
4,500 a frame. SDL merges them into few GPU draws, but its validation,
vertex copy and command upkeep per call dominated frames on phones. Shapes
that share a texture and blend mode now queue and go to SDL as one call.
Anything that draws otherwise, switches the target or clip, changes or
frees a queued texture, or reads the frame flushes the queue first. Each
shape is still checked as SDL checks a call, so a bad one drops alone.
2026-11-18 13:34:07 -03:00
waoziandClaude Opus 5.5 96b21e0e45 Pin Kryon 1774e550 with the page event bridge kept to web targets
Kryon 1774e550 guards page_events to web targets on top of 97207e63's
canvas and pixmap picture hooks, so native source checks pass again.
Breeze's whole graph moves to it together, keeping one Kryon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 13:07:27 -03:00
waoziandClaude Opus 5.5 1da100aed1 Pin Kryon 97207e63 with its canvas and pixmap picture hooks
Kryon 97207e63 exports canvas_os and pixmap_image_owner, so apps serve their
own pictures in the browser and on Android, and renders Android at native
size. Breeze's whole graph moves to it together, keeping one Kryon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 13:02:53 -03:00
waozi c0275ebbea Describe the vsync pacing change without a wrong cause
The phones' low frame rates were steady throughput limits, not frames
slipping a vsync, so the entry now says only what changed.
2026-11-18 12:49:51 -03:00
waozi 2247cafb5f Let vsync pace Game2D frames at the display's rate
EndDrawing waited for the target frame rate after a vsync present had
already waited for the display, so each frame slipped to the next vsync:
a Pixel 4a drew 30 fps and a Moto e6 play 18. With vsync on and a target
at the display's refresh, the present alone paces the frame.
2026-11-18 12:38:30 -03:00
waozi 63f007af75 Run Game2D/Sdl on Android under SDL2's activity
With PLATFORM_ANDROID, InitWindow(0, 0) opens a window that fills the
display, and pictures decode as PNG in Ziran instead of through Kryon's
Android decoder, which needs Kryon's own activity.
2026-11-18 12:09:24 -03:00
waozi c6f2bf10fe Draw Game2D text with FreeType on Windows and Android
sdl_text_freetype renders the lettering with FreeType in the system's
sans-serif face (or GAME2D_FONT), with FreeType's long fields 32 bits on
Windows, so a static MinGW build links without Pango or Cairo. A Linux
test drives the backend directly.
2026-11-18 11:56:43 -03:00
waozi c60edf2a72 Read browser-decoded pictures in Game2D/Sdl's page build
With --use-preload-plugins the browser decodes a page's preloaded PNGs
before main; LoadImage and LoadTexture take those pixels through
emscripten_get_preloaded_image_data and decode in Ziran only otherwise.
Neon's 23 MB of sprite sheets no longer block the page at startup.
2026-11-18 11:40:23 -03:00
waozi de3cdac37c Declare malloc and memcpy with size_t in Game2D/Sdl
The 64-bit size parameters matched the desktop but not wasm32, where the
browser build trapped on a signature mismatch at its first allocation.
2026-11-18 11:11:37 -03:00
waozi 05db75c381 Build Game2D/Sdl for the browser
With PLATFORM_WEB, Emscripten's SDL2 port opens the canvas window, PNG
pictures decode in Ziran, text draws on the page's 2D canvas through
std/web (sdl_text_web), the browser paces frames instead of a busy wait,
and WebAudio starts once the player presses a key or button. The desktop
text moved unchanged to sdl_text_pango; sdl_text selects the backend.
2026-11-18 11:01:42 -03:00
waozi 56d19eca78 Pin Kryon 6816ed78 with its Cairo sliver fix on Ziran 0c4465a4 2026-11-18 10:49:11 -03:00
waozi 963c227b0e Import Kryon's public widget modules in the shared controls
Each widget module is imported once, with its alias, so consumers that
enforce Kryon's exports build cleanly.
2026-11-18 02:08:57 -03:00
waoziandClaude Opus 5.5 944ae7fabd Pin Kryon b5a61b37 with its Android frame pacing
Kryon b5a61b37 paces Android frames from retained paint changes, keeps
smooth indexed scene geometry on GLES and full shadow filtering without
hardware PCF, so Breeze's graph shares one Kryon for its Android host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 01:55:21 -03:00
waozi 50ced1ffaa Draw Game2D text with Pango and Cairo directly
Game2D/Sdl imported Kryon's Cairo window raster for its text, which also
exports the Raster* functions Kryon widgets paint through. A game that
paints those widgets with Game2D (Kasaival) then had every one defined
twice. The new sdl_text module lays out and rasterizes the lettering
itself, and the SDL test defines RasterText to keep it that way.
2026-11-18 01:48:59 -03:00
waozi 668a520bdc Set and clear the resizable window state in Game2D/Sdl
SetWindowState, ClearWindowState and IsWindowState make an open window
resizable or fixed, as Kasaival does once it boots.
2026-11-18 01:38:26 -03:00
waoziandClaude Opus 5.5 a365c8a6a3 Pin Kryon 8e44f3f8 with its indexed-mesh and animation fixes
Kryon 8e44f3f8 keeps indexed scene geometry relative to each mesh and
keeps desktop animations presenting without input. Practices already
builds on it, so Breeze's whole graph can share one Kryon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 01:19:33 -03:00
waozi 29e71956d4 Read gamepads and load pictures and music from bytes in Game2D/Sdl
Games get SDL game controllers with raylib's button and axis numbering, a
fullscreen toggle that scales the game at its own size, the window icon,
GenImageColor, LoadImage, PNG bytes through LoadImageFromMemory and music
from bytes through LoadMusicStreamFromMemory. The SDL surface test covers
each from source and saved IR.
2026-11-18 01:15:14 -03:00
waozi 143803f490 Replace the raylib game surface with SDL2 on Kryon
Game2D/Sdl is a game's window: SDL2 draws it with its accelerated
renderer, or SDL's software renderer without a GPU, and games keep the
calls they use for windows, frames, shapes, textures, render targets,
blending, scissoring, the 2D camera, text, keyboard, mouse and touch
input, timing, random values, sounds and music. Pictures decode through
Kryon's image_pixels, text draws with Kryon's text raster and audio mixes
in Ziran's std/audio, so Game2D no longer needs raylib or its version.
Render textures keep drawing upright with a negative source height.
SetFixedFrameTime steps headless and replayed runs deterministically,
replacing the RaylibNull link-time stand-in.

Shapes draw through a one-pixel white texture as centre-fanned triangles:
SDL's software renderer ignores additive blending for untextured
geometry and for the two-triangle rectangles it copies as rectangles.

tests/sdl_surface_test.sh checks drawing, input, timing and audio from
source and saved IR on a private Xvfb with SDL's software renderer and
dummy audio.
2026-11-17 23:15:37 -03:00
waozi 106fe78c6d Pin Kryon 3627ea8a with its Ziran 7fbc8152
Kryon 3627ea8a removes raylib, so the lock drops raylib, dr_libs and stb and
moves avif and audio to the pins that Kryon declares. Plot, Game2D, CSS,
Entity and Apps move to this pair together, so apps that combine them
share one Kryon.

Game2D's Raylib module binds to raylib's C ABI, but this Kryon no longer
selects a raylib version, so the module's ABI comparison runs only when
RAYLIB_HEADER_DIR names a raylib source.
2026-11-17 22:04:02 -03:00
waoziandClaude Opus 5.5 59ff268bc8 Pin Kryon 3f724419 with its Ziran e0367fa9
Kryon 3f724419 builds its vendored codecs with CMake 4 and pins Ziran
e0367fa9, which includes the Wasm record-copy fix (6a066abd) that
hosted bundles need in the browser. CSS, Plot, Game2D, Entity, Apps,
Auth and Workbook move to this pair together, so consumers keep one
Kryon copy.

Local tests: ziran lock and the package's own suite through build-queue,
on HEAD plus this change (other uncommitted work set aside, no local
overrides).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 00:28:40 -03:00
waoziandClaude Opus 5.5 572c6cb673 Pin Kryon 028d42cb with its Ziran ebd19223
Kryon 028d42cb adds Escape dismissal for modals independent of outside
clicks, desktop camera offsets, native frame snapshots
(FramePreviousSnapshot) and desktop image services; it still pins Ziran
ebd19223. CSS, Plot, Game2D, Entity, Apps and Auth move to it together,
so consumers keep one Kryon copy.

Local tests: ziran lock and the package's own suite through build-queue,
on HEAD plus this change (other uncommitted work set aside, no local
overrides).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 23:45:41 -03:00
waoziandClaude Opus 5.5 5b8cfc5397 Pin Kryon 9052a642 and its Ziran ebd19223
Kryon 9052a642 applies desktop camera offsets to Cairo painting and
pixel snapping; ebd19223 is the Ziran it pins. CSS, Plot, Game2D, Entity,
Apps and Auth move to this pair together, so consumers keep one Kryon
copy.

Local tests: ziran lock and the package's own suite through build-queue,
on HEAD plus this change (other uncommitted work set aside, no local
overrides).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 21:28:40 -03:00
waozi 609e24d727 Pin Kryon 0.4.0 release commit 2026-11-16 19:39:36 -03:00
waozi 5b8007aefa Align Kryon and Ziran 0.6.0 dependency pins 2026-11-16 17:29:57 -03:00
waozi 0b16a5be14 Pin Kryon b9aed758 and its Ziran toolchain
Apps that style with the css package lock Kryon master; Game2D on the
same commit keeps those apps on one Kryon.
2026-11-07 16:14:02 -03:00
waozi a9c85df73f Use Kryon browser shortcut modifier snapshots 2026-11-03 09:42:15 -03:00
waozi 8b5a989dea Align game controls with console host Kryon 2026-11-03 01:46:35 -03:00
waozi ce85309d69 Pin Kryon Android file opening fix 2026-11-02 10:27:18 -03:00
waozi fd4541da5b Align Kryon primitives for embedded Choano hosts 2026-10-31 12:02:02 -03:00
waozi bf3f117da3 Use Kryon nested palette restoration for game controls 2026-10-31 02:40:35 -03:00
waozi 42db0b20e0 Expose swipe step and tap events alongside retained direction 2026-10-30 19:23:06 -03:00
waozi d32e4b606e Show a selectable swipe control preview 2026-10-30 15:20:52 -03:00
waozi c5e6b73a19 Make the floating touch stick visible on bright game scenes 2026-10-29 21:55:05 -03:00
waozi dd018ecb0b Steer in any direction with a floating touch stick
GameStickSteer turns a held press into a unit heading from its anchor
towards the finger, drags the anchor past its reach and reports taps.
The touch indicator now draws the stick's ring, finger and heading.
2026-10-29 18:55:09 -03:00
waozi 9706d237e8 Show where a swipe began, the finger and its heading
GameSwipeIndicator draws a ring where the press began, a dot under the
finger and a pip towards the heading, so touch steering is visible.
2026-10-29 18:33:18 -03:00
waozi fd0b86eb60 Preserve parent navigation through nested control settings 2026-10-29 17:04:37 -03:00
waozi 7ef27a1992 Add reusable game navigation and control choice 2026-10-29 16:59:32 -03:00
waozi cee04692f3 Write the behavior bundle as .zx on the current toolchain
The portable bundle has been .zx since Ziran's permanent format
cutover, but the test still named its output .zib and the locked
toolchain predated the release, so it wrote old-format bytes under
the old name. Update the lock to the current Ziran and Kryon
masters, drop the C++ target that Ziran has removed from the Raylib
compile check, and name and run the bundle as .zx.
2026-10-26 00:04:40 -03:00
waozi bad2caaa84 Repin packages to the rewritten history 2026-10-19 11:51:54 -03:00
waozi fcc06f2df4 Expose the vsync window flag and monitor refresh rate 2026-10-02 21:25:13 -03:00
waozi 9a9c72f7c7 test: run Game2D bundles with the selected toolchain 2026-10-02 13:09:50 -03:00
waozi 396f1efedb Use the lowercase kryon package and canonical toolchain paths 2026-09-30 17:29:57 -03:00
waozi 0c97090fb2 Add the RaylibNull host and file/texture adapter calls
RaylibNull is a link-time stand-in for libraylib: the same Raylib
adapter's foreign surface as no-op #program_export definitions with a
real CLOCK_MONOTONIC clock, a fixed 1/60 frame time, and the seeded LCG
headless builds need for reproducible autoplay runs. Games link it
instead of libraylib to run without a window or GPU.

The Raylib adapter gains FileExists, UpdateTexture, LoadTextureFromImage
wrappers and the TEXTURE_FILTER_BILINEAR constant so native video
playback (decode into a texture) can be written entirely in Ziran.
2026-09-27 13:58:36 -03:00
waozi 6add5dbafe Pin Game2D to native Ziran resolver 2026-09-27 10:43:25 -03:00
waozi dcff3885dd Document Ziran selected Kryon backend 2026-09-27 01:39:22 -03:00