This commit is contained in:
parent
2530ee4529
commit
6ed0971346
@ -9,6 +9,7 @@
|
||||
#include "gfx\sprbank.h"
|
||||
#include <sprites.h>
|
||||
#include "level\level.h"
|
||||
#include "gfx\otpos.h"
|
||||
|
||||
#include "FX\FX.h"
|
||||
#include "FX\FXjfish.h"
|
||||
@ -127,10 +128,11 @@ CFX *NewFX;
|
||||
/*****************************************************************************/
|
||||
void CFX::init()
|
||||
{
|
||||
CFXThing::init();
|
||||
CFXThing::init();
|
||||
|
||||
m_spriteBank=new ("FX Sprite") SpriteBank();
|
||||
m_spriteBank->load(SPRITES_SPRITES_SPR);
|
||||
m_spriteBank=new ("FX Sprite") SpriteBank();
|
||||
m_spriteBank->load(SPRITES_SPRITES_SPR);
|
||||
OtPos=OTPOS__ACTOR_POS;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -58,9 +58,12 @@ virtual void render();
|
||||
|
||||
virtual int canCollide() {return false;}
|
||||
|
||||
virtual void SetOtPos(int Ot) {OtPos=Ot;}
|
||||
|
||||
protected:
|
||||
|
||||
SpriteBank *m_spriteBank;
|
||||
s32 OtPos;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -142,7 +142,7 @@ s16 *dH=HeightTable;
|
||||
for (int i=0; i<Count-1; i++)
|
||||
{
|
||||
if (Idx>=Count) Idx=0;
|
||||
POLY_FT4 *Ft4=m_spriteBank->printFT4(FRM__TENTACLE,LastPos.vx,LastPos.vy,0,0,6);
|
||||
POLY_FT4 *Ft4=m_spriteBank->printFT4(FRM__TENTACLE,LastPos.vx,LastPos.vy,0,0,OtPos);
|
||||
|
||||
Ft4->x0=LastPos.vx+0+LastdW; Ft4->y0=LastPos.vy;
|
||||
Ft4->x1=LastPos.vx+8-LastdW; Ft4->y1=LastPos.vy;
|
||||
|
Loading…
Reference in New Issue
Block a user