aboutsummaryrefslogtreecommitdiff
path: root/dla.s
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-11-08 02:08:54 -0500
committerB. Watson <urchlay@slackware.uk>2022-11-08 02:08:54 -0500
commit8303d83efab1ee1135cf2396a792479966ed2303 (patch)
treeb031c989e686b8e1fd0bb33998a8def772489b21 /dla.s
parentc38d545b4882898faccf9db32d88ace67f4e1f05 (diff)
downloaddla-asm-8303d83efab1ee1135cf2396a792479966ed2303.tar.gz
drunkwalk does spawning and plotting, too.
Diffstat (limited to 'dla.s')
-rw-r--r--dla.s12
1 files changed, 1 insertions, 11 deletions
diff --git a/dla.s b/dla.s
index a18a23b..bae1b39 100644
--- a/dla.s
+++ b/dla.s
@@ -181,17 +181,7 @@ wl:
jsr drawseed
next_particle:
- ldy RANDOM ; spawn a new particle
- lda (spawn_x),y
- sta cursor_x
- lda (spawn_y),y
- sta cursor_y
- jsr drunkwalk ; walk it around
- beq next_particle ; if it went out of bounds, try again
-
- ; particle stuck to an existing pixel, draw it
- jsr plot
-
+ jsr drunkwalk ; spawn, walk around, plot (all in one)
inc particles
bne ph_ok
inc particles+1