diff --git a/examples/pong.cpp b/examples/pong.cpp index e60c42b..1efba7a 100644 --- a/examples/pong.cpp +++ b/examples/pong.cpp @@ -290,58 +290,6 @@ namespace { } -/// The ball image. -static const VIC_II::HighResSprite sBall -{{ - 0b000000000000000000000000, - 0b000000000000000000000000, - 0b000000000111111000000000, - 0b000000011111111110000000, - 0b000000110111111111000000, - 0b000001100011111111100000, - 0b000001110111111111100000, - 0b000011111111111111110000, - 0b000011111111111111110000, - 0b000011111111111111110000, - 0b000000111111111111000000, - 0b000011000000000000110000, - 0b000011111111111111110000, - 0b000001111111111111100000, - 0b000001111111111111100000, - 0b000000111111111111000000, - 0b000000011111111110000000, - 0b000000000111111000000000, - 0b000000000000000000000000, - 0b000000000000000000000000, - 0b000000000000000000000000 -}}; - -/// The bat image. -static const VIC_II::MultiColorSprite sBat -{{ - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000002200000, - 0x000003300000, - 0x000001100000, - 0x000003300000, - 0x000001100000, - 0x000003300000 -}}; - int main() { const std::array colors = {{ @@ -365,6 +313,57 @@ int main() VIC_II vic; + /// The ball image. + static const VIC_II::HighResSprite sBall + {{ + 0b000000000000000000000000, + 0b000000000000000000000000, + 0b000000000111111000000000, + 0b000000011111111110000000, + 0b000000110111111111000000, + 0b000001100011111111100000, + 0b000001110111111111100000, + 0b000011111111111111110000, + 0b000011111111111111110000, + 0b000011111111111111110000, + 0b000000111111111111000000, + 0b000011000000000000110000, + 0b000011111111111111110000, + 0b000001111111111111100000, + 0b000001111111111111100000, + 0b000000111111111111000000, + 0b000000011111111110000000, + 0b000000000111111000000000, + 0b000000000000000000000000, + 0b000000000000000000000000, + 0b000000000000000000000000 + }}; + + /// The bat image. + static const VIC_II::MultiColorSprite sBat = {{ + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000002200000, + 0x000003300000, + 0x000001100000, + 0x000003300000, + 0x000001100000, + 0x000003300000 + }}; + vic.enable_sprite(0, sBall, true, false, false); vic.enable_sprite(1, sBat, false, false, true); vic.enable_sprite(2, sBat, false, false, true);