public class SimpleGame
extends Game
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still free to do any sort of game you want really.
Constructor and Description |
---|
SimpleGame(GameSession session,
float width,
float height,
com.badlogic.gdx.graphics.g2d.BitmapFont font,
boolean fadeInEffect)
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still
free to do any sort of game you want really.
|
SimpleGame(GameSession session,
float width,
float height,
com.badlogic.gdx.graphics.g2d.BitmapFont font)
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still
free to do any sort of game you want really.
|
SimpleGame(GameSession session,
float width,
float height)
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still
free to do any sort of game you want really.
|
Modifier and Type | Method and Description |
---|---|
void |
doDrawing(com.badlogic.gdx.graphics.g2d.Batch batch) |
void |
doLogic(float deltaTime) |
boolean |
getFadeInEffect() |
com.badlogic.gdx.graphics.g2d.BitmapFont |
getFont() |
float |
getHeight() |
int |
getNoOfPlayersInGameAlready() |
FBORenderer |
getRenderer() |
float |
getWidth() |
void |
playerJoined(Player player) |
void |
postMessage(java.lang.String s) |
void |
render(float deltaTime) |
void |
resize(int width,
int height) |
void |
setNoOfPlayersInGameAlready(int p) |
java.lang.String |
simpleHighScoreTable() |
dispose, gameover, getMAX_FPS, getMIN_FPS, getPlayers, getRenderer, getSession, hide, postMessage, render, renderAndClampFramerate, resize, show
public SimpleGame(GameSession session, float width, float height, com.badlogic.gdx.graphics.g2d.BitmapFont font, boolean fadeInEffect)
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still free to do any sort of game you want really.
public SimpleGame(GameSession session, float width, float height, com.badlogic.gdx.graphics.g2d.BitmapFont font)
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still free to do any sort of game you want really.
public SimpleGame(GameSession session, float width, float height)
Most games probably want to extend this. It does menus and rendering loop, but it's not a Unigame so you're still free to do any sort of game you want really.
public FBORenderer getRenderer()
public int getNoOfPlayersInGameAlready()
public void setNoOfPlayersInGameAlready(int p)
public void render(float deltaTime)
public void playerJoined(Player player)
public java.lang.String simpleHighScoreTable()
public void doDrawing(com.badlogic.gdx.graphics.g2d.Batch batch)
public void doLogic(float deltaTime)
public void resize(int width, int height)
public void postMessage(java.lang.String s)
public float getWidth()
public float getHeight()
public com.badlogic.gdx.graphics.g2d.BitmapFont getFont()
public boolean getFadeInEffect()