2018-06-24 14:09:41 +00:00
|
|
|
_Diploma:
|
2016-05-11 21:16:03 +00:00
|
|
|
call PlaceDiplomaOnScreen
|
2015-11-11 04:23:28 +00:00
|
|
|
call WaitPressAorB_BlinkCursor
|
2015-02-11 22:08:07 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
PlaceDiplomaOnScreen:
|
2015-11-12 04:38:57 +00:00
|
|
|
call ClearBGPalettes
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2015-02-11 22:08:07 +00:00
|
|
|
call ClearSprites
|
|
|
|
call DisableLCD
|
2016-05-11 21:16:03 +00:00
|
|
|
ld hl, DiplomaGFX
|
2017-12-28 12:32:33 +00:00
|
|
|
ld de, vTiles2
|
2015-02-11 22:08:07 +00:00
|
|
|
call Decompress
|
2016-05-11 21:16:03 +00:00
|
|
|
ld hl, DiplomaPage1Tilemap
|
2015-07-22 19:57:02 +00:00
|
|
|
decoord 0, 0
|
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
2015-02-11 22:08:07 +00:00
|
|
|
call CopyBytes
|
2016-05-11 21:16:03 +00:00
|
|
|
ld de, .Player
|
2015-02-11 22:08:07 +00:00
|
|
|
hlcoord 2, 5
|
|
|
|
call PlaceString
|
2016-05-11 21:16:03 +00:00
|
|
|
ld de, .EmptyString
|
2015-02-11 22:08:07 +00:00
|
|
|
hlcoord 15, 5
|
|
|
|
call PlaceString
|
2018-01-23 22:39:09 +00:00
|
|
|
ld de, wPlayerName
|
2015-02-11 22:08:07 +00:00
|
|
|
hlcoord 9, 5
|
|
|
|
call PlaceString
|
2016-05-11 21:16:03 +00:00
|
|
|
ld de, .Certification
|
2015-02-11 22:08:07 +00:00
|
|
|
hlcoord 2, 8
|
|
|
|
call PlaceString
|
|
|
|
call EnableLCD
|
|
|
|
call WaitBGMap
|
2016-06-06 22:23:00 +00:00
|
|
|
ld b, SCGB_DIPLOMA
|
2015-02-11 22:08:07 +00:00
|
|
|
call GetSGBLayout
|
2024-01-07 11:38:00 +00:00
|
|
|
call SetDefaultBGPAndOBP
|
2015-02-11 22:08:07 +00:00
|
|
|
call DelayFrame
|
|
|
|
ret
|
|
|
|
|
2016-05-11 21:16:03 +00:00
|
|
|
.Player:
|
2015-02-11 22:08:07 +00:00
|
|
|
db "PLAYER@"
|
|
|
|
|
2016-05-11 21:16:03 +00:00
|
|
|
.EmptyString:
|
2015-02-11 22:08:07 +00:00
|
|
|
db "@"
|
|
|
|
|
2016-05-11 21:16:03 +00:00
|
|
|
.Certification:
|
2015-02-11 22:08:07 +00:00
|
|
|
db "This certifies"
|
|
|
|
next "that you have"
|
|
|
|
next "completed the"
|
|
|
|
next "new #DEX."
|
|
|
|
next "Congratulations!"
|
|
|
|
db "@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
PrintDiplomaPage2:
|
2015-07-22 19:57:02 +00:00
|
|
|
hlcoord 0, 0
|
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
2020-04-17 14:52:59 +00:00
|
|
|
ld a, " "
|
2015-02-11 22:08:07 +00:00
|
|
|
call ByteFill
|
2016-05-11 21:16:03 +00:00
|
|
|
ld hl, DiplomaPage2Tilemap
|
2015-07-22 19:57:02 +00:00
|
|
|
decoord 0, 0
|
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
2015-02-11 22:08:07 +00:00
|
|
|
call CopyBytes
|
2016-05-11 21:16:03 +00:00
|
|
|
ld de, .GameFreak
|
2015-02-11 22:08:07 +00:00
|
|
|
hlcoord 8, 0
|
|
|
|
call PlaceString
|
2016-05-11 21:16:03 +00:00
|
|
|
ld de, .PlayTime
|
2015-02-11 22:08:07 +00:00
|
|
|
hlcoord 3, 15
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 12, 15
|
2018-01-23 22:39:09 +00:00
|
|
|
ld de, wGameTimeHours
|
2015-10-10 21:03:04 +00:00
|
|
|
lb bc, 2, 4
|
2015-02-11 22:08:07 +00:00
|
|
|
call PrintNum
|
2016-05-11 21:16:03 +00:00
|
|
|
ld [hl], $67 ; colon
|
2015-02-11 22:08:07 +00:00
|
|
|
inc hl
|
2018-01-23 22:39:09 +00:00
|
|
|
ld de, wGameTimeMinutes
|
2015-10-10 21:03:04 +00:00
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
2015-02-11 22:08:07 +00:00
|
|
|
call PrintNum
|
|
|
|
ret
|
|
|
|
|
2016-05-11 21:16:03 +00:00
|
|
|
.PlayTime: db "PLAY TIME@"
|
|
|
|
.GameFreak: db "GAME FREAK@"
|
2015-02-11 22:08:07 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
DiplomaGFX:
|
2017-12-10 04:37:08 +00:00
|
|
|
INCBIN "gfx/diploma/diploma.2bpp.lz"
|
2015-02-11 22:08:07 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
DiplomaPage1Tilemap:
|
2017-12-10 04:37:08 +00:00
|
|
|
INCBIN "gfx/diploma/page1.tilemap"
|
2015-02-11 22:08:07 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
DiplomaPage2Tilemap:
|
2017-12-10 04:37:08 +00:00
|
|
|
INCBIN "gfx/diploma/page2.tilemap"
|
2019-11-04 01:07:25 +00:00
|
|
|
|
2020-10-28 14:21:10 +00:00
|
|
|
Diploma_DummyFunction: ; unreferenced
|
|
|
|
ret
|