This commit is contained in:
2023-02-25 16:06:29 -05:00
15 changed files with 200 additions and 38 deletions

18
include/LevelGenerator.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef LEVELGENERATOR
#define LEVELGENERATOR
#include "FastNoiseLite.h"
class LevelGenerator
{
public:
LevelGenerator();
void generateBlock();
protected:
private:
FastNoiseLite perlin, os, cellular;
int seed = 138;
};
#endif

View File

@@ -26,7 +26,7 @@ class TextureHandler
void loadAllTextures()
{
int textureIndex = 0;
imageData = loadTexture("data/img/grass.png");
imageData = loadTexture("data/img/texturemap.png");
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);