Obstacles följer spelaren :)

This commit is contained in:
ViktorLjung
2014-03-13 03:29:16 +01:00
parent 40725bd2d4
commit 1cff0571d3
3 changed files with 19 additions and 8 deletions
@@ -7,7 +7,6 @@
#include "Components/Bounds.h"
#include "Components/Collision.h"
#include "Components/Model.h"
#include "Components/PointLight.h"
namespace Systems
{
@@ -20,11 +19,14 @@ namespace Systems
void SpawnObstacle();
void Update(double dt) override;
void UpdateEntity(double dt, EntityID entity, EntityID parent) override;
private:
int typeRandom;
int positionRandom;
glm::vec2 startyz;
float startx;
double elapsedtime;
std::list<EntityID> obstacles;