dino: display text under the hearts
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 11 Feb 2014 15:54:47 +0000 (10:54 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 31 Mar 2014 17:43:18 +0000 (13:43 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/mnit_dino/src/graphism.nit
examples/mnit_dino/src/splash.nit

index 1fcd680..642a5df 100644 (file)
@@ -163,10 +163,10 @@ redef class Game
                        else
                                concl_img = imgs.you_lost_img
                        end
-                       display.blit_centered( concl_img, display.width/2, 80 )
+                       display.blit_centered( concl_img, display.width/2, 60+display.top_offset )
 
                        if ready_to_start_over then
-                               display.blit_centered( imgs.start_over_img, display.width/2, 120 )
+                               display.blit_centered( imgs.start_over_img, display.width/2, 100+display.top_offset )
                        end
                end
        end
index f9927de..49936de 100644 (file)
@@ -42,9 +42,9 @@ class SplashScreen
 
                display.clear( 0.0, 0.5, 0.1 )
 
-               display.blit_centered( splash_head, dc, display.height/2+64 )
-               display.blit_centered( splash_title, dc, 32 )
-               display.blit_centered( splash_text, dc, 128 )
+               display.blit_centered(splash_head, dc, display.height/2+64+display.top_offset)
+               display.blit_centered(splash_title, dc, 32+display.top_offset)
+               display.blit_centered(splash_text, dc, 128+display.top_offset)
 
                if ready then display.blit_centered( splash_play, dc, display.height-64 )