static int setup(void * owner)
{
	int i,j;
	char cbuf[200];
	for (i=0;i<MAXTEAMS;i++){
		for (j=0;j<MAXPLAYERINTEAMS;j++){

			sprintf(cbuf,"planes/plane-%d-%d.png", i,j);
			CRITICAL(right_anim[i][j] = animation_load(path_to_data(cbuf),64,1,100));
			animation_make_loop(right_anim[i][j]);
			right_anim[i][j]->trigger = frame_trigger;

		}
	}

	for (j=0;j<MAXPLAYERINTEAMS;j++){
		sprintf(cbuf,"planes/plane-%d-wreck.png", j);
		CRITICAL(crashing[j] = animation_load(path_to_data(cbuf),64,1,180));
		animation_make_loop(crashing[j]);
		crashing[j]->trigger = crashing_trigger;
	}

	//NYANCAT

	sprintf(cbuf,"planes/nyan-cat.png");
	CRITICAL(right_anim[MAXTEAMS][0] = animation_load(path_to_data(cbuf),64,1,100));
	sprintf(cbuf,"planes/nyan-cat.png");
	CRITICAL(crashing[MAXPLAYERINTEAMS] = animation_load(path_to_data(cbuf),64,1,180));

	animation_make_loop(right_anim[MAXTEAMS][0]);
	animation_make_loop(crashing[MAXPLAYERINTEAMS]);
	right_anim[MAXTEAMS][0]->trigger = frame_trigger;
	crashing[MAXPLAYERINTEAMS]->trigger = crashing_trigger;



	engine_strength = cfgnum("blueplane.engine_strength",5);
	turn_amount = cfgnum("blueplane.turn_amount",0.02);
	bomb_delay = cfgnum("blueplane.bomb_delay",1000);
	bullet_delay = cfgnum("blueplane.bullet_delay",140);
	hitpoints = cfgnum("blueplane.hitpoints",15);
	mass = cfgnum("blueplane.mass",1);
	air_isotropic = cfgnum("blueplane.air_isotropic",0.00005);
	air_turnrate = cfgnum("blueplane.air_turnrate",0.00005);
	air_normal = cfgnum("blueplane.air_normal",0.001);
	nr_bombs = cfgnum("blueplane.nr_bombs",5);
	crash_point = cfgnum("blueplane.crash_point",20);
	return 0;

}
Beispiel #2
0
static int setup()
{
    assert(anim = animation_load(path_to_data("mark.png"),
                                 1,16,40));
    animation_last_frame(anim)->trigger = frame_trigger;
    return 0;
}
Beispiel #3
0
static int setup()
{
  CRITICAL(grow = animation_load(path_to_data("whitesmoke.png"),
				 1,32,100));
  animation_set_alpha(grow,128);
  //animation_set_alpha(dissolve,128);
  // animation_last_frame(grow)->next_frame = dissolve;
  animation_last_frame(grow)->trigger = frame_trigger;
  return 0;
}
static int setup()
{
	/*assert(anim = animation_load(path_to_data("gauge.png"),
			16,1,4000000));*/
	char cbuf[200];
	int i;

	for (i=0;i<MAXTEAMS;i++){
		sprintf(cbuf,"planes/plane-%d-0.png", i);
		CRITICAL(anim[i] = animation_load(path_to_data(cbuf),64,1,100));
	}


	return 0;
}
Beispiel #5
0
static int setup()
{
  assert(anim = animation_load(path_to_data("missile.png"),
				     64,1,1000000));
  return 0;
}