public class Scene
extends java.lang.Object
implements com.badlogic.gdx.Screen
| Modifier and Type | Field and Description |
|---|---|
static com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> |
actors |
static com.badlogic.gdx.graphics.Camera |
camera |
static int |
screenX |
static int |
screenY |
com.badlogic.gdx.scenes.scene2d.Stage |
stage |
| Constructor and Description |
|---|
Scene() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToStage() |
void |
changeCam(int x,
int y)
Can be used to change or animate the cameras position
|
void |
dispose() |
void |
hide() |
void |
pause() |
void |
removeFromStage() |
void |
render(float delta) |
void |
resize(int width,
int height) |
void |
resume() |
void |
setActorsTouchable(boolean touchable) |
void |
setVisibility(boolean visible) |
void |
show() |
public com.badlogic.gdx.scenes.scene2d.Stage stage
public static com.badlogic.gdx.graphics.Camera camera
public static int screenX
public static int screenY
public static com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> actors
public void addToStage()
public void removeFromStage()
public void setVisibility(boolean visible)
public void setActorsTouchable(boolean touchable)
public void changeCam(int x,
int y)
x - New x coordinatey - New y coordinatepublic void render(float delta)
render in interface com.badlogic.gdx.Screenpublic void resize(int width,
int height)
resize in interface com.badlogic.gdx.Screenpublic void dispose()
dispose in interface com.badlogic.gdx.Screenpublic void show()
show in interface com.badlogic.gdx.Screenpublic void pause()
pause in interface com.badlogic.gdx.Screenpublic void resume()
resume in interface com.badlogic.gdx.Screenpublic void hide()
hide in interface com.badlogic.gdx.Screen