143
|
1 #include "SceneGraph.h"
|
150
|
2 //#include "xml_file/snake576x384.h"
|
|
3 #include "xml_file/snake800x600.h"
|
143
|
4
|
|
5 static void snake_move(SceneGraphPtr node, int screen_w, int screen_h);
|
|
6 static void snake_collision(SceneGraphPtr node, int screen_w, int screen_h,
|
|
7 SceneGraphPtr tree);
|
|
8
|
|
9 static void
|
|
10 snake_move(SceneGraphPtr node, int screen_w, int screen_h)
|
|
11 {
|
|
12 }
|
|
13
|
|
14 static void
|
|
15 snake_collision(SceneGraphPtr node, int screen_w, int screen_h,
|
|
16 SceneGraphPtr tree)
|
|
17 {
|
|
18 }
|
|
19
|
|
20 void
|
|
21 create_snake_bg(void)
|
|
22 {
|
150
|
23 SceneGraph::createFromXMLfile("xml_file/snake800x600.xml");
|
143
|
24 Plane->set_move_collision(snake_move, snake_collision);
|
|
25 }
|