This commit is contained in:
parent
fe6dfb5bf5
commit
672731b5eb
2 changed files with 30 additions and 0 deletions
|
@ -43,6 +43,35 @@ void CNpcGeyserBubblePlatform::postInit()
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcGeyserBubblePlatform::render()
|
||||
{
|
||||
SprFrame=0;
|
||||
if ( m_isActive || m_pop )
|
||||
{
|
||||
CPlatformThing::render();
|
||||
|
||||
// Render
|
||||
if (canRender())
|
||||
{
|
||||
DVECTOR &renderPos=getRenderPos();
|
||||
|
||||
if ( m_pop )
|
||||
{
|
||||
SprFrame = CGameScene::getSpriteBank()->printRotatedScaledSprite( FRM__BALLOONBURST, renderPos.vx, renderPos.vy - 16, 4096 << 1, 4096 << 1, 0, 12 );
|
||||
setRGB0( SprFrame, 128, 128, 255 );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Evil hard coded Offsets
|
||||
POLY_FT4 *SprFrame = CGameScene::getSpriteBank()->printRotatedScaledSprite( FRM__BUBBLE_1, renderPos.vx, renderPos.vy - 16, m_scale, ONE, 0, 12 );
|
||||
setRGB0( SprFrame, 128, 128, 255 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcGeyserBubblePlatform::processMovement( int _frames )
|
||||
{
|
||||
if ( !isSetToShutdown() && !m_pop )
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
class CNpcGeyserBubblePlatform : public CNpcBubblePlatform
|
||||
{
|
||||
public:
|
||||
void render();
|
||||
void postInit();
|
||||
protected:
|
||||
void processMovement( int _frames );
|
||||
|
|
Loading…
Add table
Reference in a new issue