feat(studio): adopt the 640x360 native graphics contract
Update the new JavaFX UI's frame sizing and pointer cancellation while preserving zoom and scrolling. Adapt Pong, Fragments and the camera scene to the native viewport, and update exact visual references and IPC fixtures. Build and run all three examples against qualified installed runtimes. Observe an actual Pong paddle collision and verify native frame captures. Retain the qualification evidence generated for the tested native bundles. Validated by the complete verify and desktop integration gates, including the existing 30-second Play measurement and 20 Play/Stop cycles. Work: WRK-0016 / DEC-0001 / PLN-0001 Commit and push explicitly authorized by the user after completion.
This commit is contained in:
@@ -11,6 +11,8 @@ declare global camera_x: int = 0;
|
||||
declare global camera_mult: int = 1;
|
||||
declare const MAX_FRAMES: int = 4;
|
||||
declare const CAMERA_SPEED: int = 1;
|
||||
// The base scene is 90 tiles of 8 pixels; viewport is the fixed native 640.
|
||||
declare const CAMERA_MAX_X: int = 90 * 8 - 640;
|
||||
|
||||
[Init]
|
||||
fn init() -> void
|
||||
@@ -56,7 +58,7 @@ fn frame() -> void
|
||||
}
|
||||
|
||||
camera_x = camera_x + (camera_mult * CAMERA_SPEED);
|
||||
if (camera_x >= 240 || camera_x <= 0)
|
||||
if (camera_x >= CAMERA_MAX_X || camera_x <= 0)
|
||||
{
|
||||
camera_mult = -1 * camera_mult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user