sm_practice_hack icon indicating copy to clipboard operation
sm_practice_hack copied to clipboard

Door bonk tool

Open NobodyNada opened this issue 1 year ago • 1 comments

When you bonk a door, displays the number of frames before the door would have finished opening. This is displayed to the left of the lag counter (and only if the minimap is disabled).

Screenshot 2023-03-07 at 3 58 46 PM

When the game zeroes Samus's X speed after a horizontal collision, we add a hijack that does the following:

  1. Check to see if the collided tile was an opening door
  2. Loop over all PLMs, until we find a door PLM that has drawn to the collided tile
  3. Loop over that PLM's remaining draw instructions before it makes the door non-solid, adding up the animation delays.

Does not take into account the fact that the middle of the door opens before the bottom.

TODO:

  • [ ] PAL support
  • [ ] Ceres support (probably just needs a couple changes to constants, but I haven't looked into this fully)
  • [ ] Support for vertical doors (already supported by the routine, so it should just need some hijacks in the right spots)

NobodyNada avatar Mar 08 '23 00:03 NobodyNada

Resolves #108

NobodyNada avatar Mar 08 '23 00:03 NobodyNada