|
@@ -105,7 +105,7 @@ int main(int argc,char** argv)
|
|
|
//////////PROGRAM START: creation of game objects and set of parameters
|
|
|
|
|
|
level = choose_level(commands); // get desired level
|
|
|
- setup_level(level, shootrate, poweruprate, refresh_time, boss1, enemy_num, walls_num, commands); // set game parameters and boss
|
|
|
+ setup_level(level, shootrate, poweruprate, refresh_time, boss1, enemy_num, walls_num); // set game parameters and boss
|
|
|
load_enemies(enemies,enemy_num);
|
|
|
player1.set_commands(commands);
|
|
|
erase();
|
|
@@ -275,7 +275,7 @@ int main(int argc,char** argv)
|
|
|
refresh();
|
|
|
if(choice=='n')
|
|
|
level = choose_level(commands); // get desired level
|
|
|
- setup_level(level, shootrate, poweruprate, refresh_time, boss1, enemy_num, walls_num, commands); // set game parameters and boss
|
|
|
+ setup_level(level, shootrate, poweruprate, refresh_time, boss1, enemy_num, walls_num); // set game parameters and boss
|
|
|
load_enemies(enemies,enemy_num);
|
|
|
reset(player1, enemies, boss1, bullets, bombs, walls, walls_num, powerups, rockets, chflag); // reset box, player, enemy and deletes all bullets and bombs
|
|
|
erase();
|