pokecrystal-board/engine/diploma.asm

95 lines
1.6 KiB
NASM
Raw Normal View History

2015-02-11 14:08:07 -08:00
2015-11-16 19:29:54 -08:00
_Diploma: ; 1dd702
2016-05-11 14:16:03 -07:00
call PlaceDiplomaOnScreen
call WaitPressAorB_BlinkCursor
2015-02-11 14:08:07 -08:00
ret
; 1dd709
2016-05-11 14:16:03 -07:00
PlaceDiplomaOnScreen: ; 1dd709
2015-11-11 20:38:57 -08:00
call ClearBGPalettes
2015-02-11 14:08:07 -08:00
call ClearTileMap
call ClearSprites
call DisableLCD
2016-05-11 14:16:03 -07:00
ld hl, DiplomaGFX
2015-02-11 14:08:07 -08:00
ld de, VTiles2
call Decompress
2016-05-11 14:16:03 -07:00
ld hl, DiplomaPage1Tilemap
decoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
2015-02-11 14:08:07 -08:00
call CopyBytes
2016-05-11 14:16:03 -07:00
ld de, .Player
2015-02-11 14:08:07 -08:00
hlcoord 2, 5
call PlaceString
2016-05-11 14:16:03 -07:00
ld de, .EmptyString
2015-02-11 14:08:07 -08:00
hlcoord 15, 5
call PlaceString
ld de, PlayerName
hlcoord 9, 5
call PlaceString
2016-05-11 14:16:03 -07:00
ld de, .Certification
2015-02-11 14:08:07 -08:00
hlcoord 2, 8
call PlaceString
call EnableLCD
call WaitBGMap
2016-06-06 15:23:00 -07:00
ld b, SCGB_DIPLOMA
2015-02-11 14:08:07 -08:00
call GetSGBLayout
2015-09-09 16:27:07 -07:00
call SetPalettes
2015-02-11 14:08:07 -08:00
call DelayFrame
ret
; 1dd760
2016-05-11 14:16:03 -07:00
.Player:
2015-02-11 14:08:07 -08:00
db "PLAYER@"
2016-05-11 14:16:03 -07:00
.EmptyString:
2015-02-11 14:08:07 -08:00
db "@"
2016-05-11 14:16:03 -07:00
.Certification:
2015-02-11 14:08:07 -08:00
db "This certifies"
next "that you have"
next "completed the"
next "new #DEX."
next "Congratulations!"
db "@"
; 1dd7ae
2016-05-11 14:16:03 -07:00
PrintDiplomaPage2: ; 1dd7ae
hlcoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
2015-02-11 14:08:07 -08:00
ld a, $7f
call ByteFill
2016-05-11 14:16:03 -07:00
ld hl, DiplomaPage2Tilemap
decoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
2015-02-11 14:08:07 -08:00
call CopyBytes
2016-05-11 14:16:03 -07:00
ld de, .GameFreak
2015-02-11 14:08:07 -08:00
hlcoord 8, 0
call PlaceString
2016-05-11 14:16:03 -07:00
ld de, .PlayTime
2015-02-11 14:08:07 -08:00
hlcoord 3, 15
call PlaceString
hlcoord 12, 15
ld de, GameTimeHours
lb bc, 2, 4
2015-02-11 14:08:07 -08:00
call PrintNum
2016-05-11 14:16:03 -07:00
ld [hl], $67 ; colon
2015-02-11 14:08:07 -08:00
inc hl
ld de, GameTimeMinutes
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
2015-02-11 14:08:07 -08:00
call PrintNum
ret
; 1dd7f0
2016-05-11 14:16:03 -07:00
.PlayTime: db "PLAY TIME@"
.GameFreak: db "GAME FREAK@"
2015-02-11 14:08:07 -08:00
; 1dd805
2016-05-11 14:16:03 -07:00
DiplomaGFX: ; 1dd805
INCBIN "gfx/diploma/diploma.2bpp.lz"
2015-02-11 14:08:07 -08:00
2016-05-11 14:16:03 -07:00
DiplomaPage1Tilemap: ; 1ddc4b
INCBIN "gfx/diploma/page1.tilemap"
2015-02-11 14:08:07 -08:00
2016-05-11 14:16:03 -07:00
DiplomaPage2Tilemap: ; 1dddb3
INCBIN "gfx/diploma/page2.tilemap"