diff --git a/source/main.cpp b/source/main.cpp index 6bed25454d1146df68dc69d7595dc34f61edf42f..598332aee534a017cd3b98198cd3674fada658d8 100755 --- a/source/main.cpp +++ b/source/main.cpp @@ -126,32 +126,34 @@ enum class RotationDirection : uint8_t { const uint8_t FLAT_L_NORTH_SPRITE[] __attribute__ ((aligned (4))) = { 0xff, 0xff, // magic number requesting data to be stored in FLASH 3, 0, // image width followed by zero - 2, 0, // image height followed by zero + 3, 0, // image height followed by zero // image data follows: 1, 0, 0, 1, 1, 1, + 0, 0, 0, }; const uint8_t TALL_L_NORTH_SPRITE[] __attribute__ ((aligned (4))) = { 0xff, 0xff, // magic number requesting data to be stored in FLASH - 2, 0, // image width followed by zero + 3, 0, // image width followed by zero 3, 0, // image height followed by zero // image data follows: - 1, 0, - 1, 0, - 1, 1, + 0, 1, 0, + 0, 1, 0, + 0, 1, 1, }; const uint8_t UPSIDE_DOWN_T_NORTH_SPRITE[] __attribute__ ((aligned (4))) = { 0xff, 0xff, // magic number requesting data to be stored in FLASH 3, 0, // image width followed by zero - 2, 0, // image height followed by zero + 3, 0, // image height followed by zero // image data follows: 0, 1, 0, 1, 1, 1, + 0, 0, 0, }; -const uint8_t SQUARE_NORTH_SPRITE[] __attribute__ ((aligned (4))) = { +const uint8_t SQUARE_SPRITE[] __attribute__ ((aligned (4))) = { 0xff, 0xff, // magic number requesting data to be stored in FLASH 2, 0, // image width followed by zero 2, 0, // image height followed by zero @@ -163,9 +165,11 @@ const uint8_t SQUARE_NORTH_SPRITE[] __attribute__ ((aligned (4))) = { const uint8_t PIPE_NORTH_SPRITE[] __attribute__ ((aligned (4))) = { 0xff, 0xff, // magic number requesting data to be stored in FLASH 3, 0, // image width followed by zero - 1, 0, // image height followed by zero + 3, 0, // image height followed by zero // image data follows: + 0, 0, 0, 1, 1, 1, + 0, 0, 0, }; /** @@ -208,7 +212,7 @@ MicroBitImage Block::image() const { case Shape::UPSIDE_DOWN_T: return MicroBitImage((ImageData*)UPSIDE_DOWN_T_NORTH_SPRITE); case Shape::SQUARE: - return MicroBitImage((ImageData*)SQUARE_NORTH_SPRITE); + return MicroBitImage((ImageData*)SQUARE_SPRITE); case Shape::PIPE: return MicroBitImage((ImageData*)PIPE_NORTH_SPRITE); }