gameplay: dosable power and a playable landscape layout

Two findings from actually playing:

1. Shot power was hard to set and impossible to read. It was derived from the
   absolute distance to the tank (250 world px = 100 %) and only shown through
   the size of the aim dots, so direction and power changed together.
   Aiming is now a slingshot: the drag length sets the power (260 px = 100 %),
   the drag direction sets the shot direction, with a 6 px dead zone. Feedback:
   a dashed rubber band to the finger, a charge bar under the active tank with
   quarter marks, and a HUD row with angle plus a power bar and percentage.

2. Landscape was unplayable. The camera used zoom = max(fitHeight, fitWidth),
   so a wide view zoomed in and cropped the world top and bottom - and the
   camera never panned vertically, which put both tanks off-screen. The camera
   now always fits the world height, centres the world when the view is wider,
   and the background continues into the letterbox (ridges tiled, ground edge
   extended, vignette follows the visible range). Controls and paddings are
   compact in landscape.

- new golden test landscape.png (840x420) shows both tanks and guards the bug;
  18 tests green.
- verified on the device in both orientations: shots fire, measured power 47 %
  and 54 % mid-gesture, no RenderFlex overflow in logcat, perf.sh still
  60.0 fps / 0.0 % jank (p90 16.9 ms).
- store screenshots re-captured with the new HUD and re-framed to 16:9;
  play-console.md release notes and "how to play" updated for 0.9.1.
- release 0.9.1 (14).
This commit is contained in:
2026-10-25 15:14:02 +01:00
parent 77226b1469
commit 254e0d2675
24 changed files with 977 additions and 73 deletions
+8
View File
@@ -13,6 +13,14 @@ Alle nennenswerten Änderungen an diesem Projekt. Format nach
- (app) Zahnrad-Button mit Semantik-Label „Einstellungen“ und größerer Touch-Fläche (Barrierefreiheit)
### Fixed
- (game) Querformat war unspielbar: die Kamera zoomte auf die Ansichtsbreite und schnitt die Welt
oben/unten ab, ohne vertikales Pannen - beide Panzer lagen außerhalb des Bildes. Jetzt passt die
Kamera immer die Welthöhe ein, zentriert bei breiter Ansicht und der Hintergrund (Himmel, Bergketten,
Boden) läuft in die Ränder weiter. Neuer Golden-Test `landscape.png` hält das fest.
- (game) Schusskraft war kaum zu dosieren und nicht ablesbar: Zielen läuft jetzt als Zurückziehen
(Zuglänge = Kraft, 260 px = 100 %), mit Gummiband zum Finger, Kraftbalken unter dem Panzer und
Prozentanzeige samt Winkel im HUD
- (ui) Bedienelemente und Abstände im Querformat kompakter (kein Overflow, per logcat geprüft)
- (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