Display window #5

Merged k-fujii merged 8 commits into nitta-lab:master from nitta-lab:display_window on 11 Nov 2021
Showing 48 changed files
View
17
.idea/compiler.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="JumpGame" />
<module name="jumpGame" />
</profile>
</annotationProcessing>
<bytecodeTargetLevel>
<module name="JumpGame" target="1.8" />
</bytecodeTargetLevel>
</component>
</project>
View
6
.idea/encodings.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
</component>
</project>
View
13
.idea/libraries/Maven__org_joml_joml_1_9_24.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.joml:joml:1.9.24">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/joml/joml/1.9.24/joml-1.9.24.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/joml/joml/1.9.24/joml-1.9.24-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/joml/joml/1.9.24/joml-1.9.24-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_assimp_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-assimp:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-assimp/3.2.3/lwjgl-assimp-3.2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-assimp/3.2.3/lwjgl-assimp-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-assimp/3.2.3/lwjgl-assimp-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_assimp_natives_windows_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-assimp:natives-windows:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-assimp/3.2.3/lwjgl-assimp-3.2.3-natives-windows.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-assimp/3.2.3/lwjgl-assimp-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-assimp/3.2.3/lwjgl-assimp-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_glfw_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-glfw:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-glfw/3.2.3/lwjgl-glfw-3.2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-glfw/3.2.3/lwjgl-glfw-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-glfw/3.2.3/lwjgl-glfw-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_glfw_natives_windows_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-glfw:natives-windows:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-glfw/3.2.3/lwjgl-glfw-3.2.3-natives-windows.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-glfw/3.2.3/lwjgl-glfw-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-glfw/3.2.3/lwjgl-glfw-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_natives_windows_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl:natives-windows:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3-natives-windows.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_openal_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-openal:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-openal/3.2.3/lwjgl-openal-3.2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-openal/3.2.3/lwjgl-openal-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-openal/3.2.3/lwjgl-openal-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_openal_natives_windows_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-openal:natives-windows:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-openal/3.2.3/lwjgl-openal-3.2.3-natives-windows.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-openal/3.2.3/lwjgl-openal-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-openal/3.2.3/lwjgl-openal-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_opengl_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-opengl:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_opengl_natives_windows_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-opengl:natives-windows:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-natives-windows.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_stb_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-stb:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-stb/3.2.3/lwjgl-stb-3.2.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-stb/3.2.3/lwjgl-stb-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-stb/3.2.3/lwjgl-stb-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
13
.idea/libraries/Maven__org_lwjgl_lwjgl_stb_natives_windows_3_2_3.xml 0 → 100644
<component name="libraryTable">
<library name="Maven: org.lwjgl:lwjgl-stb:natives-windows:3.2.3">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-stb/3.2.3/lwjgl-stb-3.2.3-natives-windows.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-stb/3.2.3/lwjgl-stb-3.2.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/lwjgl/lwjgl-stb/3.2.3/lwjgl-stb-3.2.3-sources.jar!/" />
</SOURCES>
</library>
</component>
View
14
.idea/misc.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/jumpGame/pom.xml" />
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_12" project-jdk-name="12" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>
View
9
.idea/modules.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/JumpGame.iml" filepath="$PROJECT_DIR$/JumpGame.iml" />
<module fileurl="file://$PROJECT_DIR$/jumpGame/jumpGame.iml" filepath="$PROJECT_DIR$/jumpGame/jumpGame.iml" />
</modules>
</component>
</project>
View
124
.idea/uiDesigner.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>
View
6
.idea/vcs.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
View
2
■■■
README.md
JumpGame
resources.JumpGame
===============
View
28
jumpGame.iml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="inheritedJdk" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-assimp:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-glfw:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-openal:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-opengl:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-stb:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl:natives-windows:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-assimp:natives-windows:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-glfw:natives-windows:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-openal:natives-windows:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-opengl:natives-windows:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.lwjgl:lwjgl-stb:natives-windows:3.2.3" level="project" />
<orderEntry type="library" name="Maven: org.joml:joml:1.9.24" level="project" />
</component>
</module>
View
105
pom.xml 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
 
