Cleanup
This commit is contained in:
parent
c6040fedaf
commit
2756c37e4c
@ -45,28 +45,28 @@ void Engine::Init()
|
|||||||
m_skybox.Init(0.00013f);
|
m_skybox.Init(0.00013f);
|
||||||
|
|
||||||
// Objet de musique!
|
// Objet de musique!
|
||||||
m_audio.ToggleMusicState();
|
//m_audio.ToggleMusicState();
|
||||||
|
|
||||||
|
|
||||||
// Init Chunks
|
// Init Chunks
|
||||||
/*for (int x = 0; x < CHUNK_SIZE_X; ++x)
|
for (int chx = 0; chx < VIEW_DISTANCE; ++chx)
|
||||||
for (int z = 0; z < CHUNK_SIZE_Z; ++z)
|
for (int chy = 0; chy < VIEW_DISTANCE; ++chy)
|
||||||
for (int y = 0; y < 32; ++y)
|
m_chunks.Set(chx, chy, new Chunk(chx, chy));
|
||||||
m_testChunk->SetBlock(x, y, z, BTYPE_DIRT);*/
|
|
||||||
|
|
||||||
|
// Génération Chunks.
|
||||||
for (int chx = 0; chx < VIEW_DISTANCE; ++chx)
|
for (int chx = 0; chx < VIEW_DISTANCE; ++chx)
|
||||||
for (int chy = 0; chy < VIEW_DISTANCE; ++chy) {
|
for (int chy = 0; chy < VIEW_DISTANCE; ++chy) {
|
||||||
|
|
||||||
m_chunks.Set(chx, chy, new Chunk(chx, chy));
|
|
||||||
|
|
||||||
for (int x = 0; x < CHUNK_SIZE_X; ++x)
|
for (int x = 0; x < CHUNK_SIZE_X; ++x)
|
||||||
for (int z = 0; z < CHUNK_SIZE_Z; ++z)
|
for (int z = 0; z < CHUNK_SIZE_Z; ++z)
|
||||||
for (int y = 0; y < 32; ++y)
|
for (int y = 0; y < 32; ++y)
|
||||||
m_chunks.Get(chx,chy)->SetBlock(x, y, z, BTYPE_DIRT);
|
m_chunks.Get(chx, chy)->SetBlock(x, y, z, BTYPE_DIRT);
|
||||||
|
|
||||||
m_chunks.Get(chx,chy)->SetBlock(8, chx+32, 8, BTYPE_DIRT);
|
m_chunks.Get(chx, chy)->SetBlock(8, chx + 32, 8, BTYPE_DIRT);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Gestion de souris.
|
// Gestion de souris.
|
||||||
CenterMouse();
|
CenterMouse();
|
||||||
HideCursor();
|
HideCursor();
|
||||||
|
@ -50,7 +50,6 @@ private:
|
|||||||
|
|
||||||
Skybox m_skybox;
|
Skybox m_skybox;
|
||||||
Shader m_shader01;
|
Shader m_shader01;
|
||||||
Chunk* m_testChunk;
|
|
||||||
Audio m_audio = Audio(AUDIO_PATH "music01.wav");
|
Audio m_audio = Audio(AUDIO_PATH "music01.wav");
|
||||||
|
|
||||||
Player m_player = Player(Vector3f(0, 0, 0));
|
Player m_player = Player(Vector3f(0, 0, 0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user