view webGL/dandy/resources/schedule.js @ 9:1d76f5717ba7

upload dandy4.html
author NOBUYASU Oshiro
date Sat, 10 Jul 2010 16:38:10 +0900
parents 03b67cd2bde7
children 680b5b0cd1e4
line wrap: on
line source

const FRAME_RATE = 32;
filpcount = 0;


function schedule()
{
    switch (filpcount) {
    case 1:
	break;
    case FRAME_RATE * 2:
	bom2(30,80);
	//	Putenemy(0, 30, 80, 0, -0.3, chara_state0);
//	for(var x = 0; x < 1000; x+=2){
//	    Putenemy(0, x-50, 80, 0, 0.3, 1);	    
//	}
	break;
    case FRAME_RATE * 10:
	Putenemy(1, -30, 80, 0, 0.3, chara_state1);
	Putenemy(0, 30, -80, 0, 0.3, chara_state0);
	break;
    case FRAME_RATE * 15:
	Putenemy(2, -40, 80, 0, 0.5, chara_state1);
	Putenemy(0, -30, -80, 0, 0.3, chara_state0);
	break;
    case FRAME_RATE * 20:
	Putenemy(3, 30, 80, 0, 0.4, chara_state1);
	break;
    case FRAME_RATE * 45:
	for(var i = 0; Boolean(active_chara_list.enemy[i]) ; i++)
	    {
		var p = active_chara_list.enemy[i];
		p.f = false;
		p.state = delete_chara;
		p.collision = noaction;
	    }
	PutBoss(1, 0, 80, 0, 0.5, chara_state8); // 1面ボスをPutenemy                                            
	break;

    }

}