diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-22 07:39:54 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-22 07:39:54 +0100 |
commit | aa872f4f35890027e65c930cc9cc603b5db22906 (patch) | |
tree | 48b53e75fd8ed0ac7bea62c73ddd85975cc47f43 /src/projectile.hpp | |
parent | Parsing: the great rework (tm) finally works as intended (diff) | |
download | threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.gz threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.bz2 threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.xz threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.zst threshold-aa872f4f35890027e65c930cc9cc603b5db22906.zip |
Weapons: amazing job adding another weapon salade ! outstanding
Diffstat (limited to 'src/projectile.hpp')
-rw-r--r-- | src/projectile.hpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/projectile.hpp b/src/projectile.hpp index e25e5f4..3c0a1b6 100644 --- a/src/projectile.hpp +++ b/src/projectile.hpp @@ -3,13 +3,11 @@ #include <raylib.h> -class Projectile { - Vector2 const& direction; - Vector2 const& position; - - public: - Projectile(Vector2 const& direction, Vector2 const& position); - ~Projectile(); -}; +typedef struct Projectile { + int posX, posY; + Vector2 dir; + float radius; + float damage; +} Projectile; #endif /* PROJECTILE_H */ |