[ADD] main character,

smoke particle when shooting,
fire effect to player
This commit is contained in:
SemvdH
2021-06-21 21:24:57 +02:00
parent 8c7aa08ef7
commit 6870625fd6
8 changed files with 256 additions and 94 deletions

9
src/toolbox/toolbox.c Normal file
View File

@@ -0,0 +1,9 @@
#include "toolbox.h"
float toolbox_random_float(float a, float b)
{
float random = ((float)rand()) / (float)RAND_MAX;
float diff = b - a;
float r = random * diff;
return a + r;
}