move points to left

This commit is contained in:
Ian 2022-07-05 19:24:06 -04:00
parent beb2e862e4
commit 03902bd47a
5 changed files with 20 additions and 8 deletions

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -331,7 +331,7 @@ void HUD_Parse_Point_Change (int points, int negative, int x_start, int y_start)
point_change[i].negative = negative;
f = HUD_itoa (points, str);
point_change[i].x = x_start - 10.0 - 8.0*f;
point_change[i].x = x_start + 10.0 + 8.0*f;
point_change[i].y = y_start;
point_change[i].move_x = 1.0;
point_change[i].move_y = ((rand ()&0x7fff) / ((float)0x7fff)) - 0.5;
@ -353,8 +353,8 @@ void HUD_Points (void)
l = scoreboardlines;
x = vid.width - sb_moneyback->width;
y = vid.height - 16 - fragpic->height - 4 - 16 - sb_moneyback->height;
x = 5;
y = 179;
for (i=0 ; i<l ; i++)
{
k = pointsort[i];
@ -395,15 +395,16 @@ void HUD_Points (void)
}
}
Draw_Pic (x, y, sb_moneyback);
xplus = HUD_itoa (f, str);
Draw_String (vid.width - (xplus*8) - 16, y + 3, va("%i", current_points));
xplus = strlen(va("%i", current_points))*8;
Draw_String (((64 - xplus)/2)+5, y + 3, va("%i", current_points));
if (old_points != f)
{
if (f > old_points)
HUD_Parse_Point_Change(f - old_points, 0, vid.width - (xplus*8) - 16, y + 3);
HUD_Parse_Point_Change(f - old_points, 0, ((64 - xplus)/2)+5, y + 3);
else
HUD_Parse_Point_Change(old_points - f, 1, vid.width - (xplus*8) - 16, y + 3);
HUD_Parse_Point_Change(old_points - f, 1, ((64 - xplus)/2)+5, y + 3);
old_points = f;
}
@ -434,7 +435,7 @@ void HUD_Point_Change (void)
else
Draw_ColoredString (point_change[i].x, point_change[i].y, va ("+%i", point_change[i].points), 255, 255, 0, 255, 1);
point_change[i].y = point_change[i].y + point_change[i].move_y;
point_change[i].x = point_change[i].x - point_change[i].move_x;
point_change[i].x = point_change[i].x + point_change[i].move_x;
if (point_change[i].alive_time && point_change[i].alive_time < Sys_FloatTime())
{
point_change[i].points = 0;

View file

@ -372,6 +372,7 @@ void SCR_UsePrint (int type, int cost, int weapon)
{
case 0://clear
strcpy(s, "");
strcpy(c, "");
break;
case 1://door
strcpy(s, va("Hold %s to open Door\n", GetUseButtonL()));
@ -395,6 +396,7 @@ void SCR_UsePrint (int type, int cost, int weapon)
break;
case 5://window
strcpy(s, va("Hold %s to Rebuild Barrier\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 5;
break;
case 6://box
@ -404,10 +406,12 @@ void SCR_UsePrint (int type, int cost, int weapon)
break;
case 7://box take
strcpy(s, va("Press %s to take Weapon\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 6;
break;
case 8://power
strcpy(s, "The Power must be Activated first\n");
strcpy(c, "");
button_pic_x = 100;
break;
case 9://perk
@ -417,6 +421,7 @@ void SCR_UsePrint (int type, int cost, int weapon)
break;
case 10://turn on power
strcpy(s, va("Hold %s to Turn On the Power\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 5;
break;
case 11://turn on trap
@ -431,10 +436,12 @@ void SCR_UsePrint (int type, int cost, int weapon)
break;
case 13://revive
strcpy(s, va("Hold %s to Fix your Code.. :)\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 5;
break;
case 14://use teleporter (free)
strcpy(s, va("Hold %s to use Teleporter\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 5;
break;
case 15://use teleporter (cost)
@ -444,18 +451,22 @@ void SCR_UsePrint (int type, int cost, int weapon)
break;
case 16://tp cooldown
strcpy(s, "Teleporter is cooling down\n");
strcpy(c, "");
button_pic_x = 100;
break;
case 17://link
strcpy(s, va("Hold %s to initiate link to pad\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 5;
break;
case 18://no link
strcpy(s, "Link not active\n");
strcpy(c, "");
button_pic_x = 100;
break;
case 19://finish link
strcpy(s, va("Hold %s to link pad with core\n", GetUseButtonL()));
strcpy(c, "");
button_pic_x = 5;
break;
case 20://buyable ending