diff main.cc @ 11:8c7a2e7cb9e0

test
author tkaito
date Sat, 17 Jul 2010 14:12:53 +0900
parents 27d3291a7c82
children aecc2199251e
line wrap: on
line diff
--- a/main.cc	Tue Jul 13 18:09:25 2010 +0900
+++ b/main.cc	Sat Jul 17 14:12:53 2010 +0900
@@ -26,7 +26,7 @@
 const state status[50] = ENEMY_STATUS_TABLE;
 
 void
-init_charactor(Viewer *sgroot)
+init_charactor(Viewer *sgroot, int w, int h)
 {
   sgroot->createFromXMLfile("xml/mydandy.xml");
   sgroot->createFromXMLfile("xml/gameover.xml");
@@ -40,7 +40,7 @@
     charactor[i].score = status[i].score;
     charactor[i].vital = status[i].vital;
    }
-
+  create_title_back(sgroot, w, h);
 }
 
 ObjPropertyPtr charactor;
@@ -49,9 +49,7 @@
 dandy::init(Viewer *sgroot, int w, int h)
 {
   charactor = (ObjPropertyPtr)sgroot->manager->allocate(sizeof(ObjPropertyPtr)*16);
-  init_charactor(sgroot);
-  create_title_back(sgroot, w, h);
-
+  init_charactor(sgroot, w, h);
   return sgroot;
 }