Jump to content
IGNORED

skipDraw and graphics


johnnywc

Recommended Posts

Actually, this version is 35 cycles, and can handle a any-height sprite too so use this instead:

Origonaldraw        

         ldy P0height; 3
        lda (P0ptr),y; 8
        sta GRP0; 11
        lda (P0col),y; 16
        sta COLUP0; 19
    cpx P0Ytemp; 21
        bne Not1; 23
        dey; 25
        sty P0height; 28
        beq Not1; 30
        dec P0Ytemp; 35
Not1

 

The cons are:

1. Need Ytemp to be set every frame, along with spriteheight value

2. Need 0 at top

3. You can't split this apart like other kernal.

The pros:

1. Faster than Superdraw (Including flexible height AND multicolor) by 2 cycles.

2. This supports Flexible height and multicolor

3. Removing Color shortens this down to 27 cycles

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...