diff --git a/pom.xml b/pom.xml
index 386d6fd..4f50ee6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,7 +51,7 @@
- uno.mloluyu.Launcher
+ uno.mloluyu.desktop.Launcher
@@ -64,7 +64,7 @@
true
- uno.mloluyu.Launcher
+ uno.mloluyu.desktop.Launcher
diff --git a/src/main/java/uno/mloluyu/desktop/GameCore.java b/src/main/java/uno/mloluyu/desktop/GameCore.java
index 5cf62fc..6453a31 100644
--- a/src/main/java/uno/mloluyu/desktop/GameCore.java
+++ b/src/main/java/uno/mloluyu/desktop/GameCore.java
@@ -13,7 +13,7 @@ public class GameCore implements ApplicationListener {
@Override
public void create() {
batch = new SpriteBatch();
- img = new Texture(Gdx.files.internal("src\\main\\resources\\assets\\badlogic.jpg"));
+ img = new Texture(Gdx.files.internal("src\\main\\resources\\assets\\backgrounds\\bg.png"));
}
@Override
@@ -21,8 +21,13 @@ public class GameCore implements ApplicationListener {
Gdx.gl.glClearColor(0.15f, 0.15f, 0.2f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
+ float screenWidth = Gdx.graphics.getWidth();
+ float screenHeight = Gdx.graphics.getHeight();
+ float scaleX = screenWidth / img.getWidth();
+ float scaleY = screenHeight / img.getHeight();
+
batch.begin();
- batch.draw(img, 0, 0);
+ batch.draw(img, 0, 0, scaleX, scaleY);
batch.end();
}
diff --git a/src/main/resources/assets/backgrounds/bg.png b/src/main/resources/assets/backgrounds/bg.png
new file mode 100644
index 0000000..b54cda3
Binary files /dev/null and b/src/main/resources/assets/backgrounds/bg.png differ
diff --git a/target/classes/assets/backgrounds/bg.png b/target/classes/assets/backgrounds/bg.png
new file mode 100644
index 0000000..b54cda3
Binary files /dev/null and b/target/classes/assets/backgrounds/bg.png differ
diff --git a/target/classes/uno/mloluyu/desktop/GameCore.class b/target/classes/uno/mloluyu/desktop/GameCore.class
index 59d4957..1559dd6 100644
Binary files a/target/classes/uno/mloluyu/desktop/GameCore.class and b/target/classes/uno/mloluyu/desktop/GameCore.class differ
diff --git a/target/classes/uno/mloluyu/desktop/Launcher.class b/target/classes/uno/mloluyu/desktop/Launcher.class
index d415eb4..4b69c79 100644
Binary files a/target/classes/uno/mloluyu/desktop/Launcher.class and b/target/classes/uno/mloluyu/desktop/Launcher.class differ
diff --git a/target/classes/uno/mloluyu/desktop/character/Alice.class b/target/classes/uno/mloluyu/desktop/character/Alice.class
deleted file mode 100644
index c52ada2..0000000
Binary files a/target/classes/uno/mloluyu/desktop/character/Alice.class and /dev/null differ
diff --git a/target/classes/uno/mloluyu/network/ConnectServer.class b/target/classes/uno/mloluyu/network/ConnectServer.class
index b3d8e25..2310737 100644
Binary files a/target/classes/uno/mloluyu/network/ConnectServer.class and b/target/classes/uno/mloluyu/network/ConnectServer.class differ
diff --git a/target/classes/uno/mloluyu/network/CreateServer$1.class b/target/classes/uno/mloluyu/network/CreateServer$1.class
index 3b0ed48..1e346fb 100644
Binary files a/target/classes/uno/mloluyu/network/CreateServer$1.class and b/target/classes/uno/mloluyu/network/CreateServer$1.class differ
diff --git a/target/classes/uno/mloluyu/network/CreateServer.class b/target/classes/uno/mloluyu/network/CreateServer.class
index 59270f4..abc4fe5 100644
Binary files a/target/classes/uno/mloluyu/network/CreateServer.class and b/target/classes/uno/mloluyu/network/CreateServer.class differ