Mercurial > hg > Members > tkaito > dandy
diff dandy.cc @ 7:b0248931e40f
fix
author | tkaito |
---|---|
date | Mon, 14 Jun 2010 07:30:39 +0900 |
parents | 581fa1888e2e |
children | b87dcc11a6d0 |
line wrap: on
line diff
--- a/dandy.cc Mon Jun 07 18:58:59 2010 +0900 +++ b/dandy.cc Mon Jun 14 07:30:39 2010 +0900 @@ -8,20 +8,25 @@ } +void +init_charactor(Viewer *sgroot) +{ + sgroot->createFromXMLfile("xml/mydandy.xml"); + sgroot->createFromXMLfile("xml/gameover.xml"); + sgroot->createFromXMLfile("xml/enemy_greencrab.xml"); + sgroot->createFromXMLfile("xml/bluebullet.xml"); + sgroot->createFromXMLfile("xml/redbullet.xml"); + +} + MainLoopPtr dandy::init(Viewer *sgroot, int w, int h) { SceneGraphPtr back, title; + sgroot->createFromXMLfile("xml/title2.xml"); + + init_charactor(sgroot); - sgroot->createFromXMLfile("xml/mydandy.xml"); - sgroot->createFromXMLfile("xml/title2.xml"); - sgroot->createFromXMLfile("xml/gameover.xml"); - sgroot->createFromXMLfile("xml/enemy_greenclab.xml"); - sgroot->createFromXMLfile("xml/bluebullet.xml"); - sgroot->createFromXMLfile("xml/redbullet.xml"); - - - back = sgroot->createSceneGraph(); title = sgroot->createSceneGraph("title001"); title->xyz[0] = w/2;