This commit is contained in:
parent
d76a434f00
commit
60ad167125
@ -19,10 +19,6 @@ static const int TILE2D_HEIGHT=12;
|
|||||||
static const int SCREEN_TILE2D_WIDTH=((512/TILE2D_WIDTH)+1);
|
static const int SCREEN_TILE2D_WIDTH=((512/TILE2D_WIDTH)+1);
|
||||||
static const int SCREEN_TILE2D_HEIGHT=((256/TILE2D_HEIGHT)+1);
|
static const int SCREEN_TILE2D_HEIGHT=((256/TILE2D_HEIGHT)+1);
|
||||||
|
|
||||||
#ifdef __VERSION_DEBUG__
|
|
||||||
extern int PretendToBeAPS2;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@ -114,13 +110,6 @@ int YPos=MapPos.vy>>MapXYShift;
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void CLayerTile::render()
|
void CLayerTile::render()
|
||||||
{
|
{
|
||||||
#ifdef __VERSION_DEBUG__
|
|
||||||
if(PretendToBeAPS2)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
sTileMapElem *MapPtr=Map+GetMapOfs();
|
sTileMapElem *MapPtr=Map+GetMapOfs();
|
||||||
s16 TileX,TileY;
|
s16 TileX,TileY;
|
||||||
sOT *ThisOT=OtPtr+LayerOT;
|
sOT *ThisOT=OtPtr+LayerOT;
|
||||||
|
@ -35,10 +35,6 @@ static const int RENDER_Y_OFS =INGAME_SCREENOFS_Y-(SCREEN_TILE_ADJ_U*BLOCK_SIZ
|
|||||||
static const int DeltaTableSizeX=SCREEN_TILE3D_WIDTH+1;
|
static const int DeltaTableSizeX=SCREEN_TILE3D_WIDTH+1;
|
||||||
static const int DeltaTableSizeY=SCREEN_TILE3D_HEIGHT+1;
|
static const int DeltaTableSizeY=SCREEN_TILE3D_HEIGHT+1;
|
||||||
|
|
||||||
#ifdef __VERSION_DEBUG__
|
|
||||||
int PretendToBeAPS2=false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// 0 LUF
|
// 0 LUF
|
||||||
// 1 RUF
|
// 1 RUF
|
||||||
@ -279,12 +275,6 @@ s32 *OutPtr;
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void CLayerTile3d::render()
|
void CLayerTile3d::render()
|
||||||
{
|
{
|
||||||
#ifdef __VERSION_DEBUG__
|
|
||||||
if(PretendToBeAPS2)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
int MapOfs=GetMapOfs();
|
int MapOfs=GetMapOfs();
|
||||||
sTileMapElem *MapPtr=Map+MapOfs;
|
sTileMapElem *MapPtr=Map+MapOfs;
|
||||||
u8 *RGBMapPtr=RGBMap+MapOfs;
|
u8 *RGBMapPtr=RGBMap+MapOfs;
|
||||||
|
@ -131,6 +131,9 @@
|
|||||||
#include <CHAPTER06_LEVEL04_INF.h>
|
#include <CHAPTER06_LEVEL04_INF.h>
|
||||||
#include <CHAPTER06_LEVEL05_INF.h>
|
#include <CHAPTER06_LEVEL05_INF.h>
|
||||||
|
|
||||||
|
#ifdef __VERSION_DEBUG__
|
||||||
|
int PretendToBeAPS2=false;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
sLvlTab LvlTable[]=
|
sLvlTab LvlTable[]=
|
||||||
@ -665,11 +668,19 @@ void CLevel::shutdown()
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void CLevel::render()
|
void CLevel::render()
|
||||||
{
|
{
|
||||||
|
#ifdef __VERSION_DEBUG__
|
||||||
|
// Clever code to make code not so confusing!!
|
||||||
|
// Emulate a PS2 by forcing it to run in 50/60 fps...by not drawing much!!
|
||||||
|
VidSetClearScreen(PretendToBeAPS2);
|
||||||
|
if(!PretendToBeAPS2)
|
||||||
|
#endif
|
||||||
|
// Render Layers
|
||||||
for (int i=0; i<CLayerTile::LAYER_TILE_TYPE_MAX; i++)
|
for (int i=0; i<CLayerTile::LAYER_TILE_TYPE_MAX; i++)
|
||||||
{
|
{
|
||||||
if (TileLayers[i]) TileLayers[i]->render();
|
if (TileLayers[i]) TileLayers[i]->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef __SHOW_COLLISION__
|
#ifdef __SHOW_COLLISION__
|
||||||
if(CollisionLayer)
|
if(CollisionLayer)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user