17 lines
309 B
C
17 lines
309 B
C
#include "entityimpl.h"
|
|
#include "rotrect.h"
|
|
|
|
extern double tick;
|
|
|
|
IMPL_UPDATE() {
|
|
} IMPL_END
|
|
|
|
IMPL_DRAW() {
|
|
rotrect(this->pos[0], this->pos[1], 10, 10, g->spike_angle);
|
|
rotrect(this->pos[0], this->pos[1], 10, 10, -g->spike_angle);
|
|
} IMPL_END
|
|
|
|
IMPL_INIT(spike) {
|
|
this->height = this->width = 8;
|
|
} IMPL_END
|