diff --git a/core/src/main/java/com/last/commit/FirstScreen.java b/core/src/main/java/com/last/commit/FirstScreen.java deleted file mode 100644 index d0162f6..0000000 --- a/core/src/main/java/com/last/commit/FirstScreen.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.last.commit; - -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) { - // 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/com/last/commit/Game.java b/core/src/main/java/com/last/commit/Game.java deleted file mode 100644 index 4b9f637..0000000 --- a/core/src/main/java/com/last/commit/Game.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.last.commit; - -/** {@link com.badlogic.gdx.ApplicationListener} implementation shared by all platforms. */ -public class Game extends com.badlogic.gdx.Game { - @Override - public void create() { - setScreen(new FirstScreen()); - } -} \ No newline at end of file diff --git a/core/src/main/kotlin/com/last/commit/FirstScreen.kt b/core/src/main/kotlin/com/last/commit/FirstScreen.kt new file mode 100644 index 0000000..9f7a2e5 --- /dev/null +++ b/core/src/main/kotlin/com/last/commit/FirstScreen.kt @@ -0,0 +1,34 @@ +package com.last.commit + +import com.badlogic.gdx.Screen + +/** First screen of the application. Displayed after the application is created. */ +class FirstScreen : Screen { + override fun show() { + // Prepare your screen here. + } + + override fun render(delta: Float) { + // Draw your screen here. "delta" is the time since last render in seconds. + } + + override fun resize(width: Int, height: Int) { + // Resize your screen here. The parameters represent the new window size. + } + + override fun pause() { + // Invoked when your application is paused. + } + + override fun resume() { + // Invoked when your application is resumed after pause. + } + + override fun hide() { + // This method is called when another screen replaces this one. + } + + override fun dispose() { + // Destroy screen's assets here. + } +} \ No newline at end of file diff --git a/core/src/main/kotlin/com/last/commit/Game.kt b/core/src/main/kotlin/com/last/commit/Game.kt new file mode 100644 index 0000000..c2788e8 --- /dev/null +++ b/core/src/main/kotlin/com/last/commit/Game.kt @@ -0,0 +1,10 @@ +package com.last.commit + +import com.badlogic.gdx.Game + +/** [com.badlogic.gdx.ApplicationListener] implementation shared by all platforms. */ +class Game : Game() { + override fun create() { + setScreen(FirstScreen()) + } +} \ No newline at end of file