summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 55cb303..95522b8 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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);