PENGUIN BOWL 1.1.1 -- native RISC OS 5 Wimp game
Author: OakAcorn Software
Copyright OakAcorn Software, 25 October 2026.

INSTALL
Extract PenguinBowl-riscos5.zip,a91 ON RISC OS using SparkFS or another unzipper
that preserves Acorn file types. Open the extracted directory and double-click
!PengBowl. No compiler or Python installation is needed to play.
Use a desktop mode of at least 640 x 512 pixels at standard desktop scaling.

PLAY
Ten scarf-wearing penguins stand at the far end of an icy lane. Adjust AIM
and POWER, then click BOWL or press Space/Return. They topple and slide when
hit, and can knock into one another. Complete ten frames for your final score.

Left / Right      Move the aim left / right
Up / Down         Increase / decrease power
Space or Return   Bowl; skip the result pause; start again after game over
N                 New game
P                 Pause or resume
S                 Sound on / off
F1                Open the Help file

Click or drag either slider. Clicking the lane also adjusts aim. Close the
window to suspend the game; click its penguin-and-ball icon to return.
Menu-click on the icon or game window for Info, New game, Pause/Resume,
SFX Off/On, Help and Quit. Info uses traditional Wimp fields and credits OakAcorn Software.

SCORING
Ten-pin bowling rules: a strike earns 10 plus your next two rolls; a spare
10 plus your next roll. Unresolved totals stay blank until bonuses are known.
X = strike, / = spare, - = no pins. Frame ten awards two extra rolls for a
strike or one for a spare. A perfect game scores 300. See !Help for details.

SOUND
Includes synthesised ice rolling, ball launch, penguin impacts, strike and
spare fanfares, a missed-roll sound and a final-score tune. The samples are
loaded once and played through two SharedSound channels. S toggles sound.
SharedSound and configured 16-bit sound are required for audio; the game
runs silently and shows "SFX unavailable" when these facilities are absent.
Closing or pausing the game stops its sounds. Quitting releases its handlers.
The effects and pixel artwork are original, generated by the included Build.

SOURCE AND REBUILD
Main        Wimp windows, icon bar/menu, input, rendering and sound integration
Game        Bowling rules, scoring, turn progression and collision model
Build       Standalone Python 3 builder; run: python3 Build
SoundARM    Listing of the generated ARM SharedSound callback
SoundIndex  Offsets and sizes of the stereo 11025 Hz signed 16-bit PCM clips
!PengBowl.Source    Combined plain-text BASIC listing, generated by Build
!PengBowl.!RunImage Tokenised BBC BASIC V program, ready to run
!PengBowl.Sprites   Native 4bpp sprite area with palettes and masks
!PengBowl.!Sprites  Native icon bar/application sprite

Edit Main or Game, then rebuild. Build generates the combined source, native
BASIC tokens, sprites, sound bank, ARM callback and Acorn-metadata ZIP using
only the Python 3 standard library. Source BASIC line numbers are ten times
the physical line number in !PengBowl.Source, for locating reported errors.

VALIDATION
Game logic was executed in a BBC BASIC-compatible interpreter: 2,126 scoring
prefixes, full games, tenth-frame rack changes, pause behaviour and 406 aim/
power collision simulations. Both text source and Acorn-tokenised game tests
were checked. Native sprite structure, ZIP file types, audio bank boundaries
and the ARM audio callback were also checked. Graphics layout was inspected
in a reconstruction using the generated artwork.
This build has not been run in a full RISC OS desktop here; the Wimp display
and actual audio-device output still need confirmation on your machine.

VERSION 1.1 - ANIMATION FLICKER FIX
All graphics and text are composed into a persistent 32-bit sprite before
being copied to the visible Wimp rectangles. The main window has background
colour 255 so the Wimp does not blank it first. Overlap and screen clipping
remain managed by Wimp_RedrawWindow / UpdateWindow / GetRectangle.
The renderer saves and restores the full VDU context, including on errors.
It refreshes colour translation and scaling after palette / mode changes.
Custom scene text is rendered into the same buffer with the native system
font; Info windows and desktop menus remain standard Wimp controls.
The application now requests a 2 MB Wimp slot.

The rendering regression checks execute the actual text and tokenised BASIC
render routines in Matrix Brandy with native SWI/VDU operations intercepted.
They check frame caching, three visible rectangles, a fully obscured window,
scrolled window coordinates, three display scaling/translation cases, and
restoration of screen output after an injected mid-frame error. These checks
verify the rendering protocol; they do not emulate the native display driver.
Please quit the old version before replacing the whole application folder.

PUBLISHER AND LICENCE
Copyright (c) 2026 OakAcorn Software.
The MIT licence covers original code, documentation and artwork, and other
original contributions to the extent of the rights held by the publisher
and contributors. The full licence is in the License file inside the app.
The OakAcorn name and logo identify the publisher. Trademark rights remain
with their respective owners.
