Class GridRenderer

java.lang.Object
com.csse3200.game.minigames.snake.rendering.GridRenderer
All Implemented Interfaces:
MinigameRenderable

public class GridRenderer extends Object implements MinigameRenderable
Renders the grid for the Snake mini-game.
  • Constructor Details

    • GridRenderer

      public GridRenderer(SnakeGrid grid, com.badlogic.gdx.graphics.Texture grassLightTexture, com.badlogic.gdx.graphics.Texture grassDarkTexture, MinigameRenderer renderer)
      Creates a new GridRenderer.
      Parameters:
      grid - The grid to render.
      renderer - The renderer used for drawing.
  • Method Details