Package rtype.entity

Examples of rtype.entity.Star


    starDeltaacc += Prototyp.tick ;
    if (starDeltaacc > starSpawningRate)
      {
        starDeltaacc = 0;
        starType = Prototyp.random.nextInt(6) + 11;
        spawningStar = new Star(starType);
        spawningStar.spawn(new Vector2f(Prototyp.SCREEN_WIDTH/2+10,Prototyp.random.nextInt() % Prototyp.SCREEN_HEIGHT/2),defaultStarSpeed,Prototyp.background);
      }
  }
View Full Code Here


         
        //    /*
          trash = new SpaceTrash(IEntity.SPACE_TRASH_1);
          trash.spawn(new Vector2f(5,8),new Vector2f(-70.3f,0),2f,Prototyp.frontground);

          Star star = new Star(IEntity.STAR_1);
          star.spawn(new Vector2f(60f,-100),new Vector2f(-34.3f,0),Prototyp.background);
        
         
          star = new Star(IEntity.STAR_2);
          star.spawn(new Vector2f(60f,-120),new Vector2f(-30.3f,0),Prototyp.frontground);
         
         
          star = new Star(IEntity.STAR_3);
          star.spawn(new Vector2f(60f,-140),new Vector2f(-25.3f,0),Prototyp.background);
         
         
          star = new Star(IEntity.STAR_4);
          star.spawn(new Vector2f(360f,-160),new Vector2f(-20.3f,0),Prototyp.frontground);
         
         
          star = new Star(IEntity.STAR_5);
          star.spawn(new Vector2f(360f,-180),new Vector2f(-15.3f,0),Prototyp.background);
         
         
          star = new Star(IEntity.STAR_6);
          star.spawn(new Vector2f(360f,-200),new Vector2f(-50.3f,0),Prototyp.frontground);
         
         
         
          trash = new SpaceTrash(IEntity.SPACE_TRASH_2);
          trash.spawn(new Vector2f(250,20),new Vector2f(-40.3f,0),Prototyp.background);
View Full Code Here

TOP

Related Classes of rtype.entity.Star

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.