Class GridRenderer
java.lang.Object
com.csse3200.game.minigames.snake.rendering.GridRenderer
- All Implemented Interfaces:
MinigameRenderable
Renders the grid for the Snake mini-game.
-
Constructor Summary
ConstructorsConstructorDescriptionGridRenderer
(SnakeGrid grid, com.badlogic.gdx.graphics.Texture grassLightTexture, com.badlogic.gdx.graphics.Texture grassDarkTexture, MinigameRenderer renderer) Creates a new GridRenderer. -
Method Summary
-
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
-
render
public void render()Renders the grid background.- Specified by:
render
in interfaceMinigameRenderable
-