diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-03-13 15:30:05 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-03-13 16:41:49 +0100 |
commit | cf647ebf504eb523d822fa79622cb59d009680da (patch) | |
tree | efaa792f312bb18db07c94d1460801209279ed3f /src/Render.cpp | |
parent | Fixed holes when block on section border destroyed (diff) | |
download | AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.tar AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.tar.gz AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.tar.bz2 AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.tar.lz AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.tar.xz AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.tar.zst AltCraft-cf647ebf504eb523d822fa79622cb59d009680da.zip |
Diffstat (limited to 'src/Render.cpp')
-rw-r--r-- | src/Render.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Render.cpp b/src/Render.cpp index b5d24b6..ba8d0ed 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -343,6 +343,16 @@ void Render::RenderGui() { world->GameStatePtr()->player->pos.z, world->GameStatePtr()->player->onGround); + ImGui::Text( + "Player block pos: %d %d %d in %d %d %d", + (int)(world->GameStatePtr()->player->pos.x - std::floor(world->GameStatePtr()->player->pos.x / 16.0) * 16), + (int)(world->GameStatePtr()->player->pos.y - std::floor(world->GameStatePtr()->player->pos.y / 16.0) * 16), + (int)(world->GameStatePtr()->player->pos.z - std::floor(world->GameStatePtr()->player->pos.z / 16.0) * 16), + + (int)std::floor(world->GameStatePtr()->player->pos.x / 16.0), + (int)std::floor(world->GameStatePtr()->player->pos.y / 16.0), + (int)std::floor(world->GameStatePtr()->player->pos.z / 16.0)); + ImGui::Text( "Player vel: %.1f %.1f %.1f", world->GameStatePtr()->player->vel.x, @@ -359,6 +369,10 @@ void Render::RenderGui() { world->GameStatePtr()->selectedBlock.y, world->GameStatePtr()->selectedBlock.z, world->GameStatePtr()->distanceToSelectedBlock); + + ImGui::Text("Selected block light: %d (%d)", + world->GameStatePtr()->world.GetBlockLight(world->GameStatePtr()->selectedBlock), + world->GameStatePtr()->world.GetBlockSkyLight(world->GameStatePtr()->selectedBlock)); } ImGui::End(); |