diff mydandy.cc @ 3:dca6d5d2ef46

stage 1 add
author tkaito
date Sun, 06 Jun 2010 05:23:51 +0900
parents 69b4108bf4e8
children 57af5c610b34
line wrap: on
line diff
--- a/mydandy.cc	Sun Jun 06 03:22:11 2010 +0900
+++ b/mydandy.cc	Sun Jun 06 05:23:51 2010 +0900
@@ -1,7 +1,4 @@
-#include "SceneGraphRoot.h"
-#include "dandy.h"
-
-SceneGraphPtr *dandys;
+#include "game_scene01.h"
 
 void def_angle(SceneGraphPtr node, void *sgroot_, int w, int h);
 void left_angle(SceneGraphPtr node, void *sgroot_, int w, int h);
@@ -38,6 +35,7 @@
   } else if (pad->down.isHold() && h > node->xyz[1]) {
     node->xyz[1] += 10.0f;
   }
+
 }
 
 void
@@ -47,34 +45,6 @@
 }
 
 /* 時機や敵機のオブジェクトや何やらを作成してsetSceneDataまで */
-void
-create_object(void *sgroot_, int w, int h) 
-{
-  SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
-  SceneGraphPtr dandy, rdandy, rtdandy, ldandy, ltdandy;
-  //SceneGraphPtr tmp[5] = {ldandy, ltdandy, dandy, rtdandy, rtdandy};
-  //dandys = tmp;
-
-  SceneGraphPtr back = sgroot->createSceneGraph(); 
-  
-  dandy   = sgroot->createSceneGraph("mydandy");
-  ldandy  = sgroot->createSceneGraph("l-dandy");
-  ltdandy = sgroot->createSceneGraph("lt-dandy");
-  rdandy  = sgroot->createSceneGraph("r-dandy");
-  rtdandy = sgroot->createSceneGraph("rt-dandy");
-
-  dandy->xyz[0]   = w/2;
-  dandy->xyz[1]   = h*0.9;
-
-  dandy->set_move_collision(dandy_move, dandy_collision);
-  //ldandy->set_move_collision(dandy_move, dandy_collision);
-  ltdandy->set_move_collision(dandy_move, dandy_collision);
-  rdandy->set_move_collision(dandy_move, dandy_collision);
-  rtdandy->set_move_collision(dandy_move, dandy_collision);
-  
-  back->addChild(dandy);  
-  sgroot->setSceneData(back);
-}
 
 void
 def_angle(SceneGraphPtr node, void *sgroot_, int w, int h)