Martian: Difference between revisions
Content deleted Content added
Piranhaplant (talk | contribs) No edit summary |
Piranhaplant (talk | contribs) No edit summary |
||
Line 52: | Line 52: | ||
{| 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 63: | Line 63: | ||
{| 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 || int16 || X position |
| $0C || 2 || int16 || x || X position |
||
|- |
|- |
||
| $0E || 2 || int16 || Y position |
| $0E || 2 || int16 || y || Y position |
||
|- |
|- |
||
| $10 || 2 || int16 || New X position |
| $10 || 2 || int16 || newX || New X position |
||
|- |
|- |
||
| $12 || 2 || int16 || New Y position |
| $12 || 2 || int16 || newY || New Y position |
||
|- |
|- |
||
| $14 || 2 || pointer16 || Pointer to sprite table |
| $14 || 2 || pointer16 || spriteTable || Pointer to sprite table |
||
|- |
|- |
||
| $16 || 2 || pointer16 || Pointer to target sprite |
| $16 || 2 || pointer16 || targetSprite || Pointer to target sprite |
||
|- |
|- |
||
| $18 || 2 || uint16 || Distance to target |
| $18 || 2 || uint16 || targetDistance || Distance to target |
||
|- |
|- |
||
| $1A || 2 || unused || Unused |
| $1A || 2 || unused || || Unused |
||
|- |
|- |
||
| $1C || 2 || int16 || Target sprite X offset from martian |
| $1C || 2 || int16 || targetXOffset || Target sprite X offset from martian |
||
|- |
|- |
||
| $1E || 2 || int16 || Target sprite Y offset from martian |
| $1E || 2 || int16 || targetYOffset || Target sprite Y offset from martian |
||
|- |
|- |
||
| $20 || 2 || uint16 || Target sprite X distance from martian (absolute value of $1C) |
| $20 || 2 || uint16 || targetXDistance || Target sprite X distance from martian (absolute value of $1C) |
||
|- |
|- |
||
| $22 || 2 || optional pointer16 || 'Shoot' subroutine pointer |
| $22 || 2 || optional pointer16 || shootHandler || 'Shoot' subroutine pointer |
||
|- |
|- |
||
| $24 || 2 || uint16 0-based || Number of shot attempts until shot will be fired |
| $24 || 2 || uint16 0-based || shotThrottle || Number of shot attempts until shot will be fired |
||
|- |
|- |
||
| $26 || 2 || boolean || Dead |
| $26 || 2 || boolean || dead || Dead |
||
|- |
|- |
||
| $28 || 2 || direction x2 || Current direction |
| $28 || 2 || direction x2 || direction || Current direction |
||
|- |
|- |
||
| $2A || 2 || int16 0-based || Number of frames until direction update (normal state only) |
| $2A || 2 || int16 0-based || directionChangeTimer || Number of frames until direction update (normal state only) |
||
|- |
|- |
||
| $2C || 2 || uint16 || Current animation frame |
| $2C || 2 || uint16 || animationFrame || Current animation frame |
||
|- |
|- |
||
| $2E || 2 || int16 0-based || Number of frames until next animation frame |
| $2E || 2 || int16 0-based || framesUntilAnimUpdate || Number of frames until next animation frame |
||
|- |
|- |
||
| $30 || 2 || sprite type || Type of weapon shot sprite collided with |
| $30 || 2 || sprite type || collidedSpriteType || Type of weapon shot sprite collided with |
||
|- |
|- |
||
| $32 || 2 || int16 0-based || Health |
| $32 || 2 || int16 0-based || health || Health |
||
|- |
|- |
||
| $34 || 2 || int16 0-based || Number of frames until target side update (top of screen only) |
| $34 || 2 || int16 0-based || framesUntilSideUpdate || Number of frames until target side update (top of screen only) |
||
|- |
|- |
||
| $36 || 2 || direction x2 || Target side (left or right) (top of screen only) |
| $36 || 2 || direction x2 || targetSide || Target side (left or right) (top of screen only) |
||
|- class="breakrow" |
|- class="breakrow" |
||
| $7E || 2 || |
| $7E || 2 || int16 0-based || freezeTimer || Amount of time to stay [[Fire extinguisher|frozen]] |
||
|} |
|} |
||