Mercurial > hg > Members > e085711
view webGL/dandy/resources/bullet.js @ 6:881478004f18
update Bullet.js
author | NOBUYASU Oshiro |
---|---|
date | Mon, 21 Jun 2010 17:37:26 +0900 |
parents | |
children | 4343c1feedb5 |
line wrap: on
line source
tama_lv1 = []; tama_lv1_end = -1; tama_lv2 = []; tama_lv2_end = -1; function loadBulletXml(gl,url) { gl.bullet = new Object(); var xmlChara = new Object(); xmlChara = parsePanel(url); for (var name in xmlChara) { gl.bullet[name] = makeXmlObj(gl, xmlChara[name]); gl.bullet[name].texture = loadImageTexture(gl, xmlChara[name].image); } } function parseBullet(gl) { var bullets = []; for(var name in gl.bullet) { bullets.push(gl.bullet[name]); } return bullets; } function Tama() { this.x=0; this.y=0; return this; } function Tama1() { this.x=0; this.y=0; this.r=0; this.l=0; return this; } function tama2() { this.x=0; this.y=0; this.r=0; this.l=0; this.rr=0; this.sr=0; this.sl=0; this.ll=0; return this; }