summaryrefslogtreecommitdiff
path: root/src/spike.c
blob: 4173729c8b59fd9ea348928ba8320ffdf9c67d44 (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 long tick;

IMPL_UPDATE() {
} IMPL_END

IMPL_DRAW() {
	const double angle = (float)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