This commit is contained in:
parent
37852c12a2
commit
25d71054fb
3 changed files with 4 additions and 6 deletions
|
@ -66,8 +66,7 @@ CPlayerStateFallFar s_stateFallFar;
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CPlayerStateFall::enter(CPlayerModeBase *_playerMode)
|
void CPlayerStateFall::enter(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
// _playerMode->setAnimNo(ANIM_SPONGEBOB_HOVER);
|
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
|
||||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_FIRE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,7 @@ CPlayerStateJump s_stateJump;
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CPlayerStateJump::enter(CPlayerModeBase *_playerMode)
|
void CPlayerStateJump::enter(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
//!! _playerMode->setAnimNo(ANIM_SPONGEBOB_HOVER);
|
_playerMode->setAnimNo(ANIM_SPONGEBOB_JUMP);
|
||||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_FIRE);
|
|
||||||
m_jumpFrames=0;
|
m_jumpFrames=0;
|
||||||
|
|
||||||
_playerMode->jump();
|
_playerMode->jump();
|
||||||
|
|
|
@ -43,9 +43,9 @@ public:
|
||||||
void think(class CPlayerModeBase *_playerMode);
|
void think(class CPlayerModeBase *_playerMode);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual int getStartFrame() {return ANIM_SPONGEBOB_FIRE;}
|
virtual int getStartFrame() {return ANIM_SPONGEBOB_RUNSTART;}
|
||||||
virtual int getLoopFrame() {return ANIM_SPONGEBOB_RUN;}
|
virtual int getLoopFrame() {return ANIM_SPONGEBOB_RUN;}
|
||||||
virtual int getEndFrame() {return ANIM_SPONGEBOB_FIRE;}
|
virtual int getEndFrame() {return ANIM_SPONGEBOB_RUNSTOP;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_numberOfTimesAnimHasLooped;
|
int m_numberOfTimesAnimHasLooped;
|
||||||
|
|
Loading…
Add table
Reference in a new issue