art: new ingame renderer (sky, parallax, terrain, tanks, effects)

- lib/src/game/art.dart draws the scene with canvas primitives: dusk sky with a
camera-relative sun, three parallax ridges (far = lighter), soil with rim
light and irregular rocks, tanks with hull/turret/barrel/tracks and a
health bar in team colour, comet trail, impact with fireball/ring/sparks and
a dotted aim hint.
- Flutter tokens come from the generated palette, so app UI and artwork match.
- performance was part of the job: the first version ran at 31-40 % jank. An
A/B against the old renderer (0-6.5 %) proved it was the new scene, then the
causes were removed one by one: full-screen radial vignette (now edge bands),
per-ridge gradient shaders and per-frame paints (flat fills, cached paints),
two clipped gradient rects under the surface, terrain redrawn every frame (now
a ui.Picture per terrain version) and mask-filter blurs.
- result on the Redmi Note 10: 60.0 fps, 0.0-0.8 % jank.
- goldens regenerated and reviewed; store screenshots re-captured and renamed
to match their content (01 gameplay, 02 projectile, 03 crater, 04 settings).
- docs/art-direction.md: phase 2 section with the performance table.
This commit is contained in:
2026-10-25 02:59:20 +01:00
parent 00c09ad01b
commit fb85915418
15 changed files with 725 additions and 135 deletions
+6
View File
@@ -13,6 +13,9 @@ Alle nennenswerten Änderungen an diesem Projekt. Format nach
- (app) Zahnrad-Button mit Semantik-Label „Einstellungen“ und größerer Touch-Fläche (Barrierefreiheit)
### Fixed
- (game) Renderer wieder bei 60 fps / 0 % Jank: Vollbild-Gradient (Vignette), Gradient je
Bergrücken, zwei geclippte Gradient-Rects und MaskFilter-Blur entfernt, Boden als
`ui.Picture` pro Terrain-Version gecacht
- (app) HUD blieb auf dem Initialwert (100 HP), weil `onLoad` waehrend des ersten Builds publizierte
- (app) Top-Level-`Stopwatch` startete erst beim ersten Zugriff (Dart initialisiert Top-Level-Finals lazy) - das Bootlog zeigte 0 ms
@@ -20,6 +23,9 @@ Alle nennenswerten Änderungen an diesem Projekt. Format nach
- (build) Version 0.7.2 (9): Neues Icon/Splash/Feature-Graphic (generierte Art), Splash-Kette; signiertes App Bundle mit Upload-Keystore
### Added
- (game) Ingame-Grafik neu: Himmel mit kamerarelativ platzierter Sonne, drei parallaxe
Bergrücken, Boden mit Verlauf/Schattenlippe/Felsbrocken, Panzer mit Kette/Turm/Rohr,
Kometenschweif, Explosion mit Funken, Zielhilfe (`lib/src/game/art.dart`)
- (art) Generierte Marken-Grafik: `tools/art/` (SVG-Master + rsvg), Adaptive Icon inkl.
Monochrom, Splash-Lockup, neues Feature-Graphic, Design-Tokens nach
`app/lib/src/ui/palette.dart`; Doku in `docs/art-direction.md`