Class GridFactory

java.lang.Object
com.csse3200.game.entities.factories.GridFactory

public class GridFactory extends Object
This factory creates the grid and the tiles in the grid.
  • Method Details

    • createTile

      public static Entity createTile(float scale, float x, float y, AreaAPI area)
      Creates a tile entity
      Parameters:
      scale - the scale for the size of the tile
      x - the x value for the new tile
      y - the y value for the new tile
      Returns:
      the newly created tile