summaryrefslogtreecommitdiff
path: root/src/exit.c
blob: 64ed0a9aee41cf5b4c839d86a744b32b758f33f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "entityimpl.h"
#include "rotrect.h"

IMPL_INIT(exit) {
	this->width = 12;
	this->height = 12;
	this->exit.dir = 1;
}

IMPL(draw) {
	LZY_DrawSetColor(BLACK);
	rotrect(this->pos[0], this->pos[1],
	        this->width, this->height, 0.2 * this->exit.dir);
}