Package com.csse3200.game.screens
Class SpaceMapScreen
java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.SpaceMapScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class SpaceMapScreen
extends com.badlogic.gdx.ScreenAdapter
The game screen containing the main game.
Details on libGDX screens: https://happycoding.io/tutorials/libgdx/game-screens
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceMapScreen(GdxGame game) Method for creating the space map screen for the obstacle minigame -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Method for disposing and unloading all assets onto the main screenvoidExitonc(float d) Method for exiting from the obstacle minigame to the main screen of the gamevoidrender(float delta) Method for rendering the entities in the obstacle minigame alongside updating the distance between two entitiesvoidresize(int width, int height) Method for resizing the rendering of the entitiesMethods inherited from class com.badlogic.gdx.ScreenAdapter
hide, pause, resume, show
-
Constructor Details
-
SpaceMapScreen
Method for creating the space map screen for the obstacle minigame- Parameters:
game- Obstacle minigame
-
-
Method Details
-
render
public void render(float delta) Method for rendering the entities in the obstacle minigame alongside updating the distance between two entities- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Overrides:
renderin classcom.badlogic.gdx.ScreenAdapter- Parameters:
delta- The time in seconds since the last render.
-
Exitonc
public void Exitonc(float d) Method for exiting from the obstacle minigame to the main screen of the game- Parameters:
d- Distance of the spaceship from the exit goal
-
resize
public void resize(int width, int height) Method for resizing the rendering of the entities- Specified by:
resizein interfacecom.badlogic.gdx.Screen- Overrides:
resizein classcom.badlogic.gdx.ScreenAdapter- Parameters:
width- Width of the renderheight- Height of the render
-
dispose
public void dispose()Method for disposing and unloading all assets onto the main screen- Specified by:
disposein interfacecom.badlogic.gdx.Screen- Overrides:
disposein classcom.badlogic.gdx.ScreenAdapter
-