$80:B123: Difference between revisions
Content deleted Content added
Piranhaplant (talk | contribs) Created page with "{{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|ret_type=RTL}}" |
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|ret_type=RTL}} |
{{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/>Return $7E:0040 = [int16] y offset|ret_type=RTL}} |
Revision as of 19:44, 10 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 Return $7E:0040 = [int16] y offset |
Return type | RTL |