Convert to the Kotlin religion
parent
de3b259cfb
commit
e9d26779ce
@ -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.
|
|
||||||
}
|
|
||||||
}
|
|
@ -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());
|
|
||||||
}
|
|
||||||
}
|
|
@ -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.
|
||||||
|
}
|
||||||
|
}
|
@ -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())
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue