+GameSession::draw_pause()
+{
+ int x = screen->h / 20;
+ for(int i = 0; i < x; ++i) {
+ context->draw_filled_rect(
+ Vector(i % 2 ? (pause_menu_frame * i)%screen->w :
+ -((pause_menu_frame * i)%screen->w)
+ ,(i*20+pause_menu_frame)%screen->h),
+ Vector(screen->w,10),
+ Color(20,20,20, rand() % 20 + 1), LAYER_FOREGROUND1+1);
+ }
+ context->draw_filled_rect(
+ Vector(0,0), Vector(screen->w, screen->h),
+ Color(rand() % 50, rand() % 50, rand() % 50, 128), LAYER_FOREGROUND1);
+ context->draw_text(blue_text, _("PAUSE - Press 'P' To Play"),
+ Vector(screen->w/2, 230), CENTER_ALLIGN, LAYER_FOREGROUND1+2);
+
+ const char* str1 = _("Playing: ");
+ const char* str2 = level->get_name().c_str();
+
+ context->draw_text(blue_text, str1,
+ Vector((screen->w - (blue_text->get_text_width(str1) + white_text->get_text_width(str2)))/2, 340),
+ LEFT_ALLIGN, LAYER_FOREGROUND1+2);
+ context->draw_text(white_text, str2,
+ Vector(((screen->w - (blue_text->get_text_width(str1) + white_text->get_text_width(str2)))/2)+blue_text->get_text_width(str1), 340),
+ LEFT_ALLIGN, LAYER_FOREGROUND1+2);
+}
+
+void