Mercurial > hg > Game > Cerium
comparison TaskManager/Test/test_render/snake_bg.cpp @ 150:3f467ad8c40d draft
add xml
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 02 Dec 2008 19:10:34 +0900 |
parents | 9588726193e1 |
children | 4a00bb4c6184 |
comparison
equal
deleted
inserted
replaced
149:f85ad3769897 | 150:3f467ad8c40d |
---|---|
1 #include "SceneGraph.h" | 1 #include "SceneGraph.h" |
2 #include "xml_file/snake576x384.h" | 2 //#include "xml_file/snake576x384.h" |
3 #include "xml_file/snake800x600.h" | |
3 | 4 |
4 static void snake_move(SceneGraphPtr node, int screen_w, int screen_h); | 5 static void snake_move(SceneGraphPtr node, int screen_w, int screen_h); |
5 static void snake_collision(SceneGraphPtr node, int screen_w, int screen_h, | 6 static void snake_collision(SceneGraphPtr node, int screen_w, int screen_h, |
6 SceneGraphPtr tree); | 7 SceneGraphPtr tree); |
7 | 8 |
17 } | 18 } |
18 | 19 |
19 void | 20 void |
20 create_snake_bg(void) | 21 create_snake_bg(void) |
21 { | 22 { |
22 SceneGraph::createFromXMLfile("xml_file/snake576x384.xml"); | 23 SceneGraph::createFromXMLfile("xml_file/snake800x600.xml"); |
23 Plane->set_move_collision(snake_move, snake_collision); | 24 Plane->set_move_collision(snake_move, snake_collision); |
24 } | 25 } |