Small fix
This commit is contained in:
parent
587ce37b75
commit
9339e572a0
|
@ -10,8 +10,6 @@ void Game::onCreate(int screenW, int screenH)
|
||||||
isCreativeCamera = true;
|
isCreativeCamera = true;
|
||||||
|
|
||||||
updateWindowMetrics(screenW, screenH);
|
updateWindowMetrics(screenW, screenH);
|
||||||
|
|
||||||
//create 2D renderer
|
|
||||||
renderer2d.create();
|
renderer2d.create();
|
||||||
|
|
||||||
font.createFromFile(RESOURCES_PATH "roboto_black.ttf");
|
font.createFromFile(RESOURCES_PATH "roboto_black.ttf");
|
||||||
|
@ -21,9 +19,6 @@ void Game::onCreate(int screenW, int screenH)
|
||||||
|
|
||||||
chunkManager.setGridSize(10, glm::vec2{camera->getPosition().x, camera->getPosition().z});
|
chunkManager.setGridSize(10, glm::vec2{camera->getPosition().x, camera->getPosition().z});
|
||||||
|
|
||||||
//std::cout << chunkManager.bottomCorner.x << " " << chunkManager.bottomCorner.y << "\n";
|
|
||||||
//std::cout << chunkManager.topCorner.x << " " << chunkManager.topCorner.y << "\n";
|
|
||||||
|
|
||||||
arrowTexture.loadFromFile(RESOURCES_PATH "arrow.png");
|
arrowTexture.loadFromFile(RESOURCES_PATH "arrow.png");
|
||||||
|
|
||||||
skyBox.create();
|
skyBox.create();
|
||||||
|
@ -134,10 +129,6 @@ void Game::onUpdate(float deltaTime, const GameInput &input)
|
||||||
camera->getViewDirection()))
|
camera->getViewDirection()))
|
||||||
{
|
{
|
||||||
auto b = chunkManager.getBlockRaw(rayEnd);
|
auto b = chunkManager.getBlockRaw(rayEnd);
|
||||||
if(b)
|
|
||||||
{
|
|
||||||
//std::cout << *b << "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(input.getKey(GameInput::RIGHT_CLICK).isReleased())
|
if(input.getKey(GameInput::RIGHT_CLICK).isReleased())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue