diff --git a/Graphics/ingamefx/+health_empty.bmp b/Graphics/ingamefx/+health_empty.bmp deleted file mode 100644 index 0c245afa3..000000000 Binary files a/Graphics/ingamefx/+health_empty.bmp and /dev/null differ diff --git a/Graphics/ingamefx/+health_empty_1.bmp b/Graphics/ingamefx/+health_empty_1.bmp new file mode 100644 index 000000000..4a80d4e3a Binary files /dev/null and b/Graphics/ingamefx/+health_empty_1.bmp differ diff --git a/Graphics/ingamefx/+health_empty_2.bmp b/Graphics/ingamefx/+health_empty_2.bmp new file mode 100644 index 000000000..814c2688b Binary files /dev/null and b/Graphics/ingamefx/+health_empty_2.bmp differ diff --git a/Graphics/ingamefx/+health_empty_3.bmp b/Graphics/ingamefx/+health_empty_3.bmp new file mode 100644 index 000000000..4587f4bd6 Binary files /dev/null and b/Graphics/ingamefx/+health_empty_3.bmp differ diff --git a/Graphics/ingamefx/+health_empty_4.bmp b/Graphics/ingamefx/+health_empty_4.bmp new file mode 100644 index 000000000..3c6a4145d Binary files /dev/null and b/Graphics/ingamefx/+health_empty_4.bmp differ diff --git a/Graphics/ingamefx/+health_empty_5.bmp b/Graphics/ingamefx/+health_empty_5.bmp new file mode 100644 index 000000000..202b2f869 Binary files /dev/null and b/Graphics/ingamefx/+health_empty_5.bmp differ diff --git a/Graphics/ingamefx/+health_full.bmp b/Graphics/ingamefx/+health_full.bmp deleted file mode 100644 index c9061c173..000000000 Binary files a/Graphics/ingamefx/+health_full.bmp and /dev/null differ diff --git a/Graphics/ingamefx/+health_full_1.bmp b/Graphics/ingamefx/+health_full_1.bmp new file mode 100644 index 000000000..c42bbbd4f Binary files /dev/null and b/Graphics/ingamefx/+health_full_1.bmp differ diff --git a/Graphics/ingamefx/+health_full_2.bmp b/Graphics/ingamefx/+health_full_2.bmp new file mode 100644 index 000000000..02304f6ca Binary files /dev/null and b/Graphics/ingamefx/+health_full_2.bmp differ diff --git a/Graphics/ingamefx/+health_full_3.bmp b/Graphics/ingamefx/+health_full_3.bmp new file mode 100644 index 000000000..87e685eaf Binary files /dev/null and b/Graphics/ingamefx/+health_full_3.bmp differ diff --git a/Graphics/ingamefx/+health_full_4.bmp b/Graphics/ingamefx/+health_full_4.bmp new file mode 100644 index 000000000..927d74ea1 Binary files /dev/null and b/Graphics/ingamefx/+health_full_4.bmp differ diff --git a/Graphics/ingamefx/+health_full_5.bmp b/Graphics/ingamefx/+health_full_5.bmp new file mode 100644 index 000000000..375ebd11d Binary files /dev/null and b/Graphics/ingamefx/+health_full_5.bmp differ diff --git a/makefile.gfx b/makefile.gfx index 7e583f717..27d2317f7 100644 --- a/makefile.gfx +++ b/makefile.gfx @@ -239,7 +239,9 @@ PICKUP_GFX := +spatula +pants +health100 +health50 +health25 +glint1 +glint2 +teeth +blower +net PICKUP_GFX_IN := $(foreach FILE,$(PICKUP_GFX),$(PICKUP_GFX_DIR)/$(FILE).bmp) -INGAMEFX_GFX_TRANS := +bubble_1 +bubble_2 +bubble_3 +INGAMEFX_GFX_TRANS := +bubble_1 +bubble_2 +bubble_3 \ + +health_full_1 +health_full_2 +health_full_3 +health_full_4 +health_full_5 \ + +health_empty_1 +health_empty_2 +health_empty_3 +health_empty_4 +health_empty_5 INGAMEFX_GFX_TRANS_IN := $(foreach FILE,$(INGAMEFX_GFX_TRANS),$(INGAMEFX_GFX_DIR)/$(FILE).bmp) #### diff --git a/source/player/player.cpp b/source/player/player.cpp index 18ddfa42e..4a5b2ddee 100644 --- a/source/player/player.cpp +++ b/source/player/player.cpp @@ -83,6 +83,11 @@ /* Data ---- */ +#ifndef __SPR_INGAMEFX_H__ +#include +#endif + + /*---------------------------------------------------------------------- Tyepdefs && Defines ------------------- */ @@ -391,14 +396,11 @@ else if(Pos.vy>m_mapEdge.vy-64)Pos.vy=m_mapEdge.vy-64; ---------------------------------------------------------------------- */ int panim=-1; #include "gfx\prim.h" // (pkg) -int healthx=100; -int healthy=27; -int healthw=10; -int healthh=10; -int healthg=2; -int livesx=162; -int livesy=28; - +int healthx=400; +int healthy=30; +int healthr=200; +int healthg=75; +int healthb=75; #ifdef __USER_paul__ int mouth=-1,eyes=-1; @@ -432,38 +434,49 @@ m_fontBank->print(40,40,posBuf); #endif - // Temporary health/lives thing -#ifdef __USER_paul__ - int i,x; - x=healthx; - for(i=0;i<5;i++) + // Health { - POLY_F4 *f4; - f4=GetPrimF4(); - setXYWH(f4,x,healthy,healthw,healthh); - if(i0;i--) + { + ft4=m_spriteBank->printFT4(*frames++,x,y,0,0,5); + if(i>s_health) + { + setRGB0(ft4,healthr,healthg,healthb); + } + y+=9; + } } - char lifebuf[5]; - sprintf(lifebuf,"x%d",m_lives); - m_fontBank->print(livesx,livesy,lifebuf); -#endif // Mode specific ui m_currentPlayerModeClass->renderModeUi(); diff --git a/source/player/psidle.cpp b/source/player/psidle.cpp index 1085f21ac..444fa4b9e 100644 --- a/source/player/psidle.cpp +++ b/source/player/psidle.cpp @@ -85,7 +85,7 @@ void CPlayerStateBaseIdle::thinkControl(CPlayerModeBase *_playerMode) if(_playerMode->canMoveRight()) _playerMode->setState(STATE_RUN); } - else if(controlHeld&PI_DOWN) + else if(controlDown&PI_DOWN) { _playerMode->setState(STATE_DUCK); } diff --git a/source/player/psrun.cpp b/source/player/psrun.cpp index fcc609298..20885bfdd 100644 --- a/source/player/psrun.cpp +++ b/source/player/psrun.cpp @@ -110,7 +110,7 @@ void CPlayerStateRun::think(CPlayerModeBase *_playerMode) { switchedState=_playerMode->setState(STATE_JUMP); } - if(controlHeld&PI_DOWN) + if(controlDown&PI_DOWN) { switchedState=_playerMode->setState(STATE_DUCK); } diff --git a/users/paul/spongebob project/spongebob project.dsp b/users/paul/spongebob project/spongebob project.dsp index f7d597347..af06155cb 100644 --- a/users/paul/spongebob project/spongebob project.dsp +++ b/users/paul/spongebob project/spongebob project.dsp @@ -1290,10 +1290,6 @@ SOURCE=..\..\..\out\USA\include\ingamefx.h SOURCE=..\..\..\out\USA\include\trans.h # End Source File -# Begin Source File - -SOURCE=..\..\..\out\USA\include\UIGfx.h -# End Source File # End Group # End Group # End Group