comparison webGL/dandy/resources/tama.js~ @ 11:680b5b0cd1e4

upload
author NOBUYASU Oshiro
date Mon, 12 Jul 2010 08:01:12 +0900
parents
children 61febc94fa62
comparison
equal deleted inserted replaced
10:a959cdca5b62 11:680b5b0cd1e4
1 function Puttama(type, x, y)
2 {
3 switch (type) {
4 case 0:
5 Putenemy(4, x, y, 0, 0.8, chara_state0);
6 // alert(Mysin(15));alert(Mycos(15));
7 // Putenemy(5, x, y, Mysin(15) * 2 / SANKAKU,
8 // Mycos(15) * 2 / SANKAKU, chara_staet0);
9 break;
10 }
11
12 }
13
14
15 function loadBulletImage(tamano, e)
16 {
17 e.image = ebullets[tamano];
18 e.texture = ebullets[tamano].texture;
19 e.w = ebullets[tamano].w;
20 e.h = ebullets[tamano].h;
21 }
22
23
24 function teki()
25 {
26 this.x=0;
27 this.y=0;
28 this.sx=0;
29 this.xy=0;
30 this.tamarno=0;
31 this.tama=false;//タマ
32 this.flag=0;//表示フラグ
33 this.p=0;//硬さ
34 this.move=0;
35 this.sc=0;//スコア
36 this.dt1=0;
37 this.dt2=0;
38 this.w=0;
39 this.h=0;
40 this.image = new Object();
41 this.texture = new Object();
42 this.s=0;
43 return this;
44 }
45 /*
46 function Putenemy2(tamano, x, y, vx, vy, chara_state)
47 {
48 // var ii = 0;
49
50 var e = new teki();
51 e.x = x;
52 e.y = y;
53 e.vx = sx;
54 e.vy = sy;
55 e.tamano = tamano;
56 e.flag = true;
57 // e.sc = enemystate[tamano].sc;
58 // e.dt1 = e.dt2 = 0;
59 e.move = move;
60 // e.tama = tf;
61
62 loadBulletImage(tamano, e);//image の登録
63 active_chara_list.tama.push(e);//敵の弾情報を配列に追加
64
65 }
66 */