Package dev.plagarizers.klotski
Class KlotskiGame
java.lang.Object
com.badlogic.gdx.Game
dev.plagarizers.klotski.KlotskiGame
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
public class KlotskiGame
extends com.badlogic.gdx.Game
The KlotskiGame class represents the main game class that extends the Game class from libGDX.
It manages the game's initialization, resources, screens, and settings.
-
Field Summary
FieldsFields inherited from class com.badlogic.gdx.Game
screen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
void
dispose()
com.badlogic.gdx.scenes.scene2d.ui.Image
Returns the background image of the game as an Image widget.com.badlogic.gdx.graphics.OrthographicCamera
Returns the game's camera.com.badlogic.gdx.scenes.scene2d.ui.Skin
getSkin()
Returns the game's skin.Methods inherited from class com.badlogic.gdx.Game
getScreen, pause, render, resize, resume, setScreen
-
Field Details
-
SKIN_PATH
- See Also:
-
PREVIEWS_PATH
- See Also:
-
-
Constructor Details
-
KlotskiGame
public KlotskiGame()
-
-
Method Details
-
create
public void create() -
getBackground
public com.badlogic.gdx.scenes.scene2d.ui.Image getBackground()Returns the background image of the game as an Image widget.- Returns:
- The background Image.
-
getCamera
public com.badlogic.gdx.graphics.OrthographicCamera getCamera()Returns the game's camera.- Returns:
- The OrthographicCamera instance.
-
getSkin
public com.badlogic.gdx.scenes.scene2d.ui.Skin getSkin()Returns the game's skin.- Returns:
- The Skin instance representing the game's skin.
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.ApplicationListener
- Overrides:
dispose
in classcom.badlogic.gdx.Game
-