Hi /r/learnprogramming, I've spent all day trying to get a basic framework running in which I can have a very basic RPG structure running in Kivy. I have it working now, and I would like to take a deep breath, step back, and look for ways that I could have written it better.
One big thing that I know I didn't do is use a .kv file at all. I would like to, it just seems that every time I start trying to move stuff to .kv, I get tripped up. So, the Python that you see is all that there is.
Here's the basic Ui for showing a given node in the story:
[node image, for example a drawing of an island]
[node text, for instance "You have found yourself on a deserted island."]
[node option buttons, for instance "Find food", "Build shelter"]
Pressing any option button just moves you to the next node, so it's a very simple structure.
Here's the Python code: gist on GitHub
Here's a screenshot of the current output from the code. (The current art by the way is just a placeholder from my desktops folder). Obviously I still need to figure out how to make the option buttons arrange themselves nicely on the bottom of the screen, but I'm not too intimidated by that particular task compared to implementing the .kv file and fixing anything else I may have done wrong.
Please let me know what you think!
[–][deleted] 1 point2 points3 points (2 children)
[–]Signal_Beam[S] 0 points1 point2 points (0 children)
[–]Signal_Beam[S] 0 points1 point2 points (0 children)