diff options
Diffstat (limited to 'src/bullets.h')
-rw-r--r-- | src/bullets.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bullets.h b/src/bullets.h index fea7961..45c96ea 100644 --- a/src/bullets.h +++ b/src/bullets.h @@ -1,6 +1,7 @@ #include "gameCommon.h" #include "entity.h" #include "world.h" +#include <raylib.h> #ifndef BULLET_H #define BULLET_H @@ -23,6 +24,9 @@ typedef struct BulletHitInfo { // Uses entity postion and direction to create bullet ray. Bullet createBulletFromEntity(Entity entity, float damage); +// Uses direction argument for direction indeed. +Bullet createBulletFromDirection(Entity entity, Vector3 direction, float damage); + // Shoot this fucker. BulletHitInfo shootBullet(World * world, Bullet bullet); |