diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-08-18 00:18:53 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-08-18 00:18:53 -0600 |
commit | f98e6d4ea4ee52b298a7d9a9731da4c020bb4dfe (patch) | |
tree | fdb76e94e4d00cbe2ab652a9f65d6afaad779552 /src/bullets.h | |
parent | 87b86d92c27a6fb83d0d09365a36d8a98ba0b24b (diff) |
Some aim thingy
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); |