Mission briefing

This commit is contained in:
stevenhowes
2021-03-28 22:20:33 +01:00
parent 7b1e9a0a6b
commit 8e8e7cbdda
5 changed files with 39 additions and 4 deletions
+14 -3
View File
@@ -143,7 +143,7 @@ void draw_spritetext(char* text, int x, int y)
{
str[0] = text[i];
if((text[i] != ' ') && (text[i] != '\n'))
if((text[i] != ' ') && (text[i] != '\n') && (text[i] != '~'))
draw_sprite(str,currentx,currenty);
switch (text[i])
@@ -151,6 +151,7 @@ void draw_spritetext(char* text, int x, int y)
case 't':
case 'i':
case 'y':
case '.':
currentx += 6 + 2;
break;
case 'm':
@@ -161,7 +162,17 @@ void draw_spritetext(char* text, int x, int y)
currentx += 10 + 2;
break;
case ' ':
currentx += 4 + 2;
currentx += 6 + 2;
break;
case '=':
currentx += 22 + 2;
break;
case '{':
case '}':
currentx += 26;
break;
case '~':
currentx -= 2;
break;
default:
currentx += 8 + 2;
@@ -170,7 +181,7 @@ void draw_spritetext(char* text, int x, int y)
if(text[i] == '\n')
{
currentx = x;
currenty -= 32;
currenty -= 36;
}
}
}