Jump to content
IGNORED

DPC+ and pfpixel not working correctly?


Random Terrain

Recommended Posts

I was using pfpixel to test something and I noticed that it didn't seem to be working right, so deleted everything I could to make this test program:

 

aa_dpc_test_2014y_02m_01d_0509t.bin

 

aa_dpc_test_2014y_02m_01d_0509t.bas

 

Move the guy around and when you move left or right, a loop should draw pfpixels on the screen about 32 high, but that's not what happens. On the lower part of the screen, only one is drawn, and higher up different heights are drawn depending on how high up you go.

 

Am I doing something wrong or is pfpixel messed up?

Link to comment
Share on other sites

Your program has logic to skip the pfpixels loop if _Loop2>32, but you initialize _Loop2 as half of the player's Y.

 

Therefore when the playery>64, the pfpixels loop is skipped. Which is pretty much what you described as the problem.

 

Try doing something like this instead...

 

  _Loop1 = ((player0x-13)/4)-1
   _Loop2 = 0

__Right_Loop

   y=_Loop2+(player0y/2)
   pfpixel _Loop1 y on

I've also attached a pfpixels test, just for bonus points. :)

 

 

dpcpfpixel.bas

  • Like 1
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...