lemm: work on lemming explosion taking out part of background

This commit is contained in:
Vince Weaver 2022-03-20 22:43:15 -04:00
parent 56c0d10635
commit 8824603ec2
2 changed files with 18 additions and 10 deletions

View File

@ -1,7 +1,5 @@
+ more than 1 lemming
+ click sound effect? select job, click on lemming,
lemming explode, lemming exit
+ draw roughly circular bg destruction when lemming explodes
+ wait a second after last lemming gone to exit
+ update the "in" %
+ dig off the map, end level

View File

@ -343,21 +343,31 @@ draw_explosion:
jsr hgr_hlin_page_toggle ; toggle to page2
ldx #0
sta HGR_COLOR
; line from (x,a) to (x+y,a)
ldx lemming_x
dex
ldy #3
lda lemming_x
asl
adc lemming_x
asl
adc lemming_x ; multiply by 7
tax
pha
ldy #7
lda lemming_y
clc
adc #11
adc #9
jsr hgr_hlin
; line from (x,a) to (x+y,a)
ldx lemming_x
ldy #1
pla
tax
ldy #7
lda lemming_y
clc
adc #12
adc #10
jsr hgr_hlin