comparison webGL/dandy/resources/tama.js~ @ 12:61febc94fa62

upload dandy4.html,new xmlFile
author NOBUYASU Oshiro
date Thu, 15 Jul 2010 07:08:37 +0900
parents 680b5b0cd1e4
children 4684e849866c
comparison
equal deleted inserted replaced
11:680b5b0cd1e4 12:61febc94fa62
1 function TFon()
2 {
3 tf = true;
4 }
5
6 function TFoff()
7 {
8 tf = false;
9 }
10
11
1 function Puttama(type, x, y) 12 function Puttama(type, x, y)
2 { 13 {
14 TFon();
3 switch (type) { 15 switch (type) {
4 case 0: 16 case 0:
5 Putenemy(4, x, y, 0, 0.8, chara_state0); 17 Putenemy(4, x, y, 0, 2, chara_state0);
6 // alert(Mysin(15));alert(Mycos(15)); 18 Putenemy(4, x, y, Mysin(15) * 2 / SANKAKU, Mycos(15) * 2 / SANKAKU, chara_state0);
7 // Putenemy(5, x, y, Mysin(15) * 2 / SANKAKU, 19 Putenemy(4, x, y, Mysin(30) * 2 / SANKAKU, Mycos(30) * 2 / SANKAKU, chara_state0);
8 // Mycos(15) * 2 / SANKAKU, chara_staet0); 20 Putenemy(4, x, y, Mysin(-15) * 2 / SANKAKU, Mycos(-15) * 2 / SANKAKU, chara_state0);
21 Putenemy(4, x, y, Mysin(-30) * 2 / SANKAKU, Mycos(-30) * 2 / SANKAKU, chara_state0);
9 break; 22 break;
23 case 1:
24 Putenemy(4, x, y, Mysin(Math.random() % 15) * 2 / SANKAKU,
25 Mycos(Math.random() % 15) * 2 / SANKAKU, chara_state0);
26 Putenemy(4, x, y, Mysin(Math.random() % 15) * 2 / SANKAKU,
27 Mycos(Math.random() % 15) * 2 / SANKAKU, chara_state0);
28 Putenemy(4, x, y, Mysin(Math.random() % 15 * -1) * 2 / SANKAKU,
29 Mycos(Math.random() % 15 * -1) * 2 / SANKAKU, chara_state0);
30 Putenemy(4, x, y, Mysin(Math.random() % 15 * -1) * 2 / SANKAKU,
31 Mycos(Math.random() % 15 * -1) * 2 / SANKAKU, chara_state0);
32 break;
33 case 2:
34 Putenemy(6, x, y, 10, -3, chara_state20);
35 break;
36 case 3:
37 Putenemy(6, x, y, -10, -3, chara_state21);
38 break;
39 case 4:
40 Putenemy(7, x, y, 0, 15, chara_state0);
41 break;
42 case 5:
43 Putenemy(8, x, y, 0, 30, chara_state0);
44 break;
45 case 6:
46 Putenemy(10, x, y, 0, 0, chara_state30);
47 break;
48 case 7:
49 Putenemy(6, x, y, 0, 4, chara_state0);
50 Putenemy(6, x, y, Mysin(15) * 4 / SANKAKU,
51 Mycos(15) * 4 / SANKAKU, chara_state0);
52 Putenemy(6, x, y, Mysin(30) * 4 / SANKAKU,
53 Mycos(30) * 4 / SANKAKU, chara_state0);
54 Putenemy(6, x, y, Mysin(-15) * 4 / SANKAKU,
55 Mycos(-15) * 4 / SANKAKU, chara_state0);
56 Putenemy(6, x, y, Mysin(-30) * 4 / SANKAKU,
57 Mycos(-30) * 4 / SANKAKU, chara_state0);
58 break;
59 case 8:
60 Putenemy(3, x + 8, y + 8, -4, 0, chara_state0);
61 Putenemy(3, x + 8, y + 8, 4, 0, chara_state0);
62 Putenemy(3, x + 8, y, -4, Mysin(30) * -8 / SANKAKU, chara_state0);
63 Putenemy(3, x + 8, y, 4, Mysin(30) * -8 / SANKAKU, chara_state0);
64 break;
65 case 9:
66 Putenemy(3, x + 8, y, -4, Mysin(30) * -8 / SANKAKU, chara_state0);
67 Putenemy(3, x + 8, y, 4, Mysin(30) * -8 / SANKAKU, chara_state0);
68 Putenemy(3, x + 8, y, -4, Mysin(30) * 8 / SANKAKU, chara_state0);
69 Putenemy(3, x + 8, y, 4, Mysin(30) * 8 / SANKAKU, chara_state0);
70 break;
71 case 10:
72 Putenemy(3, x + 8, y, -4, 0, chara_state0);
73 Putenemy(3, x + 8, y, 4, 0, chara_state0);
74 Putenemy(3, x + 8, y, 0, 4, chara_state0);
75 Putenemy(3, x + 8, y, 0, -4, chara_state0);
76 break;
77 case 11:
78 {
79 var a;
80 a = Math.random() % 360;
81
82 Putenemy(3, x + 8, y, Mycos(a) / SANKAKU,
83 Mysin(a) / SANKAKU, chara_state0);
84 }
10 } 85 }
11 86 TFoff();
12 } 87 }
13 88
14 89
15 function loadBulletImage(tamano, e) 90 function loadBulletImage(tamano, e)
16 { 91 {