Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jan 18, 2021
1 parent 41991ed commit 4dcab47
Show file tree
Hide file tree
Showing 18 changed files with 1,280 additions and 908 deletions.
142 changes: 142 additions & 0 deletions projects/Links_Awakening_gb.windfish/configuration/datatypes.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
; ANIMATED_TILE [Enumerated] [Hex]
ANIMATED_TILE_NONE EQU $00
ANIMATED_TILE_COUNTER EQU $01
ANIMATED_TILE_TIDE EQU $02
ANIMATED_TILE_VILLAGE EQU $03
ANIMATED_TILE_DUNGEON_1 EQU $04
ANIMATED_TILE_UNDERGROUND EQU $05
ANIMATED_TILE_LAVA EQU $06
ANIMATED_TILE_DUNGEON_2 EQU $07
ANIMATED_TILE_WARP_TILE EQU $08
ANIMATED_TILE_CURRENTS EQU $09
ANIMATED_TILE_WATERFALL EQU $0A
ANIMATED_TILE_WATERFALL_SLOW EQU $0B
ANIMATED_TILE_WATER_DUNGEON EQU $0C
ANIMATED_TILE_LIGHT_BEAM EQU $0D
ANIMATED_TILE_CRYSTAL_BLOCK EQU $0E
ANIMATED_TILE_BUBBLES EQU $0F
ANIMATED_TILE_WEATHER_VANE EQU $10
ANIMATED_TILE_PHOTO EQU $11

; BUTTON [Bitmask] [Binary]
J_RIGHT EQU %00000001
J_LEFT EQU %00000010
Expand All @@ -8,6 +28,13 @@ J_B EQU %00100000
J_SELECT EQU %01000000
J_START EQU %10000000

; DIRECTION [Enumerated] [Hex]
DIRECTION_RIGHT EQU $00
DIRECTION_LEFT EQU $01
DIRECTION_UP EQU $02
DIRECTION_DOWN EQU $03
DIRECTION_KEEP EQU $0F

; GAMEMODE [Enumerated] [Hex]
GAMEMODE_INTRO EQU $00
GAMEMODE_CREDITS EQU $01
Expand Down Expand Up @@ -78,6 +105,11 @@ romsize_96banks EQU $54
not_super_gameboy EQU $00
is_super_gameboy EQU $80

; INTERACTIVE_MOTION [Enumerated] [Hex]
INTERACTIVE_MOTION_ENABLED EQU $00
INTERACTIVE_MOTION_LOCKED_GRAB_SLASH EQU $01
INTERACTIVE_MOTION_LOCKED_TALKING EQU $02

; JOYPAD [Bitmask] [Binary]
JOYPAD_DIRECTIONS EQU %00010000
JOYPAD_BUTTONS EQU %00100000
Expand All @@ -93,6 +125,111 @@ LCDCF_OBJ_16_16 EQU %00000100
LCDCF_OBJ_DISPLAY EQU %00000010
LCDCF_BG_DISPLAY EQU %00000001

