Class WaterStream


  • public class WaterStream
    extends GameObject
    Sprite used to represent where the player is shooting
    Author:
    IsaacAlbiston
    • Constructor Detail

      • WaterStream

        public WaterStream​(com.badlogic.gdx.math.Vector2 spawnPos)
        initialises the water stream at a given position
        Parameters:
        spawnPos -
    • Method Detail

      • setRange

        public void setRange​(float x)
        Changes the length of the sprite to x
        Parameters:
        x -
      • update

        public void update()
        Description copied from class: GameObject
        Called every frame. Update the game object.
        Specified by:
        update in class GameObject