view webGL/dandy/resources/bullet.js~ @ 7:4343c1feedb5

upload boss.js xmlAlpha file
author NOBUYASU Oshiro
date Mon, 05 Jul 2010 17:19:51 +0900
parents 881478004f18
children 61febc94fa62
line wrap: on
line source

tama_lv1 = [];
tama_lv1_end = -1;
k4count = 0;
tama_lv2 = [];
tama_lv2_end = -1;

function loadBulletXml(gl,url)
{
    if(gl.bullet == undefined)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;
}