/// @description

if (global.sound) {
	audio_play_sound(snd_click, 0, false);
}

if (global.music) {
	audio_stop_sound(snd_flight);
	audio_play_sound(snd_mainMenu, 0, false);
}

instance_destroy(obj_enemy);
instance_destroy(obj_laser);
instance_destroy(obj_booster);
instance_destroy(obj_player);
global.deathLine = 0;
instance_create_depth(room_width / 2, 0, 0, obj_player);
instance_create_depth(room_width / 2, -sprite_get_height(spr_player) - sprite_get_height(spr_booster), 0, obj_booster);
camera_set_view_pos(view_camera[0], obj_player.x - room_width / 2, obj_player.y - room_height / 2);
score = 0;
global.newScore = false;
physics_pause_enable(true);
global.gameState = GAME_STATE.MAIN_MENU;
global.menuSelected = 0;