From df6bda462970abfef82568651e6756a17ff1c0ec Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 25 Feb 2018 17:32:15 +0000 Subject: [PATCH] More variation in decoration movement. --- src/world/effects.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/world/effects.c b/src/world/effects.c index 032732e..25ba6eb 100644 --- a/src/world/effects.c +++ b/src/world/effects.c @@ -61,7 +61,8 @@ void throwFleshChunks(float x, float y, int amount) chunk->x = x; chunk->y = y; - chunk->dx = rrnd(-2, 2); + chunk->dx = rrnd(-20, 20); + chunk->dx /= 10; chunk->dy = -rrnd(10, 15); chunk->health = FPS * rrnd(3, 12); chunk->sprite[0] = chunk->sprite[1] = chunk->sprite[2] = fleshChunk[i % 3]; @@ -81,7 +82,8 @@ void throwDebris(float x, float y, int amount) piece->x = x; piece->y = y; - piece->dx = rrnd(-2, 2); + piece->dx = rrnd(-20, 20); + piece->dx /= 10; piece->dy = -rrnd(10, 15); piece->health = FPS * (rand() % 3); piece->sprite[0] = piece->sprite[1] = piece->sprite[2] = debris[i % 3];