public abstract class BasicGame extends GameContainer implements org.mini2Dx.gdx.InputProcessor
GameContainer for beginners to build upongraphics, height, TARGET_FPS, width| Constructor and Description |
|---|
BasicGame() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
keyDown(int keycode) |
boolean |
keyTyped(char character) |
boolean |
keyUp(int keycode) |
boolean |
mouseMoved(int x,
int y) |
void |
onPause() |
void |
onResume() |
protected void |
preinit(Graphics g)
Internal pre-initialisation code
|
boolean |
scrolled(float amountX,
float amountY) |
boolean |
touchDown(int x,
int y,
int pointer,
int button) |
boolean |
touchDragged(int x,
int y,
int pointer) |
boolean |
touchUp(int x,
int y,
int pointer,
int button) |
addResizeListener, dispose, getHeight, getWidth, initialise, interpolate, postinit, preUpdate, preUpdatePhysics, removeResizeListener, render, render, resize, start, update, updatePhysicsprotected void preinit(Graphics g)
GameContainerpreinit in class GameContainerpublic void onPause()
onPause in class GameContainerpublic void onResume()
onResume in class GameContainerpublic boolean keyDown(int keycode)
keyDown in interface org.mini2Dx.gdx.InputProcessorpublic boolean keyUp(int keycode)
keyUp in interface org.mini2Dx.gdx.InputProcessorpublic boolean keyTyped(char character)
keyTyped in interface org.mini2Dx.gdx.InputProcessorpublic boolean touchDown(int x,
int y,
int pointer,
int button)
touchDown in interface org.mini2Dx.gdx.InputProcessorpublic boolean touchUp(int x,
int y,
int pointer,
int button)
touchUp in interface org.mini2Dx.gdx.InputProcessorpublic boolean touchDragged(int x,
int y,
int pointer)
touchDragged in interface org.mini2Dx.gdx.InputProcessorpublic boolean mouseMoved(int x,
int y)
mouseMoved in interface org.mini2Dx.gdx.InputProcessorpublic boolean scrolled(float amountX,
float amountY)
scrolled in interface org.mini2Dx.gdx.InputProcessor