Package com.dragonboat.game
Class DifficultyScreen
- java.lang.Object
-
- com.dragonboat.game.DifficultyScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class DifficultyScreen extends java.lang.Object implements com.badlogic.gdx.Screen
Difficulty Screen class for Dragon Boat Game. This is the select screen for difficulty. Once difficulty clicked game will proceed to menu screen where to select a boat. Selected difficulty chosen as integer and alters amount of obstacles and speed of them in GameScreen- See Also:
MenuScreen
-
-
Constructor Summary
Constructors Constructor Description DifficultyScreen(DragonBoatGame Game)
Creates a difficulty screen using textbuttons tht once pressed proceed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes this screenvoid
hide()
Overwrites default hide() method as blankvoid
pause()
Overwrites default pause() method as blankvoid
render(float delta)
Rendering function for the difficulty screenvoid
resize(int width, int height)
Resize viewport to a new width and heightvoid
resume()
Overwrites default resume() method as blankvoid
show()
Creates a difficulty screen using TextButtons that once pressed proceed to set difficulty and proceed to boat select screen of menu screen
-
-
-
Constructor Detail
-
DifficultyScreen
public DifficultyScreen(DragonBoatGame Game)
Creates a difficulty screen using textbuttons tht once pressed proceed- Parameters:
Game
- represents the initial state of DragonBoatGame
-
-
Method Detail
-
show
public void show()
Creates a difficulty screen using TextButtons that once pressed proceed to set difficulty and proceed to boat select screen of menu screen- Specified by:
show
in interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Rendering function for the difficulty screen- Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Parameters:
delta
- acts as time
-
resize
public void resize(int width, int height)
Resize viewport to a new width and height- Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Parameters:
width
- new widthheight
- new height
-
pause
public void pause()
Overwrites default pause() method as blank- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
Overwrites default resume() method as blank- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
Overwrites default hide() method as blank- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
Disposes this screen- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-
-