hyperultra/src/spike.c

17 lines
309 B
C
Raw Normal View History

2023-03-19 01:28:54 +01:00
#include "entityimpl.h"
2023-03-19 01:37:14 +01:00
#include "rotrect.h"
2023-03-19 01:28:54 +01:00
2023-03-19 05:49:14 +01:00
extern double tick;
2023-03-19 01:29:17 +01:00
2023-03-19 01:28:54 +01:00
IMPL_UPDATE() {
} IMPL_END
IMPL_DRAW() {
2023-03-21 21:31:26 +01:00
rotrect(this->pos[0], this->pos[1], 10, 10, g->spike_angle);
rotrect(this->pos[0], this->pos[1], 10, 10, -g->spike_angle);
2023-03-19 01:28:54 +01:00
} IMPL_END
IMPL_INIT(spike) {
2023-03-19 01:37:14 +01:00
this->height = this->width = 8;
2023-03-19 01:28:54 +01:00
} IMPL_END