Package com.ackgaming.entity.blocks

Examples of com.ackgaming.entity.blocks.BonusLifeBlock


          b.draw();
        } else if(blocks.get(i) instanceof ThirdBlock) {
          ThirdBlock b = (ThirdBlock) blocks.get(i);
        b.draw();
        } else if(blocks.get(i) instanceof BonusLifeBlock) {
          BonusLifeBlock b = (BonusLifeBlock) blocks.get(i);
        b.draw();
        }
      }
    }
View Full Code Here


                    b.setVisible(false);
                    blocks.remove(i);
                  }
          }
        } else if(blocks.get(i) instanceof BonusLifeBlock) {
          BonusLifeBlock b = (BonusLifeBlock) blocks.get(i);
          int blockX = (int) b.getRect().getMinX();
          int blockY = (int) b.getRect().getMaxY();
          if(checkBoxPos(b)) {
                  b.timesHit++;
                  b.setImage(bonusLifeBlockDamImg);
                  if(b.timesHit == 2) {
                    //lives++;
                    blocks.remove(i);
                    b.setDestroyed();
                    b.setVisible(false);
                    drops.add(new BonusLifeItem(bonusLifeItemImg, blockX, blockY));
                  } else score += 10;
          }
        }
      }
View Full Code Here

TOP

Related Classes of com.ackgaming.entity.blocks.BonusLifeBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.