<groupId>jumpGame</groupId>
<artifactId>jumpGame</artifactId>
<version>1.0-SNAPSHOT</version>
 
<properties>
<lwjgl.version>3.2.3</lwjgl.version>
<joml.version>1.9.24</joml.version>
<lwjgl.natives>natives-windows</lwjgl.natives>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
</properties>
 
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11.0</source>
<target>11.0</target>
</configuration>
</plugin>
</plugins>
</build>
 
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-bom</artifactId>
<version>${lwjgl.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
 
<dependencies>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl</artifactId>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-assimp</artifactId>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-glfw</artifactId>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-openal</artifactId>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-opengl</artifactId>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-stb</artifactId>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl</artifactId>
<classifier>${lwjgl.natives}</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-assimp</artifactId>
<classifier>${lwjgl.natives}</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-glfw</artifactId>
<classifier>${lwjgl.natives}</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-openal</artifactId>
<classifier>${lwjgl.natives}</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-opengl</artifactId>
<classifier>${lwjgl.natives}</classifier>
</dependency>
<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-stb</artifactId>
<classifier>${lwjgl.natives}</classifier>
</dependency>
<dependency>
<groupId>org.joml</groupId>
<artifactId>joml</artifactId>
<version>${joml.version}</version>
</dependency>
</dependencies>
</project>
View
25
src/Acceleration.java 100644 → 0
import java.util.*;
 
public class Acceleration {
private double mass;
private Map.Entry<Double, Double> force;
private Velocity velocity;
private Onground onground;
private Map.Entry<Double, Double> acceleration;
public void updateMass(double mass) {
this.mass = mass;
acceleration = (this.onground.getOnground() ? new AbstractMap.SimpleEntry<>((force.getKey()/mass), 0.0) : new AbstractMap.SimpleEntry<>((force.getKey()/mass), (force.getValue()/mass)));
velocity.updateAcceleration(acceleration);
}
public void updateForce(Map.Entry<Double, Double> force) {
this.force = force;
acceleration = (this.onground.getOnground() ? new AbstractMap.SimpleEntry<>((force.getKey()/mass), 0.0) : new AbstractMap.SimpleEntry<>((force.getKey()/mass), (force.getValue()/mass)));
velocity.updateAcceleration(acceleration);
}
public Acceleration(Velocity velocity, Onground onground) {
this.onground = onground;
}
public Map.Entry<Double, Double> getAcceleration() {
return acceleration;
}
}
View
11
src/Clear.java 100644 → 0
import java.util.*;
 
public class Clear {
private Position position;
public Clear(Position position) {
this.position = position;
}
public boolean getClear() {
return ((this.position.getPosition().getKey()>100.0) ? true : false);
}
}
View
16
src/Force.java 100644 → 0
import java.util.*;
 
public class Force {
private Acceleration acceleration;
private Map.Entry<Double, Double> force;
public Force(Acceleration acceleration) {
this.acceleration = acceleration;
}
public void gravity(double y) {
this.force = new AbstractMap.SimpleEntry<>(0.0, y);
acceleration.updateForce(force);
}
public Map.Entry<Double, Double> getForce() {
return force;
}
}
View
11
src/Gameover.java 100644 → 0
import java.util.*;
 
public class Gameover {
private Position position;
public Gameover(Position position) {
this.position = position;
}
public boolean getGameover() {
return ((this.position.getPosition().getValue()<-(1.0)) ? true : false);
}
}
View
12
src/Ground.java 100644 → 0
import java.util.*;
 
public class Ground {
private Position position;
private boolean ground;
public Ground(Position position) {
this.position = position;
}
public boolean getGround() {
return ground;
}
}
View
61
src/JumpGame.java 100644 → 0
import java.util.*;
 
public class JumpGame {
private Time time = new Time();
private Position position = new Position();
private Gameover gameover = new Gameover(position);
private Ground ground = new Ground(position);
private Onground onground = new Onground(ground,position);
private Velocity velocity = new Velocity(position,onground);
private Clear clear = new Clear(position);
private Move move = new Move(velocity);
private Acceleration acceleration = new Acceleration(velocity,onground);
private Force force = new Force(acceleration);
private Mass mass = new Mass(acceleration);
public void gravity(double y) {
this.force.gravity(y);
this.time.gravity(y);
}
public void moveY(double y) {
this.move.moveY(y);
}
public void moveX(double x) {
this.move.moveX(x);
}
public void setMass(double x) {
this.mass.setMass(x);
}
public Map.Entry<Double, Double> getAcceleration() {
return acceleration.getAcceleration();
}
public Map.Entry<Double, Double> getMove() {
return move.getMove();
}
public double getMass() {
return mass.getMass();
}
public boolean getClear() {
return clear.getClear();
}
public boolean getGround() {
return ground.getGround();
}
public Map.Entry<Double, Double> getForce() {
return force.getForce();
}
public Map.Entry<Double, Double> getVelocity() {
return velocity.getVelocity();
}
public Map.Entry<Double, Double> getPosition() {
return position.getPosition();
}
public boolean getOnground() {
return onground.getOnground();
}
public double getTime() {
return time.getTime();
}
public boolean getGameover() {
return gameover.getGameover();
}
}
View
16
src/Mass.java 100644 → 0
import java.util.*;
 
public class Mass {
private Acceleration acceleration;
private double mass;
public Mass(Acceleration acceleration) {
this.acceleration = acceleration;
}
public void setMass(double x) {
this.mass = x;
acceleration.updateMass(mass);
}
public double getMass() {
return mass;
}
}
View
19
src/Move.java 100644 → 0
import java.util.*;
 
public class Move {
private Velocity velocity;
private Map.Entry<Double, Double> move;
public Move(Velocity velocity) {
this.velocity = velocity;
}
public void moveY(double y) {
this.move = new AbstractMap.SimpleEntry<>(this.move.getKey(), y);
velocity.updateMove(move);
}
public void moveX(double x) {
this.move = new AbstractMap.SimpleEntry<>(x, this.move.getValue());
}
public Map.Entry<Double, Double> getMove() {
return move;
}
}
View
13
src/Onground.java 100644 → 0
import java.util.*;
 
public class Onground {
private Ground ground;
private Position position;
public Onground(Ground ground, Position position) {
this.ground = ground;
this.position = position;
}
public boolean getOnground() {
return ((this.ground.getGround()==true)&&(this.position.getPosition().getValue()<=0.0));
}
}
View
18
src/Position.java 100644 → 0
import java.util.*;
 
public class Position {
private Map.Entry<Double, Double> velocity;
private boolean ground;
private Map.Entry<Double, Double> position;
public void updateVelocity(Map.Entry<Double, Double> velocity) {
this.velocity = velocity;
position = (((ground==true)&&((this.position.getValue()+(0.01*velocity.getValue()))<0.0)) ? new AbstractMap.SimpleEntry<>((this.position.getKey()+(0.01*velocity.getKey())), 0.0) : new AbstractMap.SimpleEntry<>((this.position.getKey()+(0.01*velocity.getKey())), (this.position.getValue()+(0.01*velocity.getValue()))));
}
public void updateGround(boolean ground) {
this.ground = ground;
position = (((ground==true)&&((this.position.getValue()+(0.01*velocity.getValue()))<0.0)) ? new AbstractMap.SimpleEntry<>((this.position.getKey()+(0.01*velocity.getKey())), 0.0) : new AbstractMap.SimpleEntry<>((this.position.getKey()+(0.01*velocity.getKey())), (this.position.getValue()+(0.01*velocity.getValue()))));
}
public Map.Entry<Double, Double> getPosition() {
return position;
}
}
View
11
src/Time.java 100644 → 0
import java.util.*;
 
public class Time {
private double time;
public void gravity(double y) {
this.time = (this.time+0.01);
}
public double getTime() {
return time;
}
}
View
25
src/Velocity.java 100644 → 0
import java.util.*;
 
public class Velocity {
private Map.Entry<Double, Double> acceleration;
private Map.Entry<Double, Double> move;
private Position position;
private Onground onground;
private Map.Entry<Double, Double> velocity;
public void updateAcceleration(Map.Entry<Double, Double> acceleration) {
this.acceleration = acceleration;
velocity = ((this.onground.getOnground()&&(this.velocity.getValue()<0.0)) ? new AbstractMap.SimpleEntry<>((this.velocity.getKey()+(0.01*acceleration.getKey())), 0.0) : new AbstractMap.SimpleEntry<>((this.velocity.getKey()+(0.01*acceleration.getKey())), (this.velocity.getValue()+(0.01*acceleration.getValue()))));
position.updateVelocity(velocity);
}
public void updateMove(Map.Entry<Double, Double> move) {
this.move = move;
velocity = ((this.onground.getOnground()&&(move.getValue()>=0.0)) ? move : this.velocity);
position.updateVelocity(velocity);
}
public Velocity(Position position, Onground onground) {
this.onground = onground;
}
public Map.Entry<Double, Double> getVelocity() {
return velocity;
}
}
View
110
src/main/java/Main.java 0 → 100644
import org.lwjgl.glfw.*;
import org.lwjgl.opengl.*;
 
import org.lwjgl.Version;
import static org.lwjgl.glfw.Callbacks.*;
 
import static org.lwjgl.glfw.GLFW.*;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.system.MemoryUtil.*;
 
public class Main {
 
// The window handle
private long window;
 
public void run() {
System.out.println("Hello LWJGL " + Version.getVersion() + "!");
 
try {
init();
loop();
 
// Release window and window callbacks
glfwFreeCallbacks(window);
glfwDestroyWindow(window);
} finally {
// Terminate GLFW and release the GLFWerrorfun
glfwTerminate();
glfwSetErrorCallback(null).free();
}
}
 
private void init() {
// Setup an error callback. The default implementation
// will print the error message in System.err.
GLFWErrorCallback.createPrint(System.err).set();
 
// Initialize GLFW. Most GLFW functions will not work before doing this.
if (!glfwInit()) {
throw new IllegalStateException("Unable to initialize GLFW");
}
 
// Configure our window
glfwDefaultWindowHints(); // optional, the current window hints are already the default
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;
 
// Create the window
window = glfwCreateWindow(WIDTH, HEIGHT, "Hello World!", 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.
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
}
});
 
// Get the resolution of the primary monitor
GLFWVidMode vidmode = glfwGetVideoMode(glfwGetPrimaryMonitor());
// Center our window
glfwSetWindowPos(
window,
(vidmode.width() - WIDTH) / 2,
(vidmode.height() - HEIGHT) / 2
);
 
// Make the OpenGL context current
glfwMakeContextCurrent(window);
// Enable v-sync
glfwSwapInterval(1);
 
// Make the window visible
glfwShowWindow(window);
}
 
