User Tools

Site Tools


return_of_samus:technical_information:screen_transitions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
return_of_samus:technical_information:screen_transitions [2018/07/21 04:17] – [1x - Select metatile table] liamnajorreturn_of_samus:technical_information:screen_transitions [2018/12/27 07:27] – Document opcode 7 quantam
Line 89: Line 89:
 Note: Place the x/y coordinate one screen "behind" the desired destination. Note: Place the x/y coordinate one screen "behind" the desired destination.
  
-==== 5* - Unknown ====+==== 5* - Retreat from Last Boss ====
  
-Sets Samus at a specific position and redraws the status bar. Perhaps this is used in that screen transition in area 3 where you appear over some spikes. TODO: Verify.+This opcode is used only once, when Samus retreats from the last boss fight by falling through the hole in the floor. It performs several tasks: 
 +  - Disable LCD interrupt, ending special last boss hblank handling 
 +  - Move Samus to ($78, $D7) 
 +  - Set the screen position to ($80, $C0) 
 +  - Reload the status bar into the window after the last boss had used the window for the last boss head 
 +  - Flag the screen for a complete update
  
 ==== 6* - Change acid & spike damage ==== ==== 6* - Change acid & spike damage ====
Line 106: Line 111:
 For reference, the default starting values are $02 and $08. For reference, the default starting values are $02 and $08.
  
-==== 7* - Unknown ==== +==== 7* - Exit Room After Last Boss Death ====
- +
-Redraws the status bar and resets the window position. Perhaps used after exiting the queen fight. TODO: Verify+
  
 +This opcode is used only once, when leaving the last boss room after defeating her. It performs the following:
 +  - Disable last boss flag (sets $D08B to 0)
 +  - Resets the window position to (0, $88) (sets $FF4A and $FF4B to $88 and 7, respectively)
 +  - Disables LCD interrupt from last boss fight
 +  - Reloads the status bar into the window
 ==== 8* - Transition to the Queen Fight ==== ==== 8* - Transition to the Queen Fight ====
  
return_of_samus/technical_information/screen_transitions.txt · Last modified: 2023/07/02 17:36 by rt-55j