This commit is contained in:
Paul 2001-03-01 17:01:37 +00:00
parent 097520cc05
commit 6c4b207a57
2 changed files with 33 additions and 2 deletions

View File

@ -244,8 +244,8 @@ CPlayer::PlayerMode CPlayer::s_modes[NUM_PLAYERMODES]=
0, // PM__MAX_SAFE_FALL_FRAMES
DEFAULT_PLAYER_MAX_RUN_VELOCITY/2, // PM__MAX_RUN_VELOCITY
DEFAULT_PLAYER_RUN_SPEEDUP/4, // PM__RUN_SPEEDUP
DEFAULT_PLAYER_RUN_REVERSESLOWDOWN/4, // PM__RUN_REVERSESLOWDOWN
DEFAULT_PLAYER_RUN_SLOWDOWN/4, // PM__RUN_SLOWDOWN
DEFAULT_PLAYER_RUN_REVERSESLOWDOWN/5, // PM__RUN_REVERSESLOWDOWN
DEFAULT_PLAYER_RUN_SLOWDOWN/5, // PM__RUN_SLOWDOWN
} },
&modeBalloon,
{

View File

@ -555,6 +555,12 @@ void CPlayer::thinkHorizontalMovement()
Returns:
---------------------------------------------------------------------- */
int panim=-1;
#include "gfx\prim.h" // (pkg)
int healthx=100;
int healthy=20;
int healthw=10;
int healthh=10;
int healthg=2;
#ifdef __USER_paul__
int mouth=-1,eyes=-1;
@ -605,6 +611,31 @@ if(eyes!=-1)
sprintf(buf,"MODE: %s",s_modeText[m_currentMode]);
s_debugFont.print(40,210,buf);
#endif
// Temporary health thing
int i,x;
x=healthx;
for(i=0;i<5;i++)
{
POLY_F4 *f4;
f4=GetPrimF4();
setXYWH(f4,x,healthy,healthw,healthh);
if(i<s_health)
{
setRGB0(f4,0,255,0);
}
else
{
setRGB0(f4,255,0,0);
}
setSemiTrans(f4,true);
AddPrimToList(f4,0);
x+=healthw+healthg;
}
}