RAM addresses (possibly useful for brute-forcing)
----------------------------
It seems each of the two flippers can have one of 10 possible altitudes when colliding with the ball.
The transition mode address could be used as a finishing point.
This list will be updated as I make more findings. Needed:
- collision/hitbox related addresses or anything that can be used for figuring out if the ball is touching a flipper,
- "star get" delay or anything that tells us we are getting a star / starkey
- anything related to "if a star exists", "if a star is descending or ascending", "if a star is grabbable", "star position"
- yellow coins / blue coins
-----------------------------
IWRAM
$14AC Left Flipper Altitude (4-Byte)
$14B0 Right Flipper Altitude (4-Byte)
$14BC Left Flipper rising speed or something? (4-Byte)
$14C0 Right Flipper rising speed or something? (4-Byte)
Somewhere around here is also an address for each flipper that makes the ball receive speed if non-zero, but it is always zero. Maybe written to and cleared in-between frames.
$14AC and $14B0 possible values / achieved fastest how:
0x000000
0x00000A
F1: L
F2: L
F3: L
F4:
F5:
F6:
F7:
0x0AAAA8
F1: L
F2:
0x0AAAB2
F1: L
F2: L
F3: L
F4:
F5:
F6:
0x155550
F1: L
0x15555A
F1: L
F2: L
F3: L
F4:
F5:
0x1FFFF8
F1: L
F2: L
F3:
0x200002
F1: L
F2: L
F3: L
F4:
0x2AAAA0
F1: L
F2: L
0x2AAAAA
F1: L
F2: L
F3: L
$6540 Transition mode (1-Byte)
possible values:
13: None
10: Down
11: Start Credits
12: Title Screen
0: UpLeft
1: Up
2: UpRight
3: World Select
$6532 Ball Size (1-Byte)
12: Mini
19: Normal
28: Big
$6514 Ball X-Pos (4-Byte)
$6518 Ball Y-Pos (4-Byte)
$651C Ball Z-Pos (4-Byte)
$6524 Ball X-Speed (4-Byte)
$6528 Ball Y-Speed (4-Byte)
$652C Ball Z-Speed (4-Byte)
$6558 4 Byte Ball Spin Amount
$0014 1 Byte Total Stars
$1484 1 Byte Cannon State
Somewhere around this may be addresses related to door open/closed state
Possible values:
0: Doesn't Exist
1: Normal
2: Open
3: Opening
4: Closing
$0200 1 Byte Cannon is pulling your ball?
Possible values:
0: No
1: Yes
$000C 1 Byte Current Blue Coins
(On the first room,
$0200 must be frozen to 0 and $000C to 0 to make L+R presses not reset the cannon and make the ball not enter the toad's tent,
if running Basic Bot in Bizhawk.)