Jump to content
Sign in to follow this  

pfpixel to regular pixel conversion?

Recommended Posts

After I've got the closest pfpixel value in var1


var1 = (ballx-18)/4


can I convert it back to a regular position?

If i now want the ball to exactly line up or overlap that pfpixel.


I could do it with a table indexed by var1

but if there's some + something * something calculation that would be alot easier.






Edited by Lillapojkenpåön

Share this post

Link to post
Share on other sites

Of course, depending on which section of the screen your var is it may be reversed. Bogax made a function with DATA tables that flipped the values around in that case. I used it in my Rat Race mock up here:



R.T.s explanation of why some vars values are reversed:


Share this post

Link to post
Share on other sites

Hmm, do I need to worry about that with the DPC+ kernel? the horisontal pfpixel positions are 0-31 in correct order, it has worked perfectly so far.


On a side note I think DPC+ uses the vars to, I renamed a freed up variable to "var10" and after leaving my game on over the night it had two columns of pfpixels turned on, exactly where var10 is located on RT's chart, it got me thinking of how many extra variables you could possibly get if that's the case, if your background and playfield colors are the same it wouldn't matter if pfpixels where turning on and of, you wouldn't see it.

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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...