mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-11 08:23:43 +00:00
... and the ball graphic.
This commit is contained in:
parent
afaa86a649
commit
40cb1cf60d
@ -115,10 +115,13 @@ void Machine::get_output_pixel(uint8_t *pixel, int offset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the ball proposed colour
|
// get the ball proposed colour
|
||||||
uint8_t ballPixel;
|
uint8_t ballPixel = 0;
|
||||||
int ballIndex = _objectCounter[4] - 4;
|
if(_ballGraphicsEnable&2)
|
||||||
int ballSize = 1 << ((_playfieldControl >> 4)&3);
|
{
|
||||||
ballPixel = (ballIndex >= 0 && ballIndex < ballSize && (_ballGraphicsEnable&2)) ? 1 : 0;
|
int ballIndex = _objectCounter[4] - 4;
|
||||||
|
int ballSize = 1 << ((_playfieldControl >> 4)&3);
|
||||||
|
ballPixel = (ballIndex >= 0 && ballIndex < ballSize) ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
// accumulate collisions
|
// accumulate collisions
|
||||||
_collisions[0] |= ((missilePixels[0] & playerPixels[1]) << 7) | ((missilePixels[0] & playerPixels[0]) << 6);
|
_collisions[0] |= ((missilePixels[0] & playerPixels[1]) << 7) | ((missilePixels[0] & playerPixels[0]) << 6);
|
||||||
|
Loading…
Reference in New Issue
Block a user