function Puttama(type, x, y) { switch (type) { case 0: Putenemy(4, x, y, 0, 0.8, chara_state0); // alert(Mysin(15));alert(Mycos(15)); // Putenemy(5, x, y, Mysin(15) * 2 / SANKAKU, // Mycos(15) * 2 / SANKAKU, chara_staet0); break; } } function loadBulletImage(tamano, e) { e.image = ebullets[tamano]; e.texture = ebullets[tamano].texture; e.w = ebullets[tamano].w; e.h = ebullets[tamano].h; } function teki() { this.x=0; this.y=0; this.sx=0; this.xy=0; this.tamarno=0; this.tama=false;//タマ this.flag=0;//表示フラグ this.p=0;//硬さ this.move=0; this.sc=0;//スコア this.dt1=0; this.dt2=0; this.w=0; this.h=0; this.image = new Object(); this.texture = new Object(); this.s=0; return this; } /* function Putenemy2(tamano, x, y, vx, vy, chara_state) { // var ii = 0; var e = new teki(); e.x = x; e.y = y; e.vx = sx; e.vy = sy; e.tamano = tamano; e.flag = true; // e.sc = enemystate[tamano].sc; // e.dt1 = e.dt2 = 0; e.move = move; // e.tama = tf; loadBulletImage(tamano, e);//image の登録 active_chara_list.tama.push(e);//敵の弾情報を配列に追加 } */