This commit is contained in:
Paul 2001-06-25 18:44:59 +00:00
parent 6af6ac480f
commit 13fbd0d118
2 changed files with 230 additions and 0 deletions

160
source/paul/animtest.cpp Normal file
View File

@ -0,0 +1,160 @@
/*=========================================================================
animtest.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
#include "backend\party.h"
#ifndef __PAD_PADS_H__
#include "pad\pads.h"
#endif
#ifndef __GAME_GAME_H__
#include "game\game.h"
#endif
#ifndef __GAME_GAMESLOT_H__
#include "game\gameslot.h"
#endif
#ifndef __FRONTEND_FRONTEND_H__
#include "frontend\frontend.h"
#endif
#ifndef __GFX_FADER_H__
#include "gfx\fader.h"
#endif
#ifndef _FILEIO_HEADER_
#include "fileio\fileio.h"
#endif
#ifndef __VID_HEADER_
#include "system\vid.h"
#endif
#ifndef __SHOP_SHOP_H__
#include "shop\shop.h"
#endif
#ifndef __GFX_SPRBANK_H__
#include "gfx\sprbank.h"
#endif
#ifndef __ACTOR_HEADER__
#include "gfx\actor.h"
#endif
#ifndef __BACKEND_CREDITS_H__
#include "backend\credits.h"
#endif
#ifndef __MATHTABLE_HEADER__
#include "utils\mathtab.h"
#endif
/* Std Lib
------- */
/* Data
---- */
#ifndef __STRING_ENUMS__
#include <trans.h>
#endif
#ifndef __SPR_PARTY_H__
#include <party.h>
#endif
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
/*----------------------------------------------------------------------
Function Prototypes
------------------- */
/*----------------------------------------------------------------------
Vars
---- */
CAnimTestScene AnimTestScene;
CActorGfx *m_actorSpongebob;
CActorGfx *m_actorPatrick;
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CAnimTestScene::init()
{
m_font=new ("game over font") ScalableFontBank();
m_font->initialise(&standardFont);
m_font->setJustification(ScalableFontBank::JUST_CENTRE);
m_font->setOt(5);
CActorPool::Reset();
m_actorSpongebob=CActorPool::GetActor(ACTORS_SPONGEBOB_SBK);
m_actorSpongebob->SetOtPos(5);
m_actorPatrick=CActorPool::GetActor(ACTORS_PATRICK_SBK);
m_actorPatrick->SetOtPos(5);
CActorPool::SetUpCache();
CActorPool::CleanUpCache();
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CAnimTestScene::render()
{
DVECTOR sbpos={100,100};
// Actors
m_actorSpongebob->Render(sbpos,0,0,0,0);
CActorPool::CleanUpCache();
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CAnimTestScene::think(int _frames)
{
}
/*===========================================================================
end */

70
source/paul/animtest.h Normal file
View File

@ -0,0 +1,70 @@
/*=========================================================================
animtest.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PAUL_ANIMTEST_H__
#define __PAUL_ANIMTEST_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __SYSTEM_GSTATE_H__
#include "system\gstate.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CAnimTestScene : public CScene
{
public:
void init();
void shutdown() {}
void render();
void think(int _frames);
int readyToShutdown() {return false;}
char *getSceneName() {return"AnimTest";}
private:
class FontBank *m_fontBank;
};
/*----------------------------------------------------------------------
Globals
------- */
extern CPartyScene PartyScene;
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PAUL_ANIMTEST_H__ */
/*===========================================================================
end */