view dandy.h @ 6:581fa1888e2e

add bullet
author tkaito
date Mon, 07 Jun 2010 18:58:59 +0900
parents dca6d5d2ef46
children b0248931e40f
line wrap: on
line source

#include <math.h>
#include <stdlib.h>
#include "SceneGraph.h"
#include "Application.h"
#include "MainLoop.h"

class dandy : public Application {

  MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);

};


static const float player_speed = 10.0f;
static const float player_radius = 42.0f;

static const float boss_radius_x = 65.4f;
static const float boss_radius_y = 130.8f;
static const float first_boss1_speed = 10.0;
static const float first_boss1_depth = 500.0;
static const float return_boss1_depth_speed = 10.0;

static const float shot_speed = 30.0f;
static const float shot_radius = 42.4f;

extern void title_collision(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree);
extern void gameover_scene(void *sgroot_, int w, int h);
extern void create_object(void *sgroot_, int w, int h);