From a7dd9781961b5f26d5dca6829e1933dff6209d23 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sat, 9 Sep 2017 12:47:17 +0200 Subject: Simple collision detection between units added. libgamebuino was always updating header files, so targets were always being rebuilt. --- Gfx.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'Gfx.cpp') diff --git a/Gfx.cpp b/Gfx.cpp index 49b8a9a..77664b4 100644 --- a/Gfx.cpp +++ b/Gfx.cpp @@ -53,7 +53,7 @@ void GfxShowKeyboard(char* str, uint8_t length) void GfxClearScreen(void) { - //gb.display.fillScreen(GFX_WHITE); + gb.display.fillScreen(GFX_WHITE); gb.display.clear(); } @@ -214,23 +214,3 @@ void GfxFillRectangle(uint8_t x, uint8_t y, uint8_t w, uint8_t h, int8_t color) gb.display.setColor(orig_color); } } - -void GfxShowResources(TYPE_RESOURCES* ptrResources) -{ - char str[8]; - - gb.display.setColor(GFX_WHITE); - gb.display.fillRect(0, 0, X_SCREEN_RESOLUTION, 5); - - snprintf(str, 8, "W=%d", ptrResources->Wood); - - GfxPrintTextFont(str, font3x3, 4, 1); - - snprintf(str, 8, "G=%d", ptrResources->Gold); - - GfxPrintTextFont(str, font3x3, 24, 1); - - snprintf(str, 8, "F=%d", ptrResources->Food); - - GfxPrintTextFont(str, font3x3, 48, 1); -} -- cgit v1.2.3