Class AppleRenderer
java.lang.Object
com.csse3200.game.minigames.snake.rendering.AppleRenderer
- All Implemented Interfaces:
MinigameRenderable
Renders the apple on the grid in the Snake mini-game.
-
Constructor Summary
ConstructorsConstructorDescriptionAppleRenderer
(Apple apple, SnakeGrid grid, com.badlogic.gdx.graphics.Texture appleTexture, MinigameRenderer renderer) Creates a new AppleRenderer. -
Method Summary
-
Constructor Details
-
AppleRenderer
public AppleRenderer(Apple apple, SnakeGrid grid, com.badlogic.gdx.graphics.Texture appleTexture, MinigameRenderer renderer) Creates a new AppleRenderer.- Parameters:
apple
- The apple to render.grid
- The grid the apple is on.appleTexture
- The texture to use for rendering the apple.renderer
- The renderer used for drawing.
-
-
Method Details
-
render
public void render()Renders the apple on the grid.- Specified by:
render
in interfaceMinigameRenderable
-