Example: I want to display "Weapon 1 Selected!!" for 7 seconds in the lower left corner.
Thanx,
ViPeR
Example: I want to display "Weapon 1 Selected!!" for 7 seconds in the lower left corner.
Thanx,
ViPeR
struct msg
{
char *text, color;
unsigned short x, y;
unsigned short timeinit, length;
};
for each message on the screen (maybe a global expandable linked list) and each frame you would run through the list of current messages and compare timeinit to timeGetTime(), and if timeGetTime()-timinit > length, you remove that message from the list, otherwise you blit it onto your buffer at (x,y)
hope this helps