aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Particle.hpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:02:09 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:02:09 +0200
commit096e0d0a7199ec9a4059fd5ef8a06a3cf8fcae83 (patch)
treee88e612ac8836ad14abf6b6daff5f2508f0456b2 /src/crepe/Particle.hpp
parent094ce1806156e191ffb554d4e88e636421cb0242 (diff)
created a particel system
Diffstat (limited to 'src/crepe/Particle.hpp')
-rw-r--r--src/crepe/Particle.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crepe/Particle.hpp b/src/crepe/Particle.hpp
index f8d2770..f71fd67 100644
--- a/src/crepe/Particle.hpp
+++ b/src/crepe/Particle.hpp
@@ -3,8 +3,8 @@
class Particle {
public:
struct Position {
- int x;
- int y;
+ float x;
+ float y;
};
Position position;
@@ -14,6 +14,5 @@ public:
Particle(float lifespan, Position position, Position velocity);
void update(float deltaTime);
bool isAlive() const;
-private:
float timeInLife;
};