PLAYER 100
FIRST TO 11SERVE
PREDICTIVE AI00

Ball ready. Press Space or Serve Ball.

PLAYER 1
PLAYER 2 (ENABLE BELOW)

W / S: LEFT PADDLE · ARROWS: RIGHT PADDLE · SPACE: SERVE / RESUME · P: PAUSE · N: STEP · R: RESET

ARCADE VIDEO LOGIC

PONG
PHYSICS LAB

Play the rally, then inspect the math. Change one rule at a time to see how fixed ticks, paddle impact, prediction, and a raster signal cooperate.

TICK0FIXED ΔT16.67 msRALLY0BALL SPEED0.0 px/sPOSITION400.0, 240.0
COLLISION LAB

What changed at the paddle?

AWAITING HIT
incoming velocity + impact offset + paddle motion → outgoing angle
HIT SIDE
IMPACT OFFSET
IN SPEED
OUT SPEED
BASE ANGLE
SPIN
OUT ANGLE
EVENT
Ball ready. Press Space or Serve Ball.
OPPONENT PREDICTOR

Aim for the future intercept

AI ACTIVE
CURRENT BALL Y240.0PROJECTED YNO APPROACHAI TARGET Y240.0

The ball is moving away from the right paddle, so the AI waits near center until a useful intercept exists.

VIDEO LOGIC

Scan one horizontal raster line

Y = 240

The display sweeps left to right. Paddle, ball, and center-net channels assert a bright signal only when the beam crosses their current coordinates.

TUNE THE EXPERIMENT
DETERMINISTIC RUN0x706f6e67

Replay the same serve angles and AI error sequence while changing one physics setting.