Skip to content

Commit

Permalink
Reorder some member variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Feb 1, 2024
1 parent dc64c49 commit b455271
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ class FireworksPGE final : public olc::PixelGameEngine
}

private:
const olc::vf2d gravity = {0.0f, 10.0f};

std::array<Particle, 50> rockets;
std::vector<Particle> sparkles;
const olc::vf2d gravity = {0.0f, 10.0f};

float accumulator = 0.0f;

public:
bool OnUserCreate() override
Expand All @@ -32,8 +35,6 @@ class FireworksPGE final : public olc::PixelGameEngine
return true;
}

float accumulator = 0.0f;

bool OnUserUpdate(const float fElapsedTime) override
{
if (GetKey(olc::Key::ESCAPE).bPressed)
Expand Down

0 comments on commit b455271

Please sign in to comment.