Package org.sfsoft.jfighter2dx.characters

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


    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

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

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.