Mercurial > hg > Members > e085711
diff webGL/dandy/resources/parse.js~ @ 11:680b5b0cd1e4
upload
author | NOBUYASU Oshiro |
---|---|
date | Mon, 12 Jul 2010 08:01:12 +0900 |
parents | 1d76f5717ba7 |
children | 61febc94fa62 |
line wrap: on
line diff
--- a/webGL/dandy/resources/parse.js~ Sat Jul 10 16:38:23 2010 +0900 +++ b/webGL/dandy/resources/parse.js~ Mon Jul 12 08:01:12 2010 +0900 @@ -1,5 +1,6 @@ function parseXml(gl) { + loadCharaXml(gl, "./xml/character.xml");//gl.charaにxmlファイルの中身を入れる loadEffectXml(gl, "./xml/effect.xml");//gl.effectにxmlファイルの中身をいれる loadBossXml(gl, "./xml/boss.xml");//gl.bossにxmlファイルの中身を入れる @@ -8,12 +9,19 @@ enemy = [];//敵の情報を入れておく配列を用意、グローバル pushEnemy(gl,enemy);//配列enemy[]に敵をpush + pushEnemyBullets(gl, enemy);//配列enemy[]に敵の弾情報をpush boss = [];//bossの情報を入れておく配列を用意,グローバル pushBoss(gl, boss);//配列boss[]にbossの情報をpush bullets = [];//弾の情報を入れておく配列を用意、グローバル pushPlayerBullets(gl,bullets);//配列bullets[]に弾をpush + + bomImage = [];//撃破時の爆発の情報をいれておく配列を用意。グローバル + pushBom(gl, bomImage);//配列 bom[]に爆発をpush + + // ebullets = [];//敵の弾の情報を入れておく配列を用意、グローバル + // pushEnemyBullets(gl, ebullets); } function loadCharaXml(gl,url) @@ -83,3 +91,26 @@ // return bullets; } +function pushBom(gl, bomImage) +{ + bomImage.push(gl.effect["redbomb_anim_0"]); + bomImage.push(gl.effect["redbomb_anim_1"]); + bomImage.push(gl.effect["redbomb_anim_2"]); + bomImage.push(gl.effect["redbomb_anim_3"]); + bomImage.push(gl.effect["redbomb_anim_4"]); + bomImage.push(gl.effect["redbomb_anim_5"]); + bomImage.push(gl.effect["redbomb_anim_6"]); + bomImage.push(gl.effect["redbomb_anim_7"]); +} + +function pushEnemyBullets(gl, ebullets) +{ + ebullets.push(gl.effect["enemy_redbullet"]); + ebullets.push(gl.effect["enemy_bluebullet"]); + ebullets.push(gl.effect["tama_s_01"]); + ebullets.push(gl.effect["tama_s_02"]); + ebullets.push(gl.effect["tama_s_03"]); + ebullets.push(gl.effect["tama_s_04"]); + ebullets.push(gl.effect["tama_l_02"]); + ebullets.push(gl.effect["tama_l_03"]); +} \ No newline at end of file