Examples of SmallEnemy


Examples of org.sfsoft.jfighter2dx.characters.SmallEnemy

    Enemy enemy = null;
   
    switch (type) {
   
      case SMALL_ENEMY:
        enemy = new SmallEnemy(Constants.SCREEN_WIDTH, new Random().nextInt(SCREEN_HEIGHT - ENEMY_HEIGHT), -160f);
        break;
      case SHOOTER_ENEMY:
        int location = new Random().nextInt(2);
       
        if (location == 0) {
View Full Code Here

Examples of org.sfsoft.jfighter2dx.characters.SmallEnemy

    Enemy enemy = null;
   
    switch (type) {
   
    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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.