Пример #1
0
 @Override
 public void update(int ms) {
   super.update(ms);
   if (!isComplete()) {
     if (stepOn >= codes.length) {
       coffeeBrew.updateTimer(ms);
     }
   }
 }
Пример #2
0
 @Override
 public void update(int ms) {
   super.update(ms);
   float demonSpeed = 2.3f;
   if (right) {
     littleDemonPosX += demonSpeed;
     if (littleDemonPosX > 400) {
       littleDemonPosX = 400;
     }
   } else if (left) {
     littleDemonPosX -= demonSpeed;
     if (littleDemonPosX < 0) {
       littleDemonPosX = 0;
     }
   }
 }