New pages
- 01:44, 15 July 2024 $7E:5628 (hist | edit) [160 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox RAM address|length=0x100|type=uint16[0x80]|name=animatedTilesetPalette|description=Current tileset palette after being affected by a palette animation}}")
- 01:43, 15 July 2024 $7E:5528 (hist | edit) [115 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox RAM address|length=0x100|type=uint16[0x80]|name=currentSpritePalette|description=Current sprite palette}}")
- 01:41, 15 July 2024 $7E:5428 (hist | edit) [173 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox RAM address|length=0x100|type=uint16[0x80]|name=currentTilesetPalette|description=Current tileset palette. Affected by palette fade, but not palette animations}}")
- 19:43, 14 July 2024 $80:AF2C (hist | edit) [262 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x3A|type=Code|name=bgSolidToWeapons|description=Gets whether the background is solid to weapons 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}}")
- 20:17, 11 July 2024 $80:AF66 (hist | edit) [322 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x95|type=Code|name=bgSolidToSpecialMonsters|description=Gets whether the background blocks snakeoids, werewolf jumps, and vampires from landing 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}}")
- 18:36, 11 July 2024 $80:B1EC (hist | edit) [560 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x32|type=Code|name=getDirectionToTargetPosition|description=Gets the direction from the given sprite to the given target position. (Bugged, see notes)|args=A = [pointer16] sprite<br/>X = [int16] target X position<br/>Y = [int16] target Y position<br/>Returns A = [direction] direction to target|ret_type=RTL}} Note: This subroutine is bugged to not consider the Y components, so will only return left, right, or none. The bug happens due to a T...")
- 19:35, 10 July 2024 $80:B379 (hist | edit) [398 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x78|type=Code|name=findShootDirection|description=Finds a direction to shoot at a victim or player|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns A = [direction x2] direction|ret_type=RTL}} Will shoot at the first victim or player that is within 8 pixels of the given position on a single axis. Returns 'none' if there is no such victim or player.")
- 19:22, 9 July 2024 $80:B422 (hist | edit) [265 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x25|type=Code|name=outsideOfLevel|description=Gets whether the given position is outside of the level bounds|args=X = [int16] X position<br/>Y = [int16] Y position<br/>Returns C = [boolean] Whether it's outside the level|ret_type=RTL}}")
- 19:18, 9 July 2024 $80:AE14 (hist | edit) [262 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x83|type=Code|name=bgSolidToPlayers|description=Gets whether the background is solid to players 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}}")
- 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) [356 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) [408 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) [361 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) [526 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...")
- 23:56, 16 June 2024 $80:833E (hist | edit) [173 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x15|type=Code|description=Entities return here when completed. Deletes the current entity and resumes the entity loop.|args=None|ret_type=N/A}} Category:ROM address")
- 23:53, 16 June 2024 $80:830E (hist | edit) [240 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x30|type=Data|name=entityStacks|description=Starting stack address for each entity|args=pointer16[0x18]}} Note: The stack for each entity is the area [S - 0x25, S + 0x0B), where 'S' is the value in this table. Category:ROM address")
- 23:47, 16 June 2024 $80:82DE (hist | edit) [129 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x30|type=Data|name=entityDPs|description=Direct page address for each entity|args=pointer16[0x18]}} Category:ROM address")
- 16:08, 15 June 2024 $80:825E (hist | edit) [371 bytes] 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")
- 16:01, 15 June 2024 $80:8248 (hist | edit) [779 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x16|type=Code|name=createPlayerEntity|description=Creates an entity for a player|args=Y+A = Entity pointer|ret_type=RTL}} This is the same as $80:825E, but with the following differences: * Searches entity slots in forward order instead of reverse. This will guarantee that the two player entities are in the first two slots. ** This was possibly meant to guarantee player entities get assigned a direct page with a zero low byte for fa...")
- 15:48, 15 June 2024 $80:8246 (hist | edit) [101 bytes] Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x02|type=Code|description=Unused infinite loop|args=None|ret_type=N/A}} Category:ROM address")