diff options
Diffstat (limited to 'examples/shooter/bullet.cpp')
-rw-r--r-- | examples/shooter/bullet.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/shooter/bullet.cpp b/examples/shooter/bullet.cpp new file mode 100644 index 00000000..55ce3f6e --- /dev/null +++ b/examples/shooter/bullet.cpp @@ -0,0 +1,8 @@ +#include "bullet.h" + +Bullet::Bullet(const glm::vec4 &bound) : bound_(bound) {} + +void Bullet::draw(yage::SpriteBatch &sp) const +{ + sp.draw(bound_, {0, 0, 1, 1}, yage::ResourceManager::getTexture("examples/resources/bullet.png").id, yage::Colour(255, 255, 255, 255), 0); +} |