Move some hud drawing into sprite

This commit is contained in:
stevenhowes
2021-03-27 20:31:10 +00:00
parent 4ea8b3051e
commit 1f098b9e6e
4 changed files with 1 additions and 13 deletions
Binary file not shown.
-5
View File
@@ -26,11 +26,6 @@ Linkflags = -aif -o $@
# Dynamic dependencies: # Dynamic dependencies:
o.CTheEscape: c.CTheEscape
o.CTheEscape: C:h.swis
o.CTheEscape: C:h.kernel
o.CTheEscape: C:h.kernel
o.CTheEscape: h.Sound
o.CTheEscape: c.CTheEscape o.CTheEscape: c.CTheEscape
o.CTheEscape: C:h.swis o.CTheEscape: C:h.swis
o.CTheEscape: C:h.kernel o.CTheEscape: C:h.kernel
BIN
View File
Binary file not shown.
+1 -8
View File
@@ -21,7 +21,7 @@ int lastprofile = 0;
#define PLAYER_Y_START 100 #define PLAYER_Y_START 100
#define PLAYER_X_SPEED 10 #define PLAYER_X_SPEED 10
#define MAX_NPCS 5 #define MAX_NPCS 5
#define MAX_STARS 5 #define MAX_STARS 10
#define MAX_PROJECTILES 10 #define MAX_PROJECTILES 10
//#define PROFILE(X) lastprofile = clock(); X; printf("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%s %i\n", #X, (clock() - lastprofile)) //#define PROFILE(X) lastprofile = clock(); X; printf("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%s %i\n", #X, (clock() - lastprofile))
#define PROFILE(X) X #define PROFILE(X) X
@@ -875,13 +875,6 @@ void game_draw_hud()
{ {
draw_sprite("lcars",4,DISPLAY_Y-180); draw_sprite("lcars",4,DISPLAY_Y-180);
font_colour(colours[lcars_black],colours[lcars_violet1],font[sys_12_8]);
draw_text("Shields",75,DISPLAY_Y-62,font[sys_12_8]);
draw_text("Integrity",75,DISPLAY_Y-92,font[sys_12_8]);
draw_text("Velocity",75,DISPLAY_Y-122,font[sys_12_8]);
draw_text("Distance",75,DISPLAY_Y-152,font[sys_12_8]);
font_colour(colours[lcars_violet1],colours[lcars_black],font[sys_12_8]); font_colour(colours[lcars_violet1],colours[lcars_black],font[sys_12_8]);
sprintf(hudbuffer,"%i",Player.shields); sprintf(hudbuffer,"%i",Player.shields);