Class AppleRenderer

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

public class AppleRenderer extends Object implements MinigameRenderable
Renders the apple on the grid in the Snake mini-game.
  • 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