Jump to content
IGNORED

Sprite blank space question


atari2600land

Recommended Posts

Is there a difference between this:

 %01111100
%11111110
%01101100
%11000000

 

and this:

 %00000000
%00000000
%01111100
%11111110
%01101100
%11000000
%00000000
%00000000

 

when it comes to height? Say for example, I set the player's height at 72. Would the height be two pixels up since I put two rows of blank space above where the sprite actually starts?

Link to comment
Share on other sites

Is there a difference between this:

 %01111100
%11111110
%01101100
%11000000

 

and this:

 %00000000
%00000000
%01111100
%11111110
%01101100
%11000000
%00000000
%00000000

 

when it comes to height? Say for example, I set the player's height at 72. Would the height be two pixels up since I put two rows of blank space above where the sprite actually starts?

If you're using the "player0:" command (or 1 through 5), bB will set the player's height for you, and yes, it will include any blank rows in the height.

 

If you're talking about the player's vertical position on the screen ("player0y"), the answer is also yes, the sprite will be put at the indicated position regardless of what each row of bits looks like-- so if the first two rows are blank, then the part of the sprite you can actually see (i.e., that's made up of non-blank rows) will appear to be at a vertical position that's off by 2 from the position you specified.

 

The same thing goes for columns of blank pixels-- e.g., if the two leftmost bits in every row of player data (i.e., the two leftmost columns of pixels) are all 0s, the sprite will appear to be 2 off from the "player0x" position you specified.

 

Michael

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