feat(samples): add Pong and refresh test projects

Add the Studio-created Pong project with a short match against CPU, pause,
score and restart controls. Refresh legacy samples for current PBS input,
RGBA colors and preloaded assets while preserving existing identities.

Run convenience launchers against the current build and configured runtime;
keep local caches and native assistant configuration ignored.

Validation: shell syntax, JSON, registry identity/image preservation and
whitespace checks passed. Pong ran in Studio as confirmed by the user.
Build/pack/runtime validation of the refreshed samples remains pending.
This commit is contained in:
2026-11-05 17:15:17 +00:00
parent bf31184d4d
commit b2410e6edc
17 changed files with 479 additions and 72 deletions
+35
View File
@@ -0,0 +1,35 @@
# Pong
A small single-player Pong for Prometeu, written in PBS. You are the mint paddle
on the left; the CPU is coral on the right. First to five points wins.
## Play through Studio
Open this project in Prometeu Studio, select your runtime installation in the
project settings, build in Shipper and use Debug Play. The same saved sources
can be built and played through the project's DEV/MCP integration.
| Control | Action |
| --- | --- |
| Up / Down | Move your paddle; opposing directions cancel |
| A / Start | Start a match, skip the serve countdown or play again |
| Start / B during a rally | Pause |
| A / Start while paused | Resume the same rally |
| B while paused or after a match | Return to the main menu |
These are logical gamepad buttons; the desktop host supplies their keyboard or
controller bindings. Use the edge of your paddle to change the return angle.
The CPU moves more slowly and starts tracking when the ball enters its half.
## Source
`src/main.pbs` separates input, state transitions, simulation and rendering.
The game uses a fixed 480×270 field, quarter-pixel integer coordinates and four
small simulation substeps per logical frame. Ball speed is capped so it cannot
jump through a paddle. It uses the existing `@sdk:input`, `@sdk:gfx` and
`@core:color` modules; no external art, audio, save system or engine changes are
required for this first version. Every new match clears scores and positions.
Studio owns `build/`, local `.studio/` settings and the assistant connection.
Keep those generated/local files out of version control. This initial game is
the first incremental result of AGD-0088, not the full platform qualification.