$80:B123: 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=0x6C|type=Code|name=findTarget|description=Finds the closest sprite for a monster to target|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [uint16] Distance to target<br/>Returns X = [pointer16] Target sprite<br/>Returns $7E:003E = [int16] X offset<br/> |
{{Infobox ROM address|length=0x6C|type=Code|name=findTarget|description=Finds the closest sprite for a monster to target|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [uint16] Distance to target<br/>Returns X = [pointer16] Target sprite<br/>Returns $7E:003E = [int16] X offset<br/>Returns $7E:0040 = [int16] Y offset|ret_type=RTL}} |
Latest revision as of 20:18, 11 July 2024
ROM address data | |
---|---|
Length | 0x6C |
Type | Code |
Name | findTarget |
Description | Finds the closest sprite for a monster to target |
Arguments/Return value | X = [int16] X position Y = [int16] Y position Returns A = [uint16] Distance to target Returns X = [pointer16] Target sprite Returns $7E:003E = [int16] X offset Returns $7E:0040 = [int16] Y offset |
Return type | RTL |