X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgamescr.c;h=2744d5d5111fe47af88415005d1b8f50fd96b5c9;hb=e8d7821317677f1d0fd6ee9efa9b9ef0ef006d01;hp=7da593a4ee339ab39ac84f0facec115181510e6a;hpb=bbc54accdd0db2f7135964024a3423009b5f571f;p=gbajam21 diff --git a/src/gamescr.c b/src/gamescr.c index 7da593a..2744d5d 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -24,13 +24,13 @@ static uint16_t oam[4 * MAX_SPR]; 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; @@ -61,6 +61,14 @@ void gamescr(void) 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);