This commit is contained in:
parent
cdaf33f6bf
commit
29aff513ef
@ -88,6 +88,7 @@ void CProjectile::init()
|
|||||||
m_ot = OTPOS__ACTOR_POS;
|
m_ot = OTPOS__ACTOR_POS;
|
||||||
m_speed = 3;
|
m_speed = 3;
|
||||||
m_xScale = ONE;
|
m_xScale = ONE;
|
||||||
|
m_yScale = ONE;
|
||||||
updateCollisionArea();
|
updateCollisionArea();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,7 +444,7 @@ void CProjectile::render()
|
|||||||
|
|
||||||
frameHdr = CGameScene::getSpriteBank()->getFrameHeader( m_spriteFrame );
|
frameHdr = CGameScene::getSpriteBank()->getFrameHeader( m_spriteFrame );
|
||||||
|
|
||||||
CGameScene::getSpriteBank()->printRotatedScaledSprite( frameHdr, x, y, m_xScale, 4096, m_heading, m_ot );
|
CGameScene::getSpriteBank()->printRotatedScaledSprite( frameHdr, x, y, m_xScale, m_yScale, m_heading, m_ot );
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -67,6 +67,7 @@ public:
|
|||||||
void setGraphic( int frame );
|
void setGraphic( int frame );
|
||||||
void setSpeed( u16 newSpeed ) {m_speed = newSpeed;}
|
void setSpeed( u16 newSpeed ) {m_speed = newSpeed;}
|
||||||
void setXScale( s16 newScale ) {m_xScale = newScale;}
|
void setXScale( s16 newScale ) {m_xScale = newScale;}
|
||||||
|
void setYScale( s16 newScale ) {m_yScale = newScale;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DVECTOR getScreenOffset();
|
DVECTOR getScreenOffset();
|
||||||
@ -86,6 +87,7 @@ protected:
|
|||||||
int m_spriteFrame;
|
int m_spriteFrame;
|
||||||
u16 m_speed;
|
u16 m_speed;
|
||||||
s16 m_xScale;
|
s16 m_xScale;
|
||||||
|
s16 m_yScale;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user