$80:B379: Difference between revisions

From ZAMN Hacking
Content deleted Content added
Created page with "{{Infobox ROM address|length=0x78|type=Code|name=findShootDirection|description=Finds a direction to shoot at a victim or player|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [direction x2] direction|ret_type=RTL}} Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player."
 
No edit summary
 
Line 1: Line 1:
{{Infobox ROM address|length=0x78|type=Code|name=findShootDirection|description=Finds a direction to shoot at a victim or player|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [direction x2] direction|ret_type=RTL}}
{{Infobox ROM address|length=0x78|type=Code|name=findShootDirection|description=Finds a direction to shoot at a victim or player|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [direction x2] Direction|ret_type=RTL}}


Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player.
Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player.

Latest revision as of 20:19, 11 July 2024

ROM address data
Length 0x78
Type Code
Name findShootDirection
Description Finds a direction to shoot at a victim or player
Arguments/Return value X = [int16] X position
Y = [int16] Y position
Returns A = [direction x2] Direction
Return type RTL

Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player.