This commit is contained in:
parent
f491382245
commit
8a5c5f76df
@ -763,7 +763,7 @@ void CNpcMotherJellyfishEnemy::renderOnMapScreen( DVECTOR drawPos )
|
|||||||
m_actorGfx->RotateScale( SprFrame, drawPos, 0, ONE, ONE );
|
m_actorGfx->RotateScale( SprFrame, drawPos, 0, ONE, ONE );
|
||||||
for ( int i = 0 ; i < 4 ; i++ )
|
for ( int i = 0 ; i < 4 ; i++ )
|
||||||
{
|
{
|
||||||
legs[i]->renderOnMapScreen( drawPos );
|
legs[i]->renderOnMapScreen( drawPos, legsPos[i].vx, legsPos[i].vy );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ int XInc=LegXInc;
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*** Render on map ***********************************************************/
|
/*** Render on map ***********************************************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void CFXJellyFishLegs::renderOnMapScreen( DVECTOR drawPos )
|
void CFXJellyFishLegs::renderOnMapScreen( DVECTOR drawPos, int XOfs, int YOfs )
|
||||||
{
|
{
|
||||||
SpriteBank *SprBank=CGameScene::getSpriteBank();;
|
SpriteBank *SprBank=CGameScene::getSpriteBank();;
|
||||||
DVECTOR RenderPos=drawPos;
|
DVECTOR RenderPos=drawPos;
|
||||||
@ -134,8 +134,8 @@ int ScaleWInc=(ONE*LegWInc)>>12;
|
|||||||
int ScaleHInc=(ONE*LegHInc)>>12;
|
int ScaleHInc=(ONE*LegHInc)>>12;
|
||||||
int XInc=LegXInc;
|
int XInc=LegXInc;
|
||||||
|
|
||||||
RenderPos.vx+=Ofs.vx;
|
RenderPos.vx+=XOfs;
|
||||||
RenderPos.vy+=Ofs.vy;
|
RenderPos.vy+=YOfs;
|
||||||
|
|
||||||
if (!XFlip) XInc=-XInc;
|
if (!XFlip) XInc=-XInc;
|
||||||
for (int i=0; i<LegCount; i++)
|
for (int i=0; i<LegCount; i++)
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
/*virtual */void init(DVECTOR const &Pos);
|
/*virtual */void init(DVECTOR const &Pos);
|
||||||
/*virtual */void think(int _frames);
|
/*virtual */void think(int _frames);
|
||||||
/*virtual */void render();
|
/*virtual */void render();
|
||||||
void renderOnMapScreen( DVECTOR drawPos );
|
void renderOnMapScreen( DVECTOR drawPos, int XOfs, int YOfs );
|
||||||
|
|
||||||
void Setup(int XOfs,int YOfs,bool XFlip);
|
void Setup(int XOfs,int YOfs,bool XFlip);
|
||||||
void setScale( s16 newScale ) {Scale = newScale;}
|
void setScale( s16 newScale ) {Scale = newScale;}
|
||||||
|
Loading…
Reference in New Issue
Block a user