ÇA SAVE
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "blockinfo.h"
|
||||
#include "array2d.h"
|
||||
#include "world.h"
|
||||
#include "perlin.h"
|
||||
|
||||
class Engine : public OpenglContext {
|
||||
public:
|
||||
@@ -37,17 +38,19 @@ private:
|
||||
bool GenerateChunk(int chx, int chy);
|
||||
void UpdateWorld(int& generates, int& updates, int chx, int chy);
|
||||
|
||||
void GetBlockAtCursor(BlockType blocktype);
|
||||
void ChangeBlockAtCursor(BlockType blocktype);
|
||||
|
||||
bool m_wireframe = false;
|
||||
bool m_renderer = false;
|
||||
|
||||
int m_renderCount = 0;
|
||||
int m_badHitCount = 0;
|
||||
std::vector<Vector3i> m_renderManifest;
|
||||
|
||||
BlockInfo* m_blockinfo[BTYPE_LAST];
|
||||
TextureAtlas m_textureAtlas = TextureAtlas(BTYPE_LAST);
|
||||
World m_world = World();
|
||||
|
||||
Perlin m_perlin = Perlin(3,5.f,64.f,12345);
|
||||
|
||||
Texture m_textureFloor;
|
||||
Texture m_textureSkybox;
|
||||
@@ -59,7 +62,7 @@ private:
|
||||
Shader m_shader01;
|
||||
Audio m_audio = Audio(AUDIO_PATH "music01.wav");
|
||||
|
||||
Player m_player = Player(Vector3f(CHUNK_SIZE_X * WORLD_SIZE_X / 2, CHUNK_SIZE_Y + 1.7f, CHUNK_SIZE_Z * WORLD_SIZE_X / 2));
|
||||
Player m_player = Player(Vector3f(CHUNK_SIZE_X * WORLD_SIZE_X / 2, CHUNK_SIZE_Y + 1.8f, CHUNK_SIZE_Z * WORLD_SIZE_X / 2));
|
||||
|
||||
bool m_keyW = false;
|
||||
bool m_keyA = false;
|
||||
|
Reference in New Issue
Block a user