summaryrefslogtreecommitdiff
path: root/src/window.c
blob: 38a92a1c74a40c205fabca5b5fe363a3428fd61c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "entityimpl.h"
#include "lzr.h"

IMPL(draw) {
	const LZR_ImageDrawSettings stg =
		{0, 0, -1, -1, 1.0, 1.0, 0.0, true, false, false};
	LZR_DrawSetColor(1, 1, 1, 1);
	LZR_DrawImageEx(LZR_IMAGE(this->broken ? "res/window.bmp" : "res/windowclean.bmp"),
	                this->pos[0], this->pos[1], stg);
}

IMPL(smash) {
	LZR_PlaySound(1);
	this->broken = 1;
	this->smash = NULL;
}

IMPL_INIT(window) {
	this->width = this->height = 64;
}