Skip to content

Commit

Permalink
Experiment with larger, shadowed marks in alternate HUD
Browse files Browse the repository at this point in the history
bradharding committed Sep 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e9f6149 commit fc26e88
Showing 4 changed files with 17 additions and 17 deletions.
Binary file modified res/DRHUDIA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/DRHUDIB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/doomretro.wad
Binary file not shown.
34 changes: 17 additions & 17 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
@@ -1067,15 +1067,15 @@ static void HU_DrawAltHUD(void)
8, green2, green2, true, true, tinttab60, tinttab25);
althudfunc(ALTHUD_LEFT_X + 5, ALTHUD_Y + 11, altleftpatch1, WHITE, color, tinttab60, true);
althudfunc(ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 124, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 123, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
}
else
{
fillrectfunc(0, ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, MAX(1, health) + 1, 8,
green2, green2, true, true, NULL, NULL);
althudfunc(ALTHUD_LEFT_X + 5, ALTHUD_Y + 11, altleftpatch1, WHITE, color, NULL, true);
althudfunc(ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, altendpatch, WHITE, green1, NULL, false);
althudfunc(ALTHUD_LEFT_X + 124, ALTHUD_Y + 13, altmarkpatch, WHITE, green1, NULL, false);
althudfunc(ALTHUD_LEFT_X + 123, ALTHUD_Y + 13, altmarkpatch, WHITE, green1, NULL, true);
}
}
else if (health < 100)
@@ -1092,7 +1092,7 @@ static void HU_DrawAltHUD(void)
8, barcolor, barcolor, true, true, tinttab60, tinttab25);
althudfunc(ALTHUD_LEFT_X + 5, ALTHUD_Y + 11, altleftpatch1, WHITE, color, tinttab60, true);
althudfunc(ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 26 + health - 3, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 25 + health - 3, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
}
else
{
@@ -1102,7 +1102,7 @@ static void HU_DrawAltHUD(void)
barcolor, barcolor, true, true, NULL, NULL);
althudfunc(ALTHUD_LEFT_X + 5, ALTHUD_Y + 11, altleftpatch1, WHITE, color, NULL, true);
althudfunc(ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 26 + health - 3, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 25 + health - 3, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
}
}
else
@@ -1118,8 +1118,8 @@ static void HU_DrawAltHUD(void)
8, green2, green2, true, (health == 200), tinttab60, tinttab40);
althudfunc(ALTHUD_LEFT_X + 5, ALTHUD_Y + 11, altleftpatch1, WHITE, color, tinttab60, true);
althudfunc(ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 124, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_LEFT_X + 26 + health - 102, ALTHUD_Y + 10, altmark2patch, WHITE, green1, NULL, false);
althudfunc(ALTHUD_LEFT_X + 123, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
althudfunc(ALTHUD_LEFT_X + 25 + health - 102, ALTHUD_Y + 9, altmark2patch, WHITE, green1, NULL, false);
}
else
{
@@ -1134,8 +1134,8 @@ static void HU_DrawAltHUD(void)

althudfunc(ALTHUD_LEFT_X + 5, ALTHUD_Y + 11, altleftpatch1, WHITE, color, NULL, true);
althudfunc(ALTHUD_LEFT_X + 25, ALTHUD_Y + 13, altendpatch, WHITE, green1, NULL, false);
althudfunc(ALTHUD_LEFT_X + 124, ALTHUD_Y + 13, altmarkpatch, WHITE, green1, NULL, false);
althudfunc(ALTHUD_LEFT_X + 26 + health - 102, ALTHUD_Y + 10, altmark2patch, WHITE, green1, NULL, false);
althudfunc(ALTHUD_LEFT_X + 123, ALTHUD_Y + 13, altmarkpatch, WHITE, green1, NULL, true);
althudfunc(ALTHUD_LEFT_X + 25 + health - 102, ALTHUD_Y + 9, altmark2patch, WHITE, green1, NULL, false);
}
}

@@ -1266,8 +1266,8 @@ static void HU_DrawAltHUD(void)
8, color, color, false, true, tinttab60, tinttab25);
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, tinttab60, true);
althudfunc(ALTHUD_RIGHT_X + 100, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_RIGHT_X - 1, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 1, ALTHUD_Y + 10, altmark2patch, WHITE, color, NULL, false);
althudfunc(ALTHUD_RIGHT_X - 2, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 2, ALTHUD_Y + 9, altmark2patch, WHITE, color, NULL, false);
}
else
{
@@ -1279,17 +1279,17 @@ static void HU_DrawAltHUD(void)
8, nearestdarkgray, nearestdarkgray, false, true, NULL, NULL);
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, NULL, true);
althudfunc(ALTHUD_RIGHT_X + 100, ALTHUD_Y + 13, altendpatch, WHITE, nearestblack, NULL, false);
althudfunc(ALTHUD_RIGHT_X - 1, ALTHUD_Y + 13, altmarkpatch, WHITE, nearestblack, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 1, ALTHUD_Y + 10, altmark2patch, WHITE, nearestblack, NULL, false);
althudfunc(ALTHUD_RIGHT_X - 2, ALTHUD_Y + 13, altmarkpatch, WHITE, nearestblack, NULL, true);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 2, ALTHUD_Y + 9, altmark2patch, WHITE, nearestblack, NULL, false);
}
else
{
fillrectfunc(0, ALTHUD_RIGHT_X + 100 - ammo, ALTHUD_Y + 13, ammo + 1,
8, nearestwhite, nearestwhite, false, true, NULL, NULL);
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, NULL, true);
althudfunc(ALTHUD_RIGHT_X + 100, ALTHUD_Y + 13, altendpatch, WHITE, nearestwhite, NULL, false);
althudfunc(ALTHUD_RIGHT_X - 1, ALTHUD_Y + 13, altmarkpatch, WHITE, nearestwhite, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 1, ALTHUD_Y + 10, altmark2patch, WHITE, nearestwhite, NULL, false);
althudfunc(ALTHUD_RIGHT_X - 2, ALTHUD_Y + 13, altmarkpatch, WHITE, nearestwhite, NULL, true);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 2, ALTHUD_Y + 9, altmark2patch, WHITE, nearestwhite, NULL, false);
}
}
}
@@ -1309,7 +1309,7 @@ static void HU_DrawAltHUD(void)
}

althudfunc(ALTHUD_RIGHT_X + 100, ALTHUD_Y + 13, altendpatch, WHITE, yellow1, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 1, ALTHUD_Y + 13, altmarkpatch, WHITE, yellow1, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 2, ALTHUD_Y + 13, altmarkpatch, WHITE, yellow1, NULL, true);
}
else
{
@@ -1321,7 +1321,7 @@ static void HU_DrawAltHUD(void)
8, color, color, true, true, tinttab60, tinttab25);
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, tinttab60, true);
althudfunc(ALTHUD_RIGHT_X + 100, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 1, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 2, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
}
else
{
@@ -1331,7 +1331,7 @@ static void HU_DrawAltHUD(void)
8, color, color, true, true, NULL, NULL);
althudfunc(ALTHUD_RIGHT_X, ALTHUD_Y + 13, altrightpatch, WHITE, color, NULL, true);
althudfunc(ALTHUD_RIGHT_X + 100, ALTHUD_Y + 13, altendpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 1, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, false);
althudfunc(ALTHUD_RIGHT_X + 100 - ammo - 2, ALTHUD_Y + 13, altmarkpatch, WHITE, color2, NULL, true);
}
}
}

0 comments on commit fc26e88

Please sign in to comment.