From f5b67dd53561ece0ff37019bd9d700abfd03c27d Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 1 Jun 2015 19:42:19 -0400 Subject: [PATCH] Change shots to be single-shot and 8x8 sprite size. --- pewpew.asm | 12 +++++++----- sprites32.pcx | Bin 2290 -> 2258 bytes 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pewpew.asm b/pewpew.asm index 5a04839..5978d5e 100644 --- a/pewpew.asm +++ b/pewpew.asm @@ -65,8 +65,8 @@ Start: lda #%11000001 sta BGMODE - ; Set sprite size to 16x16 (small) and 32x32 (large). - lda #%01100000 + ; Set sprite size to 8x8 (small) and 32x32 (large). + lda #%00100000 sta OAMSIZE ; Main screen: enable sprites & BG3. @@ -429,15 +429,17 @@ MaybeShoot: lda playerX clc - adc #20 + adc #28 sta 1, X lda playerY + clc + adc #14 sta 2, X ; Get x- and y-velocity out of shotVelocityTable. lda nextShotState - and #%00000111 ; 8 possibilities. + and #%00000000 ; 8 possibilities if we use #%00000111. ldy #0 - cmp #0 @@ -686,7 +688,7 @@ UpdateSprites: ; Update secondary sprite table. phy ; Save playerShotArray index. ldy $00 - lda #%11000000 + lda #%01000000 sta spriteTableScratchStart, Y iny sty $00 diff --git a/sprites32.pcx b/sprites32.pcx index 1c802b497d1af3fbeda621c343330189bd21d281..af599427e198776708c4edb6e6d812f3da23c60a 100644 GIT binary patch delta 153 zcmew)cu8I zVK_N)zbNlHWTA8