lesson added
This commit is contained in:
+84
@@ -0,0 +1,84 @@
|
||||
---
|
||||
id: LSN-0101
|
||||
ticket: pong-playable-test-project
|
||||
title: Pong as the First Playable Studio Game
|
||||
created: 2026-11-05
|
||||
tags: [studio, pbs, game, pong]
|
||||
---
|
||||
|
||||
## Context and result
|
||||
|
||||
Owner: **studio/project PBS**. DSC-0101 / DEC-0085 / PLN-0163 delivered
|
||||
[Pong](../../../test-projects/pong/README.md) in a project created by the user
|
||||
through Studio. It is a bounded first game originating from the broader AGD-0088
|
||||
discussion. After this delivery, the user explicitly abandoned AGD-0088 / DSC-0086
|
||||
on 2026-11-05. Its unfinished qualification matrix is no longer active work;
|
||||
additional games or renewed qualification require a separate request and discussion.
|
||||
|
||||
The implementation is in Studio commit `b2410e6e`. It preserves app ID 1508740446
|
||||
and supplies one player against a slower deterministic CPU, first to five points,
|
||||
with menu, serve, play, pause and result states. Existing Color/Gfx and Pad/Button
|
||||
APIs provide rendering and input. It needs no authored art, audio, persistence,
|
||||
engine change or runtime repository write.
|
||||
|
||||
## Keep the first game small and inspectable
|
||||
|
||||
The [saved source](../../../test-projects/pong/src/main.pbs) separates input,
|
||||
state transitions, simulation and drawing. The 480×270 display has an explicit
|
||||
court boundary. The player moves four pixels per tick; the CPU moves two and
|
||||
tracks the ball only after it enters the CPU's half.
|
||||
|
||||
Ball positions use integer quarter pixels. Four bounded substeps advance one game
|
||||
tick; the maximum horizontal movement per substep is 1.75 pixels, below the
|
||||
eight-pixel paddle width. Collision checks require an incoming ball, restore its
|
||||
position outside the paddle and choose a bounded outgoing angle from the impact
|
||||
offset. A goal returns immediately after scoring, preventing a second score in
|
||||
the same tick.
|
||||
|
||||
One state branch executes per frame. Held Up/Down move the paddle; pressed
|
||||
A/Start/B drive transitions. Pausing returns before physics. Resume restores the
|
||||
prior phase. A new match clears both scores and resets positions; reaching five
|
||||
enters the result state. These properties can be reviewed directly without an
|
||||
additional game framework.
|
||||
|
||||
## Execution evidence and its limits
|
||||
|
||||
Studio saved-source diagnostics returned no diagnostics and a Studio build
|
||||
succeeded during implementation. That access used an adapter script, which the
|
||||
user rejected as an adequate test of native Studio tooling. A working transport
|
||||
does not establish native tool registration or complete Studio authoring coverage.
|
||||
The acquired agent task was released; the agent started no headless game process.
|
||||
|
||||
The user's first Play attempt reported a missing runtime setting. After updating
|
||||
Studio, the user reported Pong running successfully. No runtime code fix was
|
||||
needed. Housekeeping also observed a complete newer build at 17:12:51 UTC on
|
||||
2026-11-05. Its hashes are retained in the shared
|
||||
[build observation](../DSC-0102-sample-project-sdk-refresh/evidence/build-artifacts.json).
|
||||
|
||||
The user subsequently identified these deliveries as already executed and
|
||||
concluded. This closes the first-game delivery. Pause, scoring and reset were
|
||||
reviewed in source; no individual live input replay, full-match trace, captured
|
||||
frame or native MCP authoring qualification is claimed. The user's subsequent
|
||||
abandonment of the parent discussion preserves these evidence limits and the
|
||||
completed Pong delivery without carrying forward the unfinished qualification
|
||||
as active work.
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- Treating all platform capabilities as prerequisites for the first small game.
|
||||
- Conflating a successful Studio build, a user Play report and a scripted runtime
|
||||
trace. Each establishes a different part of the result.
|
||||
- Replacing unavailable native tools with a custom transport and describing that
|
||||
route as native connector validation.
|
||||
- Reading an old draft handoff as the final state after the user has built and
|
||||
played the project. Reconcile saved artifacts and later feedback before cleanup.
|
||||
- Restarting a rally when resuming or applying one input edge to multiple states.
|
||||
|
||||
## References
|
||||
|
||||
- Retired delivery artifacts: DSC-0101, DEC-0085 and PLN-0163.
|
||||
- [Controls and Studio workflow](../../../test-projects/pong/README.md).
|
||||
- [Source exports](../../../test-projects/pong/src/mod.barrel).
|
||||
- [Sample compatibility refresh](../DSC-0102-sample-project-sdk-refresh/LSN-0102-refreshing-samples-without-changing-their-identity.md).
|
||||
- [Sprite animation and shared authoring](../DSC-0098-pbs-core-sprite-animation/LSN-0100-sprite-animation-and-shared-authoring.md)
|
||||
is a separate capability; this primitive-rendered game does not qualify it.
|
||||
Reference in New Issue
Block a user