NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: newbie question  
Posted byzero_unscore1
Posted on7/18/02 12:33 PM
From IP213.122.191.182  



i did it in the end i was using $00 hex as a sprite so i just made it blank check out the source:-
sprite:

ldx #$00
stx $2003
stx $2003

loop:

lda #$63
sta $2004
lda #$05 ;sprite
sta $2004
lda #$01
sta $2004
lda xcor
sta $2004

jsr subtimer

jsr clearsprite

inc xcor

jmp loop

clearsprite:

ldx #$00
stx $2003
stx $2003

lda #$00
sta $2004
lda #$00 ;00 is a clear patten number
sta $2004
lda #$00
sta $2004
lda #$00
sta $2004
rts



subtimer:

ldy #$FF ;timer a bit messy but still works
bra: ldx #$FF
bra1: dex
bne bra1
dey
bne bra
rts

is this the best way to do it?

thanxs






-
Entire Thread
Subject  Posted byPosted On
*newbie question  Anonymous7/17/02 8:44 PM
.*Re: newbie question  deschenes207/18/02 01:23 AM
...Re: newbie question  zero_unscore17/18/02 12:33 PM
...*sprite DMA and vblank sync  Memblers7/18/02 6:06 PM
....*Re: sprite DMA and vblank sync  quietust7/18/02 9:22 PM
..*Re: newbie question  Memblers7/18/02 04:21 AM
...*Re: newbie question  Anonymous7/18/02 09:51 AM
....*Re: newbie question  mcmartin7/26/02 02:15 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo