Class GameConstants

java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.util.GameConstants

public class GameConstants extends Object
This class stores the constants needed for the dimensions of the objects within the maze, as well as the colors used and sizes of the window they will be displayed on.
Author:
Diana
  • Field Details

    • TILE_SIZE

      public static final int TILE_SIZE
      Width and height of each tile.
      See Also:
    • NUM_GAME_TILE

      public static final int NUM_GAME_TILE
      Number of tiles across the screen.
      See Also:
    • FOCUS_AREA

      public static final int FOCUS_AREA
      Focus area of game.
      See Also:
    • NUM_INVENTORY_TILES

      public static final int NUM_INVENTORY_TILES
      Number of tiles in inventory.
      See Also:
    • WINDOW_HEIGHT

      public static final int WINDOW_HEIGHT
      Height of window.
      See Also:
    • WINDOW_WIDTH

      public static final int WINDOW_WIDTH
      Width of window.
      See Also:
    • GAME_WINDOW_SIZE

      public static final int GAME_WINDOW_SIZE
      Width and Height of game panel.
      See Also:
    • WINDOW_SIZE

      public static final Dimension WINDOW_SIZE
      Dimension of full window.
    • GAME_SIZE

      public static final Dimension GAME_SIZE
      Dimension of square game panel.
    • SIDE_SIZE

      public static final Dimension SIDE_SIZE
      Dimension of side panel.
    • BUTTON_COLOR

      public static final Color BUTTON_COLOR
      Pink button colour.
    • BG_COLOR_LIGHTER

      public static final Color BG_COLOR_LIGHTER
      Lighter blue background colour.
    • BG_COLOR_DARKER

      public static final Color BG_COLOR_DARKER
      Darker blue background colour.
    • BG_COLOR

      public static final Color BG_COLOR
      Blue background colour.
    • TEXT_COLOR

      public static final Color TEXT_COLOR
      Brown text colour.
    • LIGHT_YELLOW_COLOR

      public static final Color LIGHT_YELLOW_COLOR
      Light yellow colour.
  • Constructor Details

    • GameConstants

      public GameConstants()