$80:B2A5: Difference between revisions

From ZAMN Hacking
Content added Content deleted
(Created page with "{{Infobox ROM address|length=0x5D|type=Code|name=findClosestPlayer|description=Finds the closest player within the given distance on a single axis|args=A = [uint16] Maximum single-axis distance<br/>X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [uint16] direction to player<br/>Returns X = [uint16] single-axis distance to player<br/>Returns Y = [pointer16] player sprite|ret_type=RTL}}")
 
No edit summary
 
Line 1: Line 1:
{{Infobox ROM address|length=0x5D|type=Code|name=findClosestPlayer|description=Finds the closest player within the given distance on a single axis|args=A = [uint16] Maximum single-axis distance<br/>X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [uint16] direction to player<br/>Returns X = [uint16] single-axis distance to player<br/>Returns Y = [pointer16] player sprite|ret_type=RTL}}
{{Infobox ROM address|length=0x5D|type=Code|name=findPlayerInRange|description=Finds the closest player within the given distance on a single axis|args=A = [uint16] Maximum single-axis distance<br/>X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [uint16] direction to player<br/>Returns X = [uint16] single-axis distance to player<br/>Returns Y = [pointer16] player sprite|ret_type=RTL}}

Latest revision as of 20:15, 23 June 2024

ROM address data
Length 0x5D
Type Code
Name findPlayerInRange
Description Finds the closest player within the given distance on a single axis
Arguments/Return value A = [uint16] Maximum single-axis distance
X = [int16] X position
Y = [int16] Y position
Returns A = [uint16] direction to player
Returns X = [uint16] single-axis distance to player
Returns Y = [pointer16] player sprite
Return type RTL