Fixes to ghosts

This commit is contained in:
2023-10-13 22:29:08 -04:00
parent 1581065661
commit f7bf70f4c5
2 changed files with 4 additions and 2 deletions

View File

@@ -333,6 +333,8 @@ int main(int argc, char *argv[])
ghosts.push_back(new Ghost(xmin_wall, xmax_wall, zmin_wall, zmax_wall));
}
player->mouse_callback(window, WINDOWWIDTH/2, WINDOWHEIGHT/2);
while (!glfwWindowShouldClose(window))
{
float current_frame = static_cast<float>(glfwGetTime());

View File

@@ -6,9 +6,9 @@
Player::Player(glm::vec3 startpos, float startyaw) {
position = startpos;
yaw = 45.0f + startyaw;
yaw = startyaw;
pitch = 45.0f;
pitch = 0.0f;
first_mouse = false;
first_frame = false;
light_xpersist = 0.0f;