From b8780990aa3c3936a69547296b930a6f5aaf74b8 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 25 Apr 2004 13:16:43 +0000 Subject: [PATCH] - improved look of start/gameover screens SVN-Revision: 701 --- src/gameloop.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 5c3340676..685eef3ac 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -145,8 +145,11 @@ GameSession::levelintro(void) music_manager->halt_music(); char str[60]; - /* Level Intro: */ - clearscreen(0, 0, 0); + + if (get_level()->img_bkgd) + get_level()->img_bkgd->draw(0, 0); + else + clearscreen(0, 0, 0); sprintf(str, "%s", world->get_level()->name.c_str()); gold_text->drawf(str, 0, 200, A_HMIDDLE, A_TOP, 1); @@ -657,7 +660,10 @@ GameSession::drawendscreen() { char str[80]; - clearscreen(0, 0, 0); + if (get_level()->img_bkgd) + get_level()->img_bkgd->draw(0, 0); + else + clearscreen(0, 0, 0); blue_text->drawf("GAMEOVER", 0, 200, A_HMIDDLE, A_TOP, 1); @@ -678,7 +684,10 @@ GameSession::drawresultscreen(void) { char str[80]; - clearscreen(0, 0, 0); + if (get_level()->img_bkgd) + get_level()->img_bkgd->draw(0, 0); + else + clearscreen(0, 0, 0); blue_text->drawf("Result:", 0, 200, A_HMIDDLE, A_TOP, 1); -- 2.11.0