aboutsummaryrefslogtreecommitdiff
path: root/gameloop/include/loopManager.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-09-18 15:11:04 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-09-18 15:11:04 +0200
commit61e382cedd71127033f91551298607e2e78c3809 (patch)
treedb946bf0dac5cbb504ac7875fb323243d2a6db74 /gameloop/include/loopManager.h
parent7eafe293868d5d3875d0bec147e22a266e4ec86c (diff)
gameloop save
Diffstat (limited to 'gameloop/include/loopManager.h')
-rw-r--r--gameloop/include/loopManager.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gameloop/include/loopManager.h b/gameloop/include/loopManager.h
index 03b07a9..5ed918d 100644
--- a/gameloop/include/loopManager.h
+++ b/gameloop/include/loopManager.h
@@ -1,6 +1,7 @@
#pragma once
#include <SDL2/SDL.h>
#include "window.h"
+#include "gameObject.h"
class LoopManager{
public:
LoopManager();
@@ -8,11 +9,18 @@ class LoopManager{
void loop();
private:
-
+ std::vector<GameObject*> objectList;
void processInput();
void update();
+ void lateUpdate();
+ void fixedUpdate();
void render();
- bool gameRunning;
+ bool gameRunning = false;
WindowManager window;
-
+ int timeScale = 1;
+ float lag = 0.0;
+ double currentTime;
+ double t = 0.0;
+ double dt = 0.01;
+ state previous;
};