Package ru.vagrant_ai.questionmarkgame.obj.add

Examples of ru.vagrant_ai.questionmarkgame.obj.add.Sniper


        }
        if (loop[0] == 2) //sniper bushes render
        {
          for (int i = 0; i < Elements.sniper_array.size(); ++i)
          {
            Sniper element = Elements.sniper_array.get(i);
            element.render();
          }
          if (GameplayState.monster_controller.getState() == WS.BREAK) //shop render
            shop.draw(600, GameplayState.ground_level-60);
        }
        for (int i = (int) (-10-((float)25/Game.getAppX()*GameplayState.player.getX())*loop[0]+1); i < 801; i += 80)
View Full Code Here


      if (element.state == 0)
        money_array.remove(i);
    }
    for (int i = 0; i < sniper_array.size(); ++i) //sniper update
    {
      Sniper element = sniper_array.get(i);
      element.update();
    }
    if (knife)
      knifeUpdate();
    if (GameplayState.monster_controller.getState() == WS.BREAK)
    {
View Full Code Here

  public static void addSniper()
  {
    int rand = 351;
    while (rand > 330 && rand < 540)
      rand = new Random().nextInt(Game.getAppX()-85)+20;
    Sniper sniper = new Sniper(rand);
    sniper_array.add(sniper);
    sniper_quantity++;
  }
View Full Code Here

TOP

Related Classes of ru.vagrant_ai.questionmarkgame.obj.add.Sniper

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.