$80:B2A5: Difference between revisions

From ZAMN Hacking
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
{{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}}
{{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 = [direction] direction to player<br/>Returns X = [uint16] single-axis distance to player<br/>Returns Y = [pointer16] player sprite|ret_type=RTL}}

Revision as of 20:21, 10 July 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 = [direction] direction to player
Returns X = [uint16] single-axis distance to player
Returns Y = [pointer16] player sprite
Return type RTL