From 283f84451af06d459d5c00cfe9dcd7df2b6d0b0d Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 29 Oct 2018 16:06:27 -0400 Subject: [PATCH] megademo: takeoff is more or less complete --- megademo/SIZE | 2 +- megademo/takeoff.s | 140 +++++++++++++++++++++++++++++++-------- megademo/tfv_sprites.inc | 18 ++++- 3 files changed, 130 insertions(+), 30 deletions(-) diff --git a/megademo/SIZE b/megademo/SIZE index 45a16552..95cc2700 100644 --- a/megademo/SIZE +++ b/megademo/SIZE @@ -32,4 +32,4 @@ 30380 -- messing with alignment a bit 30378 -- update the e-mail text 30633 -- with all the music added in - + 31323 -- finish takeoff diff --git a/megademo/takeoff.s b/megademo/takeoff.s index 19733c96..a6950f15 100644 --- a/megademo/takeoff.s +++ b/megademo/takeoff.s @@ -224,7 +224,7 @@ to_wrap_done: ; 7 cycles to_timeout: lda FRAMEH ; 3 - cmp #80 ; 2 + cmp #68 ; 2 beq to_exit ; 3 ; -1 @@ -278,6 +278,12 @@ to_jump_table: .word (to_state3-1) .word (to_state4-1) +to_sprite_table: + .word (flame1) + .word (flame2) + .word (flame3) + .word (flame4) + ;.align $100 @@ -286,17 +292,34 @@ to_jump_table: ;============================ ; 3886 ; -578 gr_copy + ; -602 draw tree ; -13 inc xpos ; -19 which sprite ;-2208 draw sprites ; -20 adjust state ; -3 jmp ;==================== - ; 1045 + ; 443 to_state0: jsr gr_copy_row22 ; 6+572 + + ; draw tree + lda #32 ; 2 + sta XPOS ; 3 + lda #30 ; 2 + sta YPOS ; 3 + lda #>small_tree ; 2 + sta INH ; 3 + lda #flame1 ; 2 - sta INH ; 3 - lda #small_tree ; 2 + sta INH ; 3 + lda #