New pages
- 00:20, 27 June 2024 $81:832C (hist | edit) [174 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x1D|type=Code|name=showAnimation|description=Shows the given animation on the sprite stored in $08|args=A = [pointer16] Animation|ret_type=RTL}}")
- 23:46, 26 June 2024 $80:B22A (hist | edit) [274 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x35|type=Code|name=getDirectionToTarget|description=Gets the direction from the given sprite to the given target sprite|args=X = [pointer16] Sprite<br/>Y = [pointer16] Target sprite<br/>Returns A = [direction] Direction to target|ret_type=RTL}}")
- 23:42, 26 June 2024 $80:B3F1 (hist | edit) [244 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x31|type=Code|name=snapToTarget|description=Sets the given sprite's X and/or Y positions to that of the target if they are within 1 pixel|args=X = [pointer16] Sprite<br/>Y = [pointer16] Target sprite|ret_type=RTL}}")
- 23:34, 26 June 2024 $80:B123 (hist | edit) [276 bytes] 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}}")
- 21:09, 23 June 2024 $81:8506 (hist | edit) [248 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x3C|type=Code|name=showDamageAnimation|description=Call from a monster's sprite collision handler to show a damage animation|args=Returns C = [boolean] Collision handler return value|ret_type=RTL}}")
- 21:05, 23 June 2024 $81:8561 (hist | edit) [132 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x2A|type=Data|name=weaponDamage|description=The base damage dealt by each weapon|args=uint16[21]}}")
- 20:59, 23 June 2024 $81:847E (hist | edit) [262 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x58|type=Code|name=freezeMonster|description=Call from a monster's sprite collision handler to cause it to be frozen|args=Returns C = [boolean] Collision handler return value|ret_type=RTL}}")
- 20:49, 23 June 2024 $81:83C6 (hist | edit) [264 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x3E|type=Code|name=bubbleMonster|description=Call from a monster's sprite collision handler to cause it to be bubbled|args=Returns C = [boolean] Collision handler return value|ret_type=RTL}}")
- 20:35, 23 June 2024 $81:83A3 (hist | edit) [257 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x23|type=Code|name=showMonsterDeath|description=Show monster death animation and play sound|args=A = [pointer16] Animation<br/>X = [uint16] Do nothing if not equal to 0xF5F5<br/>Y = [uint16] Sprite tile data bank|ret_type=RTL}}")
- 20:26, 23 June 2024 $80:C7D9 (hist | edit) [194 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x40|type=Code|name=givePoints|description=Awards points to the given character|args=N = [boolean] give to Julie<br/>A = [uint16] number of points|ret_type=RTL}}")
- 20:14, 23 June 2024 $80:B2A5 (hist | edit) [405 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x5D|type=Code|name=findClosestPlayer|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}}")
- 20:00, 23 June 2024 $80:BF67 (hist | edit) [436 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x61|type=Code|name=touchingSpriteSolidToMonsters|description=Gets whether the given position is touching a sprite that is solid to monsters|args=A = [pointer16] current sprite<br/>X = [int16] X position<br/>Y = [int16] Y position<br/>Returns C = [boolean] Whether it's solid|ret_type=RTL}} 'current sprite' will be ignored when checking for solid sprites. This is so a sprite does not collide with itself.")
- 19:52, 23 June 2024 $80:AE97 (hist | edit) [264 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x95|type=Code|name=bgSolidToMonsters|description=Gets whether the background is solid to monsters at the given position|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns C = [boolean] Whether it's solid|ret_type=RTL}}")
- 19:16, 23 June 2024 $80:CC3B (hist | edit) [148 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x11|type=Code|name=playSound|description=Plays the given sound effect|args=A = [uint16] Sound effect ID|ret_type=RTL}}")
- 19:07, 23 June 2024 $81:8000 (hist | edit) [351 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x24|type=Code|name=createMonsterSprite|description=Creates a sprite for a monster|ret_type=RTL}} The sprite pointer will be stored in $08. The sprite's X and Y positions will be set from the entity arguments. In addition, the sprite type will be set to 'None', and the parent entity ID will be set to the current entity.")
- 22:27, 22 June 2024 $80:BE41 (hist | edit) [149 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x3C|type=Code|name=deleteSprite|description=Deletes the given sprite|args=A = [pointer16] Sprite pointer|ret_type=RTL}}")
- 22:24, 22 June 2024 $81:8191 (hist | edit) [202 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x11|type=Code|name=removeOneShotEntity|description=Marks the given one-shot entity as no longer needing to be spawned|args=A = [uint16] One-shot entity index|ret_type=RTL}}")
- 21:58, 22 June 2024 $80:BE0C (hist | edit) [155 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x2F|type=Code|name=createSprite|description=Creates a sprite|args=Returns A/Y = [pointer16] Sprite pointer|ret_type=RTL}}")
- 01:30, 17 June 2024 $80:9D6A (hist | edit) [213 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x3C|type=Code|name=playerForCharacter|description=Gets the player that is using the given character|args=A = [character x2] Character<br/>Returns X = [uint16 x2] Player|ret_type=RTL}} Category:ROM address")
- 01:23, 17 June 2024 $80:9D39 (hist | edit) [167 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x22|type=Code|name=getRandomByte|description=Gets a random value in the range 0-255|args=Returns A = [uint16] Random value|ret_type=RTL}} Category:ROM address")
- 01:17, 17 June 2024 $80:9C72 (hist | edit) [188 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x1A|type=Code|name=fadeOutAsync|description=Fades the screen out to black asynchronously|args=None|ret_type=RTS}} Like $80:8933, but returns immediately. Category:ROM address")
- 01:15, 17 June 2024 $80:9C52 (hist | edit) [188 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x20|type=Code|name=fadeInAsync|description=Fades the screen in from black asynchronously|args=None|ret_type=RTS}} Like, $80:891A, but returns immediately. Category:ROM address")
- 00:54, 17 June 2024 $80:8933 (hist | edit) [196 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x14|type=Code|name=fadeOut|description=Fades the screen out to black|args=None|ret_type=RTL}} Category:ROM address")
- 00:51, 17 June 2024 $80:891A (hist | edit) [196 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x19|type=Code|name=fadeIn|description=Fades the screen in from black|args=None|ret_type=RTL}} Category:ROM address")
- 00:46, 17 June 2024 $80:8516 (hist | edit) [119 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0xB9|type=Code|name=playLevel|description=Plays the current level|args=None|ret_type=RTL}} Category:ROM address")
- 00:41, 17 June 2024 $80:84B1 (hist | edit) [101 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x65|type=Code|name=|description=Main game loop|args=None|ret_type=N/A}} Category:ROM address")
- 00:40, 17 June 2024 $80:8480 (hist | edit) [250 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x31|type=Code|name=runCollisionHandler|description=Runs the sprite collision handler for the given entity|args=X = [uint16] Entity ID<br/>Y = [sprite type] Type of sprite collided with|ret_type=RTL}} Category:ROM address")
- 00:37, 17 June 2024 $80:8475 (hist | edit) [215 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x0B|type=Code|name=setCollisionHandler|description=Sets the sprite collision handler for the current entity|args=Y+A = [pointer32] Handler subroutine|ret_type=RTL}} Category:ROM address")
- 00:34, 17 June 2024 $80:843D (hist | edit) [150 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x38|type=Code|name=runVBLANKEndListeners |description=Runs all the current VBLANK end listeners|args=None|ret_type=RTS}} Category:ROM address")
- 00:29, 17 June 2024 $80:8418 (hist | edit) [424 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x25|type=Code|name=runOnVBlankEnd|description=Creates a VBlank end listener |args=Y+A = [pointer32] Listener subroutine<br/>Returns X = [uint16] Listener ID |ret_type=RTL}} The given subroutine returns a value in the carry indicating if it should continue to run on the next frame. VBlank end listeners will be run after all VBlank listeners, and also after the controller input is processed. Category:ROM address")
- 00:22, 17 June 2024 $80:83E0 (hist | edit) [142 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x38|type=Code|name=runVBlankListeners|description=Runs all the current VBlank listeners|args=None|ret_type=RTS}} Category:ROM address")
- 00:18, 17 June 2024 $80:83D5 (hist | edit) [159 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x0B|type=Code|name=stopRunningOnVBlank|description=Deletes the given VBlank listener|args=A = [uint16] Listener ID|ret_type=RTL}} Category:ROM address")
- 00:14, 17 June 2024 $80:83AE (hist | edit) [303 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x27|type=Code|name=runOnVBlank|description=Creates a VBlank listener|args=Y+A = [pointer32] Listener subroutine<br/>Returns X = [uint16] Listener ID|ret_type=RTL}} The given subroutine returns a value in the carry indicating if it should continue to run on the next frame. Category:ROM address")
- 00:06, 17 June 2024 $80:8398 (hist | edit) [146 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x16|type=Code|name=|description=Decrements the number of frames left to wait on each entity|args=None|ret_type=RTS}} Category:ROM address")
- 00:04, 17 June 2024 $80:8353 (hist | edit) [480 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x45|type=Code|name=waitFrames|description=Pauses the current entity for the given number of frames|args=A = [uint16] Number of frames|ret_type=N/A}} Note: This subroutine also contains the code for the entity processing loop. The main game entry point ($80:80AE) and the entity return point ($80:833E) both jump to locations in the middle of this. Note: An entity may resume early if its collision handler forces i...")