00001 #include <math.h>
00002 #include "SceneGraphRoot.h"
00003 #include "SGList.h"
00004
00005 static const float player_speed = 10.0f;
00006 static const float player_radius = 42.0f;
00007
00008 static const float boss_radius_x = 65.4f;
00009 static const float boss_radius_y = 130.8f;
00010 static const float first_boss1_speed = 10.0;
00011 static const float first_boss1_depth = 500.0;
00012 static const float return_boss1_depth_speed = 10.0;
00013
00014 static const float shot_speed = 30.0f;
00015 static const float shot_radius = 42.4f;
00016
00017
00018
00019
00020
00021
00022
00023 static void
00024 null_collision(SceneGraphPtr node, int screen_w, int screen_h,
00025 SceneGraphPtr tree);
00026
00027 static void
00028 boss1_move_right(SceneGraphPtr node, int screen_w, int screen_h);
00029
00030 static void
00031 boss1_move_left(SceneGraphPtr node, int screen_w, int screen_h);
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 static void
00044 player_move(SceneGraphPtr node,int screen_2, int screen_h);
00045
00046
00047
00048
00049
00050
00051 static void
00052 player_collision(SceneGraphPtr node, int screen_w, int screen_h,
00053 SceneGraphPtr tree);
00054 static void
00055 shot_move(SceneGraphPtr node, int screen_w, int screen_h);
00056
00057 static void
00058 shot_collision(SceneGraphPtr node, int screen_2, int screen_h,
00059 SceneGraphPtr tree);
00060 static void
00061 blast_move(SceneGraphPtr node, int screen_w, int screen_h);