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.ScreenDifficulty 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 voiddispose()Disposes this screenvoidhide()Overwrites default hide() method as blankvoidpause()Overwrites default pause() method as blankvoidrender(float delta)Rendering function for the difficulty screenvoidresize(int width, int height)Resize viewport to a new width and heightvoidresume()Overwrites default resume() method as blankvoidshow()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:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta)
Rendering function for the difficulty screen- Specified by:
renderin 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:
resizein interfacecom.badlogic.gdx.Screen- Parameters:
width- new widthheight- new height
-
pause
public void pause()
Overwrites default pause() method as blank- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
Overwrites default resume() method as blank- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
Overwrites default hide() method as blank- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
Disposes this screen- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
-