Example #1
0
 public void update(float deltaTime) {
   bunnyHead.update(deltaTime);
   for (Rock rock : rocks) rock.update(deltaTime);
   for (GoldCoin goldCoin : goldcoins) goldCoin.update(deltaTime);
   for (Feather feather : feathers) feather.update(deltaTime);
   for (Carrot carrot : carrots) carrot.update(deltaTime);
   clouds.update(deltaTime);
 }
Example #2
0
 public void render(SpriteBatch batch) {
   // Draw Mountains
   mountains.render(batch);
   // Draw Goal
   goal.render(batch);
   // Draw Rocks
   for (Rock rock : rocks) {
     rock.render(batch);
   }
   // Draw Gold Coins
   for (GoldCoin goldCoin : goldcoins) goldCoin.render(batch);
   // Draw Feathers
   for (Feather feather : feathers) feather.render(batch);
   // Draw Carrots
   for (Carrot carrot : carrots) carrot.render(batch);
   // Draw Player Character
   bunnyHead.render(batch);
   // Draw Water Overlay
   waterOverlay.render(batch);
   // Draw Clouds
   clouds.render(batch);
 }