tewtal / sm_practice_hack

Super Metroid Practice Hack
The Unlicense
27 stars 19 forks source link

Door bonk tool #150

Closed NobodyNada closed 5 months ago

NobodyNada commented 1 year ago

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:

NobodyNada commented 1 year ago

Resolves #108