-
background
Drawable background
Moving background.
-
cameraHasMoved
boolean cameraHasMoved
Flag identifying if camera has to move (if player moves or reaches the half of the screen).
-
collisionDetector
CollisionDetector collisionDetector
CollisionDetector reference.
-
drawables
List<Drawable> drawables
List of Drawables on the screen.
-
emptyHeartImage
BufferedImage emptyHeartImage
Life point images representing each possible state for each heart.
-
entities
List<Entity> entities
List of entities on the screen.
-
fullHeartImage
BufferedImage fullHeartImage
Life point images representing each possible state for each heart.
-
gameOver
boolean gameOver
Identifies if game is over or not.
-
gameThread
Thread gameThread
Game thread.
-
halfHeartImage
BufferedImage halfHeartImage
Life point images representing each possible state for each heart.
-
isDebugEnemyGeneration
boolean isDebugEnemyGeneration
Debug flag disabling/enabling enemies' spawn.
-
isDebugHitbox
boolean isDebugHitbox
Debug flag disabling/enabling hitbox drawing.
-
isRunning
boolean isRunning
Flag identifying if game is running and not paused.
-
leftPressed
boolean leftPressed
Flags identifying if certain keyboard keys are pressed.
-
mediaPlayer
MusicPlayer mediaPlayer
MusicPlayer reference.
-
parentContainer
MainFrame parentContainer
Parent reference.
-
player
Player player
The player.
-
rightPressed
boolean rightPressed
Flags identifying if certain keyboard keys are pressed.
-
score
int score
Total player score.
-
scoreOffset
int scoreOffset
Scores obtained by dead enemies.
-
spawnCounter
int spawnCounter
Counter of enemies spawned.
-
terrain
Drawable terrain
Moving terrain.
-
upPressed
boolean upPressed
Flags identifying if certain keyboard keys are pressed.