Jump to content



0

Sprite positioning and size


2 replies to this topic

#1 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Thu Feb 3, 2005 4:55 PM

If you make a single-width player and make him double- or quad-width, does that effectively reposition the player one pixel to the right?

Cuz that sure looks like what is going on in my program...and I am baffled.

#2 vdub_bobby OFFLINE  

vdub_bobby

    Quadrunner

  • 5,831 posts
  • Boom bam.
  • Location:Seattle, WA

Posted Thu Feb 3, 2005 5:21 PM

Based on my tests with z26 and PCAE...

doubling or quadrupling a player's size does indeed effectively move the player 1 pixel to the right.

Which is kind of a relief, since it means I can stop looking for that nonexistent bug in my code :)

Of course, now I have to code in a workaround for that fact. :P

#3 Robert M OFFLINE  

Robert M

    Stargunner

  • 1,481 posts
  • Rootbeer!
  • Location:Western NY state

Posted Thu Feb 3, 2005 9:23 PM

Yes, Its a weird quirk of the TIA logic. missles and the ball start rendering at the color clock you hit RESxx at. The sprites take an extra clock for the data register to get copied into the shift register for display. If the the sprite is double or quad wide, it takes an additional color clock cycle to begin drawing. I don't know why, that's just what I have heard.

Cheers!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users