Mercurial > hg > Members > tkaito > dandy
comparison dandy.cc @ 4:e089ac9ea221
greenclab add. not complete...
author | tkaito |
---|---|
date | Sun, 06 Jun 2010 06:47:45 +0900 |
parents | 69b4108bf4e8 |
children | 581fa1888e2e |
comparison
equal
deleted
inserted
replaced
3:dca6d5d2ef46 | 4:e089ac9ea221 |
---|---|
1 #include <math.h> | 1 #include <math.h> |
2 #include "SceneGraphRoot.h" | 2 #include "SceneGraphRoot.h" |
3 #include "dandy.h" | 3 #include "dandy.h" |
4 | |
5 | |
6 void | |
7 dandy_move_idle(SceneGraphPtr node, int w, int h) | |
8 { | |
9 | |
10 } | |
11 | 4 |
12 void | 5 void |
13 title_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h) | 6 title_idle(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h) |
14 { | 7 { |
15 | 8 |
18 MainLoopPtr | 11 MainLoopPtr |
19 dandy::init(Viewer *sgroot, int w, int h) | 12 dandy::init(Viewer *sgroot, int w, int h) |
20 { | 13 { |
21 SceneGraphPtr back, title; | 14 SceneGraphPtr back, title; |
22 | 15 |
23 sgroot->createFromXMLfile( "xml/mydandy.xml"); | 16 sgroot->createFromXMLfile("xml/mydandy.xml"); |
24 sgroot->createFromXMLfile( "xml/title2.xml"); | 17 sgroot->createFromXMLfile("xml/title2.xml"); |
25 sgroot->createFromXMLfile( "xml/gameover.xml"); | 18 sgroot->createFromXMLfile("xml/gameover.xml"); |
19 sgroot->createFromXMLfile("xml/enemy_greenclab.xml"); | |
20 | |
26 | 21 |
27 back = sgroot->createSceneGraph(); | 22 back = sgroot->createSceneGraph(); |
28 title = sgroot->createSceneGraph("title001"); | 23 title = sgroot->createSceneGraph("title001"); |
29 title->xyz[0] = w/2; | 24 title->xyz[0] = w/2; |
30 title->xyz[1] = h/2; | 25 title->xyz[1] = h/2; |