Mercurial > hg > Game > WebGL
comparison dandy/resources/charaTable.js @ 1:54589bb5e57d
add dandy
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 23 Feb 2012 14:51:33 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:718974a1a32b | 1:54589bb5e57d |
---|---|
1 enemystate = []; | |
2 | |
3 function initEnemyTable(gl) { | |
4 createEnemyTable(); | |
5 regiEnemyTable(gl); | |
6 } | |
7 | |
8 function pushEnemyTable(charano, score, hardness) { | |
9 | |
10 var enemy = new Object(); | |
11 enemy.charano = charano; | |
12 enemy.sc = score; | |
13 enemy.p = hardness; | |
14 enemy.image = new Object(); | |
15 enemystate.push(enemy); | |
16 } | |
17 | |
18 function createEnemyTable(){ | |
19 pushEnemyTable(0,0,0); | |
20 pushEnemyTable(ENEMY_GREENCRAB,330,98); | |
21 pushEnemyTable(ENEMY_PLANE,470,37); | |
22 pushEnemyTable(ENEMY_REDBULLET,30,16); | |
23 pushEnemyTable(BOSS1_ORGAN,25000,10000); | |
24 pushEnemyTable(BOSS1_ORGAN,10000,10000); | |
25 pushEnemyTable(ENEMY_BLUEBULLET,40,39); | |
26 pushEnemyTable(ENEMY_LASER,100,100000); | |
27 pushEnemyTable(ENEMY_LIGHTNING,100,100000); | |
28 pushEnemyTable(ASTEROID,170,500); | |
29 pushEnemyTable(BOSS2_BODY,100,500); | |
30 pushEnemyTable(BOSS2_LEFTSHOULDER,10000,12000); | |
31 pushEnemyTable(BOSS2_RIGHTSHOULDER,10000,12000); | |
32 pushEnemyTable(BOSS2_RIGHTARM,5000,15000); | |
33 pushEnemyTable(BOSS2_LEFTARM,5000,15000); | |
34 pushEnemyTable(BOSS2_BATTERY,10000,5000); | |
35 pushEnemyTable(BOSS2_OPENBATTERY,10000,5000); | |
36 pushEnemyTable(BOSS2_BROKENHATCH,100,500); | |
37 pushEnemyTable(BOSS2_DUMMY,50000,15000); | |
38 pushEnemyTable(BOSS2_RIGHTSHOULDERUP,10000,20000); | |
39 pushEnemyTable(BOSS2_LEFTSHOULDERUP,10000,15000); | |
40 pushEnemyTable(BOSS2_LEFTSHOULDERGIRD,100,20000); | |
41 pushEnemyTable(BOSS2_RIGHTARMBATTERY,100,500); | |
42 pushEnemyTable(BOSS2_LEFTARMBATTERY,100,500); | |
43 pushEnemyTable(ORBITMACHINE,20,1000000); | |
44 pushEnemyTable(0,0,0); | |
45 pushEnemyTable(0,0,0); | |
46 pushEnemyTable(0,0,0); | |
47 pushEnemyTable(0,0,0); | |
48 pushEnemyTable(0,0,0); | |
49 pushEnemyTable(BLACKHOLE,200000,30000); | |
50 pushEnemyTable(0,0,0); | |
51 pushEnemyTable(0,0,0); | |
52 pushEnemyTable(0,0,0); | |
53 pushEnemyTable(0,0,0); | |
54 pushEnemyTable(0,0,0); | |
55 pushEnemyTable(0,0,0); | |
56 pushEnemyTable(0,0,0); | |
57 pushEnemyTable(0,0,0); | |
58 pushEnemyTable(0,0,0); | |
59 pushEnemyTable(GUNBATTERY,540,137); | |
60 pushEnemyTable(PURPLECORE,840,287); | |
61 pushEnemyTable(SPACEFISH,370,137); | |
62 pushEnemyTable(MISSILE,210,24); | |
63 pushEnemyTable(BOSS3_BODY,100000,9600); | |
64 pushEnemyTable(0,0,0); | |
65 pushEnemyTable(0,0,0); | |
66 pushEnemyTable(0,0,0); | |
67 pushEnemyTable(0,0,0); | |
68 pushEnemyTable(BODD4_BODY,300000,20400); | |
69 } | |
70 | |
71 function regiEnemyImage(gl, num, name) { | |
72 enemystate[num].image = gl.obj[name]; | |
73 } | |
74 | |
75 function regiEnemyTable(gl) { | |
76 regiEnemyImage(gl, 1, "enemy_greencrab"); | |
77 regiEnemyImage(gl, 2, "enemy_plane"); | |
78 regiEnemyImage(gl, 3, "redbullet"); | |
79 regiEnemyImage(gl, 4, "boss_orgun"); | |
80 regiEnemyImage(gl, 5, "boss_orgun"); | |
81 regiEnemyImage(gl, 6, "enemy_bluebullet"); | |
82 regiEnemyImage(gl, 7, "enemy_lasersplosh.001"); | |
83 regiEnemyImage(gl, 8, "enemy_lightning"); | |
84 regiEnemyImage(gl, 9, "enemy_greencrab");//本当はASTEROID | |
85 regiEnemyImage(gl, 10, "boss2_body"); | |
86 regiEnemyImage(gl, 11, "boss2_leftshoulder"); | |
87 regiEnemyImage(gl, 12, "boss2_rightshoulder"); | |
88 regiEnemyImage(gl, 13, "boss2_rightarm"); | |
89 regiEnemyImage(gl, 14, "boss2_leftarm"); | |
90 regiEnemyImage(gl, 15, "boss2_battery"); | |
91 regiEnemyImage(gl, 16, "boss2_openbattery"); | |
92 } |