Пример #1
0
 public void start_game() {
   level = 1;
   time_game = 0;
   frequency = 2;
   player_live = 5;
   time_level = 60;
   enemy.removeAllElements();
   set_weapon(45, 30, 0);
   set_enemy(2, 9, 16, 2);
   set_speed_enemy(0.7, 0.7, 0.6, 1);
 }
Пример #2
0
 public void next_level() {
   level++;
   time_game += 0.1;
   frequency = 2;
   player_live = 5;
   time_level = 50;
   enemy.removeAllElements();
   if (level == 2) {
     set_enemy(4, 3, 5, 4);
     set_weapon(40, 30, 5);
     set_speed_enemy(0.8, 0.8, 0.7, 1.2);
   }
 }