private void loop() {
// This line is critical for LWJGL's interoperation with GLFW's
// OpenGL context, or any context that is managed externally.
// LWJGL detects the context that is current in the current thread,
// creates the ContextCapabilities instance and makes the OpenGL
// bindings available for use.
GL.createCapabilities();
 
// Set the clear color
glClearColor(1.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.
while (!glfwWindowShouldClose(window)) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // clear the framebuffer
 
glfwSwapBuffers(window); // swap the color buffers
 
// Poll for window events. The key callback above will only be
// invoked during this call.
glfwPollEvents();
}
}
 
public static void main(String[] args) {
new Main().run();
}
 
}
View
src/main/java/resources/Acceleration.java 0 → 100644
View
src/main/java/resources/Clear.java 0 → 100644
View
src/main/java/resources/Force.java 0 → 100644
View
src/main/java/resources/Gameover.java 0 → 100644
View
src/main/java/resources/Ground.java 0 → 100644
View
src/main/java/resources/JumpGame.java 0 → 100644
View
src/main/java/resources/Mass.java 0 → 100644
View
src/main/java/resources/Move.java 0 → 100644
View
src/main/java/resources/Onground.java 0 → 100644
View
src/main/java/resources/Position.java 0 → 100644
View
src/main/java/resources/Time.java 0 → 100644
View
src/main/java/resources/Vector2.java 0 → 100644
View
src/main/java/resources/Velocity.java 0 → 100644