Beispiel #1
0
/*
 * Enters the start-menu state
 * Attempts to draw the start menu, and sets up the UI
 */
void start_menu()
{
	game_state = 4;

	clear_screen();	
	draw_titlescreen(&FatFs);
	
	display_color(CRIMSON, BLACK);
	ml_printf_at("%s", 135, 85, VERSION);
	
	display_color(WHITE, BLACK);
    	ml_printf_at("CENTRE to start", 5, 105);
    	ml_printf_at("< %u Players >", 5, 115, players);
}
Beispiel #2
0
//------------------------------
// Drawing functions
//------------------------------
void draw_everything()
{
    // Fill the screen with black
    SDL_FillRect(screen,NULL, 0x000000);
    
    // Draw background
    draw_background();
    
    // Draw the title screen
    if(gamestate_title == true)
        draw_titlescreen();
    else
    {
        // Draw the game objects
        if(gamestate_over == false)
            draw_player();
        draw_enemies();
        draw_explosions();
        draw_lasers();
        draw_info();
        draw_statustext();
    }
}