aboutsummaryrefslogtreecommitdiffstats
path: root/src/projectile.hpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-22 07:39:54 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-22 07:39:54 +0100
commitaa872f4f35890027e65c930cc9cc603b5db22906 (patch)
tree48b53e75fd8ed0ac7bea62c73ddd85975cc47f43 /src/projectile.hpp
parentParsing: the great rework (tm) finally works as intended (diff)
downloadthreshold-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.hpp14
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 */