Werewolf: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 42: Line 42:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Address !! Length !! [[Data types|Type]] !! Description
! Address !! Length !! [[Data types|Type]] !! Name !! Description
|-
|-
| $00 || 2 || int16 || X position
| $00 || 2 || int16 || x || X position
|-
|-
| $02 || 2 || int16 || Y position
| $02 || 2 || int16 || y || Y position
|}
|}


Line 53: Line 53:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Address !! Length !! [[Data types|Type]] !! Description
! Address !! Length !! [[Data types|Type]] !! Name !! Description
|-
|-
| $08 || 2 || pointer16 || Pointer to sprite
| $08 || 2 || pointer16 || sprite || Pointer to sprite
|-
|-
| $0A || 2 || pointer16 || Current state subroutine pointer
| $0A || 2 || pointer16 || state || Current state subroutine pointer
|-
|-
| $0C || 2 || uint16 || Current animation frame (x2 during attack animation)
| $0C || 2 || uint16 || animationFrame || Current animation frame (x2 during attack animation)
|-
|-
| $0E || 2 || int16 0-based || Number of frames until next animation frame
| $0E || 2 || int16 0-based || framesUntilAnimUpdate || Number of frames until next animation frame
|-
|-
| $10 || 2 || boolean || Dead
| $10 || 2 || boolean || dead || Dead
|-
|-
| $12 || 2 || int16 || X position
| $12 || 2 || int16 || x || X position
|-
|-
| $14 || 2 || int16 || Y position
| $14 || 2 || int16 || y || Y position
|-
|-
| $16 || 2 || int16 || New X position
| $16 || 2 || int16 || newX || New X position
|-
|-
| $18 || 2 || int16 || New Y position
| $18 || 2 || int16 || newY || New Y position
|-
|-
| $1A || 2 || direction || Current direction
| $1A || 2 || direction || direction || Current direction
|-
|-
| $1C || 2 || unused || Unused
| $1C || 2 || unused || || Unused
|-
|-
| $1E || 2 || optional pointer16 || Pointer to sprite that is being jumped at (0xFFFF if empty)
| $1E || 2 || optional pointer16 || jumpTargetSprite || Pointer to sprite that is being jumped at (0xFFFF if empty)
|-
|-
| $20 || 2 || int16 || Jump target X position
| $20 || 2 || int16 || jumpTargetX || Jump target X position
|-
|-
| $22 || 2 || int16 || Jump target Y position
| $22 || 2 || int16 || jumpTargetY || Jump target Y position
|-
|-
| $24 || 2 || int16 x4 || Z velocity during jump
| $24 || 2 || int16 x4 || zVelocity || Z velocity during jump
|-
|-
| $26 || 2 || uint16 || Duration of jump in frames
| $26 || 2 || uint16 || jumpDuration || Duration of jump in frames
|-
|-
| $28 || 2 || uint16 || Fractional portion of X position during jump (full X position = $12 + ($28/$26))
| $28 || 2 || uint16 || xFraction || Fractional portion of X position during jump (full X position = $12 + ($28/$26))
|-
|-
| $2A || 2 || uint16 || Fractional portion of Y position during jump (full Y position = $14 + ($2A/$26))
| $2A || 2 || uint16 || yFraction || Fractional portion of Y position during jump (full Y position = $14 + ($2A/$26))
|-
|-
| $2C || 2 || uint16 || Jump distance X magnitude
| $2C || 2 || uint16 || jumpXMagnitude || Jump distance X magnitude
|-
|-
| $2E || 2 || uint16 || Jump distance Y magnitude
| $2E || 2 || uint16 || jumpYMagnitude || Jump distance Y magnitude
|-
|-
| $30 || 2 || int16 || Jump distance X sign (1 if jump is right, -1 if left)
| $30 || 2 || int16 || jumpXSign || Jump distance X sign (1 if jump is right, -1 if left)
|-
|-
| $32 || 2 || int16 || Jump distance Y sign (1 if jump is down, -1 if up)
| $32 || 2 || int16 || jumpYSign || Jump distance Y sign (1 if jump is down, -1 if up)
|-
|-
| $34 || 2 || direction || Jump direction (only left or right due to a [[#Bugs|bug]])
| $34 || 2 || direction || jumpDirection || Jump direction (only left or right due to a [[#Bugs|bug]])
|-
|-
| $36 || 2 || uint16 || Temporary storage
| $36 || 2 || uint16 || temp || Temporary storage
|-
|-
| $38 || 2 || optional pointer16 || Extra attack hitbox sprite (0xFFFF if empty)
| $38 || 2 || optional pointer16 || attackSprite || Extra attack hitbox sprite (0xFFFF if empty)
|-
|-
| $3A || 2 || int16 0-based || Previous health
| $3A || 2 || int16 0-based || prevHealth || Previous health
|-
|-
| $3C || 2 || int16 0-based || Health
| $3C || 2 || int16 0-based || health || Health
|-
|-
| $3E || 2 || sprite type || Type of weapon shot sprite collided with
| $3E || 2 || sprite type || collidedSpriteType || Type of weapon shot sprite collided with
|-
|-
| $40 || 2 || unused || Unused
| $40 || 2 || unused || || Unused
|-
|-
| $42 || 2 || pointer16 || Pointer to target sprite
| $42 || 2 || pointer16 || targetSprite || Pointer to target sprite
|-
|-
| $44 || 2 || uint16 || Distance to target sprite
| $44 || 2 || uint16 || targetDistance || Distance to target sprite
|- class="breakrow"
|- class="breakrow"
| $7E || 2 || unused || Value is set but not used
| $7E || 2 || int16 0-based || freezeTimer || Amount of time to stay [[Fire extinguisher|frozen]]
|}
|}