2018-06-24 14:09:41 +00:00
|
|
|
_TitleScreen:
|
2015-11-12 04:38:57 +00:00
|
|
|
call ClearBGPalettes
|
2013-09-15 22:59:53 +00:00
|
|
|
call ClearSprites
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Turn BG Map update off
|
|
|
|
xor a
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hBGMapMode], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Reset timing variables
|
2015-10-24 23:49:19 +00:00
|
|
|
ld hl, wJumptableIndex
|
2017-12-10 05:18:29 +00:00
|
|
|
ld [hli], a ; wJumptableIndex
|
2020-08-03 21:00:41 +00:00
|
|
|
ld [hli], a ; wTitleScreenSelectedOption
|
2017-12-10 05:18:29 +00:00
|
|
|
ld [hli], a ; wTitleScreenTimer
|
|
|
|
ld [hl], a ; wTitleScreenTimer + 1
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Turn LCD off
|
|
|
|
call DisableLCD
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; VRAM bank 1
|
|
|
|
ld a, 1
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rVBK], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Decompress running Suicune gfx
|
|
|
|
ld hl, TitleSuicuneGFX
|
2017-12-28 12:32:33 +00:00
|
|
|
ld de, vTiles1
|
2013-09-15 22:59:53 +00:00
|
|
|
call Decompress
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Clear screen palettes
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 0
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, 20 * BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
xor a
|
|
|
|
call ByteFill
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Fill tile palettes:
|
|
|
|
|
|
|
|
; BG Map 1:
|
|
|
|
|
|
|
|
; line 0 (copyright)
|
2017-12-28 12:32:33 +00:00
|
|
|
hlbgcoord 0, 0, vBGMap1
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 7 ; palette
|
|
|
|
call ByteFill
|
|
|
|
|
|
|
|
; BG Map 0:
|
|
|
|
|
|
|
|
; Apply logo gradient:
|
|
|
|
|
|
|
|
; lines 3-4
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 3
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, 2 * BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 2
|
|
|
|
call ByteFill
|
|
|
|
; line 5
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 5
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 3
|
|
|
|
call ByteFill
|
|
|
|
; line 6
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 6
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 4
|
|
|
|
call ByteFill
|
|
|
|
; line 7
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 7
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 5
|
|
|
|
call ByteFill
|
|
|
|
; lines 8-9
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 8
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, 2 * BG_MAP_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 6
|
|
|
|
call ByteFill
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; 'CRYSTAL VERSION'
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 5, 9
|
2020-08-03 20:55:50 +00:00
|
|
|
ld bc, 11 ; length of version text
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 1
|
|
|
|
call ByteFill
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Suicune gfx
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 12
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, 6 * BG_MAP_WIDTH ; the rest of the screen
|
2017-12-28 01:43:56 +00:00
|
|
|
ld a, 0 | VRAM_BANK_1
|
2013-09-15 22:59:53 +00:00
|
|
|
call ByteFill
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Back to VRAM bank 0
|
2020-08-03 20:55:50 +00:00
|
|
|
ld a, 0
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rVBK], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Decompress logo
|
|
|
|
ld hl, TitleLogoGFX
|
2017-12-28 12:32:33 +00:00
|
|
|
ld de, vTiles1
|
2013-09-15 22:59:53 +00:00
|
|
|
call Decompress
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Decompress background crystal
|
|
|
|
ld hl, TitleCrystalGFX
|
2017-12-28 12:32:33 +00:00
|
|
|
ld de, vTiles0
|
2013-09-15 22:59:53 +00:00
|
|
|
call Decompress
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Clear screen tiles
|
2015-11-20 16:47:52 +00:00
|
|
|
hlbgcoord 0, 0
|
2017-12-29 23:59:50 +00:00
|
|
|
ld bc, 64 * BG_MAP_WIDTH
|
2015-11-20 16:47:52 +00:00
|
|
|
ld a, " "
|
2013-09-15 22:59:53 +00:00
|
|
|
call ByteFill
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Draw Pokemon logo
|
2014-06-04 08:10:56 +00:00
|
|
|
hlcoord 0, 3
|
|
|
|
lb bc, 7, 20
|
2013-09-15 22:59:53 +00:00
|
|
|
ld d, $80
|
2020-08-03 20:55:50 +00:00
|
|
|
ld e, 20
|
2014-04-09 22:27:29 +00:00
|
|
|
call DrawTitleGraphic
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Draw copyright text
|
2017-12-28 12:32:33 +00:00
|
|
|
hlbgcoord 3, 0, vBGMap1
|
2014-06-04 08:10:56 +00:00
|
|
|
lb bc, 1, 13
|
2013-09-15 22:59:53 +00:00
|
|
|
ld d, $c
|
2020-08-03 20:55:50 +00:00
|
|
|
ld e, 16
|
2014-04-09 22:27:29 +00:00
|
|
|
call DrawTitleGraphic
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Initialize running Suicune?
|
|
|
|
ld d, $0
|
2015-10-19 20:49:29 +00:00
|
|
|
call LoadSuicuneFrame
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Initialize background crystal
|
2015-10-19 20:49:29 +00:00
|
|
|
call InitializeBackground
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2020-08-03 20:55:50 +00:00
|
|
|
; Update palette colors
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [rSVBK]
|
2013-09-15 22:59:53 +00:00
|
|
|
push af
|
2018-01-04 00:12:45 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rSVBK], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
ld hl, TitleScreenPalettes
|
2018-01-01 14:08:21 +00:00
|
|
|
ld de, wBGPals1
|
2017-12-10 05:18:29 +00:00
|
|
|
ld bc, 16 palettes
|
2013-09-15 22:59:53 +00:00
|
|
|
call CopyBytes
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
ld hl, TitleScreenPalettes
|
2018-01-01 14:08:21 +00:00
|
|
|
ld de, wBGPals2
|
2017-12-10 05:18:29 +00:00
|
|
|
ld bc, 16 palettes
|
2013-09-15 22:59:53 +00:00
|
|
|
call CopyBytes
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
pop af
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rSVBK], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; LY/SCX trickery starts here
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [rSVBK]
|
2013-09-15 22:59:53 +00:00
|
|
|
push af
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, BANK(wLYOverrides)
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rSVBK], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Make alternating lines come in from opposite sides
|
|
|
|
|
2018-01-10 03:44:06 +00:00
|
|
|
; (This part is actually totally pointless, you can't
|
|
|
|
; see anything until these values are overwritten!)
|
2013-09-15 22:59:53 +00:00
|
|
|
|
|
|
|
ld b, 80 / 2 ; alternate for 80 lines
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wLYOverrides
|
2013-09-15 22:59:53 +00:00
|
|
|
.loop
|
|
|
|
; $00 is the middle position
|
|
|
|
ld [hl], +112 ; coming from the left
|
|
|
|
inc hl
|
|
|
|
ld [hl], -112 ; coming from the right
|
|
|
|
inc hl
|
|
|
|
dec b
|
|
|
|
jr nz, .loop
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Make sure the rest of the buffer is empty
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wLYOverrides + 80
|
2013-09-15 22:59:53 +00:00
|
|
|
xor a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld bc, wLYOverridesEnd - (wLYOverrides + 80)
|
2013-09-15 22:59:53 +00:00
|
|
|
call ByteFill
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Let LCD Stat know we're messing around with SCX
|
2018-08-25 18:34:25 +00:00
|
|
|
ld a, LOW(rSCX)
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hLCDCPointer], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
pop af
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rSVBK], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Reset audio
|
|
|
|
call ChannelsOff
|
|
|
|
call EnableLCD
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Set sprite size to 8x16
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [rLCDC]
|
2017-12-29 17:53:21 +00:00
|
|
|
set rLCDC_SPRITE_SIZE, a
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rLCDC], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, +112
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hSCX], a
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 8
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hSCY], a
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, 7
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hWX], a
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, -112
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hWY], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2020-08-03 21:41:01 +00:00
|
|
|
ld a, TRUE
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hCGBPalUpdate], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Update BG Map 0 (bank 0)
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hBGMapMode], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
xor a
|
2019-01-15 12:08:40 +00:00
|
|
|
ld [wSuicuneFrame], a
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Play starting sound effect
|
|
|
|
call SFXChannelsOff
|
|
|
|
ld de, SFX_TITLE_SCREEN_ENTRANCE
|
2013-10-08 17:10:36 +00:00
|
|
|
call PlaySFX
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
SuicuneFrameIterator:
|
2019-01-15 12:08:40 +00:00
|
|
|
ld hl, wSuicuneFrame
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, [hl]
|
|
|
|
ld c, a
|
|
|
|
inc [hl]
|
2015-10-19 20:49:29 +00:00
|
|
|
|
|
|
|
; Only do this once every eight frames
|
2018-01-09 22:20:47 +00:00
|
|
|
and %111
|
2013-09-15 22:59:53 +00:00
|
|
|
ret nz
|
2015-10-19 20:49:29 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, c
|
2018-01-09 22:20:47 +00:00
|
|
|
and %11000
|
2013-09-15 22:59:53 +00:00
|
|
|
sla a
|
|
|
|
swap a
|
|
|
|
ld e, a
|
2020-11-09 20:17:03 +00:00
|
|
|
ld d, 0
|
2015-10-19 20:49:29 +00:00
|
|
|
ld hl, .Frames
|
2013-09-15 22:59:53 +00:00
|
|
|
add hl, de
|
|
|
|
ld d, [hl]
|
|
|
|
xor a
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hBGMapMode], a
|
2015-10-19 20:49:29 +00:00
|
|
|
call LoadSuicuneFrame
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, $1
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hBGMapMode], a
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, $3
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hBGMapThird], a
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
.Frames:
|
2018-07-15 15:58:01 +00:00
|
|
|
db $80 ; vTiles3 tile $80
|
|
|
|
db $88 ; vTiles3 tile $88
|
2017-12-28 12:32:33 +00:00
|
|
|
db $00 ; vTiles5 tile $00
|
|
|
|
db $08 ; vTiles5 tile $08
|
2013-09-15 22:59:53 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
LoadSuicuneFrame:
|
2014-06-04 08:10:56 +00:00
|
|
|
hlcoord 6, 12
|
2015-10-19 20:49:29 +00:00
|
|
|
ld b, 6
|
2015-11-20 16:47:52 +00:00
|
|
|
.bgrows
|
2015-10-19 20:49:29 +00:00
|
|
|
ld c, 8
|
|
|
|
.col
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, d
|
|
|
|
ld [hli], a
|
|
|
|
inc d
|
|
|
|
dec c
|
2015-10-19 20:49:29 +00:00
|
|
|
jr nz, .col
|
|
|
|
ld a, SCREEN_WIDTH - 8
|
2013-09-15 22:59:53 +00:00
|
|
|
add l
|
|
|
|
ld l, a
|
2015-10-19 20:49:29 +00:00
|
|
|
ld a, 0
|
2013-09-15 22:59:53 +00:00
|
|
|
adc h
|
|
|
|
ld h, a
|
2015-10-19 20:49:29 +00:00
|
|
|
ld a, 8
|
2013-09-15 22:59:53 +00:00
|
|
|
add d
|
|
|
|
ld d, a
|
|
|
|
dec b
|
2015-11-20 16:47:52 +00:00
|
|
|
jr nz, .bgrows
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
DrawTitleGraphic:
|
2014-04-09 22:27:29 +00:00
|
|
|
; input:
|
|
|
|
; hl: draw location
|
|
|
|
; b: height
|
|
|
|
; c: width
|
|
|
|
; d: tile to start drawing from
|
2015-11-20 16:47:52 +00:00
|
|
|
; e: number of tiles to advance for each bgrows
|
|
|
|
.bgrows
|
2013-09-15 22:59:53 +00:00
|
|
|
push de
|
|
|
|
push bc
|
|
|
|
push hl
|
2015-10-19 20:49:29 +00:00
|
|
|
.col
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, d
|
|
|
|
ld [hli], a
|
|
|
|
inc d
|
|
|
|
dec c
|
2015-10-19 20:49:29 +00:00
|
|
|
jr nz, .col
|
2013-09-15 22:59:53 +00:00
|
|
|
pop hl
|
2015-10-19 20:49:29 +00:00
|
|
|
ld bc, SCREEN_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
add hl, bc
|
|
|
|
pop bc
|
|
|
|
pop de
|
|
|
|
ld a, e
|
|
|
|
add d
|
|
|
|
ld d, a
|
|
|
|
dec b
|
2015-11-20 16:47:52 +00:00
|
|
|
jr nz, .bgrows
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
InitializeBackground:
|
2022-07-09 21:18:22 +00:00
|
|
|
ld hl, wShadowOAMSprite00
|
2015-10-19 20:49:29 +00:00
|
|
|
ld d, -$22
|
2013-09-15 22:59:53 +00:00
|
|
|
ld e, $0
|
2015-10-19 20:49:29 +00:00
|
|
|
ld c, 5
|
|
|
|
.loop
|
2013-09-15 22:59:53 +00:00
|
|
|
push bc
|
2015-10-19 20:49:29 +00:00
|
|
|
call .InitColumn
|
2013-09-15 22:59:53 +00:00
|
|
|
pop bc
|
|
|
|
ld a, $10
|
|
|
|
add d
|
|
|
|
ld d, a
|
|
|
|
dec c
|
2015-10-19 20:49:29 +00:00
|
|
|
jr nz, .loop
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
.InitColumn:
|
2013-09-15 22:59:53 +00:00
|
|
|
ld c, $6
|
|
|
|
ld b, $40
|
2015-10-21 14:43:42 +00:00
|
|
|
.loop2
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, d
|
2018-01-10 18:47:57 +00:00
|
|
|
ld [hli], a ; y
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, b
|
2018-01-10 18:47:57 +00:00
|
|
|
ld [hli], a ; x
|
2013-09-15 22:59:53 +00:00
|
|
|
add $8
|
|
|
|
ld b, a
|
|
|
|
ld a, e
|
2018-01-10 18:47:57 +00:00
|
|
|
ld [hli], a ; tile id
|
2013-09-15 22:59:53 +00:00
|
|
|
inc e
|
2016-05-04 15:46:23 +00:00
|
|
|
inc e
|
2018-01-12 04:50:44 +00:00
|
|
|
ld a, 0 | PRIORITY
|
2018-01-10 18:47:57 +00:00
|
|
|
ld [hli], a ; attributes
|
2013-09-15 22:59:53 +00:00
|
|
|
dec c
|
2015-10-21 14:43:42 +00:00
|
|
|
jr nz, .loop2
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
AnimateTitleCrystal:
|
2013-09-15 22:59:53 +00:00
|
|
|
; Move the title screen crystal downward until it's fully visible
|
|
|
|
|
|
|
|
; Stop at y=6
|
|
|
|
; y is really from the bottom of the sprite, which is two tiles high
|
2022-07-09 21:18:22 +00:00
|
|
|
ld hl, wShadowOAMSprite00YCoord
|
2013-09-15 22:59:53 +00:00
|
|
|
ld a, [hl]
|
2018-01-10 18:47:57 +00:00
|
|
|
cp 6 + 2 * TILE_WIDTH
|
2013-09-15 22:59:53 +00:00
|
|
|
ret z
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
; Move all 30 parts of the crystal down by 2
|
|
|
|
ld c, 30
|
|
|
|
.loop
|
|
|
|
ld a, [hl]
|
|
|
|
add 2
|
2018-01-10 18:47:57 +00:00
|
|
|
ld [hli], a ; y
|
2020-03-21 18:01:05 +00:00
|
|
|
rept SPRITEOAMSTRUCT_LENGTH - 1
|
2016-05-10 16:31:49 +00:00
|
|
|
inc hl
|
2018-01-10 18:47:57 +00:00
|
|
|
endr
|
2013-09-15 22:59:53 +00:00
|
|
|
dec c
|
|
|
|
jr nz, .loop
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2013-09-15 22:59:53 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
TitleSuicuneGFX:
|
2017-06-22 03:45:01 +00:00
|
|
|
INCBIN "gfx/title/suicune.2bpp.lz"
|
2013-09-15 22:59:53 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
TitleLogoGFX:
|
2017-06-22 03:45:01 +00:00
|
|
|
INCBIN "gfx/title/logo.2bpp.lz"
|
2013-09-15 22:59:53 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
TitleCrystalGFX:
|
2017-06-22 03:45:01 +00:00
|
|
|
INCBIN "gfx/title/crystal.2bpp.lz"
|
2013-09-15 22:59:53 +00:00
|
|
|
|
|
|
|
TitleScreenPalettes:
|
2018-01-10 04:21:32 +00:00
|
|
|
INCLUDE "gfx/title/title.pal"
|