static short x = 120, y = 80;
static unsigned char rot;
-static int32_t bgmat[4];
-static int32_t bgx, bgy;
static int32_t tunrot;
+static int32_t tunmat[4], tunx, tuny;
void gamescr(void)
{
int i;
+ int32_t scale;
uint16_t *cdst;
unsigned char *csrc;
tex = iwram_sbrk(32 * 32);
memcpy(tex, tuncross_pixels, 32 * 32);
+ scale = 0x100;//230;
+ REG_BG2PA = scale;
+ REG_BG2PB = 0;
+ REG_BG2PC = 0;
+ REG_BG2PD = scale;
+ REG_BG2X = (120 << 8) - scale * 120;
+ REG_BG2Y = (80 << 8) - scale * 80;
+
/*select_input(BN_DPAD);*/
mask(INTR_VBLANK);