From c9c7e69714707262e8bdea25853bf33447a57951 Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Sun, 22 Feb 2026 14:48:06 -0800 Subject: Initialization --- core/src/main/java/coffee/liz/dyl/FirstScreen.java | 45 ++++++++++++++++++++++ core/src/main/java/coffee/liz/dyl/Main.java | 11 ++++++ 2 files changed, 56 insertions(+) create mode 100644 core/src/main/java/coffee/liz/dyl/FirstScreen.java create mode 100644 core/src/main/java/coffee/liz/dyl/Main.java (limited to 'core/src/main/java') diff --git a/core/src/main/java/coffee/liz/dyl/FirstScreen.java b/core/src/main/java/coffee/liz/dyl/FirstScreen.java new file mode 100644 index 0000000..4901283 --- /dev/null +++ b/core/src/main/java/coffee/liz/dyl/FirstScreen.java @@ -0,0 +1,45 @@ +package coffee.liz.dyl; + +import com.badlogic.gdx.Screen; + +/** First screen of the application. Displayed after the application is created. */ +public class FirstScreen implements Screen { + @Override + public void show() { + // Prepare your screen here. + } + + @Override + public void render(float delta) { + // Draw your screen here. "delta" is the time since last render in seconds. + } + + @Override + public void resize(int width, int height) { + // If the window is minimized on a desktop (LWJGL3) platform, width and height are 0, which causes problems. + // In that case, we don't resize anything, and wait for the window to be a normal size before updating. + if(width <= 0 || height <= 0) return; + + // Resize your screen here. The parameters represent the new window size. + } + + @Override + public void pause() { + // Invoked when your application is paused. + } + + @Override + public void resume() { + // Invoked when your application is resumed after pause. + } + + @Override + public void hide() { + // This method is called when another screen replaces this one. + } + + @Override + public void dispose() { + // Destroy screen's assets here. + } +} \ No newline at end of file diff --git a/core/src/main/java/coffee/liz/dyl/Main.java b/core/src/main/java/coffee/liz/dyl/Main.java new file mode 100644 index 0000000..24fa3de --- /dev/null +++ b/core/src/main/java/coffee/liz/dyl/Main.java @@ -0,0 +1,11 @@ +package coffee.liz.dyl; + +import com.badlogic.gdx.Game; + +/** {@link com.badlogic.gdx.ApplicationListener} implementation shared by all platforms. */ +public class Main extends Game { + @Override + public void create() { + setScreen(new FirstScreen()); + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2