Jump to content
IGNORED

player vs playfield coordinates


Coolcrab

Recommended Posts

X_POSITION / 4 will get you started. In assembly that'd be:

 

 

lda X_POSITION
 lsr ; divide by 2
 lsr ; divide by 2

 

But by saying PFpixel I gather you're using batari Basic, so you'd be better off looking for help it its forum as the Newbies forum is really geared towards assembly. Also, if I recall correctly, bB only uses the middle 32 playfield pixels so you'll need to use an offset along with the divide by 4. Something along the lines of (X_POSITION - 16) / 4. You'll likely need to fine-tune the 16 +/- 1 or 2.

  • Like 1
Link to comment
Share on other sites

Ah ok, I thought that this forum was also for bB. Sorry for that then. Could a mod maybe move it to the bB section?

 

I tried your solution though, and it seems to semi work. Oddly enough only if the player moves into the block and not of the block moves into the player. (the play field is scrolling down.)

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