pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3831 - trunk/pingus/src


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3831 - trunk/pingus/src
Date: Wed, 16 Jul 2008 12:13:15 +0200

Author: grumbel
Date: 2008-07-16 12:13:14 +0200 (Wed, 16 Jul 2008)
New Revision: 3831

Modified:
   trunk/pingus/src/credits.cpp
   trunk/pingus/src/credits.hpp
Log:
Changed credits screen to use new blackboard gfx

Modified: trunk/pingus/src/credits.cpp
===================================================================
--- trunk/pingus/src/credits.cpp        2008-07-16 07:28:39 UTC (rev 3830)
+++ trunk/pingus/src/credits.cpp        2008-07-16 10:13:14 UTC (rev 3831)
@@ -57,13 +57,12 @@
 };
 
 Credits::Credits()
+  : background("core/menu/wood"),
+    blackboard("core/menu/blackboard"),
+    pingu("core/misc/creditpingu")
 {
   scene_context = new SceneContext();
   fast_scrolling = false;
-  background = Sprite("core/menu/startscreenbg");
-  background.scale(Display::get_width(), Display::get_height());
-  pingu = Sprite("core/misc/creditpingu");
-
   gui_manager->add(new CreditsOkButton(this));
 
   font       = Fonts::chalk_normal;
@@ -262,7 +261,13 @@
   x = Display::get_width()/2;
   y = (int)offset;
 
-  gc.draw(background, Vector2i(gc.get_width()/2, gc.get_height()/2));
+  // Paint the background wood panel
+  for(int y = 0; y < gc.get_height(); y += background.get_height())
+    for(int x = 0; x < gc.get_width(); x += background.get_width())
+      gc.draw(background, x, y);
+
+  gc.draw(blackboard, gc.get_width()/2, gc.get_height()/2);
+
   gc.draw(pingu, Vector2i(gc.get_width()/2, gc.get_height()/2 - 20));
   
   gc.print_right(Fonts::chalk_normal,

Modified: trunk/pingus/src/credits.hpp
===================================================================
--- trunk/pingus/src/credits.hpp        2008-07-16 07:28:39 UTC (rev 3830)
+++ trunk/pingus/src/credits.hpp        2008-07-16 10:13:14 UTC (rev 3831)
@@ -31,6 +31,7 @@
 
   bool fast_scrolling;
   Sprite background;
+  Sprite blackboard;
   Sprite pingu;
 
   Font    font;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]