id: BL-031
title: Joystick held diagonally: LEFT and DOWN together
shows: The joystick is held LEFT and DOWN together from the start place for about a second and a half.
inputs: BL-031.inputs
frames: 500
rom_sha1: 0940fea7f04cdb6d4b90c5ad1a7e344e68f6dbb1
trace_sha256: c2e404aed9a8c2fd2b2c2600fb6d30bd9e3aa0852a2a2a03381fb988808695f9
trace_bytes: 150016
observations:
  Frames are counted from power-on (frame 0). Memory bytes are named by their address; the meanings are working labels
  (Stages C6 and C7, docs\CONTROLS.md and docs\CAPTURES.md), not yet confirmed (Phase F). Every number below was read from the trace.
  - Game Reset on frame 240 starts a game (lives counter reads 3 from frame 240).
  - Play begins on frame 367 (pause flag clears); Pac-Man stands at (76,60), the start place.
  - Joystick on frames 367-369: nothing.
  - Joystick on frames 370-449: DOWN+LEFT.
  - Joystick on frames 450-499: nothing.
  - Pac-Man moves left from (76,60) to (64,60): 12 pixels, first step on frame 371, last on frame 391; frames between steps: 2,2,2,1,2,2,2,1,2,2,2 (2 x 1 frame, 9 x 2 frames); 0.571 pixels per frame
  - Pac-Man moves down from (64,60) to (64,70): 10 pixels, first step on frame 393, last on frame 409; frames between steps: 1,2,2,2,1,2,2,2,2 (2 x 1 frame, 7 x 2 frames); 0.588 pixels per frame
  - Pac-Man moves left from (64,70) to (36,70): 28 pixels, first step on frame 410, last on frame 458; frames between steps: 2,2,2,1,2,2,2,2,1,2,2,2,1,2,... (6 x 1 frame, 21 x 2 frames); 0.571 pixels per frame
  - Direction change left -> down at (64,60): last step of the first leg on frame 391, first step of the next on frame 393 (2 frames apart).
  - Direction change down -> left at (64,70): last step of the first leg on frame 409, first step of the next on frame 410 (1 frame apart).
  - Pac-Man took 5 pixel steps on frames when no direction was held (first on frame 451): it keeps going in its last direction.
  - How to check it against the real game: start a game and hold the stick diagonally (LEFT and DOWN) (switch on, press Game Reset, wait for the start tune to end; the frame numbers are counted from power-on at 60 per second; the joystick moves are listed above).
