/*========================================================================= paul.cpp Author: PKG Created: Project: Spongebob Purpose: Copyright (c) 2000 Climax Development Ltd ===========================================================================*/ /*---------------------------------------------------------------------- Includes -------- */ #include "paul\paul.h" #ifndef __SYSTEM_DBG_H__ #include "system\dbg.h" #endif #ifndef __GFX_FONT_H__ #include "gfx\font.h" #endif #ifndef __MEMORY_HEADER__ #include "mem\memory.h" #endif #ifndef __UTILS_HEADER__ #include "utils\utils.h" #endif #ifndef __SOUND_SOUND_H__ #include "sound\sound.h" #endif #ifndef __PAD_PADS_H__ #include "pad\pads.h" #endif /* Std Lib ------- */ /* Data ---- */ /*---------------------------------------------------------------------- Tyepdefs && Defines ------------------- */ /*---------------------------------------------------------------------- Structure defintions -------------------- */ /*---------------------------------------------------------------------- Function Prototypes ------------------- */ /*---------------------------------------------------------------------- Vars ---- */ static FontBank s_fontBank; char *s_mem[3]; /*---------------------------------------------------------------------- Function: Purpose: Params: Returns: ---------------------------------------------------------------------- */ int ploopid1=0; int ploopid2=0; void CPaulScene::init() { s_fontBank.initialise(&standardFont); CSoundMediator::setSfxBank(CSoundMediator::INGAME); CSoundMediator::setSong(CSoundMediator::MUSIC); CSoundMediator::playSong(); //CXAStream::Init(); PAUL_DBGMSG("initialised.."); ploopid1=CSoundMediator::playSfx(0); ploopid2=CSoundMediator::playSfx(0); } /*---------------------------------------------------------------------- Function: Purpose: Params: Returns: ---------------------------------------------------------------------- */ void CPaulScene::shutdown() { } /*---------------------------------------------------------------------- Function: Purpose: Params: Returns: ---------------------------------------------------------------------- */ void CPaulScene::render() { int logCount; int i,y,charHeight; logCount=getNumberOfDbgLinesInLog(); y=20; charHeight=s_fontBank.getCharHeight(); for(i=0;iCSoundMediator::MAX_VOLUME)mvol=CSoundMediator::MAX_VOLUME; setSongVolume=true; } if(pad&PAD_DOWN) { mvol-=16; if(mvolCSoundMediator::MAX_VOLUME)svol=CSoundMediator::MAX_VOLUME; setSfxVolume=true; } if(pad&PAD_LEFT) { svol-=16; if(svol