public class GameTier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
finalScore |
static GameEngine |
gameEngine |
static GameWindow |
gameWindow |
static java.lang.String |
imagesFolder |
static boolean |
isRunning |
static int |
numberOfEnemies |
Constructor and Description |
---|
GameTier() |
Modifier and Type | Method and Description |
---|---|
static void |
initializeGamePlayValues(int numberOfEnemies,
int playerHP,
int enemyHP,
double enemySpeed,
long playerCoolDown,
long enemyCoolDown)
This method initlized gameplay values and sprite locations.
|
static void |
main(java.lang.String[] args) |
static void |
startGame(java.lang.String difficulty,
java.lang.String mode)
This method is used to start the game.
|
public static GameWindow gameWindow
public static GameEngine gameEngine
public static int numberOfEnemies
public static java.lang.String imagesFolder
public static boolean isRunning
public static int finalScore
public static void main(java.lang.String[] args)
public static void startGame(java.lang.String difficulty, java.lang.String mode)
difficulty
- the difficulty of the game to be startedmode
- the mode for the game to be started inpublic static void initializeGamePlayValues(int numberOfEnemies, int playerHP, int enemyHP, double enemySpeed, long playerCoolDown, long enemyCoolDown)
numberOfEnemies
- the number of enemies in the game, if the mode is Endless it's the initial numberplayerHP
- the player's HPenemyHP
- enemy HP, applies to all enemiesenemySpeed
- enemy speed, applied to all enemiesplayerCoolDown
- the time before player is allowed to shoot againenemyCoolDown
- the time before an enemy is allowed to shoot again