diff examples/dynamic/text.c @ 453:84ce2d4a8c3f

Change interface of sprite loader. - Users can set a path where sprites should be loaded from. - Users must pass a module root to MBApp_Init() to specify path for loading sprites.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 05 Aug 2009 19:34:59 +0800
parents 31b6633e3538
children 9b8dda201ccb
line wrap: on
line diff
--- a/examples/dynamic/text.c	Wed Aug 05 17:46:03 2009 +0800
+++ b/examples/dynamic/text.c	Wed Aug 05 19:34:59 2009 +0800
@@ -65,9 +65,9 @@
     mb_timeval_t tmo,interval;
 
     if (argc > 1) 
-	    myApp = MBApp_Init(argv[1]);
+	myApp = MBApp_Init(argv[1], "");
     else
-	    myApp = MBApp_Init(".libs/mytext");
+	myApp = MBApp_Init("mytext", ".libs");
     data.currentscene=0;
     MBApp_setData(myApp,&data);
     get_now(&tmo);