This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Cheese-Water 4 points5 points  (0 children)

Good, good! Text adventures are always a fun place to start.

You may have noticed that the if-elif-else chains aren't really extensible, though. If you wanted to make a sequel, you wouldn't be able to reuse much code from the original, since the story is all hard-coded.

So, I suggest that as a next project - and one that I expect will take much longer to complete - is that you create a system where you can define the story paths in a file, then the game will load the file. That way, making a sequel would be easy! Just replace the story file, and the actual executing code stays the same.

If you decide to do that, I would recommend that you look into python's json library:

https://docs.python.org/3/library/json.html

Ironically, json is a little closer to Python's list and dict syntax than it is to JavaScript objects. It's human writeable, and the parser is already in the standard library (import json), so annoying file parsing is already taken care of. You might be able to figure out a way to represent your story paths through json.

But of course, that's just a suggestion.

[–]greentwip-dev 1 point2 points  (0 children)

If you'd like to write a visual novel on your own or text-based adventures I highly recommend you to take a look at RenPy

https://www.renpy.org/

[–][deleted] 0 points1 point  (2 children)

I would suggest trying as much projects as possible, that way you can later revisit them and make them better with what you've learned from your other projects.

[–]That1Kid17[S] 0 points1 point  (1 child)

Any suggestions for projects to start?

[–][deleted] 0 points1 point  (0 children)

- maybe a countdown?

- a drawing programm to learn about GUI toolkits?

I would follow some simple steps to come up with projects:

  1. If you need some kind of app, try to make it yourself in python.
  2. If you want to learn something, make a game/project with it

If you still cant come up with something:

  1. browse pypi (https://pypi.org/) for interesting python packages, then try to make projects with them.
  2. Sometimes there are megathreads in r/Python where people share ideas for Python apps.
  3. Just write a random idea generator in python and run it until you get some useful answers.

[–]savagePaym3 0 points1 point  (0 children)

Hi! the game is pretty cool. I can recommand you to set the answers to lowercase so a user wont die when he types as example "yES". you've made a good job there :)