var shadowValue = -28;
//okazariは他のbodyと比べて11低い
var okazariValue = 37 + 11;
+ var okazariReimuValue = 32;
var bodyValue = 37;
- var tweetValue = 148;
+ var tweetValue = 188;
if(a.type == "shadow"){
ay += shadowValue * a.scaleValue;
}
- else if(a.type == "body" && a.classname == "Okazari"){
- ay += okazariValue * a.scaleValue - a.anim.cnt;
+ else if(a.type == "body" && a.classname == "Okazari" && a.spname == "reimu"){
+ ay += okazariReimuValue * a.scaleValue - a.anim.cnt;
}
else if(a.type == "body"){
ay += bodyValue * a.scaleValue - a.anim.cnt;
by += shadowValue * b.scaleValue;
}
+ else if(b.type == "body" && b.classname == "Okazari" && b.spname == "reimu"){
+ by += okazariReimuValue * b.scaleValue - b.anim.cnt;
+ }
else if(b.type == "body" && b.classname == "Okazari"){
by += okazariValue * b.scaleValue - b.anim.cnt;
}
if(yukkuri.myCode === "REIMU"){
enchant.Sprite.call(this, 80, 32);
this.image = game.assets[EResPathReimu.OKAZARI];
- this.x = -CHARA_WIDTH / 2 - 1;
- this.y = 0;
+ this.x = -CHARA_WIDTH / 3 * 2;
+ this.y = -yukkuri.getHeight()/5 * 2 - 4;
}else{
enchant.Sprite.call(this, 64, 64);
this.image = game.assets[EResPath.MARISA_OKAZARI];
this.x = -CHARA_WIDTH / 2;
- this.y = -CHARA_HEIGHT / 2 - yukkuri.getWidth()/6;
+ this.y = -CHARA_HEIGHT / 2 - yukkuri.getHeight()/6;
}
this.yukkuri = yukkuri;
},
// this.kukis[0].miYukkuris[0].animY(-_y);
}
// console.log(this.getX() + ":" + this.getY());
- // this.act();
+ this.act();
if(this.isDead())return;
this.runYukkuri();
this.runHungry();
// this.imgGroup.addChild(this._tweet);
// this.imgGroup.x = x;
// this.imgGroup.y = y;
-
+ this.formSprite.setX(x);
+ this.formSprite.setY(y);
this.animation();
this.action = new Action(this);
ctl.addObj(this);
this.classname = "Reimu";
this.myCode = "REIMU";
this.myName = "れいむ";
-
// var xml = this.loadParamsXML("./data/marisa/params.xml");
// var json = net.load("./data/reimu/params.json");
// this.param = json.root.param;
this.shadow.image = game.assets[EResPath.YUKKURI_SHADOW];
this.shadow.x = 0 + this.x;
this.shadow.y = this.getWidth() / 16 + this.x;
- this.shadow.image._element.style.zIndex = 2;
- this._style.zIndex = 5;
this.face = new enchant.Sprite(64, 64);
this.face.image = game.assets[EResPathReimu.FACE_NORMAL];
this.sub1.x = -CHARA_WIDTH / 2;
this.sub1.y = -CHARA_HEIGHT / 2;
- this.okazari = new Okazari(this);
+ this.okazari = new Okazari(this);
+ this.formSprite.addChild(this.shadow,0,{type:"shadow",scaleValue:this.myScaleY});
+ this.formSprite.addChild(this, 1, {
+ mainIndexFlg:true,
+ type : "body",
+ scaleValue:this.myScaleY
+ });
+ this.formSprite.addChild(this.face,2,{type:"body",scaleValue:this.myScaleY});
+ this.formSprite.addChild(this.hear,3,{type:"body",scaleValue:this.myScaleY});
+ this.formSprite.addChild(this.okazari,4,{type:"body",scaleValue:this.myScaleY,spname:"reimu"});
+ this.formSprite.addChild(this.sub1,5,{type:"body",scaleValue:this.myScaleY});
+ // this.formSprite.addChild(this._tweet,6,{type:"tweet",scaleValue:this.myScaleY});
// this.imgGroup.addChild(this.shadow);
// this.imgBody.addChild(this.okazari);
// this.imgGroup.x = x;
// this.imgGroup.y = y;
+ this.formSprite.setX(x);
+ this.formSprite.setY(y);
this.animation();
this.action = new Action(this);
ctl.addObj(this);
// new Marisa(PALYER_INIT_X + 100, PALYER_INIT_Y + 200, EGrow.SUBADULT);
// new Marisa(PALYER_INIT_X + 150, PALYER_INIT_Y + 200, EGrow.CHILD);
// new Marisa(PALYER_INIT_X + 200, PALYER_INIT_Y + 200, EGrow.BABY);
- // // new Reimu(PALYER_INIT_X + 400, PALYER_INIT_Y + 400, EGrow.ADULT);
+ new Reimu(PALYER_INIT_X + 100, PALYER_INIT_Y + 100, EGrow.ADULT);
// new Reimu(PALYER_INIT_X + 350, PALYER_INIT_Y + 400, EGrow.SUBADULT);
// new Reimu(PALYER_INIT_X + 300, PALYER_INIT_Y + 400, EGrow.CHILD);
// new Reimu(PALYER_INIT_X + 250, PALYER_INIT_Y + 400, EGrow.BABY);