This commit is contained in:
2021-07-09 03:22:51 +02:00
parent e4c6a45427
commit 4f30f2ce3a
30 changed files with 565 additions and 314 deletions

View File

@@ -16,11 +16,14 @@
#include "enemy.h"
#include "object.h"
#include "world.h"
#include "background.h"
#include <cute_headers-master/cute_c2.h>
#include <cute_headers-master/cute_gl.h>
#include <glad/glad.h>
#include <glad/glad.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
@@ -28,10 +31,13 @@ class Game {
private:
float x = 0;
std::vector<Object*> objects;
SpriteRenderer* renderer = nullptr;
Player* player = nullptr;
World* world = nullptr;
Enemy* enemy = nullptr;
Background* background = nullptr;
//Object* dirtBlock = nullptr;
//Object* dirtBlock1 = nullptr;
//position
@@ -52,7 +58,7 @@ class Game {
//Gameloop
void handleEvents(float dt);
void render();
void render(float dt);
//getset
GLFWwindow* getWindow();
};