/* ===================================================================== * set initial values for the next level * =====================================================================*/ static void submarine_next_level() { gamewon = FALSE; ballast_av_purge_open = ballast_ar_purge_open = regleur_purge_open = FALSE; ballast_av_chasse_open = ballast_ar_chasse_open = regleur_chasse_open = FALSE; air_charging = battery_charging = FALSE; barre_av_angle = barre_ar_angle = 0.0; depth = SUBMARINE_INITIAL_DEPTH; submarine_horizontal_speed = speed_ordered = 0.0; submarine_x = SUBMARINE_INITIAL_X; weight = WEIGHT_INITIAL; regleur = REGLEUR_INITIAL; air = AIR_INITIAL; battery = BATTERY_INITIAL; ballast_av_air = ballast_ar_air = MAX_BALLAST/10.0; assiette = 0.0; submarine_destroyed = FALSE; treasure_captured = FALSE; submarine_destroy_all_items(); /* Try the next level */ boardRootItem = submarine_create_item(backgroundRootItem); start_frigate_anim(); gc_bar_set_level(gcomprisBoard); }
/* ===================================================================== * * =====================================================================*/ static void end_board () { if(gcomprisBoard!=NULL){ pause_board(TRUE); submarine_destroy_all_items(); } gcomprisBoard = NULL; }
/* ===================================================================== * * =====================================================================*/ static void end_board () { if(gcomprisBoard!=NULL){ pause_board(TRUE); submarine_destroy_all_items(); } gcomprisBoard = NULL; if(backgroundRootItem != NULL){ goo_canvas_item_remove(backgroundRootItem); } backgroundRootItem = NULL; }