Jump to content
jbs30000

DPC+ and REFP1

Recommended Posts

I originally worded this pretty poorly, so let me try again.

 

I made a program which displays a giant character made of two sprites. The character is facing left. To make him face right I swap the positions of sprites 0 and 1 and then use REFP0=8 and REFP1=8. Even though I found a thread which says that each sprite gets its own REFP the REFP1 didn't reverse the player1 sprite.

 

I'm just curious if it's because REFP1 isn't implemented in the most recent DCP+ kernel, or if I need to type in something different. I tried _REFP1 but that's obviously not a command as the program doesn't compile right. Thank you.

Edited by jbs30000

Share this post


Link to post
Share on other sites

I just looked at the kernel source... I see the kernel loads the NUSIZ#+REFP# information for the virtual sprites from the DPC DF5FRACDATA fraction fetcher, but I don't see a bB statement for loading this fetcher yet.

Share this post


Link to post
Share on other sites

The REFP command is not supported for virtual sprites (player1-player9) in DPC+, so you must use NUSIZ1=$00 and NUSIZ1=$08 to unreflect and reflect player1. If you have a double size sprite, then you'd use NUSIZ1=$05 and NUSIZ1=$0D to unreflect and reflect player1.

Share this post


Link to post
Share on other sites

Yep, sorry I AM using NUSIZ2-9 but I remember having some problem with player1 and worked around it by using player0, 2,3,4,5 etc.

Share this post


Link to post
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.

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...