Jump to content
pacgreg

DPC+ pfread?

Recommended Posts

I'm trying to make my new project using the dpc+ kernel, but I am having trouble making playfield collisions work. Does anyone know how to use pfread in DPC+ to make good collision prevention? When I try to use pfread (or pfpixel, pfhline, etc...) it appears to do nothing or malfunction. Can someone show me how to use these functions in DPC+ and/or help me use them to get my collisions to work in this game? Right now I only have one of my many failed attempts at collision in place.

Thanks

Greg

Gauntlet007.bas

Share this post


Link to post
Share on other sites

I took a crappy example program and changed it to DPC+:

 

collision_prevention_partial_cd_dpc_2013y_11m_08d_0335t.bas

 

collision_prevention_partial_cd_dpc_2013y_11m_08d_0335t.bin

 

Understand that I don't know what I'm doing and that the numbers have to be adjusted depending on the size of the sprite and the screen resolution. Hopefully you'll get something useful out of it.

  • Like 1

Share this post


Link to post
Share on other sites

cool, I wondered why this was causing so much trouble, then I realized that I have my DFFRACINC at 15 instead of 16. now to figure out how to half the space it collides with downward

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