[Supertux-Commit] r5418 - in trunk/supertux/src: video worldmap

grumbel at millhouse.dreamhost.com grumbel at millhouse.dreamhost.com
Mon May 5 11:03:41 PDT 2008


Author: grumbel
Date: 2008-05-05 11:03:37 -0700 (Mon, 05 May 2008)
New Revision: 5418

Modified:
   trunk/supertux/src/video/gl_renderer.cpp
   trunk/supertux/src/worldmap/worldmap.cpp
Log:
Let shrink view zoom in on Tux not the level spot
Some more triangles for the shrinkview to make it look smoother

Modified: trunk/supertux/src/video/gl_renderer.cpp
===================================================================
--- trunk/supertux/src/video/gl_renderer.cpp	2008-05-05 17:38:26 UTC (rev 5417)
+++ trunk/supertux/src/video/gl_renderer.cpp	2008-05-05 18:03:37 UTC (rev 5418)
@@ -364,7 +364,7 @@
 
     glEnd();
         
-    int slices = 8;
+    int slices = 16;
     for(int i = 0; i < slices; ++i)
       {
         float ex1 = sinf(M_PI/2 / slices * i) * w;

Modified: trunk/supertux/src/worldmap/worldmap.cpp
===================================================================
--- trunk/supertux/src/worldmap/worldmap.cpp	2008-05-05 17:38:26 UTC (rev 5417)
+++ trunk/supertux/src/worldmap/worldmap.cpp	2008-05-05 18:03:37 UTC (rev 5418)
@@ -705,7 +705,7 @@
         if (level->pos == tux->get_tile_pos()) {
           try {
             Vector shrinkpos = Vector(level->pos.x*32 + 16 - camera_offset.x,
-                                      level->pos.y*32 + 16 - camera_offset.y);
+                                      level->pos.y*32 +  8 - camera_offset.y);
             std::string levelfile = levels_path + level->get_name();
 
             // update state and savegame




More information about the Supertux-Commit mailing list