From: Alexis Laferrière Date: Tue, 27 May 2014 21:53:48 +0000 (-0400) Subject: dino: update to use app.nit X-Git-Tag: v0.6.6~58^2 X-Git-Url: http://nitlanguage.org dino: update to use app.nit Signed-off-by: Alexis Laferrière --- diff --git a/examples/mnit_dino/src/dino.nit b/examples/mnit_dino/src/dino.nit index 684146d..a7bd6de 100644 --- a/examples/mnit_dino/src/dino.nit +++ b/examples/mnit_dino/src/dino.nit @@ -27,9 +27,7 @@ import graphism import fancy_dino import splash -class DinoApp - super App - +redef class App var cavemen_at_first_level = 6 var cavemen_incr = 4 @@ -40,8 +38,6 @@ class DinoApp var imgs : nullable ImageSet = null var splash : nullable SplashScreen = null - init do super - redef fun init_window do super @@ -111,7 +107,3 @@ class DinoApp return false # unknown event, can be handled by something else end end - -fun app: DinoApp do return once new DinoApp - -app.main_loop diff --git a/examples/mnit_dino/src/dino_android.nit b/examples/mnit_dino/src/dino_android.nit index 1284c58..9468aa9 100644 --- a/examples/mnit_dino/src/dino_android.nit +++ b/examples/mnit_dino/src/dino_android.nit @@ -33,5 +33,3 @@ end redef class Display redef fun top_offset do return 92 end - -super