Commit 40371f96 authored by Steven Fuller's avatar Steven Fuller

Removed virtualreality (for use with vr helmet)

parent 87d42d14
* One binary, any game type. Store certain things in a new file?
* A key to change viewsize at runtime (max == 20, min == 5 or so...)
* Game able to cope at any virtual resolution in software mode. OpenGL
handles this transparently
* Audio support using OpenAL
......@@ -6,9 +6,13 @@ code, it really needs to be cleaned up
* id_ca.c cache code: nice idea but messy and maybe can be fixed
in an effort to not allocate everything to memory and forget about it
some sort of garbage collection
* remove virtualreality
* clean up header files, especially wl_def.h, where some externs arent in
the right place
* every structure that is read/written must be PACKED, with datatypes
specifically set! (ie, no int, but short or long int)
* is that memory intro screen needed anymore? probably not
* fix the input code, everything is spread out... ideally everything should
work the same, let the input handler do it all instead
* when viewsize is around 20, sprites end up being drawn over the border.
maybe there are clipping bugs that will cause it to fill over the top, left,
and right
\ No newline at end of file
......@@ -722,7 +722,7 @@ extern int shootdelta;
extern int dirangle[9];
extern boolean startgame,loadedgame,virtualreality;
extern boolean startgame,loadedgame;
extern int mouseadjustment;
//
// math tables
......
......@@ -53,7 +53,7 @@ int minheightdiv;
void Quit (char *error);
boolean startgame,loadedgame,virtualreality;
boolean startgame,loadedgame;
int mouseadjustment;
char configname[13]="config.";
......@@ -150,8 +150,6 @@ void ReadConfig(void)
if (SoundBlasterPresent)
sds = sds_SoundBlaster;
else if (SoundSourcePresent)
sds = sds_SoundSource;
else
sds = sds_Off;
......@@ -162,8 +160,9 @@ void ReadConfig(void)
joypadenabled = false;
joystickport = 0;
/* max viewsize is 20 */
viewsize = 15;
mouseadjustment=5;
mouseadjustment = 5;
}
SD_SetMusicMode (sm);
......@@ -644,16 +643,10 @@ void SetupWalls (void)
==========================
*/
void SignonScreen (void) // VGA version
void SignonScreen()
{
unsigned segstart,seglength;
VL_SetPalette (&gamepal);
if (!virtualreality)
{
VL_MemToScreen (&introscn,320,200,0,0);
}
VL_SetPalette(&gamepal);
VL_MemToScreen(&introscn, 320, 200, 0, 0);
}
......@@ -1040,14 +1033,9 @@ void DoJukebox(void)
==========================
*/
void InitGame (void)
void InitGame(void)
{
int i,x,y;
if (MS_CheckParm ("virtual"))
virtualreality = true;
else
virtualreality = false;
int i,x,y;
MM_Startup ();
VW_Startup ();
......@@ -1083,8 +1071,7 @@ void InitGame (void)
//
// draw intro screen stuff
//
if (!virtualreality)
IntroScreen ();
IntroScreen ();
//
// load in and lock down some basic chunks
......@@ -1104,13 +1091,7 @@ void InitGame (void)
// initialize variables
//
InitRedShifts ();
if (!virtualreality)
FinishSignon();
if (virtualreality)
{
NoWait = true;
}
FinishSignon();
}
//===========================================================================
......
......@@ -1306,7 +1306,6 @@ long funnyticount;
void PlayLoop (void)
{
int give;
int helmetangle;
playstate = lasttimecount = 0;
set_TimeCount(0);
......@@ -1323,15 +1322,6 @@ void PlayLoop (void)
do
{
if (virtualreality)
{
helmetangle = 0; /* TODO: virtualreality can be removed */
player->angle += helmetangle;
if (player->angle >= ANGLES)
player->angle -= ANGLES;
}
PollControls();
//
......@@ -1392,15 +1382,7 @@ void PlayLoop (void)
}
}
if (virtualreality)
{
player->angle -= helmetangle;
if (player->angle < 0)
player->angle += ANGLES;
}
}while (!playstate && !startgame);
} while (!playstate && !startgame);
if (playstate != ex_died)
FinishPaletteShifts ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment