-
Notifications
You must be signed in to change notification settings - Fork 3
/
Constants.java
72 lines (51 loc) · 2.09 KB
/
Constants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.danilchican.pacman;
import java.util.ArrayList;
import java.util.HashMap;
import Statistics.ScalaLog;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.Pane;
/**
* Class Contstants contains main constants
*
* @author Vlad Danilchik
*
*/
public class Constants {
public static boolean startGame = false;
public static boolean loseGame = false;
public static boolean startBoot = false;
public static boolean startReplay = false;
public static boolean startSorting = false;
public static final int speedOfHero = 3;
public static int countFoodLevel = 1;
public static int CurrentCountBonuses = 0;
public static int currentLevel = 1;
public static int levelsCount = 2;
public static final int MARGIN_TOP = 100;
public static final int MARGIN_LEFT_RIGHT = 60;
public static final int screenWidth = 1000;
public static final int screenHeight = 600;
public static final int BlockWidth = 32;
public static final int BlockHeight = 32;
public static final int CharacterSize = 27;
public static final int EnemySize = 30;
public static Saves save = new Saves();
public static Scene main_scene = null; // main scene
public static Pane mainRoot = new Pane(); // main screen
public static Pane gameRoot = new Pane(); // game screen
public static Pane loadScreen = null; // game screen
public static Character player = null; // the player
public static Boot boot = null; // the boot
public static ArrayList<Block> blocks = new ArrayList<>(); // game blocks
public static ArrayList<Enemy> enemies = new ArrayList<>(); // enemies
public static HashMap<KeyCode, Boolean> keys = new HashMap<>(); // pushing keys
public static MenuBox menu = null; // main menu
public static MenuBox subMenuLevels = null; // sub menu for selection levels
public static Thread GameThread = null; // thread for start game
public static GamePlay gamePlay = null; // GamePlay object
public static GameInfo[] games;
public static ImageView loader = null;
public static ScalaLog log = new ScalaLog();
}