This commit is contained in:
Charles 2001-07-10 17:07:10 +00:00
parent cdaf33f6bf
commit 29aff513ef
2 changed files with 4 additions and 1 deletions

View File

@ -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 );
} }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -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;
}; };
/*****************************************************************************/ /*****************************************************************************/