summaryrefslogtreecommitdiff
path: root/Gfx.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-09-09 12:47:17 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-09-09 12:47:17 +0200
commita7dd9781961b5f26d5dca6829e1933dff6209d23 (patch)
tree6e3f1c469e6997fedbaa096f377d67f99a65ae47 /Gfx.cpp
parent786dccd2bc0946d48b8a2758ef2c607678bc8dd9 (diff)
downloadpocketempires-a7dd9781961b5f26d5dca6829e1933dff6209d23.tar.gz
Simple collision detection between units added. libgamebuino was always updating header files, so targets were always being rebuilt.
Diffstat (limited to 'Gfx.cpp')
-rw-r--r--Gfx.cpp22
1 files changed, 1 insertions, 21 deletions
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);
-}