Hello,
I tried to activate 64 sprites, so that I prepared the 0x0500 range with properly set bytes.
When I tried my routine, if it is correct I saw only first 8 sprites. I have "activated" 17. Also the first sprite is moved little left.
Can someone help me how to figure out to show 64 sprites? I saw a demo with cans, which has all sprites in move.
ldx #00
ldy #00
lda #20
sta <fromleft
pfirst:
lda #127
sta $0500,x
inx
tya
sta $0500,x
inx
tay
iny
lda #00
sta $0500,x
inx
lda <fromleft
sta $0500,x
inx
adc #8
sta <fromleft
cpy #17
bne pfirst
NMI:
pha
txa
pha
tya
pha
lda #0
sta $2003
lda #5
sta $4014
.....
.....
.....
pla
tay
pla
tax
pla
rti
btw. flickering doesn't matter:)
I tried to activate 64 sprites, so that I prepared the 0x0500 range with properly set bytes.
When I tried my routine, if it is correct I saw only first 8 sprites. I have "activated" 17. Also the first sprite is moved little left.
Can someone help me how to figure out to show 64 sprites? I saw a demo with cans, which has all sprites in move.
Code:
ldx #00
ldy #00
lda #20
sta <fromleft
pfirst:
lda #127
sta $0500,x
inx
tya
sta $0500,x
inx
tay
iny
lda #00
sta $0500,x
inx
lda <fromleft
sta $0500,x
inx
adc #8
sta <fromleft
cpy #17
bne pfirst
Code:
NMI:
pha
txa
pha
tya
pha
lda #0
sta $2003
lda #5
sta $4014
.....
.....
.....
pla
tay
pla
tax
pla
rti
btw. flickering doesn't matter:)