Package edu.uoc.pacman.view
Class PacmanGame
java.lang.Object
com.badlogic.gdx.Game
edu.uoc.pacman.view.PacmanGame
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
public class PacmanGame
extends com.badlogic.gdx.Game
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.badlogic.gdx.assets.AssetManager
(package private) com.badlogic.gdx.graphics.g2d.SpriteBatch
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static final int
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
(package private) com.badlogic.gdx.graphics.g2d.BitmapFont
(package private) Game
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
static final int
static final int
Fields inherited from class com.badlogic.gdx.Game
screen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
void
dispose()
(package private) void
(package private) com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture>
getAssertBySprite
(Sprite sprite) void
void
render()
Methods inherited from class com.badlogic.gdx.Game
getScreen, pause, resize, resume, setScreen
-
Field Details
-
WINDOW_WIDTH
public static final int WINDOW_WIDTH- See Also:
-
WINDOW_HEIGHT
public static final int WINDOW_HEIGHT- See Also:
-
batch
com.badlogic.gdx.graphics.g2d.SpriteBatch batch -
gameController
Game gameController -
pacmanRightAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> pacmanRightAsset -
pacmanLeftAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> pacmanLeftAsset -
pacmanUpAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> pacmanUpAsset -
pacmanDownAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> pacmanDownAsset -
blinkyAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> blinkyAsset -
inkyAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> inkyAsset -
pinkyAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> pinkyAsset -
clydeAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> clydeAsset -
dotAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> dotAsset -
energizerAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> energizerAsset -
wallAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> wallAsset -
pathAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> pathAsset -
lifeAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> lifeAsset -
logoAsset
public static com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> logoAsset -
assetManager
public static com.badlogic.gdx.assets.AssetManager assetManager -
font
com.badlogic.gdx.graphics.g2d.BitmapFont font -
CELL_SIZE
public static final int CELL_SIZE- See Also:
-
-
Constructor Details
-
PacmanGame
public PacmanGame()
-
-
Method Details
-
create
public void create() -
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.ApplicationListener
- Overrides:
dispose
in classcom.badlogic.gdx.Game
-
render
public void render()- Specified by:
render
in interfacecom.badlogic.gdx.ApplicationListener
- Overrides:
render
in classcom.badlogic.gdx.Game
-
loadImages
public void loadImages() -
getAssertBySprite
com.badlogic.gdx.assets.AssetDescriptor<com.badlogic.gdx.graphics.Texture> getAssertBySprite(Sprite sprite) -
drawImage
-
getGameController
-