This commit is contained in:
parent
3d74ef38c3
commit
aeb95010d3
24 changed files with 7743 additions and 12 deletions
|
@ -4,11 +4,39 @@
|
|||
|
||||
#include "system\global.h"
|
||||
#include "Game\Thing.h"
|
||||
#include "Gfx\Skel.h"
|
||||
#include "gfx\anim.h"
|
||||
#include "Player\Player.h"
|
||||
|
||||
// to be removed
|
||||
#include "fileio\fileio.h"
|
||||
#include "utils\utils.h"
|
||||
#include "gfx\tpage.h"
|
||||
#include "gfx\prim.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
CPlayer::CPlayer()
|
||||
{
|
||||
SetRenderObj(&Skel);
|
||||
SetAnimateObj(&Skel);
|
||||
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
CPlayer::~CPlayer()
|
||||
{
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CPlayer::init()
|
||||
{
|
||||
sActor3dHdr *Hdr=Skel.Load(ACTORS_SPONGEBOB_A3D);
|
||||
Skel.Init(Hdr);
|
||||
TPLoadTex(ACTORS_SPONGEBOB_TEX);
|
||||
Skel.setAnimDatabase(CAnimDB::GetPlayerAnimBank());
|
||||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -17,14 +45,7 @@ void CPlayer::shutdown()
|
|||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CPlayer::think()
|
||||
void CPlayer::Animate()
|
||||
{
|
||||
Skel.Animate(this);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CPlayer::render()
|
||||
{
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue