Shooting and positioning heights

Request patches for Keens 1-3.
Post Reply
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Shooting and positioning heights

Post by levellass »

These patches change the shooting and\or display heights of sprites. Most are vertical values, though some sprites have horizontal values as well.

Values come in two parts, both adding together. In order to find the patch you want, find the height you desire in pixels (Say 9 pixels down from a sprite's top.) Next convert this into three hex values. (That is 9 becomes $00 $00 $09, -9 becomes $FF $FF $F7) The first two go on the second line of the patch, the lat one goes on the first line. (Yeah, it doesn't make much sense.)

If the value $00 $00 $00 is used, no sprite will appear. This can be used to stop things shooting, or to remove a displayed sprite. (E.g the Ankh)

Note the Vortimom (For you Tulip!) It shoots a bullet 9 down 16 up for a total of 7 pixels down. This may be because the Vortninja was originally intended to also shoot this shot.

Code: Select all

#Keen 1:

#Keen's shot height (Default $000009, if zero then no appears)
%patch $46DC     $09
%patch $46DE $00 $00

#Robot shot height (Default $000009, if zero then no appears)
%patch $4900     $05
%patch $4902 $00 $00


#Keen 2:

#Keen's shot height (Default $000009, if zero then no appears)
%patch $743B     $09
%patch $743D $00 $00

#Enemy BULLET height (Default $000009, if zero then no appears)
%patch $765F     $09
%patch $7661 $00 $00

#Elite shot height (Default $FFFFFF, if zero then no shot appears)
%patch $4218     $FF #This is ADDED to the enemy shot height
%patch $421A $FF $FF

#Robot shot height (Default $FFFFFC, if zero then no shot appears)
%patch $4630     $FC #This is ADDED to the enemy shot height
%patch $4632 $FF $FF


#Keen 3:

#Normal ankh (Default $FFFFF8 - $FFFFF8, If zero, no sprite appears; even in god mode)
%patch $851A     $F8 #Vertical
%patch $4562 $FF $FF
%patch $852A     $F8 #Horizontal
%patch $4562 $FF $FF

#Running out ankh (Default $FFFFF8 - $FFFFF8, If zero, no sprite appears; even in god mode)
%patch $855C     $F8 #Horizontal
%patch $4562 $FF $FF
%patch $856C     $F8 #Horizontal
%patch $4562 $FF $FF

#Change Keens shot height (Default $000009, if zero then no shot appears)
%patch $7CFA     $09
%patch $4516 $00 $00

#Vortimom shooting height (Default = $FFFFF0, if zero then no shot appears)
%patch $4514     $F0
%patch $4516 $FF $FF

#Vortimom BULLET height (Default $00000D, if zero then no shot appears)
%patch $4560     $0D
%patch $4562 $00 $00

#Meep shot position (Default $000010 - $000004,if zero then no shot appears)
%patch $4848     $10 #Horizontal
%patch $484A $00 $00
%patch $486A     $04 #Vertical
%patch $486C $00 $00

#Horizontal shooter h-position (Default $000003 ,if zero then no shot appears)
%patch $4D7F     $03
%patch $4D81 $00 $00

#Vertical shooter v-position (Default $000004 ,if zero then no shot appears)
%patch $4DDA     $04
%patch $4DDC $00 $00

#Opening door tiles
%patch $5E15     $10 #Copy from here (1 tile down)
%patch $5E17 $00 $00 #To 2 tiles down
%patch $5E32     $20 #Copy from here (2 tiles down)
%patch $5E34 $00 $00 #To 3 tiles down
%patch $5E4F     $30 #From here (3 tiles down)
%patch $5E51 $00 $00 #To 4 tiles down becomes FOREGROUND


I hope these help too. :)
User avatar
Tulip
Posts: 394
Joined: Mon Jun 16, 2008 2:40 pm
Location: Heidelberg, Germany
Contact:

Post by Tulip »

Thanks for putting them all together.

Already got it working in my mod.
Post Reply