lemm: particles start at right place

This commit is contained in:
Vince Weaver 2022-03-24 20:27:20 -04:00
parent b230b2a947
commit f4bb380802
4 changed files with 9 additions and 10 deletions

View File

@ -342,9 +342,6 @@ handle_particles:
still_going: still_going:
not_done_particle: not_done_particle:
rts rts

View File

@ -18,8 +18,8 @@ lemming_exploding:
.byte 0,0,0,0,0,0,0,0,0,0 .byte 0,0,0,0,0,0,0,0,0,0
lemming_fall_distance: lemming_fall_distance:
.byte 0,0,0,0,0,0,0,0,0,0 .byte 0,0,0,0,0,0,0,0,0,0
lemming_attribute:
.byte 0,0,0,0,0,0,0,0,0,0

View File

@ -155,15 +155,17 @@ init_particle:
; lda #128 ; init x ; lda #128 ; init x
lda lemming_x ldy CURRENT_LEMMING
lda lemming_x,Y
asl asl
adc lemming_x adc lemming_x,Y
asl asl
adc lemming_x ; mul by 7 adc lemming_x,Y ; mul by 7
sta particle_x,X sta particle_x,X
lda lemming_y lda lemming_y,Y
; lda #100 ; init y ; lda #100 ; init y
sta particle_y,X sta particle_y,X

View File

@ -17,7 +17,6 @@ clear_lemmings_loop:
;======================= ;=======================
; Release Lemmings ; Release Lemmings
;======================= ;=======================
; TODO: adjust speed based on release speed
release_lemming: release_lemming:
; don't release if we've released them all ; don't release if we've released them all
@ -41,6 +40,7 @@ release_lemming_speed:
lda #0 lda #0
sta lemming_exploding,Y sta lemming_exploding,Y
sta lemming_fall_distance,Y sta lemming_fall_distance,Y
sta lemming_attribute,Y
lda INIT_X lda INIT_X
sta lemming_x,Y sta lemming_x,Y
lda INIT_Y lda INIT_Y