; LINK_ANIMATION [Enumerated] [Hex]
LINK_ANIMATION_STATE_STANDING_DOWN EQU $00
LINK_ANIMATION_STATE_WALKING_DOWN EQU $01
LINK_ANIMATION_STATE_UNKNOWN_02 EQU $02
LINK_ANIMATION_STATE_UNKNOWN_03 EQU $03
LINK_ANIMATION_STATE_STANDING_UP EQU $04
LINK_ANIMATION_STATE_WALKING_UP EQU $05
LINK_ANIMATION_STATE_STANDING_LEFT EQU $06
LINK_ANIMATION_STATE_WALKING_LEFT EQU $07
LINK_ANIMATION_STATE_UNKNOWN_08 EQU $08
LINK_ANIMATION_STATE_UNKNOWN_09 EQU $09
LINK_ANIMATION_STATE_STANDING_RIGHT EQU $0A
LINK_ANIMATION_STATE_WALKING_RIGHT EQU $0B
LINK_ANIMATION_STATE_HOOKSHOT_CHAIN_DOWN EQU $0E
LINK_ANIMATION_STATE_HOOKSHOT_CHAIN_UP EQU $0F
LINK_ANIMATION_STATE_HOOKSHOT_CHAIN_LEFT EQU $10
LINK_ANIMATION_STATE_HOOKSHOT_CHAIN_RIGHT EQU $11
LINK_ANIMATION_STATE_UNKNOWN_12 EQU $12
LINK_ANIMATION_STATE_UNKNOWN_13 EQU $13
LINK_ANIMATION_STATE_UNKNOWN_14 EQU $14
LINK_ANIMATION_STATE_UNKNOWN_15 EQU $15
LINK_ANIMATION_STATE_UNKNOWN_16 EQU $16
LINK_ANIMATION_STATE_UNKNOWN_17 EQU $17
LINK_ANIMATION_STATE_UNKNOWN_18 EQU $18
LINK_ANIMATION_STATE_UNKNOWN_19 EQU $19
LINK_ANIMATION_STATE_STANDING_PUSHING_DOWN EQU $1A
LINK_ANIMATION_STATE_WALKING_PUSHING_DOWN EQU $1B
LINK_ANIMATION_STATE_STANDING_PUSHING_UP EQU $1C
LINK_ANIMATION_STATE_WALKING_PUSHING_UP EQU $1D
LINK_ANIMATION_STATE_STANDING_PUSHING_LEFT EQU $1E
LINK_ANIMATION_STATE_WALKING_PUSHING_LEFT EQU $1F
LINK_ANIMATION_STATE_STANDING_PUSHING_RIGHT EQU $20
LINK_ANIMATION_STATE_WALKING_PUSHING_RIGHT EQU $21
LINK_ANIMATION_STATE_STANDING_SHIELD_DOWN EQU $22
LINK_ANIMATION_STATE_WALKING_SHIELD_DOWN EQU $23
LINK_ANIMATION_STATE_STANDING_SHIELD_USE_DOWN EQU $24
LINK_ANIMATION_STATE_WALKING_SHIELD_USE_DOWN EQU $25
LINK_ANIMATION_STATE_STANDING_MIRROR_SHIELD_USE_DOWN EQU $26
LINK_ANIMATION_STATE_WALKING_MIRROR_SHIELD_USE_DOWN EQU $27
LINK_ANIMATION_STATE_STANDING_SHIELD_USE_LEFT EQU $28
LINK_ANIMATION_STATE_WALKING_SHIELD_USE_LEFT EQU $29
LINK_ANIMATION_STATE_STANDING_SHIELD_USE_RIGHT EQU $2A
LINK_ANIMATION_STATE_WALKING_SHIELD_USE_RIGHT EQU $2B
LINK_ANIMATION_STATE_STANDING_SHIELD_RIGHT EQU $2C
LINK_ANIMATION_STATE_WALKING_SHIELD_RIGHT EQU $2D
LINK_ANIMATION_STATE_STANDING_MIRROR_SHIELD_RIGHT EQU $2E
LINK_ANIMATION_STATE_WALKING_MIRROR_SHIELD_RIGHT EQU $2F
LINK_ANIMATION_STATE_STANDING_SHIELD_USE_UP EQU $30
LINK_ANIMATION_STATE_WALKING_SHIELD_USE_UP EQU $31
LINK_ANIMATION_STATE_STANDING_MIRROR_SHIELD_USE_UP EQU $32
LINK_ANIMATION_STATE_WALKING_MIRROR_SHIELD_USE_UP EQU $33
LINK_ANIMATION_STATE_STANDING_SHIELD_UP EQU $34
LINK_ANIMATION_STATE_WALKING_SHIELD_UP EQU $35
LINK_ANIMATION_STATE_UNKNOWN_36 EQU $36
LINK_ANIMATION_STATE_UNKNOWN_38 EQU $38
LINK_ANIMATION_STATE_UNKNOWN_3A EQU $3A
LINK_ANIMATION_STATE_UNKNOWN_3C EQU $3C
LINK_ANIMATION_STATE_STANDING_LIFTING_RIGHT EQU $3E
LINK_ANIMATION_STATE_WALKING_LIFTING_RIGHT EQU $3F
LINK_ANIMATION_STATE_STANDING_LIFTING_LEFT EQU $40
LINK_ANIMATION_STATE_WALKING_LIFTING_LEFT EQU $41
LINK_ANIMATION_STATE_STANDING_LIFTING_UP EQU $42
LINK_ANIMATION_STATE_WALKING_LIFTING_UP EQU $43
LINK_ANIMATION_STATE_STANDING_LIFTING_DOWN EQU $44
LINK_ANIMATION_STATE_WALKING_LIFTING_DOWN EQU $45
LINK_ANIMATION_STATE_HOLD_SWIMMING_1_RIGHT EQU $46
LINK_ANIMATION_STATE_MOVING_SWIMMING_1_RIGHT EQU $47
LINK_ANIMATION_STATE_HOLD_SWIMMING_1_LEFT EQU $48
LINK_ANIMATION_STATE_MOVING_SWIMMING_1_LEFT EQU $49
LINK_ANIMATION_STATE_HOLD_SWIMMING_1_UP EQU $4A
LINK_ANIMATION_STATE_MOVING_SWIMMING_1_UP EQU $4B
LINK_ANIMATION_STATE_HOLD_SWIMMING_1_DOWN EQU $4C
LINK_ANIMATION_STATE_MOVING_SWIMMING_1_DOWN EQU $4D
LINK_ANIMATION_STATE_HOLD_SWIMMING_2 EQU $4E
LINK_ANIMATION_STATE_MOVING_SWIMMING_2 EQU $4F
LINK_ANIMATION_STATE_UNKNOWN_50 EQU $50
LINK_ANIMATION_STATE_UNKNOWN_51 EQU $51
LINK_ANIMATION_STATE_UNKNOWN_52 EQU $52
LINK_ANIMATION_STATE_UNKNOWN_53 EQU $53
LINK_ANIMATION_STATE_UNKNOWN_54 EQU $54
LINK_ANIMATION_STATE_UNKNOWN_55 EQU $55
LINK_ANIMATION_STATE_UNKNOWN_56 EQU $56
LINK_ANIMATION_STATE_UNKNOWN_57 EQU $57
LINK_ANIMATION_STATE_STANDING_SIDE_SCROLL_LEFT_DOWN EQU $58
LINK_ANIMATION_STATE_WALKING_SIDE_SCROLL_LEFT_DOWN EQU $59
LINK_ANIMATION_STATE_STANDING_SIDE_SCROLL_RIGHT_UP EQU $5B
LINK_ANIMATION_STATE_WALKING_SIDE_SCROLL_RIGHT_UP EQU $5C
LINK_ANIMATION_STATE_JUMPING_1 EQU $5E
LINK_ANIMATION_STATE_JUMPING_2 EQU $5F
LINK_ANIMATION_STATE_JUMPING_3 EQU $60
LINK_ANIMATION_STATE_UNKNOWN_61 EQU $61
LINK_ANIMATION_STATE_UNKNOWN_62 EQU $62
LINK_ANIMATION_STATE_UNKNOWN_63 EQU $63
LINK_ANIMATION_STATE_UNKNOWN_64 EQU $64
LINK_ANIMATION_STATE_UNKNOWN_65 EQU $65
LINK_ANIMATION_STATE_UNKNOWN_66 EQU $66
LINK_ANIMATION_STATE_UNKNOWN_67 EQU $67
LINK_ANIMATION_STATE_UNKNOWN_68 EQU $68
LINK_ANIMATION_STATE_UNKNOWN_69 EQU $69
LINK_ANIMATION_STATE_UNKNOWN_6A EQU $6A
LINK_ANIMATION_STATE_UNKNOWN_6B EQU $6B
LINK_ANIMATION_STATE_GOT_ITEM EQU $6C
LINK_ANIMATION_STATE_UNKNOWN_75 EQU $75
LINK_ANIMATION_STATE_NO_UPDATE EQU $FF

; STATF [Bitmask] [Binary]
STATF_LYC EQU %01000000
STATF_MODE10 EQU %00100000
Expand All @@ -103,6 +240,11 @@ STATF_OAM EQU %00000010
STATF_VB EQU %00000001
STATF_HB EQU %00000000

; UPDATE_BG_TILES [Enumerated] [Hex]
UPDATE_BG_TILES_DO_NOTHING EQU $00
UPDATE_BG_TILES_WORLD EQU $01
UPDATE_BG_TILES_DUNGEON_MINIMAP EQU $02

; binary [Any] [Binary]

; bool [Enumerated] [Decimal]
Expand Down
44 changes: 44 additions & 0 deletions projects/Links_Awakening_gb.windfish/configuration/globals.asm
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,50 @@ gbPCM12 EQU $FF76 ; [hex]

gbPCM34 EQU $FF77 ; [hex]

hRomBank EQU $FF80 ; [hex]

hTemp EQU $FF81 ; [hex]

hCodeTemp EQU $FF82 ; [hex]

hNeedsUpdatingBGTiles EQU $FF90 ; [UPDATE_BG_TILES]

hNeedsUpdatingEnemiesTiles EQU $FF91 ; [bool]

hBGTilesLoadingStage EQU $FF92 ; [hex]

hEnemiesTilesLoadingStage EQU $FF93 ; [hex]

hWorldTileset EQU $FF94 ; [hex]

hBaseScrollX EQU $FF96 ; [decimal]

hBaseScrollY EQU $FF97 ; [decimal]

hLinkPositionX EQU $FF98 ; [decimal]

hLinkPositionY EQU $FF99 ; [decimal]

hLinkPositionXIncrement EQU $FF9A ; [decimal]

hLinkPositionYIncrement EQU $FF9B ; [decimal]

hLinkAnimationState EQU $FF9D ; [LINK_ANIMATION]

hLinkDirection EQU $FF9E ; [DIRECTION]

hLinkFinalPositionX EQU $FF9F ; [decimal]

hLinkFinalPositionY EQU $FFA0 ; [decimal]

hLinkInteractiveMotionBlocked EQU $FFA1 ; [INTERACTIVE_MOTION]

hLinkPositionZHigh EQU $FFA2 ; [hex]

hLinkPositionZLow EQU $FFA3 ; [hex]

hAnimatedTilesGroup EQU $FFA4 ; [ANIMATED_TILE]

hNeedsRenderingFrame EQU $FFD1 ; [bool]

hIsRenderingFrame EQU $FFFD ; [bool]
Expand Down
Loading

0 comments on commit 4dcab47

Please sign in to comment.