From 9ee31800e9c96296ba5332b553b09690cb4966e7 Mon Sep 17 00:00:00 2001
From: j2-isaac <jai2.isaac@live.uwe.ac.uk>
Date: Fri, 21 Jul 2023 21:28:27 +0000
Subject: [PATCH] Upload New File

---
 bullet.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 bullet.h

diff --git a/bullet.h b/bullet.h
new file mode 100644
index 0000000..e1b196f
--- /dev/null
+++ b/bullet.h
@@ -0,0 +1,25 @@
+#ifndef BULLET_H
+#define BULLET_H
+
+#include <SFML/Graphics.hpp>
+
+class Bullet : public sf::Drawable {
+public:
+    Bullet(float startX, float startY);
+
+    // Public function to update the bullet's position
+    void update();
+
+private:
+    // Overridden draw function from sf::Drawable
+    void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
+
+    // Private member variable to store the bullet's shape
+    sf::RectangleShape m_shape;
+
+    // Private member variable to store the bullet's speed
+    float m_speed = 5.0f; // Adjust the speed as needed
+};
+
+#endif
+
-- 
GitLab