is mode 15 that bad?
uhm i meant this code
// tile test
#include "Pokitto.h"
Pokitto::Core game;
const uint16_t tile[]={22, 22, /*width, height*/
0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xc800,0xc800,0xc800,0xc800,0x9800,
0xf800,0xff0c,0xff0c,0xff0c,0xfff3,0xfff3,0xfff3,0xfff3,0xfff3,0xff0c,0xff0c,0xff0c,0xff0c,0xfff3,0xfff3,0xff0c,0xff0c,0xfff3,0xff0c,0xf629,0xf629,0x9800,
0xf800,0xff0c,0xff0c,0xff0c,0xff0c,0xfff3,0xfff3,0xfff3,0xfff3,0xfff3,0xfff3,0xfff3,0xfff3,0xfff3,0xff0c,0xff0c,0xfff3,0xff0c,0xff0c,0xf629,0xf629,0x9800,
0xf800,0xfff3,0xff0c,0xf629,0xf629,0xf629,0xc508,0xf629,0xc508,0xf629,0xf629,0xc508,0xf629,0xc508,0xc508,0xf629,0xc508,0xc508,0xf629,0x6aa3,0x6aa3,0x9800,
0xf800,0xfff3,0xfff3,0xc508,0xc508,0xf629,0xf629,0xc508,0xf629,0xf629,0xc508,0xc508,0xf629,0xf629,0xf629,0xc508,0xc508,0xf629,0xc508,0x6240,0x6aa3,0x9800,
0xf800,0xfff3,0xfff3,0xc508,0xf629,0xc508,0xc508,0xf629,0xff0c,0xc508,0xf629,0xc508,0xf629,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0x6240,0x6aa3,0x9800,
0xf800,0xfff3,0xfff3,0xf629,0xc508,0xf629,0xff0c,0xc508,0xf629,0xc508,0xf629,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0xac46,0xc508,0x6aa3,0x6aa3,0x9800,
0xf800,0xfff3,0xfff3,0xc508,0xf629,0xff0c,0xf629,0xc508,0xc508,0xf629,0xc508,0xc508,0xc508,0xf629,0xf629,0xac46,0x8384,0xc508,0xac46,0x6aa3,0x6240,0x9800,
0xf800,0xfff3,0xfff3,0xc508,0xc508,0xf629,0xc508,0xff0c,0xc508,0xac46,0xc508,0xac46,0xc508,0xc508,0xac46,0xac46,0xc508,0xac46,0xac46,0x6240,0x6aa3,0x9800,
0xf800,0xff0c,0xfff3,0xc508,0xf629,0xc508,0xc508,0xf629,0xc508,0xc508,0xc508,0xac46,0xac46,0xc508,0xc508,0xc508,0xc508,0x8384,0xc508,0x6240,0x6240,0x9800,
0xf800,0xff0c,0xfff3,0xf629,0xf629,0xf629,0xc508,0xc508,0xc508,0xc508,0xac46,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0xac46,0xc508,0x6aa3,0x6240,0x9800,
0xf800,0xfff3,0xff0c,0xc508,0xc508,0xf629,0xf629,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0xc508,0xac46,0x8384,0xc508,0x6240,0x6240,0x9800,
0xf800,0xff0c,0xff0c,0xac46,0xc508,0xc508,0xf629,0xc508,0xac46,0xac46,0xc508,0xc508,0xac46,0xac46,0xc508,0xc508,0x8384,0xac46,0xac46,0x6240,0x6aa3,0x9800,
0xf800,0xfff3,0xfff3,0xc508,0xc508,0xf629,0xc508,0xc508,0xc508,0xac46,0xc508,0xac46,0xac46,0xc508,0xac46,0xac46,0x8384,0xac46,0xc508,0x6aa3,0x6aa3,0x9800,
0xf800,0xff0c,0xff0c,0xac46,0xf629,0xf629,0xc508,0xc508,0xac46,0xac46,0xac46,0xac46,0x8384,0xac46,0x8384,0xac46,0x8384,0xc508,0xac46,0x6aa3,0x6240,0x9800,
0xf800,0xfff3,0xff0c,0xc508,0xc508,0xc508,0xac46,0xc508,0xc508,0xc508,0xc508,0xac46,0xc508,0xac46,0xac46,0xc508,0xc508,0xc508,0xc508,0x6aa3,0x6240,0x9800,
0xf800,0xff0c,0xff0c,0xc508,0xf629,0xf629,0xf629,0xc508,0xac46,0xc508,0xac46,0x8384,0xc508,0xc508,0x8384,0xc508,0xac46,0xc508,0xac46,0x6240,0x6aa3,0x9800,
0xc800,0xff0c,0xff0c,0xf629,0xf629,0xc508,0xc508,0xc508,0xc508,0xc508,0x8384,0xc508,0xac46,0xac46,0xac46,0x8384,0xac46,0xc508,0xac46,0x6aa3,0x6aa3,0x9800,
0xc800,0xff0c,0xff0c,0xf629,0xc508,0xf629,0xc508,0xac46,0xc508,0xac46,0xc508,0xc508,0xc508,0x8384,0xc508,0xac46,0xac46,0xac46,0xac46,0x6aa3,0x6240,0x9800,
0xc800,0xf629,0xf629,0x6aa3,0x6aa3,0x6aa3,0x6240,0x6aa3,0x6240,0x6240,0x6240,0x6240,0x6240,0x6240,0x6aa3,0x6240,0x6240,0x6aa3,0x6240,0x6aa3,0x6240,0x9800,
0xc800,0xf629,0xf629,0x6240,0x6aa3,0x6240,0x6aa3,0x6240,0x6240,0x6aa3,0x6aa3,0x6240,0x6aa3,0x6aa3,0x6240,0x6240,0x6aa3,0x6aa3,0x6aa3,0x6240,0x6240,0x9800,
0x9800,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,0x3000,
};
void drawTile(int x, int y, const uint16_t* spr ){
if(x >220-spr[1]) game.display.directTile(x,y,220,y+spr[0],(uint16_t*)(spr+2));
else if(x <0) game.display.directTile(0,y,spr[1]+x,y+spr[0],(uint16_t*)(spr+2+(spr[0]*-x)));
else game.display.directTile(x,y,x+spr[1],y+spr[0],(uint16_t*)(spr+2));
}
void drawMap(int8_t x,int8_t y/*, uint8_t* mapdata*/){
for(int i=0; i<11; i++){
for(int j=0; j<8; j++){
drawTile(x+(i*22),y+(j*22),tile);
}
}
}
int main(){
game.begin();
game.setFrameRate(100);
int count;
while(game.isRunning()){
if(game.update(true)){
drawMap(count-22,0);
count++;
count = count%22;
}
}
}