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

extern double tick;

IMPL_UPDATE() {
} IMPL_END

IMPL_DRAW() {
	const double angle = tick / 16;
	rotrect(this->pos[0], this->pos[1], 10, 10, angle);
	rotrect(this->pos[0], this->pos[1], 10, 10, -angle);
} IMPL_END

IMPL_INIT(spike) {
	this->height = this->width = 8;
} IMPL_END