Skip to content

Commit

Permalink
Init random number generator with time-based seed
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Jan 31, 2024
1 parent c5df82a commit dbf45f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "olcPixelGameEngine.h"
#include "Particle.h"
#include "Utils.h"

constexpr bool vsync = false;
constexpr float physicsFPS = 200.0f;
Expand All @@ -21,6 +22,8 @@ class FireworksPGE final : public olc::PixelGameEngine
public:
bool OnUserCreate() override
{
randomInit();

for (auto& i : rockets)
{
i = Particle::CreateRocket(*this);
Expand Down

0 comments on commit dbf45f9

Please sign in to comment.