diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..480bdf5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+.kotlin
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 60d1169..e1fe2ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,4 +14,23 @@
UTF-8
+
+
+ com.badlogicgames.gdx
+ gdx
+ 1.12.1
+
+
+ com.badlogicgames.gdx
+ gdx-backend-lwjgl3
+ 1.12.1
+
+
+ com.badlogicgames.gdx
+ gdx-platform
+ 1.12.1
+ natives-desktop
+
+
+
\ No newline at end of file
diff --git a/src/main/java/bzh/risotto/Main.java b/src/main/java/bzh/risotto/Main.java
index 2cf69e6..c90b608 100644
--- a/src/main/java/bzh/risotto/Main.java
+++ b/src/main/java/bzh/risotto/Main.java
@@ -1,17 +1,14 @@
package bzh.risotto;
-//TIP To Run code, press or
-// click the icon in the gutter.
-public class Main {
- static void main() {
- //TIP Press with your caret at the highlighted text
- // to see how IntelliJ IDEA suggests fixing it.
- IO.println(String.format("Hello and welcome!"));
+import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
- for (int i = 1; i <= 5; i++) {
- //TIP Press to start debugging your code. We have set one breakpoint
- // for you, but you can always add more by pressing .
- IO.println("i = " + i);
- }
+/** Launches the desktop (LWJGL3) application. */
+public class Main {
+ public static void main(String[] args) {
+ createApplication();
}
-}
+
+ private static void createApplication() {
+ new Lwjgl3Application(new Minesweeper());
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/bzh/risotto/Minesweeper.java b/src/main/java/bzh/risotto/Minesweeper.java
new file mode 100644
index 0000000..baf0f60
--- /dev/null
+++ b/src/main/java/bzh/risotto/Minesweeper.java
@@ -0,0 +1,50 @@
+package bzh.risotto;
+
+import com.badlogic.gdx.ApplicationListener;
+import com.badlogic.gdx.utils.viewport.FitViewport;
+
+public class Minesweeper implements ApplicationListener {
+
+ private FitViewport viewport;
+
+ @Override
+ public void create() {
+ viewport = new FitViewport(100,150);
+ }
+
+ @Override
+ public void resize(int width, int height) {
+ viewport.update(width, height, true);
+ }
+
+ @Override
+ public void render() {
+ logic();
+ move();
+ draw();
+ }
+
+ private void logic() {
+ }
+
+ private void move() {
+ }
+
+ private void draw() {
+ }
+
+ @Override
+ public void pause() {
+
+ }
+
+ @Override
+ public void resume() {
+
+ }
+
+ @Override
+ public void dispose() {
+
+ }
+}