mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-28 09:30:41 +00:00
lemm: particles start at right place
This commit is contained in:
parent
b230b2a947
commit
f4bb380802
@ -342,9 +342,6 @@ handle_particles:
|
||||
|
||||
still_going:
|
||||
|
||||
|
||||
|
||||
|
||||
not_done_particle:
|
||||
rts
|
||||
|
||||
|
@ -18,8 +18,8 @@ lemming_exploding:
|
||||
.byte 0,0,0,0,0,0,0,0,0,0
|
||||
lemming_fall_distance:
|
||||
.byte 0,0,0,0,0,0,0,0,0,0
|
||||
|
||||
|
||||
lemming_attribute:
|
||||
.byte 0,0,0,0,0,0,0,0,0,0
|
||||
|
||||
|
||||
|
||||
|
@ -155,15 +155,17 @@ init_particle:
|
||||
|
||||
; lda #128 ; init x
|
||||
|
||||
lda lemming_x
|
||||
ldy CURRENT_LEMMING
|
||||
|
||||
lda lemming_x,Y
|
||||
asl
|
||||
adc lemming_x
|
||||
adc lemming_x,Y
|
||||
asl
|
||||
adc lemming_x ; mul by 7
|
||||
adc lemming_x,Y ; mul by 7
|
||||
|
||||
sta particle_x,X
|
||||
|
||||
lda lemming_y
|
||||
lda lemming_y,Y
|
||||
; lda #100 ; init y
|
||||
sta particle_y,X
|
||||
|
||||
|
@ -17,7 +17,6 @@ clear_lemmings_loop:
|
||||
;=======================
|
||||
; Release Lemmings
|
||||
;=======================
|
||||
; TODO: adjust speed based on release speed
|
||||
release_lemming:
|
||||
|
||||
; don't release if we've released them all
|
||||
@ -41,6 +40,7 @@ release_lemming_speed:
|
||||
lda #0
|
||||
sta lemming_exploding,Y
|
||||
sta lemming_fall_distance,Y
|
||||
sta lemming_attribute,Y
|
||||
lda INIT_X
|
||||
sta lemming_x,Y
|
||||
lda INIT_Y
|
||||
|
Loading…
Reference in New Issue
Block a user