Mercurial > hg > Members > e085722 > Cerium
comparison Renderer/Test_/game_over.cc @ 4:b5b462ac9b3b
Cerium Blender ball_bound
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 29 Nov 2010 16:42:42 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:3f6fe22ac669 | 4:b5b462ac9b3b |
---|---|
1 #include "SceneGraphRoot.h" | |
2 #include "vacuum.h" | |
3 | |
4 | |
5 void | |
6 gameover_scene(int w,int h,SceneGraphPtr node, SceneGraphRoot *sgroot) | |
7 { | |
8 SceneGraphPtr over; | |
9 | |
10 over = sgroot->createSceneGraph("GAMEOVER"); | |
11 over->xyz[0] = w/2; | |
12 over->xyz[1] = h/2; | |
13 over->set_move_collision(gameover_idle,gameover_collision); | |
14 node->addBrother(over); | |
15 } | |
16 | |
17 void | |
18 gameover_idle(SceneGraphPtr node, void *sgroot_, int screen_w,int screen_h) | |
19 { | |
20 } | |
21 | |
22 void | |
23 gameover_collision(SceneGraphPtr node, void *sgroot_, int screen_w,int screen_h,SceneGraphPtr tree) | |
24 { | |
25 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; | |
26 Pad *pad = sgroot->getController(); | |
27 | |
28 if(pad->start.isPush()) { | |
29 | |
30 SceneGraphPtr title; | |
31 | |
32 title = sgroot->createSceneGraph("TITLE"); | |
33 title->xyz[0] = screen_w/2; | |
34 title->xyz[1] = screen_h/2; | |
35 title->set_move_collision(no_move_idle, title_collision); | |
36 sgroot->setSceneData(title); | |
37 | |
38 } | |
39 | |
40 } |