Re-enable collision and implement game lose screen

This commit is contained in:
2016-12-18 19:48:14 +11:00
parent 386e94db91
commit b3760aa3fc
6 changed files with 140 additions and 39 deletions
+2
View File
@@ -19,10 +19,12 @@ INTERNAL void keyCallback(GLFWwindow *window, int key, int scancode, int action,
{
GameState *game = CAST(GameState *)(glfwGetWindowUserPointer(window));
#if 1
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
{
glfwSetWindowShouldClose(window, GL_TRUE);
}
#endif
switch (key)
{