diff options
author | Aki <please@ignore.pl> | 2022-04-17 14:03:10 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-17 14:03:10 +0200 |
commit | 85119293fe4f6814d44e8ee3f182c40876829128 (patch) | |
tree | 646c7b0f1be3aebed67a8b019092c72134087368 /Bullets.h | |
parent | a0705fcd7b51401b45ff9960a81c08520f142230 (diff) | |
download | bullethell2022-85119293fe4f6814d44e8ee3f182c40876829128.zip bullethell2022-85119293fe4f6814d44e8ee3f182c40876829128.tar.gz bullethell2022-85119293fe4f6814d44e8ee3f182c40876829128.tar.bz2 |
Added sample bullet and some generation
Diffstat (limited to 'Bullets.h')
-rw-r--r-- | Bullets.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Bullets.h b/Bullets.h new file mode 100644 index 0000000..7778a9c --- /dev/null +++ b/Bullets.h @@ -0,0 +1,18 @@ +#pragma once + +#include <vector> + +#include <raylib.h> + + +struct ConstantVelocityBullet; + + +void update(float dt, std::vector<ConstantVelocityBullet>& bullets); + + +struct ConstantVelocityBullet +{ + Vector2 position; + Vector2 velocity; +}; |