blob: f39ebcfb6825dce2f0adfb39a0485b92b53a8207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "TZR.h"
#include "entity.h"
#include "entityimpl.h"
IMPL_INIT(grid, 0) {}
IMPL(draw) {
if (TZR_GetTick() % 2)
return;
TZR_DrawSetColor(1, 1, 1, 1);
for (int i = 0; i < DHEIGHT; i += TSIZE)
TZR_DrawLine(-1, i - 1, DWIDTH, i - 1);
for (int i = 0; i < DWIDTH; i += TSIZE)
TZR_DrawLine(i - 1, -1, i - 1, DHEIGHT);
}
|