diff --git a/demo2.cpp b/demo2.cpp index 62f67c4..e06fed5 100644 --- a/demo2.cpp +++ b/demo2.cpp @@ -478,6 +478,175 @@ const unsigned char texture5[] = ,0x09,0x12,0x09,0x09 }; +const unsigned char imageBar[] = +{ 110, 21 // width, height + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0x64,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0x09,0x09,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0x09,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x64,0xad + ,0xad,0x09,0x09,0x09,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0xad,0x09,0x09 + ,0x09,0x64,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0xad,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0x00,0xb6,0xb6,0xad,0x09,0xad,0xad + ,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0xad,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0x00,0xb6,0xb6,0xad,0xad,0x09,0x09 + ,0x09,0x64,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x64,0xad + ,0xad,0x09,0x09,0x09,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0x09,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0x09,0x09,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0x64,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xb6,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x00,0xb6,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x00,0xb6,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6 + ,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09 + ,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x64,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x64 + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x09,0x64,0xad,0xad,0x64,0x09,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09 + ,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x64,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x64 + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x09,0x64,0xad,0xad,0x64,0x09,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0x64,0x09 + ,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x64,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x64 + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x09,0x64,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07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0xb6,0xb6,0xb6 + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0xad,0x09,0x09 + ,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x09,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x09 + ,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x09 + ,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0x09,0x09,0xad,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x09 + ,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x07,0x07,0x07,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x07,0x07,0x00,0xb6,0xb6,0xb6 + ,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6,0xb6 + ,0x07,0x07,0x00,0xb6,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x07,0x00,0xb6,0xb6,0xb6,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x64 + ,0x09,0x09,0x64,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0x64,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0x09,0x09,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0x09,0x09,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0x64,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0x09,0xad,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0x09,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad + ,0xad,0x09,0xad,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09 + ,0x09,0x09,0x09,0x09,0x09,0xad,0x64,0x09,0x09,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0xad,0xad,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0x09,0x64,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0xad,0xad,0xad,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad + ,0xad,0xad,0xad,0xad,0x09,0x09,0xad,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x09 + ,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09 + ,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0x09,0x64,0x09 + ,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0x09,0x09,0x09,0x09,0x09,0x09,0x09,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0x09,0xad,0x09 + ,0x09,0x09,0x09,0x09,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0x09,0x09,0x09,0x09,0x64,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0x09 + ,0x09,0x09,0x64,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0x00,0xb6,0xb6,0xad,0xad,0xad,0xad + ,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad +}; + const unsigned char spritePlasma[] = { 32, 32 // width, height ,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x58,0x07,0x07 @@ -651,8 +820,7 @@ void draw() perspectiveScale(64,pos.depth)); } - pokitto.display.setColor(0xFF); - pokitto.display.fillRect(0,INFO_BAR_START,SCREEN_WIDTH,SCREEN_HEIGHT - INFO_BAR_START); + drawImage(imageBar,0,INFO_BAR_START - 4); } int main() diff --git a/general.hpp b/general.hpp index 8b55e08..27e7660 100644 --- a/general.hpp +++ b/general.hpp @@ -163,6 +163,25 @@ void inline drawSprite(const unsigned char *sprite, int16_t x, int16_t y, Unit d } } +void drawImage(const unsigned char *image, int16_t x, int16_t y) +{ + // TODO: optimize + + for (int16_t i = 0; i < image[0]; ++i) + { + int16_t xPos = x + i; + int16_t column = 2 + i * image[1]; + + for (int16_t j = 0; j < image[1]; ++j) + { + char c = image[column + j]; + + if (c != TRANSPARENT_COLOR) + pokitto.display.drawPixel(xPos,y + j,image[column + j]); + } + } +} + class Player { public: