Main > Code > ASM > Etc

Platformer Recoil Script

Submitter: wolfmerrik



Description: This script should replace the current "DetermineRecoilDirection", Found in the Physics Script.

It basically replaces it with a more platformer friendly recoil.

The post on NESMakers about this can be found here: http://nesmakers.com/viewtopic.php?f=3&t=814


Credits: by WolfMerrik

Links:

http://nesmakers.com/viewtopic.php?f=3&t=814


Tags: damage, jump, platformer, recoil

ASM Preview:

;  This script should be added to / Replace the current "DetermineRecoilDirection"



;  In a platfomer engine, we do not need to do 4-way recoils (well... we do, just not the same way!)

;  In this way, all the recoils (except downward) give an upward vertical boost, and a horizontal

;  We use the values in Constants.asm, the hi = upward_recoil_amount, and the lo = horizontal_recoil_amount

;  Feel Free to change this how you wish!



;  Script by -WolfMerrik

DetermineRecoilDirection:

LDA recoil_selfX ;  First check for the abs x value


; This is an incomplete preview.
; Download for the full code


Download: Here

Size: 2.77 KB

Downloads: 476 (2 Users)

Rating: This has not been rated yet

Rate:


Comments:


There are no comments yet.

Share:


Loading...