Cutscene work

master
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
$0009 = UpdateController
$0000 = InitController
SECTION: $017D-$0194 ($0018 bytes) ["Game Loop"]
$0183 = GameLoop.mainloop
$017D = GameLoop
SECTION: $017C-$0193 ($0018 bytes) ["Game Loop"]
$0182 = GameLoop.mainloop
$017C = GameLoop
SECTION: $00AB-$00EC ($0042 bytes) ["Hello wrold string"]
$00AB = FirstCutScene
SECTION: $0150-$017C ($002D bytes) ["Tools"]
$0166 = Memfill
$0170 = WaitVBlank
$0173 = dma_routine_start
$017D = dma_routine_end
$015D = Memcpy
$0166 = Memfill.repeatFill
$016B = Memfill16.repeatFill
$0179 = dma_routine_start.loop
$0150 = InitTools
SECTION: $014F-$017B ($002D bytes) ["Tools"]
$0165 = Memfill
$016F = WaitVBlank
$0172 = dma_routine_start
$017C = dma_routine_end
$015C = Memcpy
$0165 = Memfill.repeatFill
$016A = Memfill16.repeatFill
$0178 = dma_routine_start.loop
$014F = InitTools
SECTION: $0040-$0040 ($0001 bytes) ["InterruptVblank"]
SECTION: $0048-$0048 ($0001 bytes) ["InterruptLCDC"]
SECTION: $0050-$0050 ($0001 bytes) ["InterruptTimer_Overflow"]
SECTION: $0058-$0058 ($0001 bytes) ["InterruptSerial"]
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"]
$0061 = Start
SECTION: $0280-$127F ($1000 bytes) ["Font"]
$0280 = Page1
$1280 = Page1End
SLACK: $2CB5 bytes
SLACK: $2CB6 bytes
ROM Bank #1:
SECTION: $4000 ($0 bytes) ["rom1_intro"]

View File

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

View File

@ -1,3 +1,9 @@
SECTION "rom1_intro", ROMX[$4000],BANK[1]
; 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