Class CrystalService

java.lang.Object
com.deco2800.game.entities.factories.CrystalService

public class CrystalService extends Object
  • Constructor Details

    • CrystalService

      public CrystalService()
  • Method Details

    • triggerCrystal

      public static void triggerCrystal(String texture)
      Spawns Crystal outside of Game Area class
      Parameters:
      texture - path of texture for new Crystal Entity
    • upgradeCrystal

      public static void upgradeCrystal()
      Upgrades the level of the Crystal changes its texture and increases its maximum health
    • screenShake

      public static void screenShake()
      Triggers shaking effect of the in-game camera
    • recoverCrystalHealth

      public static void recoverCrystalHealth(Entity crystal)
      Recover crystal health at dawn, day, and dusk