Mercurial > hg > Members > tkaito > task_dandy
diff main.cc @ 19:632ce41a842a
testing game task with pad's input
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Aug 2010 03:37:36 +0900 |
parents | aecc2199251e |
children | fd9deaa67de9 |
line wrap: on
line diff
--- a/main.cc Mon Aug 09 01:22:53 2010 +0900 +++ b/main.cc Thu Aug 26 03:37:36 2010 +0900 @@ -35,7 +35,7 @@ sgroot->createFromXMLfile("xml/redbullet.xml"); sgroot->createFromXMLfile("xml/title2.xml"); - for (int i = 0; i < 2; i++) { + for (int i = 0; i < ENEMY_NUM; i++) { charactor[i].root = (void*)sgroot->createSceneGraph(status[i].charano); charactor[i].score = status[i].score; charactor[i].vital = status[i].vital; @@ -48,7 +48,7 @@ MainLoopPtr dandy::init(Viewer *sgroot, int w, int h) { - charactor = (ObjPropertyPtr)sgroot->manager->allocate(sizeof(ObjPropertyPtr)*16); + charactor = (ObjPropertyPtr)sgroot->manager->allocate(sizeof(ObjPropertyPtr)*ENEMY_NUM); init_charactor(sgroot, w, h); return sgroot; }