Jump to content



1

DPC+ and REFP1


6 replies to this topic

#1 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Fri Nov 25, 2011 1:01 AM

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, Sun Nov 27, 2011 7:51 PM.


#2 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sun Nov 27, 2011 8:46 PM

Bump

#3 iesposta OFFLINE  

iesposta

    Chopper Commander

  • 177 posts
  • Retro-gaming w/my Lava Lamp
  • Location:Pennsylvania

Posted Sun Nov 27, 2011 10:21 PM

Try using player2 sprite and REFP2?
Just a suggestion, I can't try it out at the moment.

#4 RevEng ONLINE  

RevEng

    River Patroller

  • 2,011 posts
  • bit shoveler
  • Location:Canada

Posted Sun Nov 27, 2011 10:44 PM

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.

#5 Byte Knight OFFLINE  

Byte Knight

    Moonsweeper

  • 369 posts
  • Robinett Rules!
  • Location:Waconia, MN

Posted Sun Nov 27, 2011 10:45 PM

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.

#6 iesposta OFFLINE  

iesposta

    Chopper Commander

  • 177 posts
  • Retro-gaming w/my Lava Lamp
  • Location:Pennsylvania

Posted Sun Nov 27, 2011 11:10 PM

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.

#7 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Mon Nov 28, 2011 3:42 AM

Thank you all. Using player2 instead of player1 and NUSIZ2 to flip the sprite works great.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users