Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On the frame of impact, you need the following:
- $3C = #$05
- How many frames the B button has been held (approximately)
- - Obviously don't happen unless you slash Moldorm.
- - Needs to be exactly 5 I think. It's 5 for 3 frames or so.
- $44 = #$EB
- Where in the animation Link's sword is.
- - Obviously don't happen unless you slash Moldorm (or possibly hammer).
- - Without this, you won't get to the "damage enemy sprite" subroutine.
- $45 = #$FF
- Where in the animation Link's sword is.
- - Obviously don't happen unless you slash Moldorm (or possibly hammer).
- $4D = #$01
- Means Link is recoiling
- - Does not happen if you just slash Moldorm. Need to get hit.
- - Without this, you won't gain any height.
- So you need to both slash and get damaged.
- Here's relevant RAM of just normal damage boost vs super damage boost:
- **
- 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
- ------------------------------------------------------
- NDmg 00 00 00 00 00 00 00 00 00 00 81 00 05 01 da c1
- SDmg 00 00 00 00 00 00 00 00 00 00 00 00 00 00 da c1
- ** **
- 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
- ------------------------------------------------------
- NDmg 08 1a 0f 0f eb ff 18 00 00 00 00 00 00 01 00 f4
- SDmg 08 1a 0f 0f 80 80 18 00 00 00 00 00 00 01 00 f4
- The most important side effect of this is $29 being set to $18 instead of $0C.
- $29 is a counter that is used for Link's Z axis acceleration. It works like a subpixel speed, except it also decrements each frame (by 2 in the normal case). By setting it to a higher number, Link will get higher (takes more frames to decrements, and also starts out with bigger Z axis speed.)
- There's three reasons you get so far:
- 1. Recoil Speed ($27) is higher due to slashing Moldorm.
- 2. Z axis acceleration starts out higher due to slashing Moldorm.
- 3. Link is in "recoil" mode ($4D=1) which allows him to have a Z axis acceleration. This does not happen if you don't get damaged.
- $29 is first set to $0C in both cases, but the hit on Moldorm is registered the next frame from Sprite_CheckDamageFromPlayer, which sets it to $18.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement