Gravity:
Gravity controls the fall rates of all sprites; it is surprisingly complex, consisting of several speeds. Firstly there is the 'basic' gravity; everything has this and falls at a certain rate, added to this is an extra speed for things that fall a long way (More than 4 tiles) and taken away from this is a third speed used during short jumps (Bounder, Keen, etc)
Code: Select all
%patch $B0AB $46 $00 #'Base' gravity (Other gravities are added to this.)
%patch $B124 $46 #This taken away from things falling a short distance (I.e Keen's jumps)
%patch $B12A $46 $00 #This added to things falling a long way down
Code: Select all
%patch $B116 $00 $00 #This makes things pause at the top of their jump (Don't move for a sec)
%patch $B097 $00 $00 #This does the same thing
%patch $B097 $00 $00 #Extra boost shot sprites get when shot (Makes 'em bounce)
%patch $B6F8 $00 $00 #Speed of sprites when they hit a ceiling
Finally there is the speed buffer; on easy things jump slightly higher, including Keen, and fall slower. What controls this is two variables that at a bit of $00 $00 to all things falling. They both add to $00 $00 and the bigger both numbers are, the stronger the gravity is. Xky's 'low gravity' patch sets these at their lowest values, 1 and FF; setting them lower results in antigravity.These work only on easy, unless you use the patch to make Keen jump just as high on medium and hard.
Code: Select all
%patch $B109 $FD #Gravity strength (These both add to 00; they control speed buffering;
%patch $B120 $03 #and only on easy (unless using Keen's 'easy-hard' pogo patch)
There are just as many speeds controlling Keen's speed and jumps. Most are self explainitory:
Code: Select all
%patch $C4D3 $D0 $FF #The height of Keen's -initial- pogo jump
%patch $D830 $D0 $FF #Height of Keen's other pogo jumps
%patch $D7FC $00 $00 #Pogo Keen's speed when he hits a ceiling (Pause, then fall)
%patch $BAF0 $D8 $FF #Keen's jump height
%patch $BF0A $D8 $FF #Keen's jump-while-walking height
%patch $C373 $D8 $FF #Jump cheat height (Both when he jumps off ground, and in the air.)
%patch $D4C7 $00 $00 #How fast Keen moves when he jumps and hits a ceiling (Pause then fall)
Then there's this from Xky:
Code: Select all
%patch $C55F $90 $90 #Keen pogoes the same height in med and hard as in easy
%patch $8D7D $EB #Keen pogoes the same height in easy as in med and hard
Code: Select all
%patch $CCA0 $D8 $FF #Dead Keen bounce height
%patch $CCA5 $10 $00 #Dead Keen h speed
%patch $D2CA $00 $00 #How 'extra' fast Keen falls with 'no clipping' cheat
%patch $D387 $00 $00 #How 'extra' fast Keen falls when he walks of an edge
Pretty much all the other sprite jump heights can be found at: http://levellord.toxicsheep.com/Index/K ... 20Patches/ under 'section 6.) Speeds'
I hope you enjoy!