I've been working on a text based RPG. It's pretty simple, I'm not very experienced with Python, or any other language for that matter.
Edit: For context, I recently posted this question: Python 3: How can I make my Text-based game windowed?
Here's my game you'd like to check out the code: https://gist.github.com/NervousTumbleweed/f42f326982f2af1549b528ce0156e34a
I took a long hiatus from working on the game because I became caught up in work, and after coming back to it today I've decided that I want it to run in a window, not a console.
I want my end product to have background art and audio files. I have a pretty good idea of how to do this (I've done very simple versions of this in languages like MATLAB and Processing)
What I'm beginning to realize though, is that many of the functions that I use in my game don't just magically "transfer" over to pygame. I don't get to just create a window and poof my game is there.
For example, my print() commands all won't appear in a pygame window, correct? So I did some research and it seems like I could (maybe) create a font, and replace them with:
textsurface = myfont.render('Some Text', False, (0, 0, 0)) screen.blit(textsurface,(0,0))
But then I realized, how the hell do I get commands in there?
What about strings that are attributes of objects, will those display?
Is the way my game logic is written even compatible with this module?
So now I'm pretty bummed out and frazzled. I'm willing to restart from scratch I guess, but part of what motivated me to come back to the game was that I wanted to finish it.
Would the best move be to completely start over, or can a good amount of my code be salvaged and made compatible with displaying in a pygame window?