$80:B2A5: Difference between revisions
Content deleted Content added
Piranhaplant (talk | contribs) No edit summary |
Piranhaplant (talk | contribs) 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 = [direction] |
{{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:19, 11 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 |