Package org.sfsoft.jfighter2dx.characters

Examples of org.sfsoft.jfighter2dx.characters.ShooterEnemy


      case SHOOTER_ENEMY:
        int location = new Random().nextInt(2);
       
        if (location == 0) {
          location = 20;
          enemy = new ShooterEnemy(Constants.SCREEN_WIDTH, location, -120f, BulletDirection.DOWN);
        }
        else {
          location = SCREEN_HEIGHT - ENEMY_HEIGHT - 20;
          enemy = new ShooterEnemy(Constants.SCREEN_WIDTH, location, -120f, BulletDirection.UP);
        }
        ((ShooterEnemy) enemy).setEnemies(spriteManager.getEnemies());
        
        break;
      case STONE:
View Full Code Here


   
    case SMALL_ENEMY:
      enemy = new SmallEnemy(x, y, -150f);
      break;
    case SHOOTER_ENEMY:
      enemy = new ShooterEnemy(x, y, -50f, BulletDirection.UP);
      ((ShooterEnemy) enemy).setEnemies(spriteManager.getEnemies());
      break;
    case STONE:
      enemy = new Stone(x, y, -150f);
      break;
View Full Code Here

TOP

Related Classes of org.sfsoft.jfighter2dx.characters.ShooterEnemy

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.