18 lines
329 B
C
18 lines
329 B
C
#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
|