diff --git a/.idea/libraries/slick2d.xml b/.idea/libraries/slick2d.xml
new file mode 100644
index 0000000..2496da3
--- /dev/null
+++ b/.idea/libraries/slick2d.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 0492111..d209eb9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,15 +8,6 @@
jumpGame
1.0-SNAPSHOT
-
- 3.2.3
- 1.9.24
- natives-windows
- UTF-8
- 1.8
- 11
- 11
-
@@ -24,14 +15,23 @@
org.apache.maven.plugins
maven-compiler-plugin
- 11.0
- 11.0
-
+ 12
+ 12
+
+ 3.2.3
+ 1.9.24
+ natives-windows
+ UTF-8
+ 1.8
+ 12
+ 12
+
+
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index c6d48d4..40164fd 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -13,6 +13,7 @@
// The window handle
private long window;
+
public void run() {
System.out.println("Hello LWJGL " + Version.getVersion() + "!");
@@ -30,6 +31,7 @@
}
}
+
private void init() {
// Setup an error callback. The default implementation
// will print the error message in System.err.
@@ -49,12 +51,12 @@
int HEIGHT = 300;
// Create the window
- window = glfwCreateWindow(WIDTH, HEIGHT, "Hello World!", NULL, NULL);
+ window = glfwCreateWindow(WIDTH, HEIGHT, "JumpGame!", NULL, NULL);
if (window == NULL) {
throw new RuntimeException("Failed to create the GLFW window");
}
- // Setup a key callback. It will be called every time a key is pressed, repeated or released.
+ // Escで終了
glfwSetKeyCallback(window, (window, key, scancode, action, mods) -> {
if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) {
glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop
@@ -88,7 +90,7 @@
GL.createCapabilities();
// Set the clear color
- glClearColor(1.0f, 0.0f, 0.0f, 0.0f);
+ glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
// Run the rendering loop until the user has attempted to close
// the window or has pressed the ESCAPE key.