Esempio n. 1
0
void CFighterYamamoto::_punching(){
	// 当たり判定が出るタイミングの調整とか
	if( _animArray[_animIndex] == 1 )
		setAttackRect( INNER_W(164), INNER_H(53), INNER_W(81), INNER_H(20) );
	else
		setAttackRect( 0,0,0,0 );
}
Esempio n. 2
0
void CFighterTakei::_sitKicking(){
	if( _animArray[_animIndex] == 1 ) {
		if( _isGoldenMode ) {
			setAttackRect( INNER_W(131), INNER_H(143), INNER_W(100), INNER_H(44) );
		} else {
			setAttackRect( INNER_W(70), INNER_H(190), INNER_W(150), INNER_H(40) );
		}
	} else {
		setAttackRect( 0, 0, 0, 0 );
	}
}
Esempio n. 3
0
void CFighterTakei::_kicking(){
	if( _animArray[_animIndex] == 1 ) {
		if( _isGoldenMode ) {
			setAttackRect( INNER_W(130), INNER_H(113), INNER_W(100), INNER_H(37) );
		} else {
			setAttackRect( INNER_W(70), _h/2, INNER_W(100), INNER_H(40) );
		}
	} else {
		setAttackRect( 0,0,0,0 );
	}
}
Esempio n. 4
0
void CFighterTakei::_punching(){
	if( _animArray[_animIndex] == 1 ) {
		if( _isGoldenMode ) {
			setAttackRect( INNER_W(128), INNER_H(67), INNER_W(68), INNER_H(28) );
		} else {
			setAttackRect( INNER_W(70), _h/4, INNER_W(85), _h/15 );
		}
	} else {
		setAttackRect( 0,0,0,0 );
	}
}
Esempio n. 5
0
bool AirPlane::init()
{
    if (!GoodNPC::init() || !initWithSpriteFrameName("pet2_0.png"))
    {
        return false;
    }
    setRotation(90);
    setWalkSpeed(1);
    setRunSpeed(2);
    setAttackRate(2);
    setHalfBodyWidth(getContentSize().width / 2);
    setHP(50.0f);
    setAP(5.0f);
    setAttackRect(Rect(0, 0, 150, getContentSize().height));
    
    initAnimation();
    
    return true;
}
Esempio n. 6
0
void CFighterYamamoto::_sitKicking(){
	if( _animArray[_animIndex] == 1 )
		setAttackRect( INNER_W(153), INNER_H(111), INNER_W(79), INNER_H(22) );
	else
		setAttackRect( 0, 0, 0, 0 );
}
Esempio n. 7
0
void CFighterYamamoto::_kicking(){
	if( _animArray[_animIndex] == 1 )
		setAttackRect( INNER_W(134), INNER_H(96), INNER_W(109), INNER_H(36) );
	else
		setAttackRect( 0,0,0,0 );
}