diff options
Diffstat (limited to 'src/spike.c')
-rw-r--r-- | src/spike.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/spike.c b/src/spike.c index 4fb7a47..4173729 100644 --- a/src/spike.c +++ b/src/spike.c @@ -1,4 +1,5 @@ #include "entityimpl.h" +#include "rotrect.h" extern long tick; @@ -6,7 +7,11 @@ 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 |