diff --git a/src/main/java/Main.java b/src/main/java/Main.java index 40164fd..c5a564a 100644 --- a/src/main/java/Main.java +++ b/src/main/java/Main.java @@ -2,6 +2,8 @@ import org.lwjgl.opengl.*; import org.lwjgl.Version; +import views.PlayerRenderer; + import static org.lwjgl.glfw.Callbacks.*; import static org.lwjgl.glfw.GLFW.*; @@ -12,6 +14,7 @@ // The window handle private long window; + private PlayerRenderer playerRenderer; public void run() { @@ -47,8 +50,8 @@ glfwWindowHint(GLFW_VISIBLE, GL_FALSE); // the window will stay hidden after creation glfwWindowHint(GLFW_RESIZABLE, GL_TRUE); // the window will be resizable - int WIDTH = 300; - int HEIGHT = 300; + int WIDTH = 1280; + int HEIGHT = 960; // Create the window window = glfwCreateWindow(WIDTH, HEIGHT, "JumpGame!", NULL, NULL); @@ -77,6 +80,9 @@ // Enable v-sync glfwSwapInterval(1); + + playerRenderer = new PlayerRenderer(window); + // Make the window visible glfwShowWindow(window); } @@ -89,6 +95,8 @@ // bindings available for use. GL.createCapabilities(); + playerRenderer.display(); + // Set the clear color glClearColor(0.0f, 0.0f, 0.0f, 0.0f);