blob: 83272ee8b4f947954f6049e25667399e23b6922c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}
}
|