Random direction upon ResetBall, turn in direction.

This commit is contained in:
PlatinumSkink
2015-10-21 16:53:04 +02:00
parent 83f4da59d4
commit 1a6f18da94
3 changed files with 24 additions and 6 deletions
+6
View File
@@ -1,6 +1,8 @@
#ifndef DAYDREAM_BALLSYSTEM_H
#define DAYDREAM_BALLSYSTEM_H
#include <random>
#include "Core/System.h"
#include "Core/World.h"
#include "Core/EventBroker.h"
@@ -99,6 +101,8 @@ public:
void SetPause(const bool& pause) { m_Pause = pause; }
private:
std::mt19937 m_RandomGenerator;
float m_XMovementMultiplier = 2.f;
float m_EdgeX = 3.4f; //Actually 3.2, but anyways.
float m_EdgeY = 5.2f;
@@ -118,6 +122,8 @@ private:
int m_StickyCounter = 3;
bool m_GodMode = false;
bool m_First = true;
bool m_StageBlockedWaiting = false;
glm::vec3 m_SavedSpeed;