From f416816883545433ea33ca410983371e657dba18 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Thu, 9 Mar 2017 23:59:53 +0100 Subject: * Nearest unit and/or building is found (no sqrt method used). * Preliminar unit/building selection algorithm. * Added cursor onscreen. - Removed old Peasant sprites. Only 2 sprites needed! --- GameStructures.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'GameStructures.h') diff --git a/GameStructures.h b/GameStructures.h index 315c22b..758affb 100644 --- a/GameStructures.h +++ b/GameStructures.h @@ -29,6 +29,7 @@ typedef struct t_Building uint8_t hp; uint8_t id; bool built; + bool selected; }TYPE_BUILDING; typedef struct t_Unit @@ -37,7 +38,10 @@ typedef struct t_Unit uint16_t y; uint8_t hp; uint8_t id; + bool dir; // False = up-down; true = left-right + bool walk; bool alive; + bool selected; }TYPE_UNIT; typedef struct t_CollisionBlock -- cgit v1.2.3