Mercurial > hg > Members > tkaito > task_dandy
comparison stage_init.cc @ 15:813485a28b6f
ppe/Move is integrated into EnemyMove.
author | tkaito |
---|---|
date | Sun, 08 Aug 2010 18:05:46 +0900 |
parents | e95c5c280f47 |
children | 2c188b2becec |
comparison
equal
deleted
inserted
replaced
14:e95c5c280f47 | 15:813485a28b6f |
---|---|
34 charactor[0].parent = (void*)back; | 34 charactor[0].parent = (void*)back; |
35 | 35 |
36 SceneGraphPtr title = (SceneGraphPtr)charactor[0].root; | 36 SceneGraphPtr title = (SceneGraphPtr)charactor[0].root; |
37 title->xyz[0] = charactor[0].x; | 37 title->xyz[0] = charactor[0].x; |
38 title->xyz[1] = charactor[0].y; | 38 title->xyz[1] = charactor[0].y; |
39 | 39 |
40 int size = sizeof(ObjProperty); | 40 int size = sizeof(ObjProperty); |
41 //printf("size = %d\n", size); | 41 //printf("size = %d\n", size); |
42 | 42 |
43 back->addChild(title); | 43 back->addChild(title); |
44 sgroot->setSceneData(back); | 44 sgroot->setSceneData(back); |
49 void | 49 void |
50 create_stage(void *sgroot_, int w, int h, ObjPropertyPtr charactor) | 50 create_stage(void *sgroot_, int w, int h, ObjPropertyPtr charactor) |
51 { | 51 { |
52 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; | 52 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; |
53 | 53 |
54 SceneGraphPtr stage = sgroot->createSceneGraph(); | 54 SceneGraphPtr stage = sgroot->createSceneGraph(); SceneGraphPtr |
55 SceneGraphPtr mydandy = sgroot->createSceneGraph("mydandy"); | 55 mydandy = sgroot->createSceneGraph("mydandy"); |
56 | 56 |
57 //mydandy->set_move_collision(dandy_move, dandy_coll); | 57 //mydandy->set_move_collision(dandy_move, dandy_coll); |
58 //stage->set_move_collision(stage_move, stage_coll); | 58 //stage->set_move_collision(stage_move, stage_coll); |
59 | 59 |
60 mydandy->xyz[0] = w/2; | 60 mydandy->xyz[0] = w/2; |