public abstract class BasicGame extends GameContainer implements com.badlogic.gdx.InputProcessor
GameContainer for beginners to build upongraphics, height, shapeRenderer, spriteBatch, 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 |
pause() |
protected void |
preinit()
Internal pre-initialisation code
|
void |
resume() |
boolean |
scrolled(int amount) |
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) |
dispose, getHeight, getWidth, hide, initialise, interpolate, postinit, render, render, resize, show, updateprotected void preinit()
GameContainerpreinit in class GameContainerpublic void pause()
pause in interface com.badlogic.gdx.Screenpublic void resume()
resume in interface com.badlogic.gdx.Screenpublic boolean keyDown(int keycode)
keyDown in interface com.badlogic.gdx.InputProcessorpublic boolean keyUp(int keycode)
keyUp in interface com.badlogic.gdx.InputProcessorpublic boolean keyTyped(char character)
keyTyped in interface com.badlogic.gdx.InputProcessorpublic boolean touchDown(int x,
int y,
int pointer,
int button)
touchDown in interface com.badlogic.gdx.InputProcessorpublic boolean touchUp(int x,
int y,
int pointer,
int button)
touchUp in interface com.badlogic.gdx.InputProcessorpublic boolean touchDragged(int x,
int y,
int pointer)
touchDragged in interface com.badlogic.gdx.InputProcessorpublic boolean mouseMoved(int x,
int y)
mouseMoved in interface com.badlogic.gdx.InputProcessorpublic boolean scrolled(int amount)
scrolled in interface com.badlogic.gdx.InputProcessor