From 8ffad74ae370c0125c62b56ba23d8d74d48a4b3d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Mar 2026 22:34:27 +0100 Subject: Small optimization on bullet initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- src/bullets.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/bullets.s') diff --git a/src/bullets.s b/src/bullets.s index 335e478..93ff8c5 100644 --- a/src/bullets.s +++ b/src/bullets.s @@ -64,7 +64,7 @@ ;; Initializing the pool is a matter of setting to $FF the state byte ;; for each bullet object. ldx #0 - ldy #0 + ldy #BULLETS_POOL_CAPACITY lda #$FF @pool_init_loop: sta zp_bullets_pool_base, x @@ -72,8 +72,7 @@ inx inx - iny - cpy #BULLETS_POOL_CAPACITY + dey bne @pool_init_loop rts -- cgit v1.2.3