diff options
author | Aki <please@ignore.pl> | 2022-04-17 15:04:55 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-17 15:05:31 +0200 |
commit | 162ab6e923cf0c065449cfc248102b5b92fac8a7 (patch) | |
tree | 751b8c57dc0309d42ee5c524f43780021ac53acc /ExampleGenerator.h | |
parent | 85119293fe4f6814d44e8ee3f182c40876829128 (diff) | |
download | bullethell2022-162ab6e923cf0c065449cfc248102b5b92fac8a7.zip bullethell2022-162ab6e923cf0c065449cfc248102b5b92fac8a7.tar.gz bullethell2022-162ab6e923cf0c065449cfc248102b5b92fac8a7.tar.bz2 |
Separated bullet generator into class and created system for bullets
Diffstat (limited to 'ExampleGenerator.h')
-rw-r--r-- | ExampleGenerator.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ExampleGenerator.h b/ExampleGenerator.h new file mode 100644 index 0000000..0e3372b --- /dev/null +++ b/ExampleGenerator.h @@ -0,0 +1,21 @@ +#pragma once + +#include <vector> + +#include <raylib.h> + +#include "Bullets.h" + + +struct ExampleGenerator +{ + ExampleGenerator(); + void update(float dt, std::vector<ConstantVelocityBullet>& bullets); + float m_delay; + float m_interval; + float m_cone; + int m_speed; + int m_shift; + int m_segments; + Vector2 m_origin; +}; |