comparison 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
comparison
equal deleted inserted replaced
452:cb10f3424f3a 453:84ce2d4a8c3f
63 mb_obj_t *button; 63 mb_obj_t *button;
64 MyAppData data; 64 MyAppData data;
65 mb_timeval_t tmo,interval; 65 mb_timeval_t tmo,interval;
66 66
67 if (argc > 1) 67 if (argc > 1)
68 myApp = MBApp_Init(argv[1]); 68 myApp = MBApp_Init(argv[1], "");
69 else 69 else
70 myApp = MBApp_Init(".libs/mytext"); 70 myApp = MBApp_Init("mytext", ".libs");
71 data.currentscene=0; 71 data.currentscene=0;
72 MBApp_setData(myApp,&data); 72 MBApp_setData(myApp,&data);
73 get_now(&tmo); 73 get_now(&tmo);
74 MB_TIMEVAL_SET(&interval, 1 ,0); 74 MB_TIMEVAL_SET(&interval, 1 ,0);
75 mb_tman_timeout( MBApp_getTimer(myApp), &tmo, switch_scene, myApp); 75 mb_tman_timeout( MBApp_getTimer(myApp), &tmo, switch_scene, myApp);