Jump to content
IGNORED

sprite masking


flame

Recommended Posts

Hey, does anyone have any suggestions on how best to mask parts of a sprite, to change a certain number of lines—instead of having a separate full sprite ?

 

*ideally without doing this during the kernel

 

	lda (objectptr),y
	cpx #5
	bcc .nomask
	and #%11110000
.nomask
	sta GRP1

I am doing this in the kernel though, and seems to work as intended, but wondering if there is another way.

Edited by pvmpkin
Link to comment
Share on other sites

brilliant, thank you.

 

I've noticed this a few times:

.byte $2c

You indicate that it skips the next LDA instruction but I don't understand why that is used, the context of it.

 

OH, I think I see it. It's a way of reusing the store instruction without changing the value right ?

Edited by pvmpkin
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...