diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-02-13 22:34:25 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-02-13 22:34:25 +0100 |
| commit | 86160cce38ba3033792202c01ae3ac3ccc1428e0 (patch) | |
| tree | 6b95c360f4590b4de28a6b6005a2c96290cc70b2 /src/enemies.s | |
| parent | 8a97dee912e81da8fe669ae3d3f1eb8baacd8e1f (diff) | |
| download | jetpac.nes-86160cce38ba3033792202c01ae3ac3ccc1428e0.tar.gz jetpac.nes-86160cce38ba3033792202c01ae3ac3ccc1428e0.zip | |
Set the enemy pool size on 'init_pool' loop's init
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/enemies.s')
| -rw-r--r-- | src/enemies.s | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/enemies.s b/src/enemies.s index 9db727f..c539f17 100644 --- a/src/enemies.s +++ b/src/enemies.s @@ -146,7 +146,10 @@ .proc init_pool ldx #0 + ;; The initial size of the pool is its whole capacity. ldy #ENEMIES_POOL_CAPACITY + sty zp_enemies_pool_size + @enemies_init_loop: ;; The state is set at random. stx Globals::zp_tmp0 @@ -183,10 +186,6 @@ dey bne @enemies_init_loop - ;; The initial size of the pool is its whole capacity. - lda #ENEMIES_POOL_CAPACITY - sta zp_enemies_pool_size - rts .endproc |
