diff --git a/cart/test/game.dll b/cart/test/game.dll index 6b98548..969d8e8 100644 --- a/cart/test/game.dll +++ b/cart/test/game.dll Binary files differ diff --git a/cart/test/game.dll b/cart/test/game.dll index 6b98548..969d8e8 100644 --- a/cart/test/game.dll +++ b/cart/test/game.dll Binary files differ diff --git a/test/test.c b/test/test.c index cffadee..b396c89 100644 --- a/test/test.c +++ b/test/test.c @@ -3,6 +3,7 @@ int setup(int a) { player = f_bitmap("/player.pbm"); + if (player) player->data[0] = 1 << 7; return 0; } @@ -12,18 +13,29 @@ float speed = 80; +bool flipX = false, flipY = false; + int loop(int ms) { d_clear(); if (player) { - d_pbm((uint16_t)roundf(x), (uint16_t)roundf(y), player, 3, 3, 10, 10, BLACK, WHITE, rot); + d_pbm((uint16_t)roundf(x), (uint16_t)roundf(y), player, 0, 0, 0, 0, BLACK, WHITE, rot, flipX, flipY); } if (button_pressed(BUTTON_A)) { rot = (rot + 1) % 4; } + if (button_pressed(BUTTON_B)) + { + flipX = !flipX; + if (!flipX) + { + flipY = !flipY; + } + printf("Flip: %d %d\n", flipX, flipY); + } float t = ms / 1000.0f; if (button_down(DPAD_RIGHT)) x += t * speed;