From 5f7a1c3b9dc5e359b8834a0811ae9314ecd09dbd Mon Sep 17 00:00:00 2001 From: parking_turkeys Date: Fri, 17 Jul 2026 14:22:57 -0400 Subject: [PATCH] I FIGURED IT OUT!! i didnt have to look it up!! But like uhh i need to add it breaking on words instead of just randomly --- level.c | 11 ++++++++--- main_v2.c | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/level.c b/level.c index 5b2a337..ac7ca67 100644 --- a/level.c +++ b/level.c @@ -132,13 +132,18 @@ int drawdialogueline(char *l) //ok im going to try doing this letter by letter :) int x = CHARADISPLAYWIDTH + DLGPADDING; int y = DLGY + DLGPADDING * 2; - char *c = "a"; + char c[2] = {'a', '\0'}; int i = 0; //printf(l); - while ((c = l+i) != "\0") { - printf(c); + while (l[i] != '\0') { + c[0] = l[i]; + //printf(c); i++; + DrawText(c, x, y, 20, BLACK); + x += MeasureText(c, 20) + 1; + if (x >= DLGTEXTWIDTH + CHARADISPLAYWIDTH + DLGPADDING) {x = CHARADISPLAYWIDTH + DLGPADDING; y += 22;}; }; + //printf("\nDone"); return 1; diff --git a/main_v2.c b/main_v2.c index 1b8d8d7..db3b218 100644 --- a/main_v2.c +++ b/main_v2.c @@ -10,7 +10,7 @@ #include #include // seems useful -int level = 1; +int level = 0; int frozen = 0; int main(void) -- 2.47.3