} else{
this.origin.y = ownerObj.origin.y + y;
}
+
//発射
var fvx = this.fireVelocity.x;
if(ownerObj.direction == 0){
}
this.movingSpeed.x = fvx;
this.movingSpeed.y = -this.fireVelocity.y
- ownerObj.ownerStage.addStageObject(this, true);
+
+ // 初期位置で壁などに引っかかっていないか確認
+ if(this.canMoveTo(this.origin.x, this.origin.y)){
+ ownerObj.ownerStage.addStageObject(this, true);
+ }
this.livingTick = 0;
},