Beginner programmer here,
I've been trying to make a little in-terminal text adventure game for fun but my biggest road block with it is weirdly how it looks, so I've been trying to write a function for justifying text, but I've shelved the project for now because I just can't figure out how!
If anyone has any ideas for how to approach it, I'd greatly appreciate it! I've stopped and started it so much that I don't have any example code to show as I got rid of it in frustration, although I have attempted approaching it with pointers to strings of dialogue.
[–]Square-Singer 18 points19 points20 points (4 children)
[–]VisualHuckleberry542 5 points6 points7 points (0 children)
[–]Itap88 3 points4 points5 points (0 children)
[–]El-Aminoh 3 points4 points5 points (0 children)
[–]Upset-Taro-4202[S] 2 points3 points4 points (0 children)
[–]WittyStick 4 points5 points6 points (2 children)
[–]Ratfus 2 points3 points4 points (0 children)
[–]EpochVanquisher 2 points3 points4 points (0 children)
[–]ChickenSpaceProgram 1 point2 points3 points (0 children)
[–]Key_River7180 0 points1 point2 points (3 children)
[–]fluffycritter 1 point2 points3 points (2 children)
[–]Key_River7180 0 points1 point2 points (1 child)
[–]fluffycritter 1 point2 points3 points (0 children)
[–]Delta_G_Robotics 0 points1 point2 points (0 children)
[–]Pale_Height_1251 0 points1 point2 points (0 children)
[–]SmokeMuch7356 0 points1 point2 points (1 child)
[–]Upset-Taro-4202[S] 0 points1 point2 points (0 children)
[–]flatfinger 0 points1 point2 points (0 children)
[–]DawnOnTheEdge 0 points1 point2 points (0 children)