From: parking_turkeys Date: Fri, 17 Jul 2026 18:22:57 +0000 (-0400) Subject: I FIGURED IT OUT!! i didnt have to look it up!! But like uhh i need to add it breakin... X-Git-Tag: v1.0~28 X-Git-Url: http://git.p-t.hackclub.app/?a=commitdiff_plain;h=5f7a1c3b9dc5e359b8834a0811ae9314ecd09dbd;p=aichan-platformer.git 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 --- 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)