diff options
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include "map.h" #include "player.h" #include "cfg.h" +#include "rotrect.h" #include "spike.h" #include <string.h> @@ -24,7 +25,8 @@ void game_update(Game *this) { extern double tick; - this->spike_angle = tick / 16; + this->spike_rect = rotrect_create(10, 10, tick / 16); + this->spike_irect = rotrect_create(10, 10, -tick / 16); if (this->queue_restart_scene > 0) { if (--this->queue_restart_scene == 0) game_restart_scene(this); |