diff options
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/commands.c b/commands.c new file mode 100644 index 0000000..83272ee --- /dev/null +++ b/commands.c @@ -0,0 +1,24 @@ +#include "commands.h" +#include "lzr.h" +#include "cfg.h" + +static const unsigned int commands[COM_LEN] = { + COM_RIGHT, + COM_RIGHT, + COM_UP, + COM_DOWN, + COM_LEFT, + COM_LEFT, + COM_DOWN, + COM_UP +}; + +void commands_draw(void) +{ + LZR_DrawSetColor(1, 1, 1, 1); + for (int i = 0; i < COM_LEN; i++) { + const int dx = CFG_TSIZE / 2; + const int dy = CFG_TSIZE / 2 + i * (int)(CFG_TSIZE * 1.5); + LZR_DrawImage(commands[i], dx, dy); + } +} |