fear: add r to gen new chunk

This commit is contained in:
2026-04-05 20:19:11 +08:00
parent 23affb78b5
commit ae914a944c
4 changed files with 103 additions and 16 deletions

View File

@@ -66,11 +66,17 @@ void App::key_callback(GLFWwindow* window, int key, int scancode, int action, in
if (action == GLFW_PRESS) {
glfwSetWindowShouldClose(window, GLFW_TRUE);
}
break;
case GLFW_KEY_F11:
if (action == GLFW_PRESS) {
app->m_window.toggle_fullscreen();
}
break;
case GLFW_KEY_R:
if (action == GLFW_PRESS) {
app->m_world.need_gen();
}
break;
}