You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
sprite_header and emote_header
This commit is contained in:
@@ -566,6 +566,7 @@ const_value SET 1
|
|||||||
const MAPOBJECT_FLAG_HI ; d
|
const MAPOBJECT_FLAG_HI ; d
|
||||||
const MAPOBJECT_E ; unused
|
const MAPOBJECT_E ; unused
|
||||||
const MAPOBJECT_F ; unused
|
const MAPOBJECT_F ; unused
|
||||||
|
OBJECT_LENGTH EQU const_value
|
||||||
|
|
||||||
MAPOBJECT_SCREEN_HEIGHT EQU 11
|
MAPOBJECT_SCREEN_HEIGHT EQU 11
|
||||||
MAPOBJECT_SCREEN_WIDTH EQU 12
|
MAPOBJECT_SCREEN_WIDTH EQU 12
|
||||||
|
@@ -54,7 +54,6 @@ SATURDAY EQU 6
|
|||||||
PLAYER_OBJECT EQU 0
|
PLAYER_OBJECT EQU 0
|
||||||
|
|
||||||
NUM_OBJECTS EQU $10
|
NUM_OBJECTS EQU $10
|
||||||
OBJECT_LENGTH EQU $10
|
|
||||||
|
|
||||||
; InputType: ; c2c7
|
; InputType: ; c2c7
|
||||||
AUTO_INPUT EQU $ff
|
AUTO_INPUT EQU $ff
|
||||||
|
Binary file not shown.
1
gfx/misc/fishing1.2bpp
Normal file
1
gfx/misc/fishing1.2bpp
Normal file
@@ -0,0 +1 @@
|
|||||||
|
????
|
BIN
gfx/misc/fishing2.2bpp
Normal file
BIN
gfx/misc/fishing2.2bpp
Normal file
Binary file not shown.
BIN
gfx/misc/fishing3.2bpp
Normal file
BIN
gfx/misc/fishing3.2bpp
Normal file
Binary file not shown.
1
gfx/misc/fishing4.2bpp
Normal file
1
gfx/misc/fishing4.2bpp
Normal file
@@ -0,0 +1 @@
|
|||||||
|
@ 2フd 6
|
File diff suppressed because it is too large
Load Diff
111
main.asm
111
main.asm
@@ -16193,26 +16193,26 @@ Function14135:: ; 14135
|
|||||||
; 14146
|
; 14146
|
||||||
|
|
||||||
Function14146: ; 14146
|
Function14146: ; 14146
|
||||||
ld hl, wd13e
|
ld hl, wSpriteFlags
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
push af
|
push af
|
||||||
res 7, [hl]
|
res 7, [hl]
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
call RunCallback_04
|
call RunCallback_04
|
||||||
pop af
|
pop af
|
||||||
ld [wd13e], a
|
ld [wSpriteFlags], a
|
||||||
ret
|
ret
|
||||||
; 14157
|
; 14157
|
||||||
|
|
||||||
Function14157: ; 14157
|
Function14157: ; 14157
|
||||||
ld hl, wd13e
|
ld hl, wSpriteFlags
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
push af
|
push af
|
||||||
set 7, [hl]
|
set 7, [hl]
|
||||||
res 6, [hl]
|
res 6, [hl]
|
||||||
call RunCallback_04
|
call RunCallback_04
|
||||||
pop af
|
pop af
|
||||||
ld [wd13e], a
|
ld [wSpriteFlags], a
|
||||||
ret
|
ret
|
||||||
; 14168
|
; 14168
|
||||||
|
|
||||||
@@ -16225,7 +16225,7 @@ Function14168:: ; 14168
|
|||||||
|
|
||||||
Function1416f: ; 1416f
|
Function1416f: ; 1416f
|
||||||
xor a
|
xor a
|
||||||
ld bc, $0040
|
ld bc, UsedSpritesEnd - UsedSprites
|
||||||
ld hl, UsedSprites
|
ld hl, UsedSprites
|
||||||
call ByteFill
|
call ByteFill
|
||||||
call GetPlayerSprite
|
call GetPlayerSprite
|
||||||
@@ -16254,7 +16254,7 @@ GetPlayerSprite: ; 14183
|
|||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
cp c
|
cp c
|
||||||
jr z, .asm_141ac
|
jr z, .good
|
||||||
inc hl
|
inc hl
|
||||||
cp $ff
|
cp $ff
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
@@ -16263,15 +16263,15 @@ GetPlayerSprite: ; 14183
|
|||||||
xor a ; ld a, PLAYER_NORMAL
|
xor a ; ld a, PLAYER_NORMAL
|
||||||
ld [PlayerState], a
|
ld [PlayerState], a
|
||||||
ld a, SPRITE_CHRIS
|
ld a, SPRITE_CHRIS
|
||||||
jr .asm_141ad
|
jr .finish
|
||||||
|
|
||||||
.asm_141ac
|
.good
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
|
|
||||||
.asm_141ad
|
.finish
|
||||||
ld [UsedSprites + 0], a
|
ld [UsedSprites + 0], a
|
||||||
ld [PlayerStruct + 0], a
|
ld [PlayerSprite], a
|
||||||
ld [MapObjects + OBJECT_LENGTH * 0 + 1], a
|
ld [MapObjects + OBJECT_LENGTH * PLAYER_OBJECT + MAPOBJECT_SPRITE], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.Chris
|
.Chris
|
||||||
@@ -16303,7 +16303,7 @@ AddMapSprites: ; 141c9
|
|||||||
|
|
||||||
|
|
||||||
AddIndoorSprites: ; 141d9
|
AddIndoorSprites: ; 141d9
|
||||||
ld hl, MapObjects + 1 * OBJECT_LENGTH + 1 ; sprite
|
ld hl, MapObjects + 1 * OBJECT_LENGTH + MAPOBJECT_SPRITE ; sprite
|
||||||
ld a, 1
|
ld a, 1
|
||||||
.loop
|
.loop
|
||||||
push af
|
push af
|
||||||
@@ -16352,7 +16352,7 @@ RunCallback_04: ; 14209
|
|||||||
; 14215
|
; 14215
|
||||||
|
|
||||||
Function14215: ; 14215
|
Function14215: ; 14215
|
||||||
ld a, [wd13e]
|
ld a, [wSpriteFlags]
|
||||||
bit 6, a
|
bit 6, a
|
||||||
ret nz
|
ret nz
|
||||||
ld c, $8
|
ld c, $8
|
||||||
@@ -16755,9 +16755,9 @@ Function1439b: ; 1439b
|
|||||||
ld hl, UsedSprites
|
ld hl, UsedSprites
|
||||||
ld c, SPRITE_GFX_LIST_CAPACITY
|
ld c, SPRITE_GFX_LIST_CAPACITY
|
||||||
.loop
|
.loop
|
||||||
ld a, [wd13e]
|
ld a, [wSpriteFlags]
|
||||||
res 5, a
|
res 5, a
|
||||||
ld [wd13e], a
|
ld [wSpriteFlags], a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
and a
|
and a
|
||||||
jr z, .done
|
jr z, .done
|
||||||
@@ -16766,9 +16766,9 @@ Function1439b: ; 1439b
|
|||||||
ld [hUsedSpriteTile], a
|
ld [hUsedSpriteTile], a
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jr z, .dont_set
|
jr z, .dont_set
|
||||||
ld a, [wd13e]
|
ld a, [wSpriteFlags]
|
||||||
set 5, a
|
set 5, a
|
||||||
ld [wd13e], a
|
ld [wSpriteFlags], a
|
||||||
|
|
||||||
.dont_set
|
.dont_set
|
||||||
push bc
|
push bc
|
||||||
@@ -16791,7 +16791,7 @@ Function143c8: ; 143c8
|
|||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
push bc
|
push bc
|
||||||
ld a, [wd13e]
|
ld a, [wSpriteFlags]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jr nz, .asm_143df
|
jr nz, .asm_143df
|
||||||
call Function14418
|
call Function14418
|
||||||
@@ -16808,7 +16808,7 @@ endr
|
|||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
pop hl
|
pop hl
|
||||||
ld a, [wd13e]
|
ld a, [wSpriteFlags]
|
||||||
bit 5, a
|
bit 5, a
|
||||||
jr nz, .asm_14405
|
jr nz, .asm_14405
|
||||||
bit 6, a
|
bit 6, a
|
||||||
@@ -16845,7 +16845,7 @@ endr
|
|||||||
Function14418: ; 14418
|
Function14418: ; 14418
|
||||||
ld a, [rVBK]
|
ld a, [rVBK]
|
||||||
push af
|
push af
|
||||||
ld a, [wd13e]
|
ld a, [wSpriteFlags]
|
||||||
bit 5, a
|
bit 5, a
|
||||||
ld a, $1
|
ld a, $1
|
||||||
jr z, .asm_14426
|
jr z, .asm_14426
|
||||||
@@ -16889,59 +16889,29 @@ LoadEmote:: ; 1442f
|
|||||||
ret
|
ret
|
||||||
; 1444d
|
; 1444d
|
||||||
|
|
||||||
|
emote_header: MACRO
|
||||||
|
dw \1
|
||||||
|
db \2 * $10, BANK(\1)
|
||||||
|
dw \3
|
||||||
|
ENDM
|
||||||
|
|
||||||
EmotesPointers: ; 144d
|
EmotesPointers: ; 144d
|
||||||
; dw source address
|
; dw source address
|
||||||
; db length, bank
|
; db length, bank
|
||||||
; dw dest address
|
; dw dest address
|
||||||
|
|
||||||
dw ShockEmote
|
emote_header ShockEmote, 4, VTiles1 tile $78
|
||||||
db 4 * $10, BANK(ShockEmote)
|
emote_header QuestionEmote, 4, VTiles1 tile $78
|
||||||
dw VTiles1 tile $78
|
emote_header HappyEmote, 4, VTiles1 tile $78
|
||||||
|
emote_header SadEmote, 4, VTiles1 tile $78
|
||||||
dw QuestionEmote
|
emote_header HeartEmote, 4, VTiles1 tile $78
|
||||||
db 4 * $10, BANK(QuestionEmote)
|
emote_header BoltEmote, 4, VTiles1 tile $78
|
||||||
dw VTiles1 tile $78
|
emote_header SleepEmote, 4, VTiles1 tile $78
|
||||||
|
emote_header FishEmote, 4, VTiles1 tile $78
|
||||||
dw HappyEmote
|
emote_header FishingRodGFX1, 1, VTiles1 tile $7c
|
||||||
db 4 * $10, BANK(HappyEmote)
|
emote_header FishingRodGFX2, 2, VTiles1 tile $7c
|
||||||
dw VTiles1 tile $78
|
emote_header FishingRodGFX3, 2, VTiles1 tile $7e
|
||||||
|
emote_header FishingRodGFX4, 1, VTiles1 tile $7e
|
||||||
dw SadEmote
|
|
||||||
db 4 * $10, BANK(SadEmote)
|
|
||||||
dw VTiles1 tile $78
|
|
||||||
|
|
||||||
dw HeartEmote
|
|
||||||
db 4 * $10, BANK(HeartEmote)
|
|
||||||
dw VTiles1 tile $78
|
|
||||||
|
|
||||||
dw BoltEmote
|
|
||||||
db 4 * $10, BANK(BoltEmote)
|
|
||||||
dw VTiles1 tile $78
|
|
||||||
|
|
||||||
dw SleepEmote
|
|
||||||
db 4 * $10, BANK(SleepEmote)
|
|
||||||
dw VTiles1 tile $78
|
|
||||||
|
|
||||||
dw FishEmote
|
|
||||||
db 4 * $10, BANK(FishEmote)
|
|
||||||
dw VTiles1 tile $78
|
|
||||||
|
|
||||||
dw FishingRodGFX + $00
|
|
||||||
db 1 * $10, BANK(FishingRodGFX)
|
|
||||||
dw VTiles1 tile $7c
|
|
||||||
|
|
||||||
dw FishingRodGFX + $10
|
|
||||||
db 2 * $10, BANK(FishingRodGFX)
|
|
||||||
dw VTiles1 tile $7c
|
|
||||||
|
|
||||||
dw FishingRodGFX + $30
|
|
||||||
db 2 * $10, BANK(FishingRodGFX)
|
|
||||||
dw VTiles1 tile $7e
|
|
||||||
|
|
||||||
dw FishingRodGFX + $50
|
|
||||||
db 1 * $10, BANK(FishingRodGFX)
|
|
||||||
dw VTiles1 tile $7e
|
|
||||||
|
|
||||||
; 14495
|
; 14495
|
||||||
|
|
||||||
|
|
||||||
@@ -78058,7 +78028,10 @@ HeartEmote: INCBIN "gfx/emotes/heart.2bpp"
|
|||||||
BoltEmote: INCBIN "gfx/emotes/bolt.2bpp"
|
BoltEmote: INCBIN "gfx/emotes/bolt.2bpp"
|
||||||
SleepEmote: INCBIN "gfx/emotes/sleep.2bpp"
|
SleepEmote: INCBIN "gfx/emotes/sleep.2bpp"
|
||||||
FishEmote: INCBIN "gfx/emotes/fish.2bpp"
|
FishEmote: INCBIN "gfx/emotes/fish.2bpp"
|
||||||
FishingRodGFX: INCBIN "gfx/misc/fishing.2bpp"
|
FishingRodGFX1: INCBIN "gfx/misc/fishing1.2bpp"
|
||||||
|
FishingRodGFX2: INCBIN "gfx/misc/fishing2.2bpp"
|
||||||
|
FishingRodGFX3: INCBIN "gfx/misc/fishing3.2bpp"
|
||||||
|
FishingRodGFX4: INCBIN "gfx/misc/fishing4.2bpp"
|
||||||
|
|
||||||
|
|
||||||
RunCallback_05_03: ; 1045b0
|
RunCallback_05_03: ; 1045b0
|
||||||
|
Reference in New Issue
Block a user