$80:825E: Difference between revisions
Content deleted Content added
Piranhaplant (talk | contribs) Created page with "{{Infobox ROM address|length=0x80|type=Code|name=createEntity|description=Creates an entity|args=Y+A = [pointer32] Entity pointer<br/>Return A = [uint16] Entity ID|ret_type=RTL}} Note: This will return 0 if there are no empty entity slots available. 0 is technically a valid entity ID, but this ID will always be used for the first player entity (see $80:8248). Category:ROM address" |
Piranhaplant (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Infobox ROM address|length=0x80|type=Code|name=createEntity|description=Creates an [[entity]]|args=Y+A = [pointer32] Entity pointer<br/> |
{{Infobox ROM address|length=0x80|type=Code|name=createEntity|description=Creates an [[entity]]|args=Y+A = [pointer32] Entity pointer<br/>Returns A = [uint16] Entity ID|ret_type=RTL}} |
||
Note: This will return 0 if there are no empty entity slots available. 0 is technically a valid entity ID, but this ID will always be used for the first player entity (see [[$80:8248]]). |
Note: This will return 0 if there are no empty entity slots available. 0 is technically a valid entity ID, but this ID will always be used for the first player entity (see [[$80:8248]]). |
Revision as of 00:15, 17 June 2024
ROM address data | |
---|---|
Length | 0x80 |
Type | Code |
Name | createEntity |
Description | Creates an entity |
Arguments/Return value | Y+A = [pointer32] Entity pointer Returns A = [uint16] Entity ID |
Return type | RTL |
Note: This will return 0 if there are no empty entity slots available. 0 is technically a valid entity ID, but this ID will always be used for the first player entity (see $80:8248).