Cutscene work

This commit is contained in:
Jonatan Nilsson 2019-06-21 13:56:41 +00:00
parent 29d3438c1c
commit 452aa1a81b
6 changed files with 42 additions and 27 deletions

9
cutscene/helper.asm Normal file
View file

@ -0,0 +1,9 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Helper file for writing cutscene scripts ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SECTION "non_existing", ROMX
db 01 ; Fade out
db 02 ; Fade in
db 10, $4AAA; Load screen at position $4AAA
db 20 ; Start text

BIN
main.o

Binary file not shown.

BIN
test.gb

Binary file not shown.

View file

@ -21,33 +21,33 @@ ROM Bank #0 (HOME):
$0029 = UpdateController.onenibble $0029 = UpdateController.onenibble
$0009 = UpdateController $0009 = UpdateController
$0000 = InitController $0000 = InitController
SECTION: $017D-$0194 ($0018 bytes) ["Game Loop"] SECTION: $017C-$0193 ($0018 bytes) ["Game Loop"]
$0183 = GameLoop.mainloop $0182 = GameLoop.mainloop
$017D = GameLoop $017C = GameLoop
SECTION: $00AB-$00EC ($0042 bytes) ["Hello wrold string"] SECTION: $00AB-$00EC ($0042 bytes) ["Hello wrold string"]
$00AB = FirstCutScene $00AB = FirstCutScene
SECTION: $0150-$017C ($002D bytes) ["Tools"] SECTION: $014F-$017B ($002D bytes) ["Tools"]
$0166 = Memfill $0165 = Memfill
$0170 = WaitVBlank $016F = WaitVBlank
$0173 = dma_routine_start $0172 = dma_routine_start
$017D = dma_routine_end $017C = dma_routine_end
$015D = Memcpy $015C = Memcpy
$0166 = Memfill.repeatFill $0165 = Memfill.repeatFill
$016B = Memfill16.repeatFill $016A = Memfill16.repeatFill
$0179 = dma_routine_start.loop $0178 = dma_routine_start.loop
$0150 = InitTools $014F = InitTools
SECTION: $0040-$0040 ($0001 bytes) ["InterruptVblank"] SECTION: $0040-$0040 ($0001 bytes) ["InterruptVblank"]
SECTION: $0048-$0048 ($0001 bytes) ["InterruptLCDC"] SECTION: $0048-$0048 ($0001 bytes) ["InterruptLCDC"]
SECTION: $0050-$0050 ($0001 bytes) ["InterruptTimer_Overflow"] SECTION: $0050-$0050 ($0001 bytes) ["InterruptTimer_Overflow"]
SECTION: $0058-$0058 ($0001 bytes) ["InterruptSerial"] SECTION: $0058-$0058 ($0001 bytes) ["InterruptSerial"]
SECTION: $0060-$0060 ($0001 bytes) ["Interruptp1thru4"] SECTION: $0060-$0060 ($0001 bytes) ["Interruptp1thru4"]
SECTION: $0100-$014F ($0050 bytes) ["Header"] SECTION: $0100-$014E ($004F bytes) ["Header"]
SECTION: $0061-$00AA ($004A bytes) ["Intro code"] SECTION: $0061-$00AA ($004A bytes) ["Intro code"]
$0061 = Start $0061 = Start
SECTION: $0280-$127F ($1000 bytes) ["Font"] SECTION: $0280-$127F ($1000 bytes) ["Font"]
$0280 = Page1 $0280 = Page1
$1280 = Page1End $1280 = Page1End
SLACK: $2CB5 bytes SLACK: $2CB6 bytes
ROM Bank #1: ROM Bank #1:
SECTION: $4000 ($0 bytes) ["rom1_intro"] SECTION: $4000 ($0 bytes) ["rom1_intro"]

View file

@ -19,18 +19,18 @@
00:0029 UpdateController.onenibble 00:0029 UpdateController.onenibble
00:0009 UpdateController 00:0009 UpdateController
00:0000 InitController 00:0000 InitController
00:0183 GameLoop.mainloop 00:0182 GameLoop.mainloop
00:017D GameLoop 00:017C GameLoop
00:00AB FirstCutScene 00:00AB FirstCutScene
00:0166 Memfill 00:0165 Memfill
00:0170 WaitVBlank 00:016F WaitVBlank
00:0173 dma_routine_start 00:0172 dma_routine_start
00:017D dma_routine_end 00:017C dma_routine_end
00:015D Memcpy 00:015C Memcpy
00:0166 Memfill.repeatFill 00:0165 Memfill.repeatFill
00:016B Memfill16.repeatFill 00:016A Memfill16.repeatFill
00:0179 dma_routine_start.loop 00:0178 dma_routine_start.loop
00:0150 InitTools 00:014F InitTools
00:0061 Start 00:0061 Start
00:0280 Page1 00:0280 Page1
00:1280 Page1End 00:1280 Page1End

View file

@ -1,3 +1,9 @@
SECTION "rom1_intro", ROMX[$4000],BANK[1] SECTION "rom1_intro", ROMX[$4000],BANK[1]
; Intro cutscene ; Intro cutscene
db "" db 01 ; Fade out
db 20 ; Start text
; [ ] <-- screen limit
db "...wake up...\n"
db "please wake up...#",
db "...we don't have\n"
db "time, wake up...", 0