diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-03 09:52:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 09:52:17 +0200 |
commit | cc23564547b736125fe7e7869de277ea4d4455ab (patch) | |
tree | c74b48322acb426a205d5cc9a31351c902dfbb65 /src/engine/bullet.h | |
parent | 7f51cd925883bbf958baa289d4d19231667c9eba (diff) | |
parent | e987d23d915942ec4a3910b9cc2729f1b21361a9 (diff) |
Merge pull request #48 from heavydemon21/dev
gameloop/bullet/levels
Diffstat (limited to 'src/engine/bullet.h')
-rw-r--r-- | src/engine/bullet.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/engine/bullet.h b/src/engine/bullet.h index ad67d84..5f07b2e 100644 --- a/src/engine/bullet.h +++ b/src/engine/bullet.h @@ -1,16 +1,11 @@ #pragma once #include "player_controller.h" +#include "engine/sprite_controller.h" +#include "input.h" -typedef struct { - int x; - int y; - int velocity; - int isActive; - int hit; -} Bullet; +void hh_shoot_bullet(vec2 playerPos, vec_cor cam_pos, hh_entity*); -//Bullet* createBullet(float x, float y, float velocity, float direction); -void shootBullet(vec2 playerPos, Bullet* bullet); -void updateBullet(Bullet* bullet, int deltaTime); -void drawBullet(Bullet* bullet); +void hh_update_bullet(hh_entity* , vec_cor ); + +void hh_draw_bullet(hh_entity); |