Mercurial > hg > Members > tkaito > task_dandy
comparison stage_init.cc @ 8:7c60ef3fca5b
test
author | tkaito |
---|---|
date | Wed, 07 Jul 2010 03:11:52 +0900 |
parents | c015109a6041 |
children | dea6d34c8e91 |
comparison
equal
deleted
inserted
replaced
7:c015109a6041 | 8:7c60ef3fca5b |
---|---|
25 | 25 |
26 back1->addChild(title); | 26 back1->addChild(title); |
27 | 27 |
28 } | 28 } |
29 | 29 |
30 ObjProperty back_property; | |
31 | |
30 void | 32 void |
31 create_back(void *sgroot_, int w, int h) | 33 create_back(void *sgroot_, int w, int h) |
32 { | 34 { |
33 Viewer *sgroot = (Viewer *)sgroot_; | 35 Viewer *sgroot = (Viewer *)sgroot_; |
34 SceneGraphPtr back; | 36 SceneGraphPtr back; |
35 | 37 |
36 back = sgroot->createSceneGraph(); | 38 back = sgroot->createSceneGraph(); |
37 back->set_move_collision(back_move, back_coll); | 39 back->set_move_collision(back_move, back_coll); |
38 sgroot->setSceneData(back); | 40 sgroot->setSceneData(back); |
41 back_property.flag = 0; | |
39 | 42 |
40 charactor[0].x = w/2; | 43 charactor[0].x = w/2; |
41 charactor[0].y = h/2; | 44 charactor[0].y = h/2; |
42 charactor[0].parent = (void*)back; | 45 charactor[0].parent = (void*)back; |
43 | 46 |