This commit is contained in:
parent
2530ee4529
commit
6ed0971346
3 changed files with 9 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "gfx\sprbank.h"
|
#include "gfx\sprbank.h"
|
||||||
#include <sprites.h>
|
#include <sprites.h>
|
||||||
#include "level\level.h"
|
#include "level\level.h"
|
||||||
|
#include "gfx\otpos.h"
|
||||||
|
|
||||||
#include "FX\FX.h"
|
#include "FX\FX.h"
|
||||||
#include "FX\FXjfish.h"
|
#include "FX\FXjfish.h"
|
||||||
|
@ -131,6 +132,7 @@ void CFX::init()
|
||||||
|
|
||||||
m_spriteBank=new ("FX Sprite") SpriteBank();
|
m_spriteBank=new ("FX Sprite") SpriteBank();
|
||||||
m_spriteBank->load(SPRITES_SPRITES_SPR);
|
m_spriteBank->load(SPRITES_SPRITES_SPR);
|
||||||
|
OtPos=OTPOS__ACTOR_POS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -58,9 +58,12 @@ virtual void render();
|
||||||
|
|
||||||
virtual int canCollide() {return false;}
|
virtual int canCollide() {return false;}
|
||||||
|
|
||||||
|
virtual void SetOtPos(int Ot) {OtPos=Ot;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
SpriteBank *m_spriteBank;
|
SpriteBank *m_spriteBank;
|
||||||
|
s32 OtPos;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -142,7 +142,7 @@ s16 *dH=HeightTable;
|
||||||
for (int i=0; i<Count-1; i++)
|
for (int i=0; i<Count-1; i++)
|
||||||
{
|
{
|
||||||
if (Idx>=Count) Idx=0;
|
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->x0=LastPos.vx+0+LastdW; Ft4->y0=LastPos.vy;
|
||||||
Ft4->x1=LastPos.vx+8-LastdW; Ft4->y1=LastPos.vy;
|
Ft4->x1=LastPos.vx+8-LastdW; Ft4->y1=LastPos.vy